mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #9782 from ethereum/smt-revert
[SMTChecker] Support revert()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user