[SMTChecker] Fix internal error on try/catch

This commit is contained in:
Leonardo Alt
2020-06-02 16:51:53 +02:00
parent 97cb091ada
commit 10162016ae
5 changed files with 42 additions and 0 deletions
+14
View File
@@ -274,6 +274,20 @@ bool SMTEncoder::visit(InlineAssembly const& _inlineAsm)
return false;
}
bool SMTEncoder::visit(TryCatchClause const& _clause)
{
if (auto params = _clause.parameters())
for (auto const& var: params->parameters())
createVariable(*var);
m_errorReporter.warning(
7645_error,
_clause.location(),
"Assertion checker does not support try/catch clauses."
);
return false;
}
bool SMTEncoder::visit(IfStatement const& _node)
{
_node.condition().accept(*this);