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 3444.216 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 4.0 msec.}
{written file /tmp/tmpUWh1PH/existential_det_co.pl}
:- module(_1,[q/1],[assertions]).

:- entry q(A).

:- true pred q(A)
         : ( native_props:mshare([[A]]), term(A) )
        => ( ground([A]), rt3(A) )
         + ( is_det, mut_exclusive ).

q(X) :-
        p(X),
        !.

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

p(0).
p(s(X)) :-
        p(X).


:- regtype rt4/1.

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


:- regtype rt3/1.

rt3(0).
rt3(s(A)) :-
        rt4(A).