**/
import edu.nyu.acsys.CVC4.*;
-import edu.nyu.acsys.CVC4.Integer;// to override java.lang.Integer name lookup
public class SimpleVC {
public static void main(String[] args) {
Expr x = em.mkVar("x", integer);
Expr y = em.mkVar("y", integer);
- Expr zero = em.mkConst(new Integer(0));
+ Expr zero = em.mkConst(new Rational(0));
Expr x_positive = em.mkExpr(Kind.GT, x, zero);
Expr y_positive = em.mkExpr(Kind.GT, y, zero);
- Expr two = em.mkConst(new Integer(2));
+ Expr two = em.mkConst(new Rational(2));
Expr twox = em.mkExpr(Kind.MULT, two, x);
Expr twox_plus_y = em.mkExpr(Kind.PLUS, twox, y);
- Expr three = em.mkConst(new Integer(3));
+ Expr three = em.mkConst(new Rational(3));
Expr twox_plus_y_geq_3 = em.mkExpr(Kind.GEQ, twox_plus_y, three);
BoolExpr formula =
%include "expr/expr_manager.h"
-%template(mkConst) CVC4::ExprManager::mkConst< CVC4::Integer >;
%template(mkConst) CVC4::ExprManager::mkConst< CVC4::Rational >;
%include "expr/expr_manager.h"