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 3380.211 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using eterms with local-control off in 4.0 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using shfr with local-control off in 4.0 msec.}
{preprocessed for nfg in 4.0 msec.}
{analyzed by nfg in 0.0 msec.}
{analysis information stored in 0.0 msec.}
{NOTE (infercost): Using non-parametric cost analysis}
{preprocessed for lower bounds cost analysis in 0.0 msec.}
{lower bounds cost analysis performed in 0.0 msec.}
{lower bounds cost information stored in 0.0 msec.}
{preprocessed for upper bounds cost analysis in 0.0 msec.}
{upper bounds cost analysis performed in 4.0 msec.}
{upper bounds cost information stored in 0.0 msec.}
{written file /tmp/tmpUXM_Gb/map_eterms_shfr_nfg_steps_ualb_co.pl}
:- module(_1,[map/2],[assertions,regtypes,nativeprops]).

:- true pred p(_1,_2)
         : ( gnd(_1), term(_2) )
        => ( rt2(_1), rt3(_2) ).

:- true pred p(_1,_2)
         : ( native_props:mshare([[_2]]), ground([_1]) )
        => ground([_1,_2]).

:- true pred p(_1,_2)
         : ( gnd(_1), term(_2) )
        => ( rt2(_1), rt3(_2) )
         + ( possibly_fails, not_covered ).

:- true pred p(_1,_2)
         : ( gnd(_1), term(_2) )
        => ( rt2(_1), rt3(_2), size_lb(_1,size(_1)), size_lb(_2,1), size_ub(_1,size(_1)), size_ub(_2,1) )
         + ( steps_lb(0), steps_ub(1) ).

p(val_i,val_j).

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

:- true pred map(A,B)
         : ( gnd(A), term(B) )
        => ( list(A,^(val_i)), list(B,^(val_j)) ).

:- true pred map(A,B)
         : ( native_props:mshare([[B]]), ground([A]) )
        => ground([A,B]).

:- true pred map(A,B)
         : ( gnd(A), term(B) )
        => ( list(A,^(val_i)), list(B,^(val_j)) )
         + ( possibly_fails, not_covered ).

:- true pred map(A,B)
         : ( gnd(A), term(B) )
        => ( list(A,^(val_i)), list(B,^(val_j)), size_lb(A,length(A)), size_lb(B,length(A)), size_ub(A,length(A)), size_ub(B,length(A)) )
         + ( steps_lb(0), steps_ub(2*length(A)+1) ).

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


:- regtype rt2/1.

rt2(val_i).


:- regtype rt3/1.

rt3(val_j).