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 3404.212 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 4.0 msec.}
{written file /tmp/tmp277tI0/pl1.1_det_co.pl}
:- module(_1,[append/3],[assertions]).

:- entry append(A,B,C).

:- true pred append(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 ).

append([],L,L).
append([H|L1],L2,[H|L3]) :-
        append(L1,L2,L3).

append1([],L,L).
append1([H|L1],L2,[H|L3]) :-
        append1(L1,L2,L3).


:- regtype rt5/1.

rt5([]).
rt5([A|B]) :-
        term(A),
        rt5(B).


:- regtype rt4/1.

rt4([]).
rt4([A|B]) :-
        term(A),
        rt5(B).