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.

{In /tmp/tmp8h7TAh/tak.pl
{loaded in 3408.212 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 48.003 msec.}
{written file /tmp/tmp8h7TAh/tak_det_co.pl}
:- module(_1,[tak/4],[assertions]).

:- entry tak(A,B,C,D)
         : ( ground(A), ground(B), ground(C) ).

:- true pred tak(A,B,C,D)
         : ( native_props:mshare([[D]]), var(D), ground([A,B,C]), arithexpression(A), arithexpression(B), arithexpression(C), term(D) )
        => ( ground([A,B,C,D]), arithexpression(A), arithexpression(B), arithexpression(C), arithexpression(D) )
         + ( is_det, mut_exclusive ).

:- true pred tak(A,B,C,D)
         : ( native_props:mshare([[D]]), ground([A,B,C]), gnd(A), gnd(B), gnd(C), term(D) )
        => ( ground([A,B,C,D]), arithexpression(A), arithexpression(B), gnd(C), gnd(D) )
         + ( is_det, mut_exclusive ).

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

:- true pred tak(A,B,C,D)
         : ( native_props:mshare([[D]]), var(D), ground([A,B,C]), num(A), arithexpression(B), arithexpression(C), term(D) )
        => ( ground([A,B,C,D]), arithexpression(A), arithexpression(B), arithexpression(C), arithexpression(D) )
         + ( is_det, mut_exclusive ).

tak(X,Y,Z,A) :-
        X=