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/tmpnuwE1x/list.pl
}
{In /tmp/tmpnuwE1x/list.pl
{loaded in 3452.216 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 4.0 msec.}
{written file /tmp/tmpnuwE1x/list_det_co.pl}
:- module(_1,[list/1],[assertions]).
:- entry list(A)
: ground(A).
:- true pred list(A)
: ( ground([A]), gnd(A) )
=> ( ground([A]), rt5(A) )
+ ( is_det, mut_exclusive ).
list([]) :- !.
list(X) :-
tail(X,T),
list(T).
:- true pred tail(_1,Xs)
: ( native_props:mshare([[Xs]]), var(Xs), ground([_1]), gnd(_1), term(Xs) )
=> ( ground([_1,Xs]), rt4(_1), gnd(Xs) )
+ ( is_det, mut_exclusive ).
tail([],[]).
tail([X|Xs],Xs).
:- regtype rt6/1.
rt6([]).
rt6(A) :-
gnd(A).
rt6([A|B]) :-
gnd(A),
rt6(B).
:- regtype rt5/1.
rt5([]).
rt5([A|B]) :-
gnd(A),
rt6(B).
:- regtype rt4/1.
rt4([]).
rt4([A|B]) :-
gnd(A),
gnd(B).