Ciao Preprocessor (integrated Alpha version)
| This is an alpha distribution, meant only for testing. Please do let us
| know at ciaopp-bugclip.dia.fi.upm.es any problems you may have.
{Reading /tmp/tmpcH3G9p/paper2.pl
}
{loaded in 3372.21 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 8.0 msec.}
{written file /tmp/tmpcH3G9p/paper2_det_co.pl}
:- module(_1,[p/2],[assertions]).
:- entry p(A,B)
: ground(A).
:- true pred p(A,B)
: ( native_props:mshare([[B]]), ground([A]), gnd(A), term(B) )
=> ( native_props:mshare([[B]]), ground([A]), gnd(A), rt9(B) )
+ ( is_det, mut_exclusive ).
:- true pred p(A,g(_1))
: ( native_props:mshare([[_1]]), var(_1), ground([A]), gnd(A), term(_1) )
=> ( native_props:mshare([[_1]]), ground([A]), rt4(A), term(_1) )
+ ( is_det, mut_exclusive ).
:- true pred p(f(_1),f(_2))
: ( native_props:mshare([[_2]]), var(_2), ground([_1]), gnd(_1), term(_2) )
=> ( ground([_1,_2]), gnd(_1), gnd(_2) )
+ ( is_det, mut_exclusive ).
p(X,X).
p(f(X),g(Y)) :-
p(f(X),f(Z)),
p(Z,g(W)).
:- regtype rt9/1.
rt9(A) :-
gnd(A).
rt9(g(A)) :-
term(A).
:- regtype rt5/1.
rt5(A) :-
gnd(A).
rt5(f(A)) :-
rt5(A).
rt5(g(A)) :-
term(A).
:- regtype rt4/1.
rt4(f(A)) :-
rt5(A).
rt4(g(A)) :-
term(A).