[SMTChecker] Do not warn on "abi" as an identifer

There is an approprate warning for the function call.
This commit is contained in:
Alex Beregszaszi
2020-09-24 13:57:42 +01:00
parent 79ae043a53
commit 6edfdff187
10 changed files with 52 additions and 49 deletions
+7
View File
@@ -748,6 +748,13 @@ void SMTEncoder::endVisit(Identifier const& _identifier)
defineExpr(_identifier, m_context.state().thisAddress());
m_uninterpretedTerms.insert(&_identifier);
}
// Ignore the builtin abi, it is handled in FunctionCall.
// TODO: ignore MagicType in general (abi, block, msg, tx, type)
else if (auto magicType = dynamic_cast<MagicType const*>(_identifier.annotation().type); magicType && magicType->kind() == MagicType::Kind::ABI)
{
solAssert(_identifier.name() == "abi", "");
return;
}
else
createExpr(_identifier);
}