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.
{loaded in 3436.216 msec.}
{preprocessed for plai in 4.0 msec.}
{analyzed by plai using det with local-control off in 4.001 msec.}
{written file /tmp/tmpB7r1IG/appendex_det_co.pl}
:- module(_1,[p/3],[assertions]).
:- entry p(A,B,C).
:- true pred p(A,B,C)
: ( native_props:mshare([[A],[A,B],[A,B,C],[A,C],[B],[B,C],[C]]), term(A), term(B), term(C) )
=> ( native_props:mshare([[A,B,C],[A,C],[B,C]]), rt4(A), term(B), term(C) )
+ ( is_det, mut_exclusive ).
p(X,Y,Z) :-
append(X,Y,Z),
!.
:- true pred append(_1,Y,_2)
: ( native_props:mshare([[_1],[_1,Y],[_1,Y,_2],[_1,_2],[Y],[Y,_2],[_2]]), term(_1), term(Y), term(_2) )
=> ( native_props:mshare([[_1,Y,_2],[_1,_2],[Y,_2]]), rt4(_1), term(Y), term(_2) )
+ ( is_det, mut_exclusive ).
append([],Y,Y).
append([H|Xs],Ys,[H|Zs]) :-
append(Xs,Ys,Zs).
:- regtype rt5/1.
rt5([]).
rt5([A|B]) :-
term(A),
rt5(B).
:- regtype rt4/1.
rt4([]).
rt4([A|B]) :-
term(A),
rt5(B).