[SMTChecker] Show unsupported warning for asm blocks

This commit is contained in:
Leonardo Alt
2019-04-05 16:41:15 +02:00
parent ef3a18999c
commit 4fe303530a
5 changed files with 35 additions and 0 deletions
+9
View File
@@ -192,6 +192,15 @@ void SMTChecker::endVisit(FunctionDefinition const&)
m_modifierDepthStack.pop_back();
}
bool SMTChecker::visit(InlineAssembly const& _inlineAsm)
{
m_errorReporter.warning(
_inlineAsm.location(),
"Assertion checker does not support inline assembly."
);
return false;
}
bool SMTChecker::visit(IfStatement const& _node)
{
_node.condition().accept(*this);
+1
View File
@@ -87,6 +87,7 @@ private:
void endVisit(Return const& _node) override;
bool visit(MemberAccess const& _node) override;
void endVisit(IndexAccess const& _node) override;
bool visit(InlineAssembly const& _node) override;
/// Do not visit subtree if node is a RationalNumber.
/// Symbolic _expr is the rational literal.