Exemple #1
0
 public override Type VisitBvType(BvType node)
 {
     //Contract.Requires(node != null);
     Contract.Ensures(Contract.Result <Type>() != null);
     // do /not/ clone the type recursively
     return((BvType)node.Clone());
 }
Exemple #2
0
        private Sort GetBvType(BvType bvType)
        {
            if (!bvTypes.ContainsKey(bvType))
            {
                Sort typeAst = BuildBvType(bvType);
                bvTypes.Add(bvType, typeAst);
            }
            Sort result;
            bool containsKey = bvTypes.TryGetValue(bvType, out result);

            Debug.Assert(containsKey);
            return(result);
        }
Exemple #3
0
 public override Type VisitBvType(BvType node) {
   //Contract.Requires(node != null);
   Contract.Ensures(Contract.Result<Type>() != null);
   // do /not/ clone the type recursively
   return (BvType)node.Clone();
 }
 public override Type VisitBvType(BvType node)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
 public override Type VisitBvType(BvType node)
 {
     // do /not/ clone the type recursively
     return((BvType)node.Clone());
 }
Exemple #6
0
 public override Type VisitBvType(BvType node)
 {
     Contract.Ensures(Contract.Result<Type>() == node);
     return this.VisitType(node);
 }
Exemple #7
0
 public virtual Type VisitBvType(BvType node) {
   Contract.Requires(node != null);
   Contract.Ensures(Contract.Result<Type>() != null);
   return this.VisitType(node);
 }
Exemple #8
0
 public void BitVector()
 {
     CheckType(BvType.GetBvType(2), builder.ConstantBV(3, 2), "(_ BitVec 2)", "(= symbolic_0 (_ bv3 2) )");
 }
Exemple #9
0
        public Sort BuildBvType(BvType bvType)
        {
            Context z3 = ((Z3apiProverContext)container).z3;

            return(z3.MkBvSort((uint)bvType.Bits));
        }
Exemple #10
0
 public virtual Type VisitBvType(BvType node)
 {
     Contract.Requires(node != null);
     Contract.Ensures(Contract.Result <Type>() != null);
     return(this.VisitType(node));
 }
Exemple #11
0
 //do not support bitvectors
 public override Type VisitBvType(BvType node)
 {
     problematicNode = node;
     return(node);
 }