Fixing type comparision assertion in getEqualityStatus().
authorTim King <taking@cs.nyu.edu>
Mon, 11 Jun 2012 22:32:46 +0000 (22:32 +0000)
committerTim King <taking@cs.nyu.edu>
Mon, 11 Jun 2012 22:32:46 +0000 (22:32 +0000)
src/theory/theory_engine.cpp

index 7ea9e063e87b1a050d66fa7df359ac4984cdf42b..a7c3781520dc1f556a4abe3b9364bddebb419da3 100644 (file)
@@ -997,7 +997,7 @@ void TheoryEngine::propagateAsDecision(TNode literal, theory::TheoryId theory) {
 }
 
 theory::EqualityStatus TheoryEngine::getEqualityStatus(TNode a, TNode b) {
-  Assert(a.getType() == b.getType());
+  Assert(a.getType().isComparableTo(b.getType()));
   if (d_sharedTerms.isShared(a) && d_sharedTerms.isShared(b)) {
     if (d_sharedTerms.areEqual(a,b)) {
       return EQUALITY_TRUE_AND_PROPAGATED;