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)
|
||||
{
|
||||
assert(formula.is<ast::Implies>());
|
||||
auto &implies = formula.get<ast::Implies>();
|
||||
const auto &implies = formula.get<ast::Implies>();
|
||||
|
||||
if (!implies.consequent.is<ast::Predicate>())
|
||||
continue;
|
||||
|
@ -17,7 +17,7 @@ bool matchesVariable(const ast::Term &term, const ast::Variable &variable)
|
||||
if (!term.is<ast::Variable>())
|
||||
return false;
|
||||
|
||||
const auto otherVariable = term.get<ast::Variable>();
|
||||
const auto &otherVariable = term.get<ast::Variable>();
|
||||
|
||||
return variable.name == otherVariable.name;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user