Closed infradig closed 3 months ago
Partial fix...
?- clause(p(Cs0, Cs), Body).
Body = b(Cs0,Cs)
; Body = g(b,Cs0,Cs)
; Body = g(g(b),Cs0,Cs)
; Body = g((g(a),[]),Cs0,Cs).
?-
Now roughly equivalent to the Scryer bug.
Now exactly equivalent to Scryer #2366 with needing an explicit meta_predicate directive for (,)/2 I guess due to module confusion...
$ tpl x.pl
?- clause(p(Cs0, Cs), Body).
Body = b(Cs0,Cs)
; Body = g(b,Cs0,Cs)
; Body = g(g(b),Cs0,Cs)
; Body = g((g(b),[]),Cs0,Cs).
?-
Taken from a Scryer issue, but Trealla exhibits an extra problem.
Only the first a get expanded to b...