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.211 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 20.001 msec.}
{written file /tmp/tmpkG0eyi/ackerman_det_co.pl}
:- module(_1,[ackermann/3],[assertions]).
:- entry ackermann(A,B,C)
: ( ground(A), ground(B) ).
:- true pred ackermann(s(_1),B,C)
: ( native_props:mshare([[C]]), var(C), ground([B,_1]), rt51(B), term(C), gnd(_1) )
=> ( ground([B,C,_1]), rt59(B), rt61(C), rt67(_1) )
+ ( non_det, not_mut_exclusive ).
:- true pred ackermann(A,B,C)
: ( native_props:mshare([[C]]), ground([A,B]), gnd(A), gnd(B), term(C) )
=> ( ground([A,B,C]), rt46(A), rt70(B), rt71(C) )
+ ( non_det, mut_exclusive ).
:- true pred ackermann(A,B,C)
: ( native_props:mshare([[C]]), ground([A,B]), rt9(A), rt29(B), term(C) )
=> ( ground([A,B,C]), rt32(A), rt29(B), rt31(C) )
+ ( is_det, mut_exclusive ).
:- true pred ackermann(A,B,C)
: ( native_props:mshare([[C]]), var(C), ground([A,B]), rt9(A), rt8(B), term(C) )
=> ( ground([A,B,C]), rt14(A), rt8(B), rt13(C) )
+ ( is_det, mut_exclusive ).
:- true pred ackermann(A,s(0),C)
: ( native_props:mshare([[C]]), ground([A]), gnd(A), term(C) )
=> ( ground([A,C]), rt40(A), rt38(C) )
+ ( non_det, mut_exclusive ).
:- true pred ackermann(s(_1),B,C)
: ( native_props:mshare([[C]]), var(C), ground([B,_1]), rt5(B), term(C), gnd(_1) )
=> ( ground([B,C,_1]), rt25(B), rt26(C), rt9(_1) )
+ ( non_det, not_mut_exclusive ).
ackermann(0,N,s(N)).
ackermann(s(M),0,Res) :-
ackermann(M,s(0),Res).
ackermann(s(M),s(N),Res) :-
ackermann(s(M),N,Res1),
ackermann(M,Res1,Res).
:- regtype rt51/1.
rt51(A) :-
gnd(A).
:- regtype rt60/1.
rt60(0).
rt60(s(A)) :-
rt60(A).
:- regtype rt59/1.
rt59(0).
rt59(s(A)) :-
rt60(A).
:- regtype rt63/1.
rt63(0).
rt63(s(A)) :-
rt63(A).
:- regtype rt62/1.
rt62(s(A)) :-
rt63(A).
:- regtype rt61/1.
rt61(s(A)) :-
rt62(A).
:- regtype rt67/1.
rt67(0).
:- regtype rt48/1.
rt48(0).
rt48(s(A)) :-
rt48(A).
:- regtype rt47/1.
rt47(0).
rt47(s(A)) :-
rt48(A).
:- regtype rt46/1.
rt46(0).
rt46(s(A)) :-
rt47(A).
:- regtype rt70/1.
rt70(A) :-
gnd(A).
:- regtype rt72/1.
rt72(A) :-
gnd(A).
rt72(s(A)) :-
rt72(A).
:- regtype rt71/1.
rt71(s(A)) :-
rt72(A).
:- regtype rt9/1.
rt9(0).
:- regtype rt30/1.
rt30(s(A)) :-
rt28(A).
:- regtype rt29/1.
rt29(s(A)) :-
rt30(A).
:- regtype rt32/1.
rt32(0).
:- regtype rt31/1.
rt31(s(A)) :-
rt29(A).
:- regtype rt7/1.
rt7(s(0)).
:- regtype rt8/1.
rt8(s(A)) :-
rt7(A).
:- regtype rt14/1.
rt14(0).
:- regtype rt13/1.
rt13(s(A)) :-
rt8(A).
:- regtype rt41/1.
rt41(0).
rt41(s(A)) :-
rt41(A).
:- regtype rt40/1.
rt40(0).
rt40(s(A)) :-
rt41(A).
:- regtype rt36/1.
rt36(0).
rt36(s(A)) :-
rt28(A).
:- regtype rt39/1.
rt39(s(A)) :-
rt36(A).
:- regtype rt38/1.
rt38(s(A)) :-
rt39(A).
:- regtype rt5/1.
rt5(0).
:- regtype rt25/1.
rt25(0).
:- regtype rt28/1.
rt28(0).
rt28(s(A)) :-
rt28(A).
:- regtype rt27/1.
rt27(s(A)) :-
rt28(A).
:- regtype rt26/1.
rt26(s(A)) :-
rt27(A).