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 3400.212 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 8.001 msec.}
{written file /tmp/tmpHxsOpL/plus_det_co.pl}
:- module(_1,[plus/3],[assertions]).

:- entry plus(A,B,C)
         : ground(A).

:- true pred plus(A,B,C)
         : ( native_props:mshare([[B],[B,C],[C]]), ground([A]), gnd(A), term(B), term(C) )
        => ( native_props:mshare([[B,C]]), ground([A]), rt13(A), term(B), term(C) )
         + ( is_det, mut_exclusive ).

:- true pred plus(A,s(_1),C)
         : ( native_props:mshare([[C],[C,_1],[_1]]), ground([A]), gnd(A), term(C), term(_1) )
        => ( native_props:mshare([[C,_1]]), ground([A]), rt9(A), rt7(C), term(_1) )
         + ( is_det, mut_exclusive ).

plus(0,Y,Y).
plus(s(X),Y,Z) :-
        plus(X,s(Y),Z).


:- regtype rt15/1.

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


:- regtype rt14/1.

rt14(0).
rt14(s(A)) :-
        rt15(A).


:- regtype rt13/1.

rt13(0).
rt13(s(A)) :-
        rt14(A).


:- regtype rt10/1.

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


:- regtype rt9/1.

rt9(0).
rt9(s(A)) :-
        rt10(A).


:- regtype rt8/1.

rt8(A) :-
        term(A).
rt8(s(A)) :-
        rt8(A).


:- regtype rt7/1.

rt7(s(A)) :-
        rt8(A).