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

:- entry p(A,B,C).

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

:- true pred p(A,B,C)
         : ( native_props:mshare([[A,B]]), ground([C]), term(A), term(B), rt1(C) )
        => ( native_props:mshare([[A,B]]), ground([C]), term(A), term(B), rt2(C) )
         + ( is_det, mut_exclusive ).

p(X,X,a) :- !.
p(X,Y,Z) :-
        Z=a,
        X=Y,
        p(X,Y,Z).


:- regtype rt2/1.

rt2(a).


:- regtype rt1/1.

rt1(a).