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 3384.211 msec.}
{preprocessed for plai in 0.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.001 msec.}
{preprocessed for nfg in 0.0 msec.}
{analyzed by nfg in 4.0 msec.}
{analysis information stored in 0.0 msec.}
{NOTE (infercost): Using non-parametric cost analysis}
{preprocessed for lower bounds cost analysis in 0.0 msec.}
{lower bounds cost analysis performed in 4.0 msec.}
{lower bounds cost information stored in 0.0 msec.}
{preprocessed for upper bounds cost analysis in 0.0 msec.}
{upper bounds cost analysis performed in 4.001 msec.}
{upper bounds cost information stored in 0.0 msec.}
{written file /tmp/tmpcwLtxQ/tree_member-fb_eterms_shfr_nfg_steps_ualb_co.pl}
:- module(_1,[tree_member/2],[assertions,regtypes,nativeprops]).

:- 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)
         : ( native_props: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)), size_ub(A,arg(size(B),1)+arg(4,1)*size(B)), size_ub(B,size(B)) )
         + ( steps_lb(0), steps_ub(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).