summaryrefslogtreecommitdiff
path: root/test/unit/expr
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2017-07-12 11:44:11 -0500
committerajreynol <andrew.j.reynolds@gmail.com>2017-07-12 11:44:11 -0500
commitaf73723b1984edd3b6c539857c533078d652fd18 (patch)
treefe17be5bf0f8a2690f09b45ddb86d199363b2af7 /test/unit/expr
parent7d47285c9e2da0defe956435361765cde2ad4c5a (diff)
Fix unit tests for subranges. Fix destructors for context objs in unit tests.
Diffstat (limited to 'test/unit/expr')
-rw-r--r--test/unit/expr/type_node_white.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/test/unit/expr/type_node_white.h b/test/unit/expr/type_node_white.h
index 701f04003..d0438e376 100644
--- a/test/unit/expr/type_node_white.h
+++ b/test/unit/expr/type_node_white.h
@@ -24,7 +24,6 @@
#include "expr/expr_manager.h"
#include "expr/node_manager.h"
#include "expr/type_node.h"
-#include "util/subrange_bound.h"
#include "smt/smt_engine.h"
using namespace CVC4;
@@ -59,7 +58,6 @@ public:
TypeNode booleanType = d_nm->booleanType();
TypeNode arrayType = d_nm->mkArrayType(realType, integerType);
TypeNode bvType = d_nm->mkBitVectorType(32);
- TypeNode subrangeType = d_nm->mkSubrangeType(SubrangeBounds(Integer(1), Integer(10)));
Node x = d_nm->mkBoundVar("x", realType);
Node xPos = d_nm->mkNode(GT, x, d_nm->mkConst(Rational(0)));
@@ -68,73 +66,42 @@ public:
vector<Expr> formals;
formals.push_back(x.toExpr());
d_smt->defineFunction(lambda.toExpr(), formals, xPos.toExpr());
- TypeNode predicateSubtype = d_nm->mkPredicateSubtype(lambda.toExpr());
TS_ASSERT( not realType.isComparableTo(booleanType) );
TS_ASSERT( realType.isComparableTo(integerType) );
TS_ASSERT( realType.isComparableTo(realType) );
TS_ASSERT( not realType.isComparableTo(arrayType) );
TS_ASSERT( not realType.isComparableTo(bvType) );
- TS_ASSERT( realType.isComparableTo(subrangeType) );
- TS_ASSERT( realType.isComparableTo(predicateSubtype) );
TS_ASSERT( not booleanType.isComparableTo(integerType) );
TS_ASSERT( not booleanType.isComparableTo(realType) );
TS_ASSERT( booleanType.isComparableTo(booleanType) );
TS_ASSERT( not booleanType.isComparableTo(arrayType) );
TS_ASSERT( not booleanType.isComparableTo(bvType) );
- TS_ASSERT( not booleanType.isComparableTo(subrangeType) );
- TS_ASSERT( not booleanType.isComparableTo(predicateSubtype) );
TS_ASSERT( integerType.isComparableTo(realType) );
TS_ASSERT( integerType.isComparableTo(integerType) );
TS_ASSERT( not integerType.isComparableTo(booleanType) );
TS_ASSERT( not integerType.isComparableTo(arrayType) );
TS_ASSERT( not integerType.isComparableTo(bvType) );
- TS_ASSERT( integerType.isComparableTo(subrangeType) );
- TS_ASSERT( integerType.isComparableTo(predicateSubtype) );
TS_ASSERT( not arrayType.isComparableTo(booleanType) );
TS_ASSERT( not arrayType.isComparableTo(integerType) );
TS_ASSERT( not arrayType.isComparableTo(realType) );
TS_ASSERT( arrayType.isComparableTo(arrayType) );
TS_ASSERT( not arrayType.isComparableTo(bvType) );
- TS_ASSERT( not arrayType.isComparableTo(subrangeType) );
- TS_ASSERT( not arrayType.isComparableTo(predicateSubtype) );
TS_ASSERT( not bvType.isComparableTo(booleanType) );
TS_ASSERT( not bvType.isComparableTo(integerType) );
TS_ASSERT( not bvType.isComparableTo(realType) );
TS_ASSERT( not bvType.isComparableTo(arrayType) );
TS_ASSERT( bvType.isComparableTo(bvType) );
- TS_ASSERT( not bvType.isComparableTo(subrangeType) );
- TS_ASSERT( not bvType.isComparableTo(predicateSubtype) );
-
- TS_ASSERT( not subrangeType.isComparableTo(booleanType) );
- TS_ASSERT( subrangeType.isComparableTo(integerType) );
- TS_ASSERT( subrangeType.isComparableTo(realType) );
- TS_ASSERT( not subrangeType.isComparableTo(arrayType) );
- TS_ASSERT( not subrangeType.isComparableTo(bvType) );
- TS_ASSERT( subrangeType.isComparableTo(subrangeType) );
- TS_ASSERT( subrangeType.isComparableTo(predicateSubtype) );
-
- TS_ASSERT( not predicateSubtype.isComparableTo(booleanType) );
- TS_ASSERT( predicateSubtype.isComparableTo(integerType) );
- TS_ASSERT( predicateSubtype.isComparableTo(realType) );
- TS_ASSERT( not predicateSubtype.isComparableTo(arrayType) );
- TS_ASSERT( not predicateSubtype.isComparableTo(bvType) );
- TS_ASSERT( predicateSubtype.isComparableTo(subrangeType) );
- TS_ASSERT( predicateSubtype.isComparableTo(predicateSubtype) );
TS_ASSERT(realType.getBaseType() == realType);
TS_ASSERT(integerType.getBaseType() == realType);
TS_ASSERT(booleanType.getBaseType() == booleanType);
TS_ASSERT(arrayType.getBaseType() == arrayType);
TS_ASSERT(bvType.getBaseType() == bvType);
- TS_ASSERT(subrangeType.getBaseType() == realType);
- TS_ASSERT(predicateSubtype.getBaseType() == realType);
-
- TS_ASSERT(predicateSubtype.getSubtypeParentType() == integerType);
}
};/* TypeNodeWhite */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback