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 3404.213 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 4.001 msec.}
{written file /tmp/tmp1yOHr_/sum-fbf_det_co.pl}
:- module(_1,[sum/3],[assertions]).
:- entry sum(A,B,C)
: ground(B).
:- true pred sum(A,B,C)
: ( native_props:mshare([[A],[A,C],[C]]), ground([B]), term(A), gnd(B), term(C) )
=> ( native_props:mshare([[A,C]]), ground([B]), term(A), rt4(B), term(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).