mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix and and change some conditions.
This commit is contained in:
@@ -172,6 +172,8 @@ void BooleanLPSolver::addAssertion(Expression const& _expr)
|
||||
Literal l = negate(parseLiteralOrReturnEqualBoolean(_expr.arguments.at(0)));
|
||||
state().clauses.emplace_back(Clause{vector<Literal>{l}});
|
||||
}
|
||||
else if (_expr.name == "implies")
|
||||
addAssertion(!_expr.arguments.at(0) || _expr.arguments.at(1));
|
||||
else if (_expr.name == "<=")
|
||||
{
|
||||
optional<LinearExpression> left = parseLinearSum(_expr.arguments.at(0));
|
||||
|
||||
Reference in New Issue
Block a user