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.

{In /tmp/tmpM0e_yh/numeral.pl
{loaded in 3384.212 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.001 msec.}
{preprocessed for nfg in 0.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 0.0 msec.}
{upper bounds cost information stored in 0.0 msec.}
{written file /tmp/tmpM0e_yh/numeral_eterms_shfr_nfg_steps_ualb_co.pl}
:- module(_1,[num/1],[assertions,regtypes,nativeprops]).

:- entry num(A)
         : ground(A).

:- true pred num(A)
         : gnd(A)
        => rt3(A).

:- true pred num(A)
         : ground([A])
        => ground([A]).

:- true pred num(A)
         : gnd(A)
        => rt3(A)
         + ( possibly_fails, not_covered ).

:- true pred num(A)
         : gnd(A)
        => ( rt3(A), size_lb(A,size(A)), size_ub(A,size(A)) )
         + ( steps_lb(0), steps_ub(size(A)) ).

num(0).
num(s(X)) :-
        num(X).


:- regtype rt3/1.

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