fix predicate search

This commit is contained in:
Vitor Santos Costa
2017-06-06 12:47:59 +01:00
parent 2ad3420fac
commit f1ddb5822e
12 changed files with 95 additions and 121 deletions

View File

@@ -487,10 +487,9 @@ bool YAPEngine::mgoal(Term t, Term tmod)
if (ap == nullptr || ap->OpcodeOfPred == UNDEF_OPCODE)
{
ap = rewriteUndefEngineQuery(ap, t, tmod);
}
if (ap==nullptr)
return false;
if (ap == nullptr || ap->OpcodeOfPred == UNDEF_OPCODE)
return false;
} else
{
/* legal ap */
arity_t arity = ap->ArityOfPE;