Fixed incorrectly simplified rules with comparisons.

This commit is contained in:
Patrick Lühne 2017-03-28 17:13:15 +02:00
parent c8cd6fec48
commit 3df4d5a2a2
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,10 @@
## (unreleased)
Bug Fixes:
* fixes incorrectly simplified rules with comparisons
## 0.1.2 (2017-03-23)
Features:

View File

@ -81,7 +81,7 @@ struct ReplaceVariableInFormulaVisitor : public ast::RecursiveFormulaVisitor<Rep
static void accept(ast::Comparison &comparison, ast::Formula &, const ast::Variable &variable, const ast::Term &term)
{
comparison.left.accept(ReplaceVariableInTermVisitor(), comparison.left, variable, term);
comparison.right.accept(ReplaceVariableInTermVisitor(), comparison.left, variable, term);
comparison.right.accept(ReplaceVariableInTermVisitor(), comparison.right, variable, term);
}
static void accept(ast::In &in, ast::Formula &, const ast::Variable &variable, const ast::Term &term)