diff options
Diffstat (limited to 'src/theory/booleans')
-rw-r--r-- | src/theory/booleans/theory_bool_type_rules.h | 5 |
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"); } } |