[SMTChecker] Assert type is not function when assigning

This commit is contained in:
Leonardo Alt
2019-02-14 13:32:56 +01:00
parent f003696d7e
commit 22cdfb18d4
2 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -1371,7 +1371,7 @@ void SMTChecker::createExpr(Expression const& _e)
void SMTChecker::defineExpr(Expression const& _e, smt::Expression _value)
{
createExpr(_e);
solAssert(isSupportedType(*_e.annotation().type), "Equality operator applied to type that is not fully supported");
solAssert(smtKind(_e.annotation().type->category()) != smt::Kind::Function, "Equality operator applied to type that is not fully supported");
m_interface->addAssertion(expr(_e) == _value);
}