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 3784.237 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 0.0 msec.}
{analyzed by nfg in 4.001 msec.}
{analysis information stored in 0.0 msec.}
{preprocessed for ub bounds cost analysis in 0.0 msec.}
{ub bounds cost analysis performed in 32.002 msec.}
{ub bounds cost information stored in 0.0 msec.}
{preprocessed for lb bounds cost analysis in 0.0 msec.}
{lb bounds cost analysis performed in 20.001 msec.}
{lb bounds cost information stored in 0.0 msec.}
{written file /tmp/tmpunnFoc/less-fb_eterms_shfr_nfg_resources_co.pl}
:- module(_1,[less/2],[assertions,predefres(res_steps),nativeprops,basicmodes,regtypes]).

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

:- true pred less(A,B)
         : ( term(A), gnd(B) )
        => ( rt6(A), rt8(B) ).

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

:- true pred less(A,B)
         : ( term(A), gnd(B) )
        => ( rt6(A), rt8(B) )
         + ( possibly_fails, not_covered ).

:- true pred less(A,B)
         : ( term(A), gnd(B) )
        => ( rt6(A), rt8(B), size(lb,A,size(B)), size(lb,B,size(B)) )
         + cost(lb,steps,0).

:- true pred less(A,B)
         : ( term(A), gnd(B) )
        => ( rt6(A), rt8(B), size(ub,A,size(B)+1), size(ub,B,size(B)) )
         + cost(ub,steps,2*size(B)).

less(0,s(_1)).
less(s(X),s(Y)) :-
        less(X,Y).


:- regtype rt6/1.

rt6(0).
rt6(s(A)) :-
        rt6(A).


:- regtype rt9/1.

rt9(A) :-
        gnd(A).


:- regtype rt8/1.

rt8(s(A)) :-
        rt9(A).