public override Expr VisitLiteralExpr(LiteralExpr node) { if (node.isBool) { return((Expr)Builder.ConstantBool(node.asBool)); } else if (node.isBigNum) { return(Builder.ConstantInt(node.asBigNum.ToBigInteger)); } else if (node.isBigDec) { return(Builder.ConstantReal(node.asBigDec)); } else if (node.isBvConst) { var bv = node.asBvConst; return(Builder.ConstantBV(bv.Value.ToBigInteger, bv.Bits)); } else { throw new NotSupportedException("Unknown LiteralExpr type"); } }
public virtual LiteralExpr ConstantBool(bool value) { return(UB.ConstantBool(value)); }
public void Boolean() { CheckType(BasicType.Bool, builder.ConstantBool(true), "Bool", "(= symbolic_0 true )"); }