Exemple #1
0
        public static BoolExpr cmp(IntExpr f1, IntExpr f2)
        {
            BoolExpr e;

            cmp(f1, f2, out e);
            return(e);
        }
Exemple #2
0
        public static IntExpr add(IntExpr f1, IntExpr f2)
        {
            IntExpr e;

            add(f1, f2, out e);
            return(e);
        }
Exemple #3
0
 public static void intConst(BigInteger i, out IntExpr e)
 {
     e = new IntExpr(ctx.MkInt((int)i));
 }
Exemple #4
0
 public static void boolToInt(BoolExpr b, out IntExpr e)
 {
     e = new IntExpr((Microsoft.Z3.IntExpr)ctx.MkITE(b.expr, intConst(1).expr, intConst(0).expr));
 }
Exemple #5
0
 public static void cmp(IntExpr f1, IntExpr f2, out BoolExpr e)
 {
     e = new BoolExpr(ctx.MkEq(f1.expr, f2.expr));
 }
Exemple #6
0
 public static void add(IntExpr f1, IntExpr f2, out IntExpr e)
 {
     e = new IntExpr(ctx.MkAdd(f1.expr, f2.expr));
 }
Exemple #7
0
 public static void intSymbolic(BigInteger i, out IntExpr e)
 {
     e = new IntExpr(ctx.MkIntConst("reg" + i.ToString()));
 }