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.

{Reading /tmp/tmp3iMuva/append.pl
}
{loaded in 3328.208 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 4.0 msec.}
{written file /tmp/tmp3iMuva/append_det_co.pl}
:- module(_1,[append/3],[assertions]).

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

:- true pred append(A,B,C)
         : ( native_props:mshare([[C]]), ground([A,B]), gnd(A), gnd(B), term(C) )
        => ( ground([A,B,C]), rt4(A), gnd(B), gnd(C) )
         + ( is_det, mut_exclusive ).

append([H|X],Y,[X|Z]) :-
        append(X,Y,Z).
append([],Y,Y).


:- regtype rt5/1.

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


:- regtype rt4/1.

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