Merge pull request #6008 from ethereum/smt_fix_abstract_assignment

[SMTChecker] Assert type is not function when assigning
This commit is contained in:
chriseth
2019-02-18 14:54:20 +01:00
committed by GitHub
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);
}