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 3376.21 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 4.0 msec.}
{written file /tmp/tmp_enQQi/sum-ffb_det_co.pl}
:- module(_1,[sum/3],[assertions]).
:- entry sum(A,B,C)
: ground(C).
:- true pred sum(A,B,C)
: ( native_props:mshare([[A],[A,B],[B]]), ground([C]), term(A), term(B), gnd(C) )
=> ( ground([A,B,C]), gnd(A), rt4(B), gnd(C) )
+ ( is_det, mut_exclusive ).
sum(X,0,X).
sum(X,s(Y),s(Z)) :-
sum(X,Y,Z).
:- regtype rt5/1.
rt5(0).
rt5(s(A)) :-
rt5(A).
:- regtype rt4/1.
rt4(0).
rt4(s(A)) :-
rt5(A).