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.

{Reading /tmp/tmptb3BCS/append.pl
}
{loaded in 3860.24 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 0.0 msec.}
{preprocessed for nfg in 0.0 msec.}
{analyzed by nfg in 0.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 20.001 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 16.001 msec.}
{lb bounds cost information stored in 0.0 msec.}
{written file /tmp/tmptb3BCS/append_eterms_shfr_nfg_resources_co.pl}
:- module(_1,[append/3],[assertions,predefres(res_steps),nativeprops,basicmodes,regtypes]).

:- entry append(A,B,C)
         : ( ground(A), ground(B) ).

:- true pred append(A,B,C)
         : ( gnd(A), gnd(B), term(C) )
        => ( list(A,gnd), gnd(B), gnd(C) ).

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

:- true pred append(A,B,C)
         : ( gnd(A), gnd(B), term(C) )
        => ( list(A,gnd), gnd(B), gnd(C) )
         + ( possibly_fails, not_covered ).

:- true pred append(A,B,C)
         : ( gnd(A), gnd(B), term(C) )
        => ( list(A,gnd), gnd(B), gnd(C), size(lb,A,length(A)), size(lb,B,size(B)), size(lb,C,size(B)+length(A)) )
         + cost(lb,steps,0).

:- true pred append(A,B,C)
         : ( gnd(A), gnd(B), term(C) )
        => ( list(A,gnd), gnd(B), gnd(C), size(ub,A,length(A)), size(ub,B,size(B)), size(ub,C,bot) )
         + cost(ub,steps,length(A)+1).

append([H|X],Y,[X|Z]) :-
        append(X,Y,Z).
append([],Y,Y).