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 3420.214 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using eterms with local-control off in 0.0 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using shfr with local-control off in 0.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/tmpCYSsge/sum-ffb_eterms_shfr_nfg_steps_ualb_co.pl}
:- module(_1,[sum/3],[assertions,regtypes,nativeprops]).
:- entry sum(A,B,C)
: ground(C).
:- true pred sum(A,B,C)
: ( term(A), term(B), gnd(C) )
=> ( gnd(A), rt4(B), gnd(C) ).
:- true pred sum(A,B,C)
: ( native_props:mshare([[A],[A,B],[B]]), ground([C]) )
=> ground([A,B,C]).
:- true pred sum(A,B,C)
: ( term(A), term(B), gnd(C) )
=> ( gnd(A), rt4(B), gnd(C) )
+ ( possibly_fails, not_covered ).
:- true pred sum(A,B,C)
: ( term(A), term(B), gnd(C) )
=> ( gnd(A), rt4(B), gnd(C), size_lb(A,size(C)), size_lb(B,size(C)), size_lb(C,size(C)), size_ub(A,size(C)), size_ub(B,size(C)+1), size_ub(C,size(C)) )
+ ( steps_lb(0), steps_ub(2*size(C)) ).
sum(X,0,X).
sum(X,s(Y),s(Z)) :-
sum(X,Y,Z).
:- regtype rt4/1.
rt4(0).
rt4(s(A)) :-
rt4(A).