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 3376.212 msec.}
{preprocessed for plai in 4.001 msec.}
{analyzed by plai using det with local-control off in 0.0 msec.}
{written file /tmp/tmpOTE_9S/append_det_co.pl}
:- module(_1,[app2/3],[assertions]).

app1([X|Xs],Ys,[X|Zs]) :-
        app1(Xs,Ys,Zs).
app1([],Ys,Ys).

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

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

app2([X|Xs],Ys,[X|Zs]) :-
        app2(Xs,Ys,Zs).
app2([],Ys,Ys).


:- regtype rt5/1.

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


:- regtype rt4/1.

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