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