[SMTChecker] Do not report warning when encountered a Type identifier. The operations are supported now.

This commit is contained in:
Martin Blicha
2020-11-23 15:41:57 +01:00
parent f313668ef1
commit 66125b79d6
10 changed files with 2 additions and 23 deletions
+2 -5
View File
@@ -857,11 +857,8 @@ void SMTEncoder::endVisit(Identifier const& _identifier)
defineExpr(_identifier, m_context.state().thisAddress());
m_uninterpretedTerms.insert(&_identifier);
}
// Ignore struct type identifiers in struct constructor calls
else if (
auto typetype = dynamic_cast<TypeType const*>(_identifier.annotation().type);
typetype && typetype->actualType()->category() == Type::Category::Struct
)
// Ignore type identifiers
else if (dynamic_cast<TypeType const*>(_identifier.annotation().type))
return;
// Ignore the builtin abi, it is handled in FunctionCall.
// TODO: ignore MagicType in general (abi, block, msg, tx, type)