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/tmpNb0qgk/map1.pl
}
{loaded in 3432.215 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 4.0 msec.}
{written file /tmp/tmpNb0qgk/map1_det_co.pl}
:- module(_1,[map/2],[assertions]).

:- true pred p(X,Y)
         : ( native_props:mshare([[Y]]), ground([X]), gnd(X), term(Y) )
        => ( native_props:mshare([[Y]]), ground([X]), gnd(X), term(Y) )
         + ( is_det, mut_exclusive ).

p(X,Y).

:- entry map(A,B)
         : ground(A).

:- true pred map(A,B)
         : ( native_props:mshare([[B]]), ground([A]), gnd(A), term(B) )
        => ( native_props:mshare([[B]]), ground([A]), rt6(A), rt8(B) )
         + ( is_det, mut_exclusive ).

map([X|Xs],[Y|Ys]) :-
        p(X,Y),
        map(Xs,Ys).
map([],[]).


:- regtype rt7/1.

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


:- regtype rt6/1.

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


:- regtype rt9/1.

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


:- regtype rt8/1.

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