Merge pull request #9782 from ethereum/smt-revert

[SMTChecker] Support revert()
This commit is contained in:
Alex Beregszaszi
2020-09-15 13:26:19 +01:00
committed by GitHub
8 changed files with 91 additions and 3 deletions
+4
View File
@@ -631,6 +631,10 @@ void SMTEncoder::endVisit(FunctionCall const& _funCall)
case FunctionType::Kind::Require:
visitRequire(_funCall);
break;
case FunctionType::Kind::Revert:
// Revert is a special case of require and equals to `require(false)`
addPathImpliedExpression(smtutil::Expression(false));
break;
case FunctionType::Kind::GasLeft:
visitGasLeft(_funCall);
break;