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 3356.209 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 4.0 msec.}
{written file /tmp/tmpL3xjwN/pl4.0.1-oooi_det_co.pl}
:- module(_1,[append3/4],[assertions]).
:- true pred append(_1,L,_2)
: ( native_props:mshare([[_1],[_1,L],[L]]), ground([_2]), term(_1), term(L), gnd(_2) )
=> ( ground([_1,L,_2]), rt10(_1), gnd(L), gnd(_2) )
+ ( is_det, mut_exclusive ).
:- true pred append(_1,L,_2)
: ( native_props:mshare([[_1],[_1,L],[L],[_2]]), var(_2), term(_1), term(L), term(_2) )
=> ( native_props:mshare([[_1,L,_2],[_1,_2],[L,_2]]), rt4(_1), term(L), term(_2) )
+ ( is_det, mut_exclusive ).
append([],L,L).
append([H|L1],L2,[H|L3]) :-
append(L1,L2,L3).
:- entry append3(A,B,C,D)
: ground(D).
:- true pred append3(A,B,C,D)
: ( native_props:mshare([[A],[A,B],[A,B,C],[A,C],[B],[B,C],[C]]), ground([D]), term(A), term(B), term(C), gnd(D) )
=> ( ground([A,B,C,D]), rt4(A), term(B), gnd(C), gnd(D) )
+ ( is_det, mut_exclusive ).
append3(A,B,C,D) :-
append(A,B,E),
append(E,C,D).
:- regtype rt5/1.
rt5([]).
rt5([A|B]) :-
term(A),
rt5(B).
:- regtype rt4/1.
rt4([]).
rt4([A|B]) :-
term(A),
rt5(B).
:- regtype rt11/1.
rt11([]).
rt11([A|B]) :-
gnd(A),
rt11(B).
:- regtype rt10/1.
rt10([]).
rt10([A|B]) :-
gnd(A),
rt11(B).