Skip to content

Commit

Permalink
Add a missing case to TermTransformer
Browse files Browse the repository at this point in the history
  • Loading branch information
aztek committed Aug 15, 2017
1 parent ea5e4ab commit e7cac3f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Kernel/TermTransformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,18 @@ Term* TermTransformer::transformSpecial(Term* term)
}
}

case Term::SF_LET_TUPLE: {
TermList binding = transform(sd->getBinding());
TermList body = transform(*term->nthArgument(0));

if ((binding == sd->getBinding()) && (body == *term->nthArgument(0))) {
return term;
} else {
return Term::createTupleLet(sd->getFunctor(), sd->getTupleSymbols(), binding, body, sd->getSort());
}
break;
}

case Term::SF_TUPLE: {
Term* tupleTerm = transform(sd->getTupleTerm());

Expand Down

0 comments on commit e7cac3f

Please sign in to comment.