Fixed minor incorrect variable references.
This commit is contained in:
parent
57bc28bfd3
commit
6e7abb283e
@ -42,7 +42,7 @@ ast::Formula buildCompletedFormulaDisjunction(const ast::Predicate &predicate, c
|
|||||||
for (const auto &formula : formulas)
|
for (const auto &formula : formulas)
|
||||||
{
|
{
|
||||||
assert(formula.is<ast::Implies>());
|
assert(formula.is<ast::Implies>());
|
||||||
auto &implies = formula.get<ast::Implies>();
|
const auto &implies = formula.get<ast::Implies>();
|
||||||
|
|
||||||
if (!implies.consequent.is<ast::Predicate>())
|
if (!implies.consequent.is<ast::Predicate>())
|
||||||
continue;
|
continue;
|
||||||
|
@ -17,7 +17,7 @@ bool matchesVariable(const ast::Term &term, const ast::Variable &variable)
|
|||||||
if (!term.is<ast::Variable>())
|
if (!term.is<ast::Variable>())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const auto otherVariable = term.get<ast::Variable>();
|
const auto &otherVariable = term.get<ast::Variable>();
|
||||||
|
|
||||||
return variable.name == otherVariable.name;
|
return variable.name == otherVariable.name;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user