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

:- entry bin_tree(A)
         : ground(A).

:- true pred bin_tree(A)
         : ( ground([A]), gnd(A) )
        => ( ground([A]), rt3(A) )
         + ( is_det, mut_exclusive ).

bin_tree(void).
bin_tree(tree(_1,Left,Right)) :-
        bin_tree(Left),
        bin_tree(Right).


:- regtype rt5/1.

rt5(void).
rt5(tree(A,B,C)) :-
        gnd(A),
        rt5(B),
        rt4(C).


:- regtype rt4/1.

rt4(void).
rt4(tree(A,B,C)) :-
        gnd(A),
        rt5(B),
        rt4(C).


:- regtype rt3/1.

rt3(void).
rt3(tree(A,B,C)) :-
        gnd(A),
        rt5(B),
        rt4(C).