Skip to content

Commit

Permalink
comment a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
quickbeam123 committed Sep 28, 2024
1 parent e06b927 commit 09c980e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Kernel/Term.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ class Literal
template<bool flip = false>
unsigned hash() const
{
return Literal::literalHash(functor(), polarity() ^ flip,
return Literal::literalHash(functor(), polarity() ^ flip,
[&](auto i) -> TermList const& { return *nthArgument(i); }, arity(),
someIf(isTwoVarEquality(), [&](){ return twoVarEqSort(); }));
}
Expand All @@ -1087,7 +1087,7 @@ class Literal
static unsigned literalEquals(const Literal* lit, unsigned functor, bool polarity, GetArg getArg, unsigned arity, Option<TermList> twoVarEqSort) {
if (functor != lit->functor() || polarity != lit->polarity()) return false;

if (functor == 0) {
if (functor == 0) { // i.e., isEquality
ASS_EQ(arity, 2)
ASS(rightArgOrder(getArg(0), getArg(1)))
ASS(rightArgOrder(*lit->nthArgument(0), *lit->nthArgument(1)))
Expand All @@ -1107,7 +1107,7 @@ class Literal

template<class GetArg>
static unsigned literalHash(unsigned functor, bool polarity, GetArg getArg, unsigned arity, Option<TermList> twoVarEqSort) {
if (functor == 0) {
if (functor == 0) { // i.e., isEquality
ASS_EQ(arity, 2)
ASS(rightArgOrder(getArg(0), getArg(1)))
return HashUtils::combine(
Expand Down

0 comments on commit 09c980e

Please sign in to comment.