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 3388.211 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 4.0 msec.}
{written file /tmp/tmp_AlAJk/prefix-bf_det_co.pl}
:- module(_1,[prefix/2],[assertions]).
:- entry prefix(A,B)
: ground(A).
:- true pred prefix(A,B)
: ( native_props:mshare([[B]]), ground([A]), gnd(A), term(B) )
=> ( native_props:mshare([[B]]), ground([A]), rt4(A), term(B) )
+ ( is_det, mut_exclusive ).
prefix(Xs,Ys) :-
app(Xs,_1,Ys).
:- true pred app(_1,X,_2)
: ( native_props:mshare([[X],[_2]]), var(X), ground([_1]), gnd(_1), term(X), term(_2) )
=> ( native_props:mshare([[X,_2]]), ground([_1]), rt4(_1), term(X), term(_2) )
+ ( is_det, mut_exclusive ).
app([],X,X).
app([X|Xs],Ys,[X|Zs]) :-
app(Xs,Ys,Zs).
:- regtype rt5/1.
rt5([]).
rt5([A|B]) :-
gnd(A),
rt5(B).
:- regtype rt4/1.
rt4([]).
rt4([A|B]) :-
gnd(A),
rt5(B).