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 3880.243 msec.}
{preprocessed for plai in 4.0 msec.}
{analyzed by plai using eterms with local-control off in 4.001 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using shfr with local-control off in 4.0 msec.}
{preprocessed for nfg in 0.0 msec.}
{analyzed by nfg in 4.0 msec.}
{analysis information stored in 0.0 msec.}
{preprocessed for ub bounds cost analysis in 0.0 msec.}
{ub bounds cost analysis performed in 40.003 msec.}
{ub bounds cost information stored in 0.0 msec.}
{preprocessed for lb bounds cost analysis in 0.0 msec.}
{lb bounds cost analysis performed in 24.001 msec.}
{lb bounds cost information stored in 0.0 msec.}
{written file /tmp/tmp3Ou7n_/tree_member-fb_eterms_shfr_nfg_resources_co.pl}
:- module(_1,[tree_member/2],[assertions,predefres(res_steps),nativeprops,basicmodes,regtypes]).

:- entry tree_member(A,B)
         : ground(B).

:- true pred tree_member(A,B)
         : ( term(A), gnd(B) )
        => ( gnd(A), rt7(B) ).

:- true pred tree_member(A,B)
         : ( mshare([[A]]), ground([B]) )
        => ground([A,B]).

:- true pred tree_member(A,B)
         : ( term(A), gnd(B) )
        => ( gnd(A), rt7(B) )
         + ( possibly_fails, not_covered ).

:- true pred tree_member(A,B)
         : ( term(A), gnd(B) )
        => ( gnd(A), rt7(B), size(lb,A,arg(4,1)*size(B)), size(lb,B,size(B)) )
         + cost(lb,steps,0).

:- true pred tree_member(A,B)
         : ( term(A), gnd(B) )
        => ( gnd(A), rt7(B), size(ub,A,arg(size(B),1)+arg(4,1)*size(B)), size(ub,B,size(B)) )
         + cost(ub,steps,3*size(B)).

tree_member(X,tree(X,_1,_2)).
tree_member(X,tree(_1,Left,_2)) :-
        tree_member(X,Left).
tree_member(X,tree(_1,_2,Right)) :-
        tree_member(X,Right).


:- regtype rt8/1.

rt8(A) :-
        gnd(A).


:- regtype rt7/1.

rt7(tree(A,B,C)) :-
        gnd(A),
        rt8(B),
        rt8(C).