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.

{Reading /tmp/tmpC9yach/giesl97.pl
}
{loaded in 3388.211 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 12.001 msec.}
{written file /tmp/tmpC9yach/giesl97_det_co.pl}
:- module(_1,[f/3],[assertions]).

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

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

:- true pred f(A,B,C)
         : ( native_props:mshare([[B],[B,C],[C]]), ground([A]), rt6(A), term(B), term(C) )
        => ( native_props:mshare([[B]]), ground([A,C]), rt9(A), term(B), rt0(C) )
         + ( is_det, mut_exclusive ).

:- true pred f(A,B,C)
         : ( native_props:mshare([[B],[C]]), var(C), ground([A]), rt6(A), term(B), term(C) )
        => ( native_props:mshare([[B]]), ground([A,C]), rt9(A), term(B), rt6(C) )
         + ( is_det, mut_exclusive ).

:- true pred f(A,B,C)
         : ( native_props:mshare([[B],[C]]), var(C), ground([A]), gnd(A), term(B), term(C) )
        => ( native_props:mshare([[B]]), ground([A,C]), rt11(A), term(B), rt6(C) )
         + ( is_det, mut_exclusive ).

f(0,Y,Z) :-
        !,
        eq(Z,0).
f(X,Y,Z) :-
        p(X,P),
        f(P,Y,U),
        f(U,Y,Z).

:- true pred p(_1,X)
         : ( native_props:mshare([[X]]), var(X), ground([_1]), rt6(_1), term(X) )
        => ( ground([_1,X]), rt9(_1), rt10(X) )
         + ( is_det, mut_exclusive ).

:- true pred p(_1,X)
         : ( native_props:mshare([[X]]), var(X), ground([_1]), gnd(_1), term(X) )
        => ( ground([_1,X]), rt5(_1), gnd(X) )
         + ( is_det, mut_exclusive ).

p(0,0).
p(s(X),X).

:- true pred eq(X,0)
         : ( native_props:mshare([[X]]), term(X) )
        => ( ground([X]), rt0(X) )
         + ( is_det, mut_exclusive ).

:- true pred eq(X,0)
         : ( native_props:mshare([[X]]), var(X), term(X) )
        => ( ground([X]), rt6(X) )
         + ( is_det, mut_exclusive ).

eq(X,X).


:- regtype rt15/1.

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


:- regtype rt14/1.

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


:- regtype rt0/1.

rt0(0).


:- regtype rt6/1.

rt6(0).


:- regtype rt9/1.

rt9(0).


:- regtype rt10/1.

rt10(0).


:- regtype rt12/1.

rt12(0).
rt12(A) :-
        gnd(A).
rt12(s(A)) :-
        rt12(A).


:- regtype rt11/1.

rt11(0).
rt11(s(A)) :-
        rt12(A).


:- regtype rt5/1.

rt5(0).
rt5(s(A)) :-
        gnd(A).