summaryrefslogtreecommitdiff
path: root/src/theory/booleans
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2011-09-02 17:56:43 +0000
committerMorgan Deters <mdeters@gmail.com>2011-09-02 17:56:43 +0000
commit487e610b88f2a634e3285886ff96717c103338de (patch)
tree7f034b5c9f537195df72ac9ecd7666226dc2ed9f /src/theory/booleans
parent90267f8729799f44c6fb33ace11b971a16e78dff (diff)
Partial merge of integers work; this is simple B&B and some pseudoboolean
infrastructure, and takes care not to affect CVC4's performance on LRA benchmarks.
Diffstat (limited to 'src/theory/booleans')
-rw-r--r--src/theory/booleans/theory_bool_type_rules.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/theory/booleans/theory_bool_type_rules.h b/src/theory/booleans/theory_bool_type_rules.h
index 70b53a930..09030d331 100644
--- a/src/theory/booleans/theory_bool_type_rules.h
+++ b/src/theory/booleans/theory_bool_type_rules.h
@@ -34,7 +34,10 @@ public:
TNode::iterator child_it = n.begin();
TNode::iterator child_it_end = n.end();
for(; child_it != child_it_end; ++child_it) {
- if((*child_it).getType(check) != booleanType) {
+ if(!(*child_it).getType(check).isBoolean()) {
+ Debug("pb") << "failed type checking: " << *child_it << std::endl;
+ Debug("pb") << " integer: " << (*child_it).getType(check).isInteger() << std::endl;
+ Debug("pb") << " real: " << (*child_it).getType(check).isReal() << std::endl;
throw TypeCheckingExceptionPrivate(n, "expecting a Boolean subexpression");
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback