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 3412.214 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 12.001 msec.}
{written file /tmp/tmpewAMiT/psk09-append_variant_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],[A,B,C],[B],[B,C]]), term(A), non_empty_list(B), term(C) )
+ ( is_det, mut_exclusive ).
p(X,Y,Z) :-
append([X|Y],Z,Y).
:- true pred append([_2|_1],Y,_1)
: ( native_props:mshare([[Y],[Y,_1],[Y,_1,_2],[Y,_2],[_1],[_1,_2],[_2]]), term(Y), term(_1), term(_2) )
=> ( native_props:mshare([[Y,_1],[Y,_1,_2],[_1],[_1,_2]]), term(Y), non_empty_list(_1), term(_2) )
+ ( is_det, mut_exclusive ).
:- 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).