Fixed incorrectly simplified rules with comparisons.
This commit is contained in:
parent
c8cd6fec48
commit
3df4d5a2a2
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## (unreleased)
|
## (unreleased)
|
||||||
|
|
||||||
|
Bug Fixes:
|
||||||
|
|
||||||
|
* fixes incorrectly simplified rules with comparisons
|
||||||
|
|
||||||
## 0.1.2 (2017-03-23)
|
## 0.1.2 (2017-03-23)
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
@ -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)
|
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.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)
|
static void accept(ast::In &in, ast::Formula &, const ast::Variable &variable, const ast::Term &term)
|
||||||
|
Loading…
Reference in New Issue
Block a user