Merge branch 'master' of git.dcc.fc.up.pt:yap-6.3
This commit is contained in:
commit
5b074e894a
@ -3762,9 +3762,10 @@ YAP_AttsOfVar(Term t)
|
||||
t = Deref(t);
|
||||
if (!IsVarTerm(t))
|
||||
return TermNil;
|
||||
if (IsAttVar(VarOfTerm(t)))
|
||||
if(!IsAttVar(VarOfTerm(t)))
|
||||
return TermNil;
|
||||
attv = (attvar_record *)VarOfTerm(t);
|
||||
attv = RepAttVar(VarOfTerm(t));
|
||||
Yap_DebugPlWrite(attv->Atts);
|
||||
return attv->Atts;
|
||||
}
|
||||
|
||||
|
@ -125,12 +125,13 @@ void *RtreeUdiSearch (control_t *control)
|
||||
|
||||
/*RTreePrint ((*control)[0].tree);*/
|
||||
|
||||
for (i = 0; i < NARGS && (*control)[i].arg != 0 ; i++)
|
||||
if (YAP_IsAttVar(YAP_A((*control)[i].arg)))
|
||||
for (i = 0; i < NARGS && (*control)[i].arg != 0 ; i++) {
|
||||
YAP_Term t = YAP_A((*control)[i].arg);
|
||||
if (YAP_IsAttVar(t))
|
||||
{
|
||||
|
||||
fprintf(stderr,"i=%ld\n",i);
|
||||
/*get the constraits rect*/
|
||||
Constraints = YAP_AttsOfVar(YAP_A((*control)[i].arg));
|
||||
Constraints = YAP_AttsOfVar(t);
|
||||
/* Yap_DebugPlWrite(Constraints); */
|
||||
r = RectOfTerm(YAP_ArgOfTerm(2,Constraints));
|
||||
|
||||
@ -155,7 +156,7 @@ void *RtreeUdiSearch (control_t *control)
|
||||
|
||||
return Yap_ClauseListCode(c->cl);
|
||||
}
|
||||
|
||||
}
|
||||
return NULL; /*YAP FALLBACK*/
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user