diff options
Diffstat (limited to 'src/theory/theory.cpp')
-rw-r--r-- | src/theory/theory.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/theory/theory.cpp b/src/theory/theory.cpp index 5108e312a..a4b9d1ddf 100644 --- a/src/theory/theory.cpp +++ b/src/theory/theory.cpp @@ -295,13 +295,15 @@ Theory::PPAssertStatus Theory::ppAssert(TNode in, // 2) x is not in the term t // 3) x : T and t : S, then S <: T if (in[0].isVar() && !expr::hasSubterm(in[1], in[0]) - && (in[1].getType()).isSubtypeOf(in[0].getType())) + && (in[1].getType()).isSubtypeOf(in[0].getType()) + && in[0].getKind() != kind::BOOLEAN_TERM_VARIABLE) { outSubstitutions.addSubstitution(in[0], in[1]); return PP_ASSERT_STATUS_SOLVED; } if (in[1].isVar() && !expr::hasSubterm(in[0], in[1]) - && (in[0].getType()).isSubtypeOf(in[1].getType())) + && (in[0].getType()).isSubtypeOf(in[1].getType()) + && in[1].getKind() != kind::BOOLEAN_TERM_VARIABLE) { outSubstitutions.addSubstitution(in[1], in[0]); return PP_ASSERT_STATUS_SOLVED; |