Fix and and change some conditions.

This commit is contained in:
chriseth
2022-03-21 10:34:53 +01:00
parent a3f999a13e
commit c34019f136
2 changed files with 11 additions and 8 deletions
+2
View File
@@ -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));