From 6f9b8bfca8e92ec8cf62804bda6b401bf4002572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Fri, 1 Nov 2013 08:26:06 +0000 Subject: [PATCH 01/30] fix bad instruction format --- C/absmi.c | 29 ++++++++++++---------------- H/Yap.h | 1 - H/YapOpcodes.h | 2 +- H/amidefs.h | 7 +++++++ H/findclause.h | 14 +++++++------- H/rclause.h | 13 ++++++++++++- H/saveclause.h | 52 +++++++++++++++++++++++++++++++++++++++++++++++++- H/walkclause.h | 5 ++++- misc/buildops | 1 + 9 files changed, 95 insertions(+), 29 deletions(-) diff --git a/C/absmi.c b/C/absmi.c index 9302656d8..ac9a7b4f4 100755 --- a/C/absmi.c +++ b/C/absmi.c @@ -7975,11 +7975,6 @@ Yap_absmi(int inp) JMPNext(); } } - if (!LOCAL_DebugOn) { - PREG = pe->cs.p_code.TrueCodeOfPred; - UNLOCKPE(24,pe); - JMPNext(); - } UNLOCKPE(25,pe); d0 = pe->ArityOfPE; @@ -12641,23 +12636,23 @@ Yap_absmi(int inp) ENDD(d0); ENDOp(); - Op(p_func2s_y_cv, yxn); + Op(p_func2s_y_cv, yxc); /* A1 is a variable */ restart_func2s_y_cv: #ifdef LOW_LEVEL_TRACER if (Yap_do_low_level_trace) { RESET_VARIABLE(H); - H[1] = PREG->u.yxn.c; - H[2] = XREG(PREG->u.yxn.xi); + H[1] = PREG->u.yxc.c; + H[2] = XREG(PREG->u.yxc.xi); low_level_trace(enter_pred,RepPredProp(Yap_GetPredPropByFunc(FunctorFunctor,0)),H); } #endif /* LOW_LEVEL_TRACE */ /* We have to build the structure */ BEGD(d0); - d0 = PREG->u.yxn.c; + d0 = PREG->u.yxc.c; /* we do, let's get the third argument */ BEGD(d1); - d1 = XREG(PREG->u.yxn.xi); + d1 = XREG(PREG->u.yxc.xi); deref_head(d1, func2s_y_unk_cv); func2s_y_nvar_cv: /* Uuuff, the second and third argument are bound */ @@ -12683,8 +12678,8 @@ Yap_absmi(int inp) /* else if arity is 0 just pass d0 through */ /* Ding, ding, we made it */ BEGP(pt1); - pt1 = YREG + PREG->u.yxn.y; - PREG = NEXTOP(NEXTOP(NEXTOP(PREG, yxn),Osbpp),l); + pt1 = YREG + PREG->u.yxc.y; + PREG = NEXTOP(NEXTOP(NEXTOP(PREG, yxc),Osbpp),l); INITIALIZE_PERMVAR(pt1,d0); ENDP(pt1); GONext(); @@ -12709,7 +12704,7 @@ Yap_absmi(int inp) if (pt1+d1 > ENV || pt1+d1 > (CELL *)B) { /* make sure we have something to show for our trouble */ saveregs(); - if (!Yap_gcl((1+d1)*sizeof(CELL), 0, YREG, NEXTOP(NEXTOP(PREG,yxn),Osbpp))) { + if (!Yap_gcl((1+d1)*sizeof(CELL), 0, YREG, NEXTOP(NEXTOP(PREG,yxc),Osbpp))) { Yap_NilError(OUT_OF_STACK_ERROR,LOCAL_ErrorMessage); setregs(); JMPNext(); @@ -12728,15 +12723,15 @@ Yap_absmi(int inp) /* else if arity is 0 just pass d0 through */ /* Ding, ding, we made it */ BEGP(pt1); - pt1 = YREG + PREG->u.yxn.y; - PREG = NEXTOP(NEXTOP(NEXTOP(PREG, yxn),Osbpp),l); + pt1 = YREG + PREG->u.yxc.y; + PREG = NEXTOP(NEXTOP(NEXTOP(PREG, yxc),Osbpp),l); INITIALIZE_PERMVAR(pt1,d0); ENDP(pt1); GONext(); } else if (d1 == 0) { BEGP(pt1); - pt1 = YREG + PREG->u.yxn.y; - PREG = NEXTOP(NEXTOP(NEXTOP(PREG, yxn),Osbpp),l); + pt1 = YREG + PREG->u.yxc.y; + PREG = NEXTOP(NEXTOP(NEXTOP(PREG, yxc),Osbpp),l); INITIALIZE_PERMVAR(pt1,d0); ENDP(pt1); GONext(); diff --git a/H/Yap.h b/H/Yap.h index f21bd4786..3238cb694 100755 --- a/H/Yap.h +++ b/H/Yap.h @@ -359,7 +359,6 @@ typedef enum HALT_AFTER_CONSULT_FLAG = 15, FAST_BOOT_FLAG = 16, STACK_DUMP_ON_ERROR_FLAG = 17, - GENERATE_DEBUG_INFO_FLAG = 18, INDEXING_MODE_FLAG = 19, TABLING_MODE_FLAG = 20, VARS_CAN_HAVE_QUOTE_FLAG = 21, diff --git a/H/YapOpcodes.h b/H/YapOpcodes.h index d27088bdd..384139f42 100644 --- a/H/YapOpcodes.h +++ b/H/YapOpcodes.h @@ -322,7 +322,7 @@ OPCODE(p_func2s_cv ,xxc), OPCODE(p_func2s_vc ,xxn), OPCODE(p_func2s_y_vv ,yxx), - OPCODE(p_func2s_y_cv ,yxn), + OPCODE(p_func2s_y_cv ,yxc), OPCODE(p_func2s_y_vc ,yxn), OPCODE(p_func2f_xx ,xxx), OPCODE(p_func2f_xy ,xxy), diff --git a/H/amidefs.h b/H/amidefs.h index fbb2c224b..a0abc52da 100644 --- a/H/amidefs.h +++ b/H/amidefs.h @@ -254,6 +254,7 @@ typedef enum { The meaning and type of the symbols in a abstract machine instruction is: + A: Atom b: arity (Int) b: bitmap (CELL *) c: constant, is a Term @@ -864,6 +865,12 @@ typedef struct yami { Int c; CELL next; } yxn; + struct { + yslot y; + wamreg xi; + Term c; + CELL next; + } yxc; } u; } yamop; diff --git a/H/findclause.h b/H/findclause.h index 089b4f20a..9c246826d 100644 --- a/H/findclause.h +++ b/H/findclause.h @@ -1317,6 +1317,13 @@ } cl = NEXTOP(cl,yx); break; + case _p_func2s_y_cv: + if (!(nofregs = delete_regcopy(myregs, nofregs, cl->u.yxc.y))) { + clause->Tag = (CELL)NULL; + return; + } + cl = NEXTOP(cl,yxc); + break; case _p_and_y_vc: if (!(nofregs = delete_regcopy(myregs, nofregs, cl->u.yxn.y))) { clause->Tag = (CELL)NULL; @@ -1345,13 +1352,6 @@ } cl = NEXTOP(cl,yxn); break; - case _p_func2s_y_cv: - if (!(nofregs = delete_regcopy(myregs, nofregs, cl->u.yxn.y))) { - clause->Tag = (CELL)NULL; - return; - } - cl = NEXTOP(cl,yxn); - break; case _p_func2s_y_vc: if (!(nofregs = delete_regcopy(myregs, nofregs, cl->u.yxn.y))) { clause->Tag = (CELL)NULL; diff --git a/H/rclause.h b/H/rclause.h index 12d088594..c69dd5322 100644 --- a/H/rclause.h +++ b/H/rclause.h @@ -106,6 +106,11 @@ restore_opcodes(yamop *pc, yamop *max USES_REGS) pc->u.OtaLl.n = PtoOpAdjust(pc->u.OtaLl.n); pc = pc->u.OtaLl.n; break; + pc->u.OtaLl.s = AtomAdjust(pc->u.OtaLl.s); + pc->u.OtaLl.d = PtoLUClauseAdjust(pc->u.OtaLl.d); + pc->u.OtaLl.n = PtoOpAdjust(pc->u.OtaLl.n); + pc = pc->u.OtaLl.n; + break; /* instructions type OtapFs */ #ifdef CUT_C case _cut_c: @@ -750,12 +755,18 @@ restore_opcodes(yamop *pc, yamop *max USES_REGS) pc->u.yx.x = XAdjust(pc->u.yx.x); pc = NEXTOP(pc,yx); break; + /* instructions type yxc */ + case _p_func2s_y_cv: + pc->u.yxc.y = YAdjust(pc->u.yxc.y); + pc->u.yxc.xi = XAdjust(pc->u.yxc.xi); + pc->u.yxc.c = ConstantTermAdjust(pc->u.yxc.c); + pc = NEXTOP(pc,yxc); + break; /* instructions type yxn */ case _p_and_y_vc: case _p_arg_y_cv: case _p_div_y_cv: case _p_div_y_vc: - case _p_func2s_y_cv: case _p_func2s_y_vc: case _p_minus_y_cv: case _p_or_y_vc: diff --git a/H/saveclause.h b/H/saveclause.h index 31a4c8df9..b461dc45c 100644 --- a/H/saveclause.h +++ b/H/saveclause.h @@ -70,6 +70,9 @@ CHECK(save_Arity(stream, pc->u.Osbpa.i)); pc = NEXTOP(pc,Osbpa); break; + CHECK(save_Atom(stream, pc->u.Osbpa.i)); + pc = NEXTOP(pc,Osbpa); + break; /* instructions type Osbpp */ case _call: case _call_cpred: @@ -116,6 +119,11 @@ CHECK(save_PtoOp(stream, pc->u.OtaLl.n)); pc = NEXTOP(pc,OtaLl); break; + CHECK(save_Atom(stream, pc->u.OtaLl.s)); + CHECK(save_PtoLUClause(stream, pc->u.OtaLl.d)); + CHECK(save_PtoOp(stream, pc->u.OtaLl.n)); + pc = NEXTOP(pc,OtaLl); + break; /* instructions type OtapFs */ #ifdef CUT_C case _cut_c: @@ -139,6 +147,12 @@ CHECK(save_Constant(stream, pc->u.OtapFs.extra)); pc = NEXTOP(pc,OtapFs); break; + CHECK(save_Atom(stream, pc->u.OtapFs.s)); + CHECK(save_PtoPred(stream, pc->u.OtapFs.p)); + CHECK(save_ExternalFunction(stream, pc->u.OtapFs.f)); + CHECK(save_Constant(stream, pc->u.OtapFs.extra)); + pc = NEXTOP(pc,OtapFs); + break; /* instructions type Otapl */ case _count_retry_and_mark: case _count_retry_me: @@ -166,6 +180,11 @@ CHECK(save_PtoOp(stream, pc->u.Otapl.d)); pc = NEXTOP(pc,Otapl); break; + CHECK(save_Atom(stream, pc->u.Otapl.s)); + CHECK(save_PtoPred(stream, pc->u.Otapl.p)); + CHECK(save_PtoOp(stream, pc->u.Otapl.d)); + pc = NEXTOP(pc,Otapl); + break; /* instructions type aFlp */ case _native_me: CHECK(save_Arity(stream, pc->u.aFlp.n)); @@ -174,6 +193,12 @@ CHECK(save_PtoPred(stream, pc->u.aFlp.p)); pc = NEXTOP(pc,aFlp); break; + CHECK(save_Atom(stream, pc->u.aFlp.n)); + CHECK(save_ExternalFunction(stream, pc->u.aFlp.native)); + CHECK(save_PtoOp(stream, pc->u.aFlp.native_next)); + CHECK(save_PtoPred(stream, pc->u.aFlp.p)); + pc = NEXTOP(pc,aFlp); + break; /* instructions type c */ case _write_atom: CHECK(save_ConstantTerm(stream, pc->u.c.c)); @@ -271,6 +296,9 @@ CHECK(save_Arity(stream, pc->u.fa.a)); pc = NEXTOP(pc,fa); break; + CHECK(save_Atom(stream, pc->u.fa.a)); + pc = NEXTOP(pc,fa); + break; /* instructions type i */ case _write_longint: CHECK(save_IntegerInCode(stream, pc->u.i.i)); @@ -368,6 +396,9 @@ CHECK(save_Arity(stream, pc->u.ofa.a)); pc = NEXTOP(pc,ofa); break; + CHECK(save_Atom(stream, pc->u.ofa.a)); + pc = NEXTOP(pc,ofa); + break; /* instructions type oi */ case _unify_l_longint: case _unify_l_longint_write: @@ -608,6 +639,9 @@ CHECK(save_Arity(stream, pc->u.xfa.a)); pc = NEXTOP(pc,xfa); break; + CHECK(save_Atom(stream, pc->u.xfa.a)); + pc = NEXTOP(pc,xfa); + break; /* instructions type xi */ case _get_longint: case _put_longint: @@ -766,12 +800,18 @@ CHECK(save_X(stream, pc->u.yx.x)); pc = NEXTOP(pc,yx); break; + /* instructions type yxc */ + case _p_func2s_y_cv: + CHECK(save_Y(stream, pc->u.yxc.y)); + CHECK(save_X(stream, pc->u.yxc.xi)); + CHECK(save_ConstantTerm(stream, pc->u.yxc.c)); + pc = NEXTOP(pc,yxc); + break; /* instructions type yxn */ case _p_and_y_vc: case _p_arg_y_cv: case _p_div_y_cv: case _p_div_y_vc: - case _p_func2s_y_cv: case _p_func2s_y_vc: case _p_minus_y_cv: case _p_or_y_vc: @@ -835,6 +875,11 @@ CHECK(save_PtoOp(stream, pc->u.Otapl.d)); pc = NEXTOP(pc,Otapl); break; + CHECK(save_Atom(stream, pc->u.Otapl.s)); + CHECK(save_PtoPred(stream, pc->u.Otapl.p)); + CHECK(save_PtoOp(stream, pc->u.Otapl.d)); + pc = NEXTOP(pc,Otapl); + break; /* instructions type e */ case _getwork_first_time: if (op == _Nstop || op == _copy_idb_term || op == _unify_idb_term) return 1; @@ -868,6 +913,11 @@ CHECK(save_PtoOp(stream, pc->u.Otapl.d)); pc = NEXTOP(pc,Otapl); break; + CHECK(save_Atom(stream, pc->u.Otapl.s)); + CHECK(save_PtoPred(stream, pc->u.Otapl.p)); + CHECK(save_PtoOp(stream, pc->u.Otapl.d)); + pc = NEXTOP(pc,Otapl); + break; /* instructions type e */ #ifdef TABLING_INNER_CUTS case _clause_with_cut: diff --git a/H/walkclause.h b/H/walkclause.h index ac69e0447..313b8d545 100644 --- a/H/walkclause.h +++ b/H/walkclause.h @@ -565,12 +565,15 @@ case _put_y_var: pc = NEXTOP(pc,yx); break; + /* instructions type yxc */ + case _p_func2s_y_cv: + pc = NEXTOP(pc,yxc); + break; /* instructions type yxn */ case _p_and_y_vc: case _p_arg_y_cv: case _p_div_y_cv: case _p_div_y_vc: - case _p_func2s_y_cv: case _p_func2s_y_vc: case _p_minus_y_cv: case _p_or_y_vc: diff --git a/misc/buildops b/misc/buildops index d4b6ec15a..78b260d5c 100644 --- a/misc/buildops +++ b/misc/buildops @@ -242,6 +242,7 @@ rewritable_field(0't). get_op(0'a,"Arity"). +get_op(0'a,"Atom"). get_op(0'b,"CellPtoHeap"). get_op(0'c,"ConstantTerm"). get_op(0'd,"DoubleInCode"). From e84540b4f0127de5b64115cd9320f283f294ebc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Sun, 3 Nov 2013 13:35:54 +0000 Subject: [PATCH 02/30] C++ does not allow variable length arrays: quick fix --- packages/gecode/gecode4_yap.cc | 1980 ++++++++++++++++++++++++++++++++ 1 file changed, 1980 insertions(+) create mode 100644 packages/gecode/gecode4_yap.cc diff --git a/packages/gecode/gecode4_yap.cc b/packages/gecode/gecode4_yap.cc new file mode 100644 index 000000000..69a6c1ee1 --- /dev/null +++ b/packages/gecode/gecode4_yap.cc @@ -0,0 +1,1980 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +#include "gecode4-common.icc" +#include +using namespace std; +using namespace generic_gecode; +using namespace Gecode; + +extern "C" +{ +#include "config.h" +} + +namespace generic_gecode +{ +#ifndef HAVE_DYNARRAY + template struct DynArray + { + T* _array; + DynArray(int n): _array(new T[n]) {} + ~DynArray() { delete[] _array; } + T& operator[](int i) { return _array[i]; } + }; +#define DYNARRAY(T,A,N) DynArray A(N) +#else +#define DYNARRAY(T,A,N) T A[N] +#endif + +#ifndef HAVE_DYNARRAY + struct SpecArray + { + int (*_array)[2]; + SpecArray(int n): _array((int (*)[2]) new int[n*2]) {} + ~SpecArray() { delete[] _array; } + int& operator()(int i,int j) { return _array[i][j]; } + }; +#define SPECARRAY(A,N) SpecArray A(N) +#define SPECARRAYELEM(A,I,J) A(I,J) +#define SPECARRAYDEREF(A) A._array +#else +#define SPECARRAY(A,N) int A[N][2] +#define SPECARRAYELEM(A,I,J) A[I][J] +#define SPECARRAYDEREF(A) A +#endif +} + +extern "C" +{ +#include "SWI-Stream.h" +#include "YapInterface.h" + + static YAP_opaque_tag_t gecode_space_tag; + static YAP_opaque_handler_t gecode_space_handler; + + static int gecode_space_fail_handler(void* p) + { + delete *(GenericSpace**)p; + return TRUE; + } + + static int + gecode_space_write_handler + (void *stream_, YAP_opaque_tag_t type, void *p, int flags) + { + IOSTREAM* stream = (IOSTREAM*) stream_; + Sfprintf(stream,"", p); + return TRUE; + } + + static YAP_Term gecode_term_from_space(GenericSpace* s) + { + YAP_Term term = + YAP_NewOpaqueObject(gecode_space_tag, sizeof(GenericSpace*)); + GenericSpace** ptr = + (GenericSpace**) YAP_OpaqueObjectFromTerm(term); + *ptr = s; + return term; + } + + static int gecode_new_space(void) + { + YAP_Term term = gecode_term_from_space(new GenericSpace); + return YAP_Unify(YAP_ARG1, term); + } + + +#ifndef DISJUNCTOR + static inline GenericSpace* + gecode_Space_from_term(YAP_Term t) + { + return * (GenericSpace**) YAP_OpaqueObjectFromTerm(t); + } +#else + struct YapDisjunctor + { + GenericSpace* home; + Disjunctor disj; + YapDisjunctor(GenericSpace* home_) + : home(home_), disj(*home_) {} + }; + + static YAP_opaque_tag_t gecode_disjunctor_tag; + static YAP_opaque_handler_t gecode_disjunctor_handler; + static YAP_opaque_tag_t gecode_disjunctor_clause_tag; + static YAP_opaque_handler_t gecode_disjunctor_clause_handler; + + static inline Disjunctor& + gecode_Disjunctor_from_term(YAP_Term t) + { + return ((YapDisjunctor*) YAP_OpaqueObjectFromTerm(t))->disj; + } + + static inline YapDisjunctor& + gecode_YapDisjunctor_from_term(YAP_Term t) + { + return * (YapDisjunctor*) YAP_OpaqueObjectFromTerm(t); + } + + static inline Clause& + gecode_Clause_from_term(YAP_Term t) + { + return * (Clause*) YAP_OpaqueObjectFromTerm(t); + } + + static inline GenericSpace* + gecode_Space_from_term(YAP_Term t) + { + if (YAP_IsOpaqueObjectTerm(t, gecode_disjunctor_clause_tag)) + { + Clause& c = gecode_Clause_from_term(t); + return & (GenericSpace&) c; + } + return * (GenericSpace**) YAP_OpaqueObjectFromTerm(t); + } +#endif + + static inline FloatAssign& + gecode_FloatAssign_from_term(YAP_Term t) + { + return * (FloatAssign*) YAP_OpaqueObjectFromTerm(t); + } + + static inline IntAssign& + gecode_IntAssign_from_term(YAP_Term t) + { + return * (IntAssign*) YAP_OpaqueObjectFromTerm(t); + } + + static inline SetAssign& + gecode_SetAssign_from_term(YAP_Term t) + { + return * (SetAssign*) YAP_OpaqueObjectFromTerm(t); + } + + static inline TupleSet& + gecode_TupleSet_from_term(YAP_Term t) + { + return *(TupleSet *) YAP_OpaqueObjectFromTerm(t); + } + + static inline DFA& + gecode_DFA_from_term(YAP_Term t) + { + return *(DFA *) YAP_OpaqueObjectFromTerm(t); + } + + static inline FloatNum + gecode_FloatNum_from_term(YAP_Term t) + { + return (FloatNum) YAP_FloatOfTerm(t); + } + + static YAP_Term gecode_SET_VAR_NONE; + static YAP_Term gecode_SET_VAR_DEGREE_MIN; + static YAP_Term gecode_SET_VAR_DEGREE_MAX; + static YAP_Term gecode_SET_VAR_MIN_MIN; + static YAP_Term gecode_SET_VAR_MIN_MAX; + static YAP_Term gecode_SET_VAR_MAX_MIN; + static YAP_Term gecode_SET_VAR_MAX_MAX; + static YAP_Term gecode_SET_VAR_SIZE_MIN; + static YAP_Term gecode_SET_VAR_SIZE_MAX; + static YAP_Term gecode_SET_VAR_DEGREE_SIZE_MIN; + static YAP_Term gecode_SET_VAR_DEGREE_SIZE_MAX; + + static inline SetVarBranch + gecode_SetVarBranch_from_term(YAP_Term t) + { + + if (YAP_IsAtomTerm(t)) { + if ( t == gecode_SET_VAR_SIZE_MIN) + return SET_VAR_SIZE_MIN(); + if ( t == gecode_SET_VAR_SIZE_MAX) + return SET_VAR_SIZE_MAX(); + if ( t == gecode_SET_VAR_NONE) + return SET_VAR_NONE(); + if ( t == gecode_SET_VAR_DEGREE_MIN) + return SET_VAR_DEGREE_MIN(); + if ( t == gecode_SET_VAR_DEGREE_MAX) + return SET_VAR_DEGREE_MAX(); + if ( t == gecode_SET_VAR_MIN_MIN) + return SET_VAR_MIN_MIN(); + if ( t == gecode_SET_VAR_MIN_MAX) + return SET_VAR_MIN_MAX(); + if ( t == gecode_SET_VAR_MAX_MIN) + return SET_VAR_MAX_MIN(); + if ( t == gecode_SET_VAR_MAX_MAX) + return SET_VAR_MAX_MAX(); + if ( t == gecode_SET_VAR_DEGREE_SIZE_MIN) + return SET_VAR_DEGREE_SIZE_MIN(); + if ( t == gecode_SET_VAR_DEGREE_SIZE_MAX) + return SET_VAR_DEGREE_SIZE_MAX(); + } + cerr << "unsupported SET VAR" << endl; exit(1); + } + + static YAP_Term gecode_SET_VAL_MIN_INC; + static YAP_Term gecode_SET_VAL_MIN_EXC; + static YAP_Term gecode_SET_VAL_MED_INC; + static YAP_Term gecode_SET_VAL_MED_EXC; + static YAP_Term gecode_SET_VAL_MAX_INC; + static YAP_Term gecode_SET_VAL_MAX_EXC; + + static inline SetValBranch + gecode_SetValBranch_from_term(YAP_Term t) + { + if (YAP_IsAtomTerm(t)) { + if ( t == gecode_SET_VAL_MIN_INC) + return SET_VAL_MIN_INC(); + if ( t == gecode_SET_VAL_MIN_EXC) + return SET_VAL_MIN_EXC(); + if ( t == gecode_SET_VAL_MED_INC) + return SET_VAL_MED_INC(); + if ( t == gecode_SET_VAL_MED_EXC) + return SET_VAL_MED_EXC(); + if ( t == gecode_SET_VAL_MAX_INC) + return SET_VAL_MAX_INC(); + if ( t == gecode_SET_VAL_MAX_EXC) + return SET_VAL_MAX_EXC(); + } + cerr << "unsupported INT VAL" << endl; exit(1); + } + + static inline SetBranchFilter& + gecode_SetBranchFilter_from_term(YAP_Term t) + { + return * (SetBranchFilter*) YAP_OpaqueObjectFromTerm(t); + } + + static YAP_Term gecode_INT_VAR_NONE; + static YAP_Term gecode_INT_VAR_DEGREE_MIN; + static YAP_Term gecode_INT_VAR_DEGREE_MAX; + static YAP_Term gecode_INT_VAR_MIN_MIN; + static YAP_Term gecode_INT_VAR_MIN_MAX; + static YAP_Term gecode_INT_VAR_MAX_MIN; + static YAP_Term gecode_INT_VAR_MAX_MAX; + static YAP_Term gecode_INT_VAR_SIZE_MIN; + static YAP_Term gecode_INT_VAR_SIZE_MAX; + static YAP_Term gecode_INT_VAR_DEGREE_SIZE_MIN; + static YAP_Term gecode_INT_VAR_DEGREE_SIZE_MAX; + static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; + static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; + static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; + static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; + + static inline IntVarBranch + gecode_IntVarBranch_from_term(YAP_Term t) + { + if (YAP_IsAtomTerm(t)) { + if ( t == gecode_INT_VAR_SIZE_MIN) + return INT_VAR_SIZE_MIN(); + if ( t == gecode_INT_VAR_SIZE_MAX) + return INT_VAR_SIZE_MAX(); + if ( t == gecode_INT_VAR_NONE) + return INT_VAR_NONE(); + if ( t == gecode_INT_VAR_DEGREE_MIN) + return INT_VAR_DEGREE_MIN(); + if ( t == gecode_INT_VAR_DEGREE_MAX) + return INT_VAR_DEGREE_MAX(); + if ( t == gecode_INT_VAR_MIN_MIN) + return INT_VAR_MIN_MIN(); + if ( t == gecode_INT_VAR_MIN_MAX) + return INT_VAR_MIN_MAX(); + if ( t == gecode_INT_VAR_MAX_MIN) + return INT_VAR_MAX_MIN(); + if ( t == gecode_INT_VAR_MAX_MAX) + return INT_VAR_MAX_MAX(); + if ( t == gecode_INT_VAR_DEGREE_SIZE_MIN) + return INT_VAR_DEGREE_SIZE_MIN(); + if ( t == gecode_INT_VAR_DEGREE_SIZE_MAX) + return INT_VAR_DEGREE_SIZE_MAX(); + if ( t == gecode_INT_VAR_REGRET_MIN_MIN) + return INT_VAR_REGRET_MIN_MIN(); + if ( t == gecode_INT_VAR_REGRET_MIN_MAX) + return INT_VAR_REGRET_MIN_MAX(); + if ( t == gecode_INT_VAR_REGRET_MAX_MIN) + return INT_VAR_REGRET_MAX_MIN(); + if ( t == gecode_INT_VAR_REGRET_MAX_MAX) + return INT_VAR_REGRET_MAX_MAX(); + } + cerr << "unsupported INT VAR" << endl; exit(1); + } + + static YAP_Term gecode_FLOAT_VAR_NONE; + static YAP_Term gecode_FLOAT_VAR_DEGREE_MIN; + static YAP_Term gecode_FLOAT_VAR_DEGREE_MAX; + static YAP_Term gecode_FLOAT_VAR_MIN_MIN; + static YAP_Term gecode_FLOAT_VAR_MIN_MAX; + static YAP_Term gecode_FLOAT_VAR_MAX_MIN; + static YAP_Term gecode_FLOAT_VAR_MAX_MAX; + static YAP_Term gecode_FLOAT_VAR_SIZE_MIN; + static YAP_Term gecode_FLOAT_VAR_SIZE_MAX; + static YAP_Term gecode_FLOAT_VAR_DEGREE_SIZE_MIN; + static YAP_Term gecode_FLOAT_VAR_DEGREE_SIZE_MAX; + + static inline FloatVarBranch + gecode_FloatVarBranch_from_term(YAP_Term t) + { + if (YAP_IsAtomTerm(t)) { + if ( t == gecode_FLOAT_VAR_SIZE_MIN) + return FLOAT_VAR_SIZE_MIN(); + if ( t == gecode_FLOAT_VAR_SIZE_MAX) + return FLOAT_VAR_SIZE_MAX(); + if ( t == gecode_FLOAT_VAR_NONE) + return FLOAT_VAR_NONE(); + if ( t == gecode_FLOAT_VAR_DEGREE_MIN) + return FLOAT_VAR_DEGREE_MIN(); + if ( t == gecode_FLOAT_VAR_DEGREE_MAX) + return FLOAT_VAR_DEGREE_MAX(); + if ( t == gecode_FLOAT_VAR_MIN_MIN) + return FLOAT_VAR_MIN_MIN(); + if ( t == gecode_FLOAT_VAR_MIN_MAX) + return FLOAT_VAR_MIN_MAX(); + if ( t == gecode_FLOAT_VAR_MAX_MIN) + return FLOAT_VAR_MAX_MIN(); + if ( t == gecode_FLOAT_VAR_MAX_MAX) + return FLOAT_VAR_MAX_MAX(); + if ( t == gecode_FLOAT_VAR_DEGREE_SIZE_MIN) + return FLOAT_VAR_DEGREE_SIZE_MIN(); + if ( t == gecode_FLOAT_VAR_DEGREE_SIZE_MAX) + return FLOAT_VAR_DEGREE_SIZE_MAX(); + } + cerr << "unsupported FLOAT VAR" << endl; exit(1); + } + + static YAP_Term gecode_INT_VAL_MIN; + static YAP_Term gecode_INT_VAL_MED; + static YAP_Term gecode_INT_VAL_MAX; + static YAP_Term gecode_INT_VAL_SPLIT_MIN; + static YAP_Term gecode_INT_VAL_SPLIT_MAX; + static YAP_Term gecode_INT_VAL_RANGE_MIN; + static YAP_Term gecode_INT_VAL_RANGE_MAX; + static YAP_Term gecode_INT_VALUES_MIN; + static YAP_Term gecode_INT_VALUES_MAX; + + static inline IntValBranch + gecode_IntValBranch_from_term(YAP_Term t) + { + if (YAP_IsAtomTerm(t)) { + if ( t == gecode_INT_VAL_MIN) + return INT_VAL_MIN(); + if ( t == gecode_INT_VAL_MED) + return INT_VAL_MED(); + if ( t == gecode_INT_VAL_MAX) + return INT_VAL_MAX(); + if ( t == gecode_INT_VAL_SPLIT_MIN) + return INT_VAL_SPLIT_MIN(); + if ( t == gecode_INT_VAL_SPLIT_MAX) + return INT_VAL_SPLIT_MAX(); + if ( t == gecode_INT_VAL_RANGE_MIN) + return INT_VAL_RANGE_MIN(); + if ( t == gecode_INT_VAL_RANGE_MAX) + return INT_VAL_RANGE_MAX(); + if ( t == gecode_INT_VALUES_MIN) + return INT_VALUES_MIN(); + if ( t == gecode_INT_VALUES_MAX) + return INT_VALUES_MAX(); + } + cerr << "unsupported INT VAL" << endl; exit(1); + } + + static YAP_Term gecode_FLOAT_VAL_SPLIT_MIN; + static YAP_Term gecode_FLOAT_VAL_SPLIT_MAX; + + static inline FloatValBranch + gecode_FloatValBranch_from_term(YAP_Term t) + { + if (YAP_IsAtomTerm(t)) { + if ( t == gecode_FLOAT_VAL_SPLIT_MIN) + return FLOAT_VAL_SPLIT_MIN(); + if ( t == gecode_FLOAT_VAL_SPLIT_MAX) + return FLOAT_VAL_SPLIT_MAX(); + } + cerr << "unsupported FLOAT VAL" << endl; exit(1); + } + + static inline FloatVal& + gecode_FloatVal_from_term(YAP_Term t) + { + return * (FloatVal*) YAP_OpaqueObjectFromTerm(t); + } + + static inline Symmetries& + gecode_Symmetries_from_term(YAP_Term t) + { + return * (Symmetries*) YAP_OpaqueObjectFromTerm(t); + } + + static inline IntBranchFilter& + gecode_IntBranchFilter_from_term(YAP_Term t) + { + return * (IntBranchFilter*) YAP_OpaqueObjectFromTerm(t); + } + + static inline BoolBranchFilter& + gecode_BoolBranchFilter_from_term(YAP_Term t) + { + return * (BoolBranchFilter*) YAP_OpaqueObjectFromTerm(t); + } + + static inline FloatBranchFilter& + gecode_FloatBranchFilter_from_term(YAP_Term t) + { + return * (FloatBranchFilter*) YAP_OpaqueObjectFromTerm(t); + } + + static inline SetVarValPrint& + gecode_SetVarValPrint_from_term(YAP_Term t) + { + return * (SetVarValPrint*) YAP_OpaqueObjectFromTerm(t); + } + + static inline IntVarValPrint& + gecode_IntVarValPrint_from_term(YAP_Term t) + { + return * (IntVarValPrint*) YAP_OpaqueObjectFromTerm(t); + } + + static inline BoolVarValPrint& + gecode_BoolVarValPrint_from_term(YAP_Term t) + { + return * (BoolVarValPrint*) YAP_OpaqueObjectFromTerm(t); + } + + static inline FloatVarValPrint& + gecode_FloatVarValPrint_from_term(YAP_Term t) + { + return * (FloatVarValPrint*) YAP_OpaqueObjectFromTerm(t); + } + + static YAP_opaque_tag_t gecode_engine_tag; + static YAP_opaque_handler_t gecode_engine_handler; + + static RestartMode gecode_RestartMode_from_term(YAP_Term t); + + static int gecode_new_engine(void) + { + YAP_Term arg1 = YAP_ARG1; + YAP_Term arg2 = YAP_ARG2; + YAP_Term arg3 = YAP_ARG3; + bool restart = YAP_IntOfTerm(YAP_ArgOfTerm(1, arg3)); + double threads = YAP_FloatOfTerm(YAP_ArgOfTerm(2, arg3)); + unsigned int c_d = YAP_IntOfTerm(YAP_ArgOfTerm(3, arg3)); + unsigned int a_d = YAP_IntOfTerm(YAP_ArgOfTerm(4, arg3)); + unsigned int nogoods_limit = YAP_IntOfTerm(YAP_ArgOfTerm(6, arg3)); + bool clone = ( YAP_IntOfTerm(YAP_ArgOfTerm(7, arg3)) == 0 ? FALSE : TRUE ); + RestartMode md; + YAP_Term t = YAP_ArgOfTerm(5, arg3); + if (YAP_IsAtomTerm(t)) { + md = gecode_RestartMode_from_term(t); + } else if (YAP_IsApplTerm(t)) { + md = gecode_RestartMode_from_term(YAP_MkAtomTerm(YAP_NameOfFunctor(YAP_FunctorOfTerm(t)))); + } else { + cerr << "bad engine cutoff option" << endl; exit(1); + } + Search::Cutoff* cutoff; + YAP_Term t_s, t_b; + switch (md) { + case RM_CONSTANT: + YAP_Term t_a; + if (YAP_ArityOfFunctor(YAP_FunctorOfTerm(t)) == 1 && + YAP_IsIntTerm(t_a = YAP_ArgOfTerm(1,t))) { + unsigned long int a = YAP_IntOfTerm(t_a); + cutoff = Search::Cutoff::constant(a); + } else { + cerr << "bad parameter for constant" << endl; exit(1); + } + break; + case RM_GEOMETRIC: + if (YAP_ArityOfFunctor(YAP_FunctorOfTerm(t)) == 2 && + YAP_IsIntTerm(t_s = YAP_ArgOfTerm(1,t)) && + YAP_IsIntTerm(t_b = YAP_ArgOfTerm(2,t))) { + unsigned long int s = YAP_IntOfTerm(t_s); + unsigned long int b = YAP_IntOfTerm(t_b); + cutoff = Search::Cutoff::geometric(s,b); + } else { + cerr << "bad parameter for geometric" << endl; exit(1); + } + break; + case RM_LUBY: + if (YAP_ArityOfFunctor(YAP_FunctorOfTerm(t)) == 1 && + YAP_IsIntTerm(t_s = YAP_ArgOfTerm(1,t))) { + unsigned long int s = YAP_IntOfTerm(t_s); + cutoff = Search::Cutoff::luby(s); + } else { + cerr << "bad parameter for luby" << endl; exit(1); + } + break; + case RM_LINEAR: + if (YAP_ArityOfFunctor(YAP_FunctorOfTerm(t)) == 1 && + YAP_IsIntTerm(t_s = YAP_ArgOfTerm(1,t))) { + unsigned long int s = YAP_IntOfTerm(t_s); + cutoff = Search::Cutoff::linear(s); + } else { + cerr << "bad parameter for linear" << endl; exit(1); + } + break; + default: + cutoff = NULL; + } + Search::Options opt; + opt.threads = threads; + opt.c_d = c_d; + opt.a_d = a_d; + opt.cutoff = cutoff; + opt.nogoods_limit = nogoods_limit; + opt.clone = clone; + opt.stop = NULL; + GenericSpace* space = gecode_Space_from_term(arg1); + GenericEngine* engine = space->new_engine(restart,opt); + YAP_Term y_engine = + YAP_NewOpaqueObject(gecode_engine_tag, sizeof(GenericEngine*)); + GenericEngine** ptr = + (GenericEngine**) YAP_OpaqueObjectFromTerm(y_engine); + *ptr = engine; + return YAP_Unify(arg2, y_engine); + } + + static inline GenericEngine* + gecode_engine_from_term(YAP_Term t) + { + return * (GenericEngine**) YAP_OpaqueObjectFromTerm(t); + } + + static int gecode_engine_fail_handler(void* p) + { + delete *(GenericEngine**)p; + return TRUE; + } + + static int + gecode_engine_write_handler + (void *stream_, YAP_opaque_tag_t type, void *p, int flags) + { + IOSTREAM* stream = (IOSTREAM*) stream_; + Sfprintf(stream,"", p); + return TRUE; + } + + static int gecode_engine_search(void) + { + GenericEngine* engine = gecode_engine_from_term(YAP_ARG1); + GenericSpace* space = engine->next(); + if (space) + { + YAP_Term term = gecode_term_from_space(space); + return YAP_Unify(YAP_ARG2, term); + } + else YAP_cut_fail(); + } + +#ifdef DISJUNCTOR + static int gecode_new_disjunctor(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + YAP_Term term = + YAP_NewOpaqueObject(gecode_disjunctor_tag, sizeof(YapDisjunctor)); + new (YAP_OpaqueObjectFromTerm(term)) YapDisjunctor(space); + return YAP_Unify(result, term); + } + + static int + gecode_disjunctor_write_handler + (void *stream_, YAP_opaque_tag_t type, void *p, int flags) + { + IOSTREAM* stream = (IOSTREAM*) stream_; + Sfprintf(stream,"", p); + return TRUE; + } + + static int gecode_new_clause(void) + { + YAP_Term result = YAP_ARG1; + YapDisjunctor& disj = gecode_YapDisjunctor_from_term(YAP_ARG2); + YAP_Term term = + YAP_NewOpaqueObject(gecode_disjunctor_clause_tag, sizeof(Clause)); + new (YAP_OpaqueObjectFromTerm(term)) Clause(*disj.home,disj.disj); + return YAP_Unify(result, term); + } + + static int + gecode_clause_write_handler + (void *stream_, YAP_opaque_tag_t type, void *p, int flags) + { + IOSTREAM* stream = (IOSTREAM*) stream_; + Sfprintf(stream,"", p); + return TRUE; + } + + static IntVar gecode_IntVar_from_term(GenericSpace*,YAP_Term); + static BoolVar gecode_BoolVar_from_term(GenericSpace*,YAP_Term); + static FloatVar gecode_FloatVar_from_term(GenericSpace*,YAP_Term); + static SetVar gecode_SetVar_from_term(GenericSpace*,YAP_Term); + + static int gecode_clause_intvar_forward(void) + { + Clause& clause = gecode_Clause_from_term(YAP_ARG1); + GenericSpace* outer = clause.generic_parent(); + GenericSpace* inner = clause.generic_space(); + IntVar outer_var = gecode_IntVar_from_term(outer, YAP_ARG2); + IntVar inner_var = gecode_IntVar_from_term(inner, YAP_ARG3); + clause.forward(outer_var,inner_var); + return TRUE; + } + + static int gecode_clause_boolvar_forward(void) + { + Clause& clause = gecode_Clause_from_term(YAP_ARG1); + GenericSpace* outer = clause.generic_parent(); + GenericSpace* inner = clause.generic_space(); + BoolVar outer_var = gecode_BoolVar_from_term(outer, YAP_ARG2); + BoolVar inner_var = gecode_BoolVar_from_term(inner, YAP_ARG3); + clause.forward(outer_var,inner_var); + return TRUE; + } + + static int gecode_clause_setvar_forward(void) + { + Clause& clause = gecode_Clause_from_term(YAP_ARG1); + GenericSpace* outer = clause.generic_parent(); + GenericSpace* inner = clause.generic_space(); + SetVar outer_var = gecode_SetVar_from_term(outer, YAP_ARG2); + SetVar inner_var = gecode_SetVar_from_term(inner, YAP_ARG3); + clause.forward(outer_var,inner_var); + return TRUE; + } +#endif + + static int gecode_new_intvar_from_bounds(void) + { + YAP_Term ivar = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int lo = YAP_IntOfTerm(YAP_ARG3); + int hi = YAP_IntOfTerm(YAP_ARG4); + int i = space->new_ivar(lo, hi); + YAP_Term y_i = YAP_MkIntTerm(i); + return YAP_Unify(ivar, y_i); + } + + static int gecode_new_floatvar_from_bounds(void) + { + YAP_Term ivar = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + double lo = YAP_FloatOfTerm(YAP_ARG3); + double hi = YAP_FloatOfTerm(YAP_ARG4); + int i = space->new_fvar(lo, hi); + YAP_Term y_i = YAP_MkIntTerm(i); + return YAP_Unify(ivar, y_i); + } + + static int + gecode_list_length(YAP_Term l) + { + int n = 0; + while (YAP_IsPairTerm(l)) + { + n += 1; + l = YAP_TailOfTerm(l); + } + return n; + } + + static IntSet + gecode_IntSet_from_term(YAP_Term specs) + { + int n = gecode_list_length(specs); + SPECARRAY(r,n); + int i = 0; + while (YAP_IsPairTerm(specs)) + { + YAP_Term head = YAP_HeadOfTerm(specs); + specs = YAP_TailOfTerm(specs); + SPECARRAYELEM(r,i,0) = YAP_IntOfTerm(YAP_ArgOfTerm(1, head)); + SPECARRAYELEM(r,i,1) = YAP_IntOfTerm(YAP_ArgOfTerm(2, head)); + i += 1; + } + return IntSet(SPECARRAYDEREF(r), n); + } + + static int gecode_new_intvar_from_intset(void) + { + YAP_Term ivar = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + YAP_Term specs = YAP_ARG3; + IntSet iset = gecode_IntSet_from_term(specs); + int i = space->new_ivar(iset); + return YAP_Unify(ivar, YAP_MkIntTerm(i)); + } + + static int gecode_new_boolvar(void) + { + YAP_Term bvar = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int i = space->new_bvar(); + return YAP_Unify(bvar, YAP_MkIntTerm(i)); + } + + static int gecode_new_setvar_1(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + int LubMin = YAP_IntOfTerm(YAP_ARG5); + int LubMax = YAP_IntOfTerm(YAP_ARG6); + int CardMin= YAP_IntOfTerm(YAP_ARG7); + int CardMax= YAP_IntOfTerm(YAP_ARG8); + int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_2(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + int LubMin = YAP_IntOfTerm(YAP_ARG5); + int LubMax = YAP_IntOfTerm(YAP_ARG6); + int CardMin= YAP_IntOfTerm(YAP_ARG7); + int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax,CardMin); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_3(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + int LubMin = YAP_IntOfTerm(YAP_ARG5); + int LubMax = YAP_IntOfTerm(YAP_ARG6); + int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_4(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + int LubMin = YAP_IntOfTerm(YAP_ARG4); + int LubMax = YAP_IntOfTerm(YAP_ARG5); + int CardMin = YAP_IntOfTerm(YAP_ARG6); + int CardMax = YAP_IntOfTerm(YAP_ARG7); + int idx = space->new_svar(Glb,LubMin,LubMax,CardMin,CardMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_5(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + int LubMin = YAP_IntOfTerm(YAP_ARG4); + int LubMax = YAP_IntOfTerm(YAP_ARG5); + int CardMin = YAP_IntOfTerm(YAP_ARG6); + int idx = space->new_svar(Glb,LubMin,LubMax,CardMin); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_6(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + int LubMin = YAP_IntOfTerm(YAP_ARG4); + int LubMax = YAP_IntOfTerm(YAP_ARG5); + int idx = space->new_svar(Glb,LubMin,LubMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_7(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); + int CardMin = YAP_IntOfTerm(YAP_ARG6); + int CardMax = YAP_IntOfTerm(YAP_ARG7); + int idx = space->new_svar(GlbMin,GlbMax,Lub,CardMin,CardMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_8(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); + int CardMin = YAP_IntOfTerm(YAP_ARG6); + int idx = space->new_svar(GlbMin,GlbMax,Lub,CardMin); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_9(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); + int idx = space->new_svar(GlbMin,GlbMax,Lub); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_10(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); + int CardMin = YAP_IntOfTerm(YAP_ARG5); + int CardMax = YAP_IntOfTerm(YAP_ARG6); + int idx = space->new_svar(Glb,Lub,CardMin,CardMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_11(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); + int CardMin = YAP_IntOfTerm(YAP_ARG5); + int idx = space->new_svar(Glb,Lub,CardMin); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_12(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); + int idx = space->new_svar(Glb,Lub); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_space_minimize(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int i = YAP_IntOfTerm(YAP_ARG2); + space->minimize(i); + return TRUE; + } + + static int gecode_space_maximize(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int i = YAP_IntOfTerm(YAP_ARG2); + space->maximize(i); + return TRUE; + } + + static int gecode_space_minimize_ratio(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int i = YAP_IntOfTerm(YAP_ARG2); + int j = YAP_IntOfTerm(YAP_ARG3); + space->minimize(i,j); + return TRUE; + } + + static int gecode_space_maximize_ratio(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int i = YAP_IntOfTerm(YAP_ARG2); + int j = YAP_IntOfTerm(YAP_ARG3); + space->maximize(i,j); + return TRUE; + } + + static IntVar + gecode_IntVar_from_term(GenericSpace* space, YAP_Term x) + { + int i = YAP_IntOfTerm(x); + return space->get_ivar(i); + } + + static BoolVar + gecode_BoolVar_from_term(GenericSpace* space, YAP_Term x) + { + int i = YAP_IntOfTerm(x); + return space->get_bvar(i); + } + + static SetVar + gecode_SetVar_from_term(GenericSpace* space, YAP_Term x) + { + int i = YAP_IntOfTerm(x); + return space->get_svar(i); + } + + static IntVarArgs + gecode_IntVarArgs_from_term(GenericSpace* space, YAP_Term l) + { + int n = gecode_list_length(l); + IntVarArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); + v[i] = space->get_ivar(idx); + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static BoolVarArgs + gecode_BoolVarArgs_from_term(GenericSpace* space, YAP_Term l) + { + int n = gecode_list_length(l); + BoolVarArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); + v[i] = space->get_bvar(idx); + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static FloatVar + gecode_FloatVar_from_term(GenericSpace* space, YAP_Term x) + { + int i = YAP_IntOfTerm(x); + return space->get_fvar(i); + } + + static FloatVarArgs + gecode_FloatVarArgs_from_term(GenericSpace* space, YAP_Term l) + { + int n = gecode_list_length(l); + FloatVarArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); + v[i] = space->get_fvar(idx); + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static FloatValArgs + gecode_FloatValArgs_from_term(YAP_Term l) + { + int n = gecode_list_length(l); + FloatValArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + YAP_Term t = YAP_HeadOfTerm(l); + v[i] = * (FloatVal*) YAP_OpaqueObjectFromTerm(t); + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static SetVarArgs + gecode_SetVarArgs_from_term(GenericSpace* space, YAP_Term l) + { + int n = gecode_list_length(l); + SetVarArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); + v[i] = space->get_svar(idx); + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static IntArgs + gecode_IntArgs_from_term(YAP_Term l) + { + int n = gecode_list_length(l); + IntArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); + v[i] = idx; + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static IntSetArgs + gecode_IntSetArgs_from_term(YAP_Term l) + { + int n = gecode_list_length(l); + IntSetArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + IntSet s = gecode_IntSet_from_term(YAP_HeadOfTerm(l)); + v[i] = s; + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static TaskType gecode_TaskType_from_term(YAP_Term); + + static TaskTypeArgs + gecode_TaskTypeArgs_from_term(YAP_Term l) + { + int n = gecode_list_length(l); + TaskTypeArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + TaskType tt = gecode_TaskType_from_term(YAP_HeadOfTerm(l)); + v[i] = tt; + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static YAP_Term gecode_TRUE; + static YAP_Term gecode_FALSE; + + static bool + gecode_bool_from_term(YAP_Term X) + { + if (X==gecode_TRUE) return true; + if (X==gecode_FALSE) return false; + cerr << "this should never happen" << endl; exit(1); + } + + static int gecode_space_use_keep_index(void) + { + YAP_Term arg1 = YAP_ARG1; + YAP_Term arg2 = YAP_ARG2; + GenericSpace* space = gecode_Space_from_term(arg1); + return YAP_Unify(arg2,(space->use_keep_index() + ?gecode_TRUE:gecode_FALSE)); + } + + static int gecode_intvar_keep(void) + { + YAP_Term arg1 = YAP_ARG1; + YAP_Term arg2 = YAP_ARG2; + YAP_Term arg3 = YAP_ARG3; + GenericSpace* space = gecode_Space_from_term(arg1); + int idx = YAP_IntOfTerm(arg2); + int kidx = space->keep_ivar(idx); + return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); + } + + static int gecode_boolvar_keep(void) + { + YAP_Term arg1 = YAP_ARG1; + YAP_Term arg2 = YAP_ARG2; + YAP_Term arg3 = YAP_ARG3; + GenericSpace* space = gecode_Space_from_term(arg1); + int idx = YAP_IntOfTerm(arg2); + int kidx = space->keep_bvar(idx); + return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); + } + + static int gecode_setvar_keep(void) + { + YAP_Term arg1 = YAP_ARG1; + YAP_Term arg2 = YAP_ARG2; + YAP_Term arg3 = YAP_ARG3; + GenericSpace* space = gecode_Space_from_term(arg1); + int idx = YAP_IntOfTerm(arg2); + int kidx = space->keep_svar(idx); + return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); + } + + // INFO ON INTVARS + static int gecode_intvar_assigned(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG2); + return (x.assigned()) ? TRUE : FALSE; + } + + static int gecode_intvar_min(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.min())); + } + + static int gecode_intvar_max(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.max())); + } + + static int gecode_intvar_med(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.med())); + } + + static int gecode_intvar_val(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.val())); + } + + static int gecode_intvar_size(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.size())); + } + + static int gecode_intvar_width(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.width())); + } + + static int gecode_intvar_regret_min(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.regret_min())); + } + + static int gecode_intvar_regret_max(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.regret_max())); + } + + static YAP_Functor gecode_COMMA2; + + static int gecode_intvar_ranges(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + int n = 0; + { IntVarRanges it(x); while (it()) { ++n; ++it; } } + DYNARRAY(int,min,n); + DYNARRAY(int,max,n); + { IntVarRanges it(x); int i=0; + while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } + YAP_Term lst = YAP_TermNil(); + for (;n--;) + { + YAP_Term args[2]; + args[0] = YAP_MkIntTerm(min[n]); + args[1] = YAP_MkIntTerm(max[n]); + YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); + lst = YAP_MkPairTerm(range,lst); + } + return YAP_Unify(result,lst); + } + + static int gecode_intvar_values(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + int n = x.size(); + DYNARRAY(int,a,n); + { IntVarValues it(x); int i=0; + while (it()) { a[i]=it.val(); ++it; ++i; } } + YAP_Term lst = YAP_TermNil(); + for (;n--;) + { + lst = YAP_MkPairTerm(YAP_MkIntTerm(a[n]),lst); + } + return YAP_Unify(result,lst); + } + + // INFO ON BOOLVARS + static int gecode_boolvar_assigned(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG2); + return (x.assigned()) ? TRUE : FALSE; + } + + static int gecode_boolvar_min(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.min())); + } + + static int gecode_boolvar_max(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.max())); + } + + static int gecode_boolvar_med(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.med())); + } + + static int gecode_boolvar_val(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.val())); + } + + static int gecode_boolvar_size(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.size())); + } + + static int gecode_boolvar_width(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.width())); + } + + static int gecode_boolvar_regret_min(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.regret_min())); + } + + static int gecode_boolvar_regret_max(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.regret_max())); + } + + // INFO ON SETVARS + static int gecode_setvar_assigned(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG2); + return (x.assigned()) ? TRUE : FALSE; + } + + static int gecode_setvar_glbSize(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.glbSize())); + } + + static int gecode_setvar_lubSize(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.lubSize())); + } + + static int gecode_setvar_unknownSize(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.unknownSize())); + } + + static int gecode_setvar_cardMin(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.cardMin())); + } + + static int gecode_setvar_cardMax(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.cardMax())); + } + + static int gecode_setvar_lubMin(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.lubMin())); + } + + static int gecode_setvar_lubMax(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.lubMax())); + } + + static int gecode_setvar_glbMin(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.glbMin())); + } + + static int gecode_setvar_glbMax(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.glbMax())); + } + + static int gecode_setvar_glb_ranges(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + int n = 0; + { SetVarGlbRanges it(x); while (it()) { ++n; ++it; } } + DYNARRAY(int,min,n); + DYNARRAY(int,max,n); + { SetVarGlbRanges it(x); int i=0; + while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } + YAP_Term lst = YAP_TermNil(); + for (;n--;) + { + YAP_Term args[2]; + args[0] = YAP_MkIntTerm(min[n]); + args[1] = YAP_MkIntTerm(max[n]); + YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); + lst = YAP_MkPairTerm(range,lst); + } + return YAP_Unify(result,lst); + } + + static int gecode_setvar_lub_ranges(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + int n = 0; + { SetVarLubRanges it(x); while (it()) { ++n; ++it; } } + DYNARRAY(int,min,n); + DYNARRAY(int,max,n); + { SetVarLubRanges it(x); int i=0; + while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } + YAP_Term lst = YAP_TermNil(); + for (;n--;) + { + YAP_Term args[2]; + args[0] = YAP_MkIntTerm(min[n]); + args[1] = YAP_MkIntTerm(max[n]); + YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); + lst = YAP_MkPairTerm(range,lst); + } + return YAP_Unify(result,lst); + } + + static int gecode_setvar_unknown_ranges(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + int n = 0; + { SetVarUnknownRanges it(x); while (it()) { ++n; ++it; } } + DYNARRAY(int,min,n); + DYNARRAY(int,max,n); + { SetVarUnknownRanges it(x); int i=0; + while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } + YAP_Term lst = YAP_TermNil(); + for (;n--;) + { + YAP_Term args[2]; + args[0] = YAP_MkIntTerm(min[n]); + args[1] = YAP_MkIntTerm(max[n]); + YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); + lst = YAP_MkPairTerm(range,lst); + } + return YAP_Unify(result,lst); + } + + static int gecode_setvar_glb_values(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + DYNARRAY(YAP_Term,elems,x.glbSize()); + SetVarGlbValues it(x); + int n = 0; + while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } + YAP_Term lst = YAP_TermNil(); + for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); + return YAP_Unify(result,lst); + } + + static int gecode_setvar_lub_values(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + DYNARRAY(YAP_Term,elems,x.lubSize()); + SetVarLubValues it(x); + int n = 0; + while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } + YAP_Term lst = YAP_TermNil(); + for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); + return YAP_Unify(result,lst); + } + + static int gecode_setvar_unknown_values(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + DYNARRAY(YAP_Term,elems,x.unknownSize()); + SetVarUnknownValues it(x); + int n = 0; + while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } + YAP_Term lst = YAP_TermNil(); + for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); + return YAP_Unify(result,lst); + } + + // INFO ON FLOATVARS + static int gecode_floatvar_assigned(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar x = gecode_FloatVar_from_term(space, YAP_ARG2); + return (x.assigned()) ? TRUE : FALSE; + } + + static int gecode_floatvar_min(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + FloatVar x = gecode_FloatVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkFloatTerm(x.min())); + } + + static int gecode_floatvar_max(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + FloatVar x = gecode_FloatVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkFloatTerm(x.max())); + } + + static int gecode_floatvar_med(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + FloatVar x = gecode_FloatVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkFloatTerm(x.med())); + } + + static int gecode_floatvar_size(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + FloatVar x = gecode_FloatVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkFloatTerm(x.size())); + } + + static inline Reify + gecode_Reify_from_term(YAP_Term t) + { + return * (Reify*) YAP_OpaqueObjectFromTerm(t); + } + +#define gecode_int_from_term YAP_IntOfTerm + +#include "gecode_yap_cc_forward_auto_generated.icc" +#include "gecode_yap_cc_impl_auto_generated.icc" + + static YAP_opaque_tag_t gecode_reify_tag; + static YAP_opaque_handler_t gecode_reify_handler; + + static int + gecode_reify_write_handler + (void *stream_, YAP_opaque_tag_t type, void *p, int flags) + { + IOSTREAM* stream = (IOSTREAM*) stream_; + Sfprintf(stream,"", p); + return TRUE; + } + + static YAP_Term gecode_term_from_reify(Reify r) + { + YAP_Term term = + YAP_NewOpaqueObject(gecode_reify_tag, sizeof(Reify)); + Reify *ptr = + (Reify*) YAP_OpaqueObjectFromTerm(term); + *ptr = r; + return term; + } + + static int gecode_new_reify(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar b = gecode_BoolVar_from_term(space, YAP_ARG2); + ReifyMode flag = gecode_ReifyMode_from_term(YAP_ARG3); + Reify r = Reify(b,flag); + + YAP_Term term = gecode_term_from_reify(r); + return YAP_Unify(YAP_ARG4, term); + } + + static YAP_opaque_tag_t gecode_tupleset_tag; + static YAP_opaque_handler_t gecode_tupleset_handler; + + static int gecode_tupleset_fail_handler(void* p) + { + return TRUE; + } + + static int + gecode_tupleset_write_handler + (void *stream_, YAP_opaque_tag_t type, void *p, int flags) + { + IOSTREAM* stream = (IOSTREAM*) stream_; + Sfprintf(stream,"", p); + return TRUE; + } + + static int gecode_new_tupleset(void) + { + YAP_Term term = + YAP_NewOpaqueObject(gecode_tupleset_tag, sizeof(TupleSet)); + TupleSet *ts = new (YAP_OpaqueObjectFromTerm(term)) TupleSet; + YAP_Term t = YAP_ARG1; + while (YAP_IsPairTerm( t ) ) { + YAP_Term l = YAP_HeadOfTerm(t); + int n = gecode_list_length(l); + int i = 0; + IntArgs is(n); + while (YAP_IsPairTerm( l ) ) { + YAP_Term ll = YAP_HeadOfTerm(l); + if (!YAP_IsIntTerm(ll)) { + cerr << "non-integer on tuple set" << endl; exit(1); + } + is[i++] = YAP_IntOfTerm(ll); + l = YAP_TailOfTerm(l); + } + ts->add(is); + if (l != YAP_TermNil()) { + cerr << "non-list on tuple set" << endl; exit(1); + } + t = YAP_TailOfTerm(t); + } + if (t != YAP_TermNil()) { + cerr << "non-list on tuple set" << endl; exit(1); + } + ts->finalize(); + return YAP_Unify(YAP_ARG2, term); + } + + static YAP_opaque_tag_t gecode_dfa_tag; + static YAP_opaque_handler_t gecode_dfa_handler; + + static int gecode_dfa_fail_handler(void* p) + { + return TRUE; + } + + static int + gecode_dfa_write_handler + (void *stream_, YAP_opaque_tag_t type, void *p, int flags) + { + IOSTREAM* stream = (IOSTREAM*) stream_; + Sfprintf(stream,"", p); + return TRUE; + } + + static int gecode_new_dfa(void) + { + YAP_Term term = + YAP_NewOpaqueObject(gecode_dfa_tag, sizeof(DFA)); + // DFA ts = new (YAP_OpaqueObjectFromTerm(term)) DFA; + YAP_Term t2 = YAP_ARG2; + int s0 = YAP_IntOfTerm(t2); + YAP_Term t3 = YAP_ARG3; + int n = gecode_list_length(t3), i=0; + DFA::Transition t[1024]; + if (n > 1024) cerr<< "DFA too long" << endl; + while (YAP_IsPairTerm( t3 ) ) { + YAP_Term tt = YAP_HeadOfTerm(t3); + int is, sy, os; + is = YAP_IntOfTerm(YAP_ArgOfTerm(1,tt)); + sy = YAP_IntOfTerm(YAP_ArgOfTerm(2,tt)); + os = YAP_IntOfTerm(YAP_ArgOfTerm(3,tt)); + t[i++] = DFA::Transition(is, sy, os); + t3 = YAP_TailOfTerm(t3); + } + if (t3 != YAP_TermNil()) { + cerr << "non-list on DFA" << endl; exit(1); + } + YAP_Term t4 = YAP_ARG4; + n = gecode_list_length(t4)+1; + i=0; + int s[n]; + s[n-1] = -1; + while (YAP_IsPairTerm( t4 ) ) { + YAP_Term tt = YAP_HeadOfTerm(t4); + s[i++] = YAP_IntOfTerm(tt); + t4 = YAP_TailOfTerm(t4); + } + if (t4 != YAP_TermNil()) { + cerr << "non-list on DFA" << endl; exit(1); + } + new (YAP_OpaqueObjectFromTerm(term)) DFA(s0, t, s); + return YAP_Unify(YAP_ARG1, term); + } + + void gecode_init(void) + { + { YAP_Atom X= YAP_LookupAtom("true"); + gecode_TRUE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("false"); + gecode_FALSE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom(","); + YAP_AtomGetHold(X); + gecode_COMMA2 = YAP_MkFunctor(X,2); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); + gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); + gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); + gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); + gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); + gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); + gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); + gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); + gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); + gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_SIZE_MIN"); + gecode_INT_VAR_DEGREE_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_SIZE_MAX"); + gecode_INT_VAR_DEGREE_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); + gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); + gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); + gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); + gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); + gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); + gecode_INT_VAL_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); + gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); + gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); + gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); + gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); + gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); + gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); + gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); + gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); + gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); + gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); + gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); + gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); + gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); + gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); + gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); + gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_SIZE_MIN"); + gecode_SET_VAR_DEGREE_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_SIZE_MAX"); + gecode_SET_VAR_DEGREE_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); + gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); + gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); + gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); + gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); + gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); + gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_NONE"); + gecode_FLOAT_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_DEGREE_MIN"); + gecode_FLOAT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_DEGREE_MAX"); + gecode_FLOAT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_MIN_MIN"); + gecode_FLOAT_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_MIN_MAX"); + gecode_FLOAT_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_MAX_MIN"); + gecode_FLOAT_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_MAX_MAX"); + gecode_FLOAT_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_SIZE_MIN"); + gecode_FLOAT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_SIZE_MAX"); + gecode_FLOAT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_DEGREE_SIZE_MIN"); + gecode_FLOAT_VAR_DEGREE_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_DEGREE_SIZE_MAX"); + gecode_FLOAT_VAR_DEGREE_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAL_SPLIT_MIN"); + gecode_FLOAT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("FLOAT_VAL_SPLIT_MAX"); + gecode_FLOAT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +#include "gecode_yap_cc_init_auto_generated.icc" + // opaque spaces + gecode_space_handler.fail_handler = gecode_space_fail_handler; + gecode_space_handler.write_handler = gecode_space_write_handler; + gecode_space_tag = YAP_NewOpaqueType(&gecode_space_handler); + YAP_UserCPredicate("gecode_new_space", gecode_new_space, 1); + // opaque engines + gecode_engine_handler.fail_handler = gecode_engine_fail_handler; + gecode_engine_handler.write_handler = gecode_engine_write_handler; + gecode_engine_tag = YAP_NewOpaqueType(&gecode_engine_handler); + YAP_UserCPredicate("gecode_new_engine", gecode_new_engine, 3); + // opaque reifications + gecode_reify_handler.fail_handler = NULL; + gecode_reify_handler.write_handler = gecode_reify_write_handler; + gecode_reify_tag = YAP_NewOpaqueType(&gecode_reify_handler); + YAP_UserCPredicate("gecode_new_reify", gecode_new_reify, 4); + // Opaque TupleSet + gecode_tupleset_handler.fail_handler = gecode_tupleset_fail_handler; + gecode_tupleset_handler.write_handler = gecode_tupleset_write_handler; + gecode_tupleset_tag = YAP_NewOpaqueType(&gecode_tupleset_handler); + YAP_UserCPredicate("gecode_new_tupleset", gecode_new_tupleset, 2); + // Opaque DFA + gecode_dfa_handler.fail_handler = gecode_dfa_fail_handler; + gecode_dfa_handler.write_handler = gecode_dfa_write_handler; + gecode_dfa_tag = YAP_NewOpaqueType(&gecode_dfa_handler); + YAP_UserCPredicate("gecode_new_dfa", gecode_new_dfa, 4); +#ifdef DISJUNCTOR + // opaque disjunctors and clauses + gecode_disjunctor_handler.write_handler = gecode_disjunctor_write_handler; + gecode_disjunctor_tag = YAP_NewOpaqueType(&gecode_disjunctor_handler); + gecode_disjunctor_clause_handler.write_handler = gecode_clause_write_handler; + gecode_disjunctor_clause_tag = + YAP_NewOpaqueType(&gecode_disjunctor_clause_handler); + YAP_UserCPredicate("gecode_new_disjunctor", gecode_new_disjunctor, 2); + YAP_UserCPredicate("gecode_new_clause", gecode_new_clause, 2); + YAP_UserCPredicate("gecode_clause_intvar_forward", gecode_clause_intvar_forward, 3); + YAP_UserCPredicate("gecode_clause_boolvar_forward", gecode_clause_boolvar_forward, 3); + YAP_UserCPredicate("gecode_clause_setvar_forward", gecode_clause_setvar_forward, 3); +#endif + // backtracking search using an engine + YAP_UserBackCutCPredicate("gecode_engine_search", + gecode_engine_search, gecode_engine_search, + NULL, 2, 0); + // creating variables + YAP_UserCPredicate("gecode_new_intvar_from_bounds", + gecode_new_intvar_from_bounds, 4); + YAP_UserCPredicate("gecode_new_intvar_from_intset", + gecode_new_intvar_from_intset, 3); + YAP_UserCPredicate("gecode_new_floatvar_from_bounds", + gecode_new_floatvar_from_bounds, 4); + YAP_UserCPredicate("gecode_new_boolvar", gecode_new_boolvar, 2); + YAP_UserCPredicate("gecode_new_setvar_1", gecode_new_setvar_1, 8); + YAP_UserCPredicate("gecode_new_setvar_2", gecode_new_setvar_2, 7); + YAP_UserCPredicate("gecode_new_setvar_3", gecode_new_setvar_3, 6); + YAP_UserCPredicate("gecode_new_setvar_4", gecode_new_setvar_4, 7); + YAP_UserCPredicate("gecode_new_setvar_5", gecode_new_setvar_5, 6); + YAP_UserCPredicate("gecode_new_setvar_6", gecode_new_setvar_6, 5); + YAP_UserCPredicate("gecode_new_setvar_7", gecode_new_setvar_7, 7); + YAP_UserCPredicate("gecode_new_setvar_8", gecode_new_setvar_8, 6); + YAP_UserCPredicate("gecode_new_setvar_9", gecode_new_setvar_9, 5); + YAP_UserCPredicate("gecode_new_setvar_10", gecode_new_setvar_10, 6); + YAP_UserCPredicate("gecode_new_setvar_11", gecode_new_setvar_11, 5); + YAP_UserCPredicate("gecode_new_setvar_12", gecode_new_setvar_12, 4); + YAP_UserCPredicate("gecode_space_minimize", gecode_space_minimize, 2); + YAP_UserCPredicate("gecode_space_maximize", gecode_space_maximize, 2); + YAP_UserCPredicate("gecode_space_minimize_ratio", gecode_space_minimize_ratio, 3); + YAP_UserCPredicate("gecode_space_maximize_ratio", gecode_space_maximize_ratio, 3); + // INFO ON INTVARS + YAP_UserCPredicate("gecode_intvar_assigned", gecode_intvar_assigned, 2); + YAP_UserCPredicate("gecode_intvar_min", gecode_intvar_min, 3); + YAP_UserCPredicate("gecode_intvar_max", gecode_intvar_max, 3); + YAP_UserCPredicate("gecode_intvar_med", gecode_intvar_med, 3); + YAP_UserCPredicate("gecode_intvar_val", gecode_intvar_val, 3); + YAP_UserCPredicate("gecode_intvar_size", gecode_intvar_size, 3); + YAP_UserCPredicate("gecode_intvar_width", gecode_intvar_width, 3); + YAP_UserCPredicate("gecode_intvar_regret_min", gecode_intvar_regret_min, 3); + YAP_UserCPredicate("gecode_intvar_regret_max", gecode_intvar_regret_max, 3); + YAP_UserCPredicate("gecode_intvar_ranges", gecode_intvar_ranges, 3); + YAP_UserCPredicate("gecode_intvar_values", gecode_intvar_values, 3); + // INFO ON BOOLVARS + YAP_UserCPredicate("gecode_boolvar_assigned", gecode_boolvar_assigned, 2); + YAP_UserCPredicate("gecode_boolvar_min", gecode_boolvar_min, 3); + YAP_UserCPredicate("gecode_boolvar_max", gecode_boolvar_max, 3); + YAP_UserCPredicate("gecode_boolvar_med", gecode_boolvar_med, 3); + YAP_UserCPredicate("gecode_boolvar_val", gecode_boolvar_val, 3); + YAP_UserCPredicate("gecode_boolvar_size", gecode_boolvar_size, 3); + YAP_UserCPredicate("gecode_boolvar_width", gecode_boolvar_width, 3); + YAP_UserCPredicate("gecode_boolvar_regret_min", gecode_boolvar_regret_min, 3); + YAP_UserCPredicate("gecode_boolvar_regret_max", gecode_boolvar_regret_max, 3); + // INFO ON SETVARS + YAP_UserCPredicate("gecode_setvar_assigned", gecode_setvar_assigned, 2); + YAP_UserCPredicate("gecode_setvar_glbSize", gecode_setvar_glbSize, 3); + YAP_UserCPredicate("gecode_setvar_lubSize", gecode_setvar_lubSize, 3); + YAP_UserCPredicate("gecode_setvar_unknownSize", gecode_setvar_unknownSize, 3); + YAP_UserCPredicate("gecode_setvar_cardMin", gecode_setvar_cardMin, 3); + YAP_UserCPredicate("gecode_setvar_cardMax", gecode_setvar_cardMax, 3); + YAP_UserCPredicate("gecode_setvar_lubMin", gecode_setvar_lubMin, 3); + YAP_UserCPredicate("gecode_setvar_lubMax", gecode_setvar_lubMax, 3); + YAP_UserCPredicate("gecode_setvar_glbMin", gecode_setvar_glbMin, 3); + YAP_UserCPredicate("gecode_setvar_glbMax", gecode_setvar_glbMax, 3); + YAP_UserCPredicate("gecode_setvar_glb_ranges", gecode_setvar_glb_ranges, 3); + YAP_UserCPredicate("gecode_setvar_lub_ranges", gecode_setvar_lub_ranges, 3); + YAP_UserCPredicate("gecode_setvar_unknown_ranges", gecode_setvar_unknown_ranges, 3); + YAP_UserCPredicate("gecode_setvar_glb_values", gecode_setvar_glb_values, 3); + YAP_UserCPredicate("gecode_setvar_lub_values", gecode_setvar_lub_values, 3); + YAP_UserCPredicate("gecode_setvar_unknown_values", gecode_setvar_unknown_values, 3); + YAP_UserCPredicate("gecode_space_use_keep_index", gecode_space_use_keep_index, 2); + YAP_UserCPredicate("gecode_intvar_keep", gecode_intvar_keep, 3); + YAP_UserCPredicate("gecode_boolvar_keep", gecode_boolvar_keep, 3); + YAP_UserCPredicate("gecode_setvar_keep", gecode_setvar_keep, 3); + // INFO ON FLOATVARS + YAP_UserCPredicate("gecode_floatvar_assigned", gecode_floatvar_assigned, 2); + YAP_UserCPredicate("gecode_floatvar_min", gecode_floatvar_min, 3); + YAP_UserCPredicate("gecode_floatvar_max", gecode_floatvar_max, 3); + YAP_UserCPredicate("gecode_floatvar_med", gecode_floatvar_med, 3); + YAP_UserCPredicate("gecode_floatvar_size", gecode_floatvar_size, 3); + } +} From e423fc28e5406a7c7e7fd2d7ffd5db70ff171b24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Sun, 3 Nov 2013 14:12:38 +0000 Subject: [PATCH 03/30] distributed config && float library --- packages/gecode/3.6.0/gecode-version.txt | 1 + .../3.6.0/gecode_yap_auto_generated.yap | 2836 +++++++++ .../gecode_yap_cc_forward_auto_generated.icc | 31 + .../gecode_yap_cc_impl_auto_generated.icc | 4051 +++++++++++++ .../gecode_yap_cc_init_auto_generated.icc | 662 +++ packages/gecode/3.7.0/gecode-version.txt | 1 + .../3.7.0/gecode_yap_auto_generated.yap | 2995 ++++++++++ .../gecode_yap_cc_forward_auto_generated.icc | 31 + .../gecode_yap_cc_impl_auto_generated.icc | 4315 ++++++++++++++ .../gecode_yap_cc_init_auto_generated.icc | 698 +++ packages/gecode/3.7.1/gecode-version.txt | 1 + .../3.7.1/gecode_yap_auto_generated.yap | 2995 ++++++++++ .../gecode_yap_cc_forward_auto_generated.icc | 31 + .../gecode_yap_cc_impl_auto_generated.icc | 4315 ++++++++++++++ .../gecode_yap_cc_init_auto_generated.icc | 698 +++ packages/gecode/3.7.2/gecode-version.txt | 1 + .../3.7.2/gecode_yap_auto_generated.yap | 2995 ++++++++++ .../gecode_yap_cc_forward_auto_generated.icc | 31 + .../gecode_yap_cc_impl_auto_generated.icc | 4315 ++++++++++++++ .../gecode_yap_cc_init_auto_generated.icc | 698 +++ packages/gecode/3.7.3/gecode-version.txt | 1 + .../3.7.3/gecode_yap_auto_generated.yap | 2995 ++++++++++ .../gecode_yap_cc_forward_auto_generated.icc | 31 + .../gecode_yap_cc_impl_auto_generated.icc | 4315 ++++++++++++++ .../gecode_yap_cc_init_auto_generated.icc | 698 +++ packages/gecode/4.0.0/gecode-version.txt | 1 + .../4.0.0/gecode_yap_auto_generated.yap | 3010 ++++++++++ .../gecode_yap_cc_forward_auto_generated.icc | 32 + .../gecode_yap_cc_impl_auto_generated.icc | 4336 ++++++++++++++ .../gecode_yap_cc_init_auto_generated.icc | 709 +++ packages/gecode/4.2.0/gecode-version.txt | 1 + .../4.2.0/gecode_yap_auto_generated.yap | 3516 +++++++++++ .../gecode_yap_cc_forward_auto_generated.icc | 28 + .../gecode_yap_cc_impl_auto_generated.icc | 5232 +++++++++++++++++ .../gecode_yap_cc_init_auto_generated.icc | 640 ++ packages/gecode/DOC.txt | 189 + packages/gecode/Makefile.in | 78 + packages/gecode/Makefile.sav | 34 + packages/gecode/README | 12 + packages/gecode/clp_examples/3jugs.yap | 129 + packages/gecode/clp_examples/photo.yap | 68 + packages/gecode/clp_examples/queens.yap | 38 + .../gecode/clp_examples/send_more_money.yap | 34 + .../gecode/clp_examples/send_most_money.yap | 36 + packages/gecode/clp_examples/sudoku.yap | 79 + packages/gecode/clp_examples/test.yap | Bin 0 -> 2807 bytes packages/gecode/clpfd.yap | 1143 ++++ packages/gecode/configure.in | 82 + packages/gecode/dev/Makefile | 5 + packages/gecode/dev/code-generator.py | 717 +++ packages/gecode/dev/extractor/Doxyfile.in | 1716 ++++++ packages/gecode/dev/extractor/Makefile | 36 + packages/gecode/dev/extractor/README | 2 + .../gecode/dev/extractor/extract-enums.xsl | 31 + .../dev/extractor/extract-prototypes.xsl | 21 + packages/gecode/dev/extractor/gecodedir.hh | 1 + packages/gecode/dev/extractor/notice.hh | 3 + packages/gecode/dev/extractor/notice.py | 3 + packages/gecode/dev/gecode-enums-3.6.0.py | 113 + packages/gecode/dev/gecode-enums-3.7.0.py | 113 + packages/gecode/dev/gecode-enums-3.7.1.py | 113 + packages/gecode/dev/gecode-enums-3.7.2.py | 113 + packages/gecode/dev/gecode-enums-3.7.3.py | 113 + packages/gecode/dev/gecode-enums-4.0.0.py | 119 + packages/gecode/dev/gecode-enums-4.2.0.py | 95 + .../gecode/dev/gecode-prototypes-3.6.0.hh | 209 + .../gecode/dev/gecode-prototypes-3.7.0.hh | 221 + .../gecode/dev/gecode-prototypes-3.7.1.hh | 221 + .../gecode/dev/gecode-prototypes-3.7.2.hh | 221 + .../gecode/dev/gecode-prototypes-3.7.3.hh | 221 + .../gecode/dev/gecode-prototypes-4.0.0.hh | 222 + .../gecode/dev/gecode-prototypes-4.2.0.hh | 280 + packages/gecode/disjunctor.hh | 156 + packages/gecode/disjunctor.icc | 380 ++ packages/gecode/disjunctor1.yap | 37 + packages/gecode/disjunctor2.yap | 37 + packages/gecode/examples/photo.yap | 80 + packages/gecode/examples/queens.yap | 67 + packages/gecode/examples/send_more_money.yap | 41 + packages/gecode/examples/send_most_money.yap | 45 + packages/gecode/gecode3-common.icc | 358 ++ packages/gecode/gecode3_yap.cc | 1183 ++++ packages/gecode/gecode3_yap_hand_written.yap | 848 +++ packages/gecode/gecode4-common.icc | 413 ++ packages/gecode/gecode4_yap_hand_written.yap | 1094 ++++ 85 files changed, 68816 insertions(+) create mode 100644 packages/gecode/3.6.0/gecode-version.txt create mode 100644 packages/gecode/3.6.0/gecode_yap_auto_generated.yap create mode 100644 packages/gecode/3.6.0/gecode_yap_cc_forward_auto_generated.icc create mode 100644 packages/gecode/3.6.0/gecode_yap_cc_impl_auto_generated.icc create mode 100644 packages/gecode/3.6.0/gecode_yap_cc_init_auto_generated.icc create mode 100644 packages/gecode/3.7.0/gecode-version.txt create mode 100644 packages/gecode/3.7.0/gecode_yap_auto_generated.yap create mode 100644 packages/gecode/3.7.0/gecode_yap_cc_forward_auto_generated.icc create mode 100644 packages/gecode/3.7.0/gecode_yap_cc_impl_auto_generated.icc create mode 100644 packages/gecode/3.7.0/gecode_yap_cc_init_auto_generated.icc create mode 100644 packages/gecode/3.7.1/gecode-version.txt create mode 100644 packages/gecode/3.7.1/gecode_yap_auto_generated.yap create mode 100644 packages/gecode/3.7.1/gecode_yap_cc_forward_auto_generated.icc create mode 100644 packages/gecode/3.7.1/gecode_yap_cc_impl_auto_generated.icc create mode 100644 packages/gecode/3.7.1/gecode_yap_cc_init_auto_generated.icc create mode 100644 packages/gecode/3.7.2/gecode-version.txt create mode 100644 packages/gecode/3.7.2/gecode_yap_auto_generated.yap create mode 100644 packages/gecode/3.7.2/gecode_yap_cc_forward_auto_generated.icc create mode 100644 packages/gecode/3.7.2/gecode_yap_cc_impl_auto_generated.icc create mode 100644 packages/gecode/3.7.2/gecode_yap_cc_init_auto_generated.icc create mode 100644 packages/gecode/3.7.3/gecode-version.txt create mode 100644 packages/gecode/3.7.3/gecode_yap_auto_generated.yap create mode 100644 packages/gecode/3.7.3/gecode_yap_cc_forward_auto_generated.icc create mode 100644 packages/gecode/3.7.3/gecode_yap_cc_impl_auto_generated.icc create mode 100644 packages/gecode/3.7.3/gecode_yap_cc_init_auto_generated.icc create mode 100644 packages/gecode/4.0.0/gecode-version.txt create mode 100644 packages/gecode/4.0.0/gecode_yap_auto_generated.yap create mode 100644 packages/gecode/4.0.0/gecode_yap_cc_forward_auto_generated.icc create mode 100644 packages/gecode/4.0.0/gecode_yap_cc_impl_auto_generated.icc create mode 100644 packages/gecode/4.0.0/gecode_yap_cc_init_auto_generated.icc create mode 100644 packages/gecode/4.2.0/gecode-version.txt create mode 100644 packages/gecode/4.2.0/gecode_yap_auto_generated.yap create mode 100644 packages/gecode/4.2.0/gecode_yap_cc_forward_auto_generated.icc create mode 100644 packages/gecode/4.2.0/gecode_yap_cc_impl_auto_generated.icc create mode 100644 packages/gecode/4.2.0/gecode_yap_cc_init_auto_generated.icc create mode 100644 packages/gecode/DOC.txt create mode 100644 packages/gecode/Makefile.in create mode 100644 packages/gecode/Makefile.sav create mode 100644 packages/gecode/README create mode 100644 packages/gecode/clp_examples/3jugs.yap create mode 100644 packages/gecode/clp_examples/photo.yap create mode 100644 packages/gecode/clp_examples/queens.yap create mode 100644 packages/gecode/clp_examples/send_more_money.yap create mode 100644 packages/gecode/clp_examples/send_most_money.yap create mode 100644 packages/gecode/clp_examples/sudoku.yap create mode 100644 packages/gecode/clp_examples/test.yap create mode 100644 packages/gecode/clpfd.yap create mode 100644 packages/gecode/configure.in create mode 100644 packages/gecode/dev/Makefile create mode 100644 packages/gecode/dev/code-generator.py create mode 100644 packages/gecode/dev/extractor/Doxyfile.in create mode 100644 packages/gecode/dev/extractor/Makefile create mode 100644 packages/gecode/dev/extractor/README create mode 100644 packages/gecode/dev/extractor/extract-enums.xsl create mode 100644 packages/gecode/dev/extractor/extract-prototypes.xsl create mode 100644 packages/gecode/dev/extractor/gecodedir.hh create mode 100644 packages/gecode/dev/extractor/notice.hh create mode 100644 packages/gecode/dev/extractor/notice.py create mode 100644 packages/gecode/dev/gecode-enums-3.6.0.py create mode 100644 packages/gecode/dev/gecode-enums-3.7.0.py create mode 100644 packages/gecode/dev/gecode-enums-3.7.1.py create mode 100644 packages/gecode/dev/gecode-enums-3.7.2.py create mode 100644 packages/gecode/dev/gecode-enums-3.7.3.py create mode 100644 packages/gecode/dev/gecode-enums-4.0.0.py create mode 100644 packages/gecode/dev/gecode-enums-4.2.0.py create mode 100644 packages/gecode/dev/gecode-prototypes-3.6.0.hh create mode 100644 packages/gecode/dev/gecode-prototypes-3.7.0.hh create mode 100644 packages/gecode/dev/gecode-prototypes-3.7.1.hh create mode 100644 packages/gecode/dev/gecode-prototypes-3.7.2.hh create mode 100644 packages/gecode/dev/gecode-prototypes-3.7.3.hh create mode 100644 packages/gecode/dev/gecode-prototypes-4.0.0.hh create mode 100644 packages/gecode/dev/gecode-prototypes-4.2.0.hh create mode 100644 packages/gecode/disjunctor.hh create mode 100644 packages/gecode/disjunctor.icc create mode 100644 packages/gecode/disjunctor1.yap create mode 100644 packages/gecode/disjunctor2.yap create mode 100644 packages/gecode/examples/photo.yap create mode 100644 packages/gecode/examples/queens.yap create mode 100644 packages/gecode/examples/send_more_money.yap create mode 100644 packages/gecode/examples/send_most_money.yap create mode 100644 packages/gecode/gecode3-common.icc create mode 100644 packages/gecode/gecode3_yap.cc create mode 100644 packages/gecode/gecode3_yap_hand_written.yap create mode 100644 packages/gecode/gecode4-common.icc create mode 100644 packages/gecode/gecode4_yap_hand_written.yap diff --git a/packages/gecode/3.6.0/gecode-version.txt b/packages/gecode/3.6.0/gecode-version.txt new file mode 100644 index 000000000..40c341bdc --- /dev/null +++ b/packages/gecode/3.6.0/gecode-version.txt @@ -0,0 +1 @@ +3.6.0 diff --git a/packages/gecode/3.6.0/gecode_yap_auto_generated.yap b/packages/gecode/3.6.0/gecode_yap_auto_generated.yap new file mode 100644 index 000000000..0b514c66f --- /dev/null +++ b/packages/gecode/3.6.0/gecode_yap_auto_generated.yap @@ -0,0 +1,2836 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +is_IntRelType_('IRT_EQ'). +is_IntRelType_('IRT_NQ'). +is_IntRelType_('IRT_LQ'). +is_IntRelType_('IRT_LE'). +is_IntRelType_('IRT_GQ'). +is_IntRelType_('IRT_GR'). + +is_IntRelType_('IRT_EQ','IRT_EQ'). +is_IntRelType_('IRT_NQ','IRT_NQ'). +is_IntRelType_('IRT_LQ','IRT_LQ'). +is_IntRelType_('IRT_LE','IRT_LE'). +is_IntRelType_('IRT_GQ','IRT_GQ'). +is_IntRelType_('IRT_GR','IRT_GR'). + +is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). +is_IntRelType(X) :- is_IntRelType(X,_). + +is_BoolOpType_('BOT_AND'). +is_BoolOpType_('BOT_OR'). +is_BoolOpType_('BOT_IMP'). +is_BoolOpType_('BOT_EQV'). +is_BoolOpType_('BOT_XOR'). + +is_BoolOpType_('BOT_AND','BOT_AND'). +is_BoolOpType_('BOT_OR','BOT_OR'). +is_BoolOpType_('BOT_IMP','BOT_IMP'). +is_BoolOpType_('BOT_EQV','BOT_EQV'). +is_BoolOpType_('BOT_XOR','BOT_XOR'). + +is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). +is_BoolOpType(X) :- is_BoolOpType(X,_). + +is_IntConLevel_('ICL_VAL'). +is_IntConLevel_('ICL_BND'). +is_IntConLevel_('ICL_DOM'). +is_IntConLevel_('ICL_DEF'). + +is_IntConLevel_('ICL_VAL','ICL_VAL'). +is_IntConLevel_('ICL_BND','ICL_BND'). +is_IntConLevel_('ICL_DOM','ICL_DOM'). +is_IntConLevel_('ICL_DEF','ICL_DEF'). + +is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). +is_IntConLevel(X) :- is_IntConLevel(X,_). + +is_TaskType_('TT_FIXP'). +is_TaskType_('TT_FIXS'). +is_TaskType_('TT_FIXE'). + +is_TaskType_('TT_FIXP','TT_FIXP'). +is_TaskType_('TT_FIXS','TT_FIXS'). +is_TaskType_('TT_FIXE','TT_FIXE'). + +is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). +is_TaskType(X) :- is_TaskType(X,_). + +is_ExtensionalPropKind_('EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY'). + +is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). + +is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). +is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). + +is_IntVarBranch_('INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). +is_IntVarBranch(X) :- is_IntVarBranch(X,_). + +is_IntValBranch_('INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX'). + +is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). + +is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). +is_IntValBranch(X) :- is_IntValBranch(X,_). + +is_IntAssign_('INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND'). + +is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). + +is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). +is_IntAssign(X) :- is_IntAssign(X,_). + +is_SetRelType_('SRT_EQ'). +is_SetRelType_('SRT_NQ'). +is_SetRelType_('SRT_SUB'). +is_SetRelType_('SRT_SUP'). +is_SetRelType_('SRT_DISJ'). +is_SetRelType_('SRT_CMPL'). + +is_SetRelType_('SRT_EQ','SRT_EQ'). +is_SetRelType_('SRT_NQ','SRT_NQ'). +is_SetRelType_('SRT_SUB','SRT_SUB'). +is_SetRelType_('SRT_SUP','SRT_SUP'). +is_SetRelType_('SRT_DISJ','SRT_DISJ'). +is_SetRelType_('SRT_CMPL','SRT_CMPL'). + +is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). +is_SetRelType(X) :- is_SetRelType(X,_). + +is_SetOpType_('SOT_UNION'). +is_SetOpType_('SOT_DUNION'). +is_SetOpType_('SOT_INTER'). +is_SetOpType_('SOT_MINUS'). + +is_SetOpType_('SOT_UNION','SOT_UNION'). +is_SetOpType_('SOT_DUNION','SOT_DUNION'). +is_SetOpType_('SOT_INTER','SOT_INTER'). +is_SetOpType_('SOT_MINUS','SOT_MINUS'). + +is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). +is_SetOpType(X) :- is_SetOpType(X,_). + +is_SetVarBranch_('SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). +is_SetVarBranch(X) :- is_SetVarBranch(X,_). + +is_SetValBranch_('SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC'). + +is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). + +is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). +is_SetValBranch(X) :- is_SetValBranch(X,_). + +is_SetAssign_('SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC'). + +is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). + +is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). +is_SetAssign(X) :- is_SetAssign(X,_). + +unary(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_333(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_329(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). + +sqr(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqr_321(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). + +convex(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_convex_51(Y0,Y1,Y2) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). + +nooverlap(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_nooverlap_226(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). + +assign(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_4(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_3(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_5(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_7(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_6(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_8(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). + +element(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_154(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_148(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_146(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_153(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_161(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_164(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_170(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_162(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> gecode_constraint_sequence_314(Y0,Y1) + ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). + +notMax(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMax_232(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). + +unary(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_unary_326(Y0,Y1,Y2) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_circuit_45(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_134(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_133(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_129(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_127(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntSet(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). + +channel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_32(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> gecode_constraint_nooverlap_228(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; (is_IntConLevel(X7,Y7) + -> gecode_constraint_nooverlap_231(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> gecode_constraint_element_150(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_152(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_168(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_BoolVar(X6,Y6) + -> gecode_constraint_element_166(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +max(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_208(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_212(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). + +unshare(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_unshare_338(Y0,Y1) + ; (is_BoolVarArgs(X1,Y1) + -> gecode_constraint_unshare_336(Y0,Y1) + ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). + +path(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_path_244(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_path_243(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). + +mult(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mult_222(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). + +clause(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). + +precede(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_precede_249(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). + +distinct(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_distinct_116(Y0,Y1) + ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). + +mod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mod_221(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). + +cardinality(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_cardinality_18(Y0,Y1,Y2) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). + +atmostOne(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). + +channelSorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_channelSorted_33(Y0,Y1,Y2) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_178(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_182(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). + +circuit(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_circuit_42(Y0,Y1) + ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). + +rel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_264(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_267(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_260(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_263(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_rel_258(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_256(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_275(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_271(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_269(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_297(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_296(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_255(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_253(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). + +min(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_min_216(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_min_215(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_min_219(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). + +cardinality(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). + +count(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_65(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_62(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_59(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_56(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). + +sqrt(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqrt_322(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_101(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +binpacking(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). + +linear(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +abs(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). + +convex(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> gecode_constraint_convex_50(Y0,Y1) + ; throw(gecode_argument_error(convex(X0,X1),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1),arg=1))). + +div(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_div_118(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). + +rel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntSet(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_276(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_265(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_261(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_259(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_257(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_304(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_305(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). + +weights(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_weights_340(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_max_211(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_path_239(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +unary(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_unary_334(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_unary_330(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_unary_324(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_unary_327(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). + +sorted(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_sorted_317(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_34(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). + +dom(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_137(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) + ; (is_IntSet(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_dom_128(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_126(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_125(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_123(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3) + ; (is_IntSet(X3,Y3) + -> gecode_constraint_dom_140(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). + +abs(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_abs_1(Y0,Y1,Y2) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). + +channel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). + +rel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_280(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_272(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_path_242(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). + +branch(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarBranch(X2,Y2) + -> (is_SetValBranch(X3,Y3) + -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). + +mult(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mult_223(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). + +clause(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_clause_46(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). + +precede(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_251(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_248(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_precede_247(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). + +channel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_78(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_75(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +distinct(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_distinct_117(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_distinct_114(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). + +mod(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mod_220(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). + +sqr(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqr_320(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_313(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_311(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_240(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_path_237(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_234(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +divmod(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_divmod_121(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). + +sorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_sorted_318(Y0,Y1,Y2) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_circuit_44(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_circuit_43(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). + +channel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_channel_31(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> gecode_constraint_channel_28(Y0,Y1,Y2) + ; (is_IntVarArgs(X2,Y2) + -> gecode_constraint_channel_26(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_22(Y0,Y1,Y2) + ; (is_SetVar(X2,Y2) + -> gecode_constraint_channel_25(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_20(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_52(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_66(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_68(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_61(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_57(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_70(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_100(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +binpacking(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). + +linear(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_177(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_181(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_184(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> gecode_constraint_nooverlap_230(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_nooverlap_225(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +div(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_div_119(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_max_210(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_max_209(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_max_213(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_241(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> gecode_constraint_path_238(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_235(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +unary(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_332(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_335(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_328(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_331(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_325(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). + +sorted(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_sorted_316(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_sorted_319(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_157(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_151(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_169(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_167(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_159(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_149(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_147(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_174(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_165(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_163(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). + +sequence(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_sequence_315(Y0,Y1,Y2) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +precede(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_250(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_246(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_74(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_77(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). + +distinct(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_distinct_115(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_214(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_218(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). + +sqrt(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqrt_323(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_312(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_310(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). + +unshare(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_339(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_337(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_path_245(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_path_236(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). + +divmod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_divmod_120(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_nooverlap_229(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +cumulative(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_76(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). + +count(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_67(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_69(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). + +notMin(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMin_233(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +branch(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_16(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_12(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetValBranch(X2,Y2) + -> gecode_constraint_branch_17(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). + +dom(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_136(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_130(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_124(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_122(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_176(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_179(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_180(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_183(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_nooverlap_224(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_nooverlap_227(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). + +element(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_175(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). + +rel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_266(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_262(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_274(Y0,Y1,Y2,Y3) + ; (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_rel_270(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_268(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_273(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3) + ; (is_IntVarArgs(X3,Y3) + -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_254(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_252(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_min_217(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). + +count(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_count_64(Y0,Y1,Y2) + ; (is_IntSetArgs(X2,Y2) + -> gecode_constraint_count_58(Y0,Y1,Y2) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). + diff --git a/packages/gecode/3.6.0/gecode_yap_cc_forward_auto_generated.icc b/packages/gecode/3.6.0/gecode_yap_cc_forward_auto_generated.icc new file mode 100644 index 000000000..67781a39b --- /dev/null +++ b/packages/gecode/3.6.0/gecode_yap_cc_forward_auto_generated.icc @@ -0,0 +1,31 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static IntRelType gecode_IntRelType_from_term(YAP_Term); +static BoolOpType gecode_BoolOpType_from_term(YAP_Term); +static IntConLevel gecode_IntConLevel_from_term(YAP_Term); +static TaskType gecode_TaskType_from_term(YAP_Term); +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); +static IntValBranch gecode_IntValBranch_from_term(YAP_Term); +static IntAssign gecode_IntAssign_from_term(YAP_Term); +static SetRelType gecode_SetRelType_from_term(YAP_Term); +static SetOpType gecode_SetOpType_from_term(YAP_Term); +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); +static SetValBranch gecode_SetValBranch_from_term(YAP_Term); +static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/packages/gecode/3.6.0/gecode_yap_cc_impl_auto_generated.icc b/packages/gecode/3.6.0/gecode_yap_cc_impl_auto_generated.icc new file mode 100644 index 000000000..f7054e6bc --- /dev/null +++ b/packages/gecode/3.6.0/gecode_yap_cc_impl_auto_generated.icc @@ -0,0 +1,4051 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static YAP_Term gecode_IRT_EQ; +static YAP_Term gecode_IRT_NQ; +static YAP_Term gecode_IRT_LQ; +static YAP_Term gecode_IRT_LE; +static YAP_Term gecode_IRT_GQ; +static YAP_Term gecode_IRT_GR; + +static IntRelType gecode_IntRelType_from_term(YAP_Term X) +{ + if (X==gecode_IRT_EQ) return IRT_EQ; + if (X==gecode_IRT_NQ) return IRT_NQ; + if (X==gecode_IRT_LQ) return IRT_LQ; + if (X==gecode_IRT_LE) return IRT_LE; + if (X==gecode_IRT_GQ) return IRT_GQ; + if (X==gecode_IRT_GR) return IRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_BOT_AND; +static YAP_Term gecode_BOT_OR; +static YAP_Term gecode_BOT_IMP; +static YAP_Term gecode_BOT_EQV; +static YAP_Term gecode_BOT_XOR; + +static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) +{ + if (X==gecode_BOT_AND) return BOT_AND; + if (X==gecode_BOT_OR) return BOT_OR; + if (X==gecode_BOT_IMP) return BOT_IMP; + if (X==gecode_BOT_EQV) return BOT_EQV; + if (X==gecode_BOT_XOR) return BOT_XOR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_ICL_VAL; +static YAP_Term gecode_ICL_BND; +static YAP_Term gecode_ICL_DOM; +static YAP_Term gecode_ICL_DEF; + +static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) +{ + if (X==gecode_ICL_VAL) return ICL_VAL; + if (X==gecode_ICL_BND) return ICL_BND; + if (X==gecode_ICL_DOM) return ICL_DOM; + if (X==gecode_ICL_DEF) return ICL_DEF; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_TT_FIXP; +static YAP_Term gecode_TT_FIXS; +static YAP_Term gecode_TT_FIXE; + +static TaskType gecode_TaskType_from_term(YAP_Term X) +{ + if (X==gecode_TT_FIXP) return TT_FIXP; + if (X==gecode_TT_FIXS) return TT_FIXS; + if (X==gecode_TT_FIXE) return TT_FIXE; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_EPK_DEF; +static YAP_Term gecode_EPK_SPEED; +static YAP_Term gecode_EPK_MEMORY; + +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) +{ + if (X==gecode_EPK_DEF) return EPK_DEF; + if (X==gecode_EPK_SPEED) return EPK_SPEED; + if (X==gecode_EPK_MEMORY) return EPK_MEMORY; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAR_NONE; +static YAP_Term gecode_INT_VAR_RND; +static YAP_Term gecode_INT_VAR_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_AFC_MIN; +static YAP_Term gecode_INT_VAR_AFC_MAX; +static YAP_Term gecode_INT_VAR_MIN_MIN; +static YAP_Term gecode_INT_VAR_MIN_MAX; +static YAP_Term gecode_INT_VAR_MAX_MIN; +static YAP_Term gecode_INT_VAR_MAX_MAX; +static YAP_Term gecode_INT_VAR_SIZE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; + +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; + if (X==gecode_INT_VAR_RND) return INT_VAR_RND; + if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; + if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; + if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; + if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; + if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; + if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; + if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; + if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; + if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; + if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; + if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; + if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; + if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; + if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; + if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; + if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; + if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; + if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAL_MIN; +static YAP_Term gecode_INT_VAL_MED; +static YAP_Term gecode_INT_VAL_MAX; +static YAP_Term gecode_INT_VAL_RND; +static YAP_Term gecode_INT_VAL_SPLIT_MIN; +static YAP_Term gecode_INT_VAL_SPLIT_MAX; +static YAP_Term gecode_INT_VAL_RANGE_MIN; +static YAP_Term gecode_INT_VAL_RANGE_MAX; +static YAP_Term gecode_INT_VALUES_MIN; +static YAP_Term gecode_INT_VALUES_MAX; + +static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; + if (X==gecode_INT_VAL_MED) return INT_VAL_MED; + if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; + if (X==gecode_INT_VAL_RND) return INT_VAL_RND; + if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; + if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; + if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; + if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; + if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; + if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_ASSIGN_MIN; +static YAP_Term gecode_INT_ASSIGN_MED; +static YAP_Term gecode_INT_ASSIGN_MAX; +static YAP_Term gecode_INT_ASSIGN_RND; + +static IntAssign gecode_IntAssign_from_term(YAP_Term X) +{ + if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; + if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; + if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; + if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SRT_EQ; +static YAP_Term gecode_SRT_NQ; +static YAP_Term gecode_SRT_SUB; +static YAP_Term gecode_SRT_SUP; +static YAP_Term gecode_SRT_DISJ; +static YAP_Term gecode_SRT_CMPL; + +static SetRelType gecode_SetRelType_from_term(YAP_Term X) +{ + if (X==gecode_SRT_EQ) return SRT_EQ; + if (X==gecode_SRT_NQ) return SRT_NQ; + if (X==gecode_SRT_SUB) return SRT_SUB; + if (X==gecode_SRT_SUP) return SRT_SUP; + if (X==gecode_SRT_DISJ) return SRT_DISJ; + if (X==gecode_SRT_CMPL) return SRT_CMPL; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SOT_UNION; +static YAP_Term gecode_SOT_DUNION; +static YAP_Term gecode_SOT_INTER; +static YAP_Term gecode_SOT_MINUS; + +static SetOpType gecode_SetOpType_from_term(YAP_Term X) +{ + if (X==gecode_SOT_UNION) return SOT_UNION; + if (X==gecode_SOT_DUNION) return SOT_DUNION; + if (X==gecode_SOT_INTER) return SOT_INTER; + if (X==gecode_SOT_MINUS) return SOT_MINUS; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAR_NONE; +static YAP_Term gecode_SET_VAR_RND; +static YAP_Term gecode_SET_VAR_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_AFC_MIN; +static YAP_Term gecode_SET_VAR_AFC_MAX; +static YAP_Term gecode_SET_VAR_MIN_MIN; +static YAP_Term gecode_SET_VAR_MIN_MAX; +static YAP_Term gecode_SET_VAR_MAX_MIN; +static YAP_Term gecode_SET_VAR_MAX_MAX; +static YAP_Term gecode_SET_VAR_SIZE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; + +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; + if (X==gecode_SET_VAR_RND) return SET_VAR_RND; + if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; + if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; + if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; + if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; + if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; + if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; + if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; + if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; + if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; + if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; + if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; + if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; + if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; + if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAL_MIN_INC; +static YAP_Term gecode_SET_VAL_MIN_EXC; +static YAP_Term gecode_SET_VAL_MED_INC; +static YAP_Term gecode_SET_VAL_MED_EXC; +static YAP_Term gecode_SET_VAL_MAX_INC; +static YAP_Term gecode_SET_VAL_MAX_EXC; +static YAP_Term gecode_SET_VAL_RND_INC; +static YAP_Term gecode_SET_VAL_RND_EXC; + +static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; + if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; + if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; + if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; + if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; + if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; + if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; + if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_ASSIGN_MIN_INC; +static YAP_Term gecode_SET_ASSIGN_MIN_EXC; +static YAP_Term gecode_SET_ASSIGN_MED_INC; +static YAP_Term gecode_SET_ASSIGN_MED_EXC; +static YAP_Term gecode_SET_ASSIGN_MAX_INC; +static YAP_Term gecode_SET_ASSIGN_MAX_EXC; +static YAP_Term gecode_SET_ASSIGN_RND_INC; +static YAP_Term gecode_SET_ASSIGN_RND_EXC; + +static SetAssign gecode_SetAssign_from_term(YAP_Term X) +{ + if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; + if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; + if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; + if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; + if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; + if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; + if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; + if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static int gecode_constraint_unary_333(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unary_329(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sqr_321(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqr(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_135(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_dom_145(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_convex_51(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + convex(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_nooverlap_226(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + nooverlap(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_assign_4(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_3(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_5(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_7(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_6(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_8(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_element_154(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_158(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_148(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_146(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_153(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_161(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_164(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_170(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_162(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_314(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + sequence(*space,X2); + return TRUE; +} + +static int gecode_constraint_notMax_232(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMax(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unary_326(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + unary(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_45(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_36(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_134(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_139(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_133(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_129(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_127(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_144(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_143(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_141(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_32(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_27(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_23(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_21(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nooverlap_228(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_nooverlap_231(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_156(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_150(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_152(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_160(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_168(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_166(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_max_208(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_max_212(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_338(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_unshare_336(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_path_244(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_243(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mult_222(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mult(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_clause_49(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_47(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_precede_249(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + precede(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_distinct_116(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + distinct(*space,X2); + return TRUE; +} + +static int gecode_constraint_mod_221(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cardinality_18(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + cardinality(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_atmostOne_9(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + atmostOne(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channelSorted_33(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channelSorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_202(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_206(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_178(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_182(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_42(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + circuit(*space,X2); + return TRUE; +} + +static int gecode_constraint_rel_264(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_267(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_260(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_263(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_258(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_256(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_275(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_271(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_269(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_299(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_297(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_283(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_285(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_279(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_286(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_289(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_290(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_293(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_296(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_307(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_309(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_255(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_253(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_min_216(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_215(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_219(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_cardinality_19(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + cardinality(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_65(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_62(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_60(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_59(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_56(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqrt_322(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqrt(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulatives_113(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_111(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_109(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_107(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_105(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_103(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_101(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_99(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_binpacking_10(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + binpacking(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_193(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_197(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_185(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_189(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_abs_2(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + abs(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_convex_50(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + convex(*space,X2); + return TRUE; +} + +static int gecode_constraint_div_118(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + div(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_287(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_291(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_276(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_277(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_265(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_261(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_259(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_257(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_302(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_303(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_304(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_305(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_weights_340(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + weights(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_211(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + max(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_239(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + path(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_unary_334(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_330(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_324(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_327(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_317(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + sorted(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_40(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_37(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_34(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_138(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_132(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_137(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_128(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_131(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_126(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_125(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_123(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_142(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_140(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_abs_1(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + abs(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_29(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_24(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_280(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_rel_272(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_242(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + path(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_14(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_13(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_15(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mult_223(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mult(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_41(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_38(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_35(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_48(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_clause_46(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_precede_251(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_248(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_247(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_30(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + channel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_82(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_85(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_78(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_81(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_75(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_94(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_97(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_90(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_93(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_87(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_distinct_117(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_distinct_114(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_mod_220(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mod(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqr_320(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqr(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sequence_313(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_sequence_311(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_240(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_237(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_234(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_divmod_121(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + divmod(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sorted_318(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + sorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_44(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_43(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_31(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_28(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_26(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_22(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_25(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_20(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_52(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_54(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_66(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_68(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_61(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_57(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_63(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_70(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_72(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulatives_112(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_110(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_108(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_106(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_104(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_102(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_100(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_98(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_binpacking_11(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + binpacking(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_201(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_205(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_177(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_181(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_192(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_195(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_196(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_199(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_184(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_187(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_188(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_191(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_230(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_nooverlap_225(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_div_119(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + div(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_210(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_209(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_213(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_path_241(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_238(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_235(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_unary_332(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_335(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_328(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_331(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_325(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sorted_316(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_319(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_157(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_151(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_169(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_167(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_155(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_159(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_149(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_147(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_174(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_172(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_165(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_171(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_163(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sequence_315(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + sequence(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_39(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + circuit(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_precede_250(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_precede_246(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_84(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_80(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_74(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_77(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_96(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_92(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_86(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_89(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_distinct_115(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + distinct(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_214(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_min_218(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sqrt_323(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqrt(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_312(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sequence_310(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unshare_339(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_337(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_245(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_path_236(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_divmod_120(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + divmod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_229(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulative_76(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulative_88(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_67(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_69(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_71(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_73(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_53(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_55(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_notMin_233(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMin(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_83(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_79(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_95(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_91(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_branch_16(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_12(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_17(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_136(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_130(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_124(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_122(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_200(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_203(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_204(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_207(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_176(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_179(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_180(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_183(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_194(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_198(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_186(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_190(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_224(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_227(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_175(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_173(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_266(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_262(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_274(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_270(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_268(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_273(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_300(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_298(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_282(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_284(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_278(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_281(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_288(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_292(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_294(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_295(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_301(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_306(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_308(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_254(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_252(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_217(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + min(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_64(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_58(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + diff --git a/packages/gecode/3.6.0/gecode_yap_cc_init_auto_generated.icc b/packages/gecode/3.6.0/gecode_yap_cc_init_auto_generated.icc new file mode 100644 index 000000000..964e0ec56 --- /dev/null +++ b/packages/gecode/3.6.0/gecode_yap_cc_init_auto_generated.icc @@ -0,0 +1,662 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); + gecode_IRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); + gecode_IRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); + gecode_IRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); + gecode_IRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); + gecode_IRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); + gecode_IRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); + gecode_BOT_AND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); + gecode_BOT_OR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); + gecode_BOT_IMP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); + gecode_BOT_EQV = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); + gecode_BOT_XOR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); + gecode_ICL_VAL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); + gecode_ICL_BND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); + gecode_ICL_DOM = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); + gecode_ICL_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); + gecode_TT_FIXP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); + gecode_TT_FIXS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); + gecode_TT_FIXE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); + gecode_EPK_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); + gecode_EPK_SPEED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); + gecode_EPK_MEMORY = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); + gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); + gecode_INT_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); + gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); + gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); + gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); + gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); + gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); + gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); + gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); + gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); + gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); + gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); + gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); + gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); + gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); + gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); + gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); + gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); + gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); + gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); + gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); + gecode_INT_VAL_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); + gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); + gecode_INT_VAL_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); + gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); + gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); + gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); + gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); + gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); + gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); + gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); + gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); + gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); + gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); + gecode_SRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); + gecode_SRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); + gecode_SRT_SUB = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); + gecode_SRT_SUP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); + gecode_SRT_DISJ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); + gecode_SRT_CMPL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); + gecode_SOT_UNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); + gecode_SOT_DUNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); + gecode_SOT_INTER = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); + gecode_SOT_MINUS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); + gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); + gecode_SET_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); + gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); + gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); + gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); + gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); + gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); + gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); + gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); + gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); + gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); + gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); + gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); + gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); + gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); + gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); + gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); + gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); + gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); + gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); + gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); + gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); + gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); + gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); + gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); + gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); + gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); + gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); + gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); + gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); + gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); + gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +YAP_UserCPredicate("gecode_constraint_unary_333", gecode_constraint_unary_333, 6); +YAP_UserCPredicate("gecode_constraint_unary_329", gecode_constraint_unary_329, 6); +YAP_UserCPredicate("gecode_constraint_sqr_321", gecode_constraint_sqr_321, 4); +YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 6); +YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 6); +YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 3); +YAP_UserCPredicate("gecode_constraint_nooverlap_226", gecode_constraint_nooverlap_226, 5); +YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); +YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); +YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); +YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); +YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); +YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); +YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 4); +YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); +YAP_UserCPredicate("gecode_constraint_element_148", gecode_constraint_element_148, 4); +YAP_UserCPredicate("gecode_constraint_element_146", gecode_constraint_element_146, 4); +YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 4); +YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 4); +YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 4); +YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 4); +YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 4); +YAP_UserCPredicate("gecode_constraint_sequence_314", gecode_constraint_sequence_314, 2); +YAP_UserCPredicate("gecode_constraint_notMax_232", gecode_constraint_notMax_232, 3); +YAP_UserCPredicate("gecode_constraint_unary_326", gecode_constraint_unary_326, 3); +YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 4); +YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 4); +YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 5); +YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 5); +YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 5); +YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 5); +YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 5); +YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 5); +YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 5); +YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 5); +YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 4); +YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); +YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); +YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); +YAP_UserCPredicate("gecode_constraint_nooverlap_228", gecode_constraint_nooverlap_228, 8); +YAP_UserCPredicate("gecode_constraint_nooverlap_231", gecode_constraint_nooverlap_231, 8); +YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 7); +YAP_UserCPredicate("gecode_constraint_element_150", gecode_constraint_element_150, 7); +YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 7); +YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 7); +YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 7); +YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 7); +YAP_UserCPredicate("gecode_constraint_max_208", gecode_constraint_max_208, 3); +YAP_UserCPredicate("gecode_constraint_max_212", gecode_constraint_max_212, 3); +YAP_UserCPredicate("gecode_constraint_unshare_338", gecode_constraint_unshare_338, 2); +YAP_UserCPredicate("gecode_constraint_unshare_336", gecode_constraint_unshare_336, 2); +YAP_UserCPredicate("gecode_constraint_path_244", gecode_constraint_path_244, 5); +YAP_UserCPredicate("gecode_constraint_path_243", gecode_constraint_path_243, 5); +YAP_UserCPredicate("gecode_constraint_mult_222", gecode_constraint_mult_222, 4); +YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 6); +YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 6); +YAP_UserCPredicate("gecode_constraint_precede_249", gecode_constraint_precede_249, 5); +YAP_UserCPredicate("gecode_constraint_distinct_116", gecode_constraint_distinct_116, 2); +YAP_UserCPredicate("gecode_constraint_mod_221", gecode_constraint_mod_221, 5); +YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); +YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); +YAP_UserCPredicate("gecode_constraint_channelSorted_33", gecode_constraint_channelSorted_33, 3); +YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 4); +YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 4); +YAP_UserCPredicate("gecode_constraint_linear_178", gecode_constraint_linear_178, 4); +YAP_UserCPredicate("gecode_constraint_linear_182", gecode_constraint_linear_182, 4); +YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 2); +YAP_UserCPredicate("gecode_constraint_rel_264", gecode_constraint_rel_264, 5); +YAP_UserCPredicate("gecode_constraint_rel_267", gecode_constraint_rel_267, 5); +YAP_UserCPredicate("gecode_constraint_rel_260", gecode_constraint_rel_260, 5); +YAP_UserCPredicate("gecode_constraint_rel_263", gecode_constraint_rel_263, 5); +YAP_UserCPredicate("gecode_constraint_rel_258", gecode_constraint_rel_258, 5); +YAP_UserCPredicate("gecode_constraint_rel_256", gecode_constraint_rel_256, 5); +YAP_UserCPredicate("gecode_constraint_rel_275", gecode_constraint_rel_275, 5); +YAP_UserCPredicate("gecode_constraint_rel_271", gecode_constraint_rel_271, 5); +YAP_UserCPredicate("gecode_constraint_rel_269", gecode_constraint_rel_269, 5); +YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 5); +YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 5); +YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 5); +YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 5); +YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 5); +YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 5); +YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 5); +YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 5); +YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 5); +YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 5); +YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 5); +YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 5); +YAP_UserCPredicate("gecode_constraint_rel_255", gecode_constraint_rel_255, 5); +YAP_UserCPredicate("gecode_constraint_rel_253", gecode_constraint_rel_253, 5); +YAP_UserCPredicate("gecode_constraint_min_216", gecode_constraint_min_216, 4); +YAP_UserCPredicate("gecode_constraint_min_215", gecode_constraint_min_215, 4); +YAP_UserCPredicate("gecode_constraint_min_219", gecode_constraint_min_219, 4); +YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); +YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 4); +YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 4); +YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); +YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 4); +YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 4); +YAP_UserCPredicate("gecode_constraint_sqrt_322", gecode_constraint_sqrt_322, 3); +YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_101", gecode_constraint_cumulatives_101, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_99", gecode_constraint_cumulatives_99, 9); +YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); +YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 7); +YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 7); +YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 7); +YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 7); +YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); +YAP_UserCPredicate("gecode_constraint_convex_50", gecode_constraint_convex_50, 2); +YAP_UserCPredicate("gecode_constraint_div_118", gecode_constraint_div_118, 4); +YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 6); +YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 6); +YAP_UserCPredicate("gecode_constraint_rel_276", gecode_constraint_rel_276, 6); +YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 6); +YAP_UserCPredicate("gecode_constraint_rel_265", gecode_constraint_rel_265, 6); +YAP_UserCPredicate("gecode_constraint_rel_261", gecode_constraint_rel_261, 6); +YAP_UserCPredicate("gecode_constraint_rel_259", gecode_constraint_rel_259, 6); +YAP_UserCPredicate("gecode_constraint_rel_257", gecode_constraint_rel_257, 6); +YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 6); +YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 6); +YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 6); +YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 6); +YAP_UserCPredicate("gecode_constraint_weights_340", gecode_constraint_weights_340, 5); +YAP_UserCPredicate("gecode_constraint_max_211", gecode_constraint_max_211, 5); +YAP_UserCPredicate("gecode_constraint_path_239", gecode_constraint_path_239, 9); +YAP_UserCPredicate("gecode_constraint_unary_334", gecode_constraint_unary_334, 4); +YAP_UserCPredicate("gecode_constraint_unary_330", gecode_constraint_unary_330, 4); +YAP_UserCPredicate("gecode_constraint_unary_324", gecode_constraint_unary_324, 4); +YAP_UserCPredicate("gecode_constraint_unary_327", gecode_constraint_unary_327, 4); +YAP_UserCPredicate("gecode_constraint_sorted_317", gecode_constraint_sorted_317, 5); +YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 5); +YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 5); +YAP_UserCPredicate("gecode_constraint_circuit_34", gecode_constraint_circuit_34, 5); +YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 4); +YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 4); +YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 4); +YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 4); +YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 4); +YAP_UserCPredicate("gecode_constraint_dom_126", gecode_constraint_dom_126, 4); +YAP_UserCPredicate("gecode_constraint_dom_125", gecode_constraint_dom_125, 4); +YAP_UserCPredicate("gecode_constraint_dom_123", gecode_constraint_dom_123, 4); +YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 4); +YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 4); +YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); +YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); +YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); +YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 3); +YAP_UserCPredicate("gecode_constraint_rel_272", gecode_constraint_rel_272, 3); +YAP_UserCPredicate("gecode_constraint_path_242", gecode_constraint_path_242, 4); +YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); +YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); +YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); +YAP_UserCPredicate("gecode_constraint_mult_223", gecode_constraint_mult_223, 5); +YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 6); +YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 6); +YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 6); +YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 5); +YAP_UserCPredicate("gecode_constraint_clause_46", gecode_constraint_clause_46, 5); +YAP_UserCPredicate("gecode_constraint_precede_251", gecode_constraint_precede_251, 4); +YAP_UserCPredicate("gecode_constraint_precede_248", gecode_constraint_precede_248, 4); +YAP_UserCPredicate("gecode_constraint_precede_247", gecode_constraint_precede_247, 4); +YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_78", gecode_constraint_cumulative_78, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_75", gecode_constraint_cumulative_75, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 7); +YAP_UserCPredicate("gecode_constraint_distinct_117", gecode_constraint_distinct_117, 3); +YAP_UserCPredicate("gecode_constraint_distinct_114", gecode_constraint_distinct_114, 3); +YAP_UserCPredicate("gecode_constraint_mod_220", gecode_constraint_mod_220, 4); +YAP_UserCPredicate("gecode_constraint_sqr_320", gecode_constraint_sqr_320, 3); +YAP_UserCPredicate("gecode_constraint_sequence_313", gecode_constraint_sequence_313, 7); +YAP_UserCPredicate("gecode_constraint_sequence_311", gecode_constraint_sequence_311, 7); +YAP_UserCPredicate("gecode_constraint_path_240", gecode_constraint_path_240, 7); +YAP_UserCPredicate("gecode_constraint_path_237", gecode_constraint_path_237, 7); +YAP_UserCPredicate("gecode_constraint_path_234", gecode_constraint_path_234, 7); +YAP_UserCPredicate("gecode_constraint_divmod_121", gecode_constraint_divmod_121, 6); +YAP_UserCPredicate("gecode_constraint_sorted_318", gecode_constraint_sorted_318, 3); +YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); +YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 3); +YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); +YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); +YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); +YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); +YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); +YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); +YAP_UserCPredicate("gecode_constraint_count_52", gecode_constraint_count_52, 5); +YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 5); +YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 5); +YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 5); +YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 5); +YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 5); +YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 5); +YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 5); +YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 5); +YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_102", gecode_constraint_cumulatives_102, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_100", gecode_constraint_cumulatives_100, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_98", gecode_constraint_cumulatives_98, 8); +YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); +YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 6); +YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 6); +YAP_UserCPredicate("gecode_constraint_linear_177", gecode_constraint_linear_177, 6); +YAP_UserCPredicate("gecode_constraint_linear_181", gecode_constraint_linear_181, 6); +YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); +YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); +YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 6); +YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); +YAP_UserCPredicate("gecode_constraint_linear_184", gecode_constraint_linear_184, 6); +YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 6); +YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 6); +YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_230", gecode_constraint_nooverlap_230, 7); +YAP_UserCPredicate("gecode_constraint_nooverlap_225", gecode_constraint_nooverlap_225, 7); +YAP_UserCPredicate("gecode_constraint_div_119", gecode_constraint_div_119, 5); +YAP_UserCPredicate("gecode_constraint_max_210", gecode_constraint_max_210, 4); +YAP_UserCPredicate("gecode_constraint_max_209", gecode_constraint_max_209, 4); +YAP_UserCPredicate("gecode_constraint_max_213", gecode_constraint_max_213, 4); +YAP_UserCPredicate("gecode_constraint_path_241", gecode_constraint_path_241, 8); +YAP_UserCPredicate("gecode_constraint_path_238", gecode_constraint_path_238, 8); +YAP_UserCPredicate("gecode_constraint_path_235", gecode_constraint_path_235, 8); +YAP_UserCPredicate("gecode_constraint_unary_332", gecode_constraint_unary_332, 5); +YAP_UserCPredicate("gecode_constraint_unary_335", gecode_constraint_unary_335, 5); +YAP_UserCPredicate("gecode_constraint_unary_328", gecode_constraint_unary_328, 5); +YAP_UserCPredicate("gecode_constraint_unary_331", gecode_constraint_unary_331, 5); +YAP_UserCPredicate("gecode_constraint_unary_325", gecode_constraint_unary_325, 5); +YAP_UserCPredicate("gecode_constraint_sorted_316", gecode_constraint_sorted_316, 4); +YAP_UserCPredicate("gecode_constraint_sorted_319", gecode_constraint_sorted_319, 4); +YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 8); +YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 8); +YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 8); +YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 8); +YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 5); +YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 5); +YAP_UserCPredicate("gecode_constraint_element_149", gecode_constraint_element_149, 5); +YAP_UserCPredicate("gecode_constraint_element_147", gecode_constraint_element_147, 5); +YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 5); +YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 5); +YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 5); +YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 5); +YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 5); +YAP_UserCPredicate("gecode_constraint_sequence_315", gecode_constraint_sequence_315, 3); +YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 7); +YAP_UserCPredicate("gecode_constraint_precede_250", gecode_constraint_precede_250, 3); +YAP_UserCPredicate("gecode_constraint_precede_246", gecode_constraint_precede_246, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_74", gecode_constraint_cumulative_74, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_77", gecode_constraint_cumulative_77, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 6); +YAP_UserCPredicate("gecode_constraint_distinct_115", gecode_constraint_distinct_115, 4); +YAP_UserCPredicate("gecode_constraint_min_214", gecode_constraint_min_214, 3); +YAP_UserCPredicate("gecode_constraint_min_218", gecode_constraint_min_218, 3); +YAP_UserCPredicate("gecode_constraint_sqrt_323", gecode_constraint_sqrt_323, 4); +YAP_UserCPredicate("gecode_constraint_sequence_312", gecode_constraint_sequence_312, 6); +YAP_UserCPredicate("gecode_constraint_sequence_310", gecode_constraint_sequence_310, 6); +YAP_UserCPredicate("gecode_constraint_unshare_339", gecode_constraint_unshare_339, 3); +YAP_UserCPredicate("gecode_constraint_unshare_337", gecode_constraint_unshare_337, 3); +YAP_UserCPredicate("gecode_constraint_path_245", gecode_constraint_path_245, 6); +YAP_UserCPredicate("gecode_constraint_path_236", gecode_constraint_path_236, 6); +YAP_UserCPredicate("gecode_constraint_divmod_120", gecode_constraint_divmod_120, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_229", gecode_constraint_nooverlap_229, 9); +YAP_UserCPredicate("gecode_constraint_cumulative_76", gecode_constraint_cumulative_76, 5); +YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 5); +YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 6); +YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 6); +YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 6); +YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 6); +YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 6); +YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 6); +YAP_UserCPredicate("gecode_constraint_notMin_233", gecode_constraint_notMin_233, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 8); +YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); +YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); +YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); +YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 3); +YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 3); +YAP_UserCPredicate("gecode_constraint_dom_124", gecode_constraint_dom_124, 3); +YAP_UserCPredicate("gecode_constraint_dom_122", gecode_constraint_dom_122, 3); +YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 5); +YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 5); +YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 5); +YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 5); +YAP_UserCPredicate("gecode_constraint_linear_176", gecode_constraint_linear_176, 5); +YAP_UserCPredicate("gecode_constraint_linear_179", gecode_constraint_linear_179, 5); +YAP_UserCPredicate("gecode_constraint_linear_180", gecode_constraint_linear_180, 5); +YAP_UserCPredicate("gecode_constraint_linear_183", gecode_constraint_linear_183, 5); +YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 5); +YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 5); +YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 5); +YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_224", gecode_constraint_nooverlap_224, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_227", gecode_constraint_nooverlap_227, 6); +YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 6); +YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 6); +YAP_UserCPredicate("gecode_constraint_rel_266", gecode_constraint_rel_266, 4); +YAP_UserCPredicate("gecode_constraint_rel_262", gecode_constraint_rel_262, 4); +YAP_UserCPredicate("gecode_constraint_rel_274", gecode_constraint_rel_274, 4); +YAP_UserCPredicate("gecode_constraint_rel_270", gecode_constraint_rel_270, 4); +YAP_UserCPredicate("gecode_constraint_rel_268", gecode_constraint_rel_268, 4); +YAP_UserCPredicate("gecode_constraint_rel_273", gecode_constraint_rel_273, 4); +YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 4); +YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); +YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 4); +YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 4); +YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 4); +YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 4); +YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 4); +YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 4); +YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 4); +YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 4); +YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 4); +YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); +YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 4); +YAP_UserCPredicate("gecode_constraint_rel_254", gecode_constraint_rel_254, 4); +YAP_UserCPredicate("gecode_constraint_rel_252", gecode_constraint_rel_252, 4); +YAP_UserCPredicate("gecode_constraint_min_217", gecode_constraint_min_217, 5); +YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 3); +YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 3); diff --git a/packages/gecode/3.7.0/gecode-version.txt b/packages/gecode/3.7.0/gecode-version.txt new file mode 100644 index 000000000..7c69a55db --- /dev/null +++ b/packages/gecode/3.7.0/gecode-version.txt @@ -0,0 +1 @@ +3.7.0 diff --git a/packages/gecode/3.7.0/gecode_yap_auto_generated.yap b/packages/gecode/3.7.0/gecode_yap_auto_generated.yap new file mode 100644 index 000000000..1b519c648 --- /dev/null +++ b/packages/gecode/3.7.0/gecode_yap_auto_generated.yap @@ -0,0 +1,2995 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +is_IntRelType_('IRT_EQ'). +is_IntRelType_('IRT_NQ'). +is_IntRelType_('IRT_LQ'). +is_IntRelType_('IRT_LE'). +is_IntRelType_('IRT_GQ'). +is_IntRelType_('IRT_GR'). + +is_IntRelType_('IRT_EQ','IRT_EQ'). +is_IntRelType_('IRT_NQ','IRT_NQ'). +is_IntRelType_('IRT_LQ','IRT_LQ'). +is_IntRelType_('IRT_LE','IRT_LE'). +is_IntRelType_('IRT_GQ','IRT_GQ'). +is_IntRelType_('IRT_GR','IRT_GR'). + +is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). +is_IntRelType(X) :- is_IntRelType(X,_). + +is_BoolOpType_('BOT_AND'). +is_BoolOpType_('BOT_OR'). +is_BoolOpType_('BOT_IMP'). +is_BoolOpType_('BOT_EQV'). +is_BoolOpType_('BOT_XOR'). + +is_BoolOpType_('BOT_AND','BOT_AND'). +is_BoolOpType_('BOT_OR','BOT_OR'). +is_BoolOpType_('BOT_IMP','BOT_IMP'). +is_BoolOpType_('BOT_EQV','BOT_EQV'). +is_BoolOpType_('BOT_XOR','BOT_XOR'). + +is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). +is_BoolOpType(X) :- is_BoolOpType(X,_). + +is_IntConLevel_('ICL_VAL'). +is_IntConLevel_('ICL_BND'). +is_IntConLevel_('ICL_DOM'). +is_IntConLevel_('ICL_DEF'). + +is_IntConLevel_('ICL_VAL','ICL_VAL'). +is_IntConLevel_('ICL_BND','ICL_BND'). +is_IntConLevel_('ICL_DOM','ICL_DOM'). +is_IntConLevel_('ICL_DEF','ICL_DEF'). + +is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). +is_IntConLevel(X) :- is_IntConLevel(X,_). + +is_TaskType_('TT_FIXP'). +is_TaskType_('TT_FIXS'). +is_TaskType_('TT_FIXE'). + +is_TaskType_('TT_FIXP','TT_FIXP'). +is_TaskType_('TT_FIXS','TT_FIXS'). +is_TaskType_('TT_FIXE','TT_FIXE'). + +is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). +is_TaskType(X) :- is_TaskType(X,_). + +is_ExtensionalPropKind_('EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY'). + +is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). + +is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). +is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). + +is_IntVarBranch_('INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). +is_IntVarBranch(X) :- is_IntVarBranch(X,_). + +is_IntValBranch_('INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX'). + +is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). + +is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). +is_IntValBranch(X) :- is_IntValBranch(X,_). + +is_IntAssign_('INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND'). + +is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). + +is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). +is_IntAssign(X) :- is_IntAssign(X,_). + +is_SetRelType_('SRT_EQ'). +is_SetRelType_('SRT_NQ'). +is_SetRelType_('SRT_SUB'). +is_SetRelType_('SRT_SUP'). +is_SetRelType_('SRT_DISJ'). +is_SetRelType_('SRT_CMPL'). +is_SetRelType_('SRT_LQ'). +is_SetRelType_('SRT_LE'). +is_SetRelType_('SRT_GQ'). +is_SetRelType_('SRT_GR'). + +is_SetRelType_('SRT_EQ','SRT_EQ'). +is_SetRelType_('SRT_NQ','SRT_NQ'). +is_SetRelType_('SRT_SUB','SRT_SUB'). +is_SetRelType_('SRT_SUP','SRT_SUP'). +is_SetRelType_('SRT_DISJ','SRT_DISJ'). +is_SetRelType_('SRT_CMPL','SRT_CMPL'). +is_SetRelType_('SRT_LQ','SRT_LQ'). +is_SetRelType_('SRT_LE','SRT_LE'). +is_SetRelType_('SRT_GQ','SRT_GQ'). +is_SetRelType_('SRT_GR','SRT_GR'). + +is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). +is_SetRelType(X) :- is_SetRelType(X,_). + +is_SetOpType_('SOT_UNION'). +is_SetOpType_('SOT_DUNION'). +is_SetOpType_('SOT_INTER'). +is_SetOpType_('SOT_MINUS'). + +is_SetOpType_('SOT_UNION','SOT_UNION'). +is_SetOpType_('SOT_DUNION','SOT_DUNION'). +is_SetOpType_('SOT_INTER','SOT_INTER'). +is_SetOpType_('SOT_MINUS','SOT_MINUS'). + +is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). +is_SetOpType(X) :- is_SetOpType(X,_). + +is_SetVarBranch_('SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). +is_SetVarBranch(X) :- is_SetVarBranch(X,_). + +is_SetValBranch_('SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC'). + +is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). + +is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). +is_SetValBranch(X) :- is_SetValBranch(X,_). + +is_SetAssign_('SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC'). + +is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). + +is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). +is_SetAssign(X) :- is_SetAssign(X,_). + +unary(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_357(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_353(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). + +nvalues(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_255(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_257(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_251(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_253(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_max_218(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_max_217(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_max_221(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_dom_149(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). + +convex(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_convex_51(Y0,Y1,Y2) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). + +nooverlap(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_nooverlap_242(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). + +assign(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_4(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_3(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_5(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_7(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_6(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_8(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). + +element(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_162(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_152(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_150(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_157(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_165(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_168(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_174(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_166(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> gecode_constraint_sequence_338(Y0,Y1) + ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). + +notMax(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMax_248(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). + +unary(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_unary_350(Y0,Y1,Y2) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_circuit_45(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_137(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_133(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_dom_148(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_147(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntSet(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). + +channel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_32(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> gecode_constraint_nooverlap_244(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; (is_IntConLevel(X7,Y7) + -> gecode_constraint_nooverlap_247(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> gecode_constraint_element_154(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_164(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_BoolVar(X6,Y6) + -> gecode_constraint_element_170(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +max(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_216(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_220(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). + +unshare(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_unshare_362(Y0,Y1) + ; (is_BoolVarArgs(X1,Y1) + -> gecode_constraint_unshare_360(Y0,Y1) + ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). + +path(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_path_268(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_path_267(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). + +mult(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mult_238(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). + +clause(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). + +precede(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_precede_273(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). + +distinct(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_distinct_120(Y0,Y1) + ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). + +member(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_member_226(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_229(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_member_222(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_225(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). + +mod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mod_237(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). + +cardinality(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_cardinality_18(Y0,Y1,Y2) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). + +atmostOne(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). + +channelSorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_channelSorted_33(Y0,Y1,Y2) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_210(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_214(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). + +circuit(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_circuit_42(Y0,Y1) + ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). + +rel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_280(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_323(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_321(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_310(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_313(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_314(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_317(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_320(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_331(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_333(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). + +min(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_min_232(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_min_231(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_min_235(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). + +cardinality(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). + +count(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_69(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_66(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_59(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_56(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). + +sqrt(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqrt_346(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_117(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_115(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +nvalues(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_254(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_256(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_250(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_252(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). + +binpacking(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). + +linear(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +abs(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). + +convex(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> gecode_constraint_convex_50(Y0,Y1) + ; throw(gecode_argument_error(convex(X0,X1),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1),arg=1))). + +div(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_div_122(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). + +rel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_311(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_315(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntSet(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_326(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_327(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_328(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_329(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). + +weights(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_weights_364(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_max_219(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_path_263(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +unary(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_unary_358(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_unary_354(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_unary_348(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_unary_351(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). + +sorted(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_sorted_341(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_34(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). + +dom(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_dom_136(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) + ; (is_IntSet(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_130(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_129(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_127(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_146(Y0,Y1,Y2,Y3) + ; (is_IntSet(X3,Y3) + -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). + +abs(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_abs_1(Y0,Y1,Y2) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). + +channel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). + +rel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_304(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_296(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_path_266(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). + +branch(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarBranch(X2,Y2) + -> (is_SetValBranch(X3,Y3) + -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). + +mult(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mult_239(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). + +clause(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_clause_46(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). + +precede(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_275(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_272(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_precede_271(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). + +channel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_101(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +distinct(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_distinct_121(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_distinct_118(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). + +member(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_227(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_223(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). + +mod(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mod_236(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). + +sqr(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqr_344(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_337(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_335(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_264(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_path_261(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_258(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +divmod(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_divmod_125(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). + +sorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_sorted_342(Y0,Y1,Y2) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_circuit_44(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_circuit_43(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). + +channel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_channel_31(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> gecode_constraint_channel_28(Y0,Y1,Y2) + ; (is_IntVarArgs(X2,Y2) + -> gecode_constraint_channel_26(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_22(Y0,Y1,Y2) + ; (is_SetVar(X2,Y2) + -> gecode_constraint_channel_25(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_20(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_52(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_70(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_62(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_64(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_61(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_57(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_67(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_74(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_76(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_116(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_114(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +binpacking(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). + +linear(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_209(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_213(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> gecode_constraint_nooverlap_246(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_nooverlap_241(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +div(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_div_123(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). + +sqr(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqr_345(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_265(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> gecode_constraint_path_262(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_259(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +unary(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_356(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_359(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_352(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_355(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_349(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). + +sorted(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_sorted_340(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_sorted_343(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_161(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_159(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_163(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_153(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_151(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_182(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_180(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_178(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_176(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_169(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_175(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_167(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). + +sequence(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_sequence_339(Y0,Y1,Y2) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +precede(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_274(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_270(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_78(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_100(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). + +distinct(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_distinct_119(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_230(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_234(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). + +sqrt(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqrt_347(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_336(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_334(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). + +unshare(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_363(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_361(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_path_269(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_path_260(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). + +divmod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_divmod_124(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_nooverlap_245(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +cumulative(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). + +member(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_member_228(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_member_224(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_75(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_77(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_65(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). + +notMin(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMin_249(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +branch(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_16(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_12(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetValBranch(X2,Y2) + -> gecode_constraint_branch_17(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). + +dom(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_140(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_134(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_128(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_126(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_208(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_211(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_212(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_215(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_184(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_nooverlap_240(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_nooverlap_243(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). + +element(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_183(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_181(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_179(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_177(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). + +rel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) + ; (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_297(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_324(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_322(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3) + ; (is_IntVarArgs(X3,Y3) + -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_305(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_312(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_316(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_318(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_319(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_325(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_330(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_332(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_276(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_min_233(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). + +count(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_count_68(Y0,Y1,Y2) + ; (is_IntSetArgs(X2,Y2) + -> gecode_constraint_count_58(Y0,Y1,Y2) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). + diff --git a/packages/gecode/3.7.0/gecode_yap_cc_forward_auto_generated.icc b/packages/gecode/3.7.0/gecode_yap_cc_forward_auto_generated.icc new file mode 100644 index 000000000..67781a39b --- /dev/null +++ b/packages/gecode/3.7.0/gecode_yap_cc_forward_auto_generated.icc @@ -0,0 +1,31 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static IntRelType gecode_IntRelType_from_term(YAP_Term); +static BoolOpType gecode_BoolOpType_from_term(YAP_Term); +static IntConLevel gecode_IntConLevel_from_term(YAP_Term); +static TaskType gecode_TaskType_from_term(YAP_Term); +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); +static IntValBranch gecode_IntValBranch_from_term(YAP_Term); +static IntAssign gecode_IntAssign_from_term(YAP_Term); +static SetRelType gecode_SetRelType_from_term(YAP_Term); +static SetOpType gecode_SetOpType_from_term(YAP_Term); +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); +static SetValBranch gecode_SetValBranch_from_term(YAP_Term); +static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/packages/gecode/3.7.0/gecode_yap_cc_impl_auto_generated.icc b/packages/gecode/3.7.0/gecode_yap_cc_impl_auto_generated.icc new file mode 100644 index 000000000..8b41f068b --- /dev/null +++ b/packages/gecode/3.7.0/gecode_yap_cc_impl_auto_generated.icc @@ -0,0 +1,4315 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static YAP_Term gecode_IRT_EQ; +static YAP_Term gecode_IRT_NQ; +static YAP_Term gecode_IRT_LQ; +static YAP_Term gecode_IRT_LE; +static YAP_Term gecode_IRT_GQ; +static YAP_Term gecode_IRT_GR; + +static IntRelType gecode_IntRelType_from_term(YAP_Term X) +{ + if (X==gecode_IRT_EQ) return IRT_EQ; + if (X==gecode_IRT_NQ) return IRT_NQ; + if (X==gecode_IRT_LQ) return IRT_LQ; + if (X==gecode_IRT_LE) return IRT_LE; + if (X==gecode_IRT_GQ) return IRT_GQ; + if (X==gecode_IRT_GR) return IRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_BOT_AND; +static YAP_Term gecode_BOT_OR; +static YAP_Term gecode_BOT_IMP; +static YAP_Term gecode_BOT_EQV; +static YAP_Term gecode_BOT_XOR; + +static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) +{ + if (X==gecode_BOT_AND) return BOT_AND; + if (X==gecode_BOT_OR) return BOT_OR; + if (X==gecode_BOT_IMP) return BOT_IMP; + if (X==gecode_BOT_EQV) return BOT_EQV; + if (X==gecode_BOT_XOR) return BOT_XOR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_ICL_VAL; +static YAP_Term gecode_ICL_BND; +static YAP_Term gecode_ICL_DOM; +static YAP_Term gecode_ICL_DEF; + +static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) +{ + if (X==gecode_ICL_VAL) return ICL_VAL; + if (X==gecode_ICL_BND) return ICL_BND; + if (X==gecode_ICL_DOM) return ICL_DOM; + if (X==gecode_ICL_DEF) return ICL_DEF; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_TT_FIXP; +static YAP_Term gecode_TT_FIXS; +static YAP_Term gecode_TT_FIXE; + +static TaskType gecode_TaskType_from_term(YAP_Term X) +{ + if (X==gecode_TT_FIXP) return TT_FIXP; + if (X==gecode_TT_FIXS) return TT_FIXS; + if (X==gecode_TT_FIXE) return TT_FIXE; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_EPK_DEF; +static YAP_Term gecode_EPK_SPEED; +static YAP_Term gecode_EPK_MEMORY; + +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) +{ + if (X==gecode_EPK_DEF) return EPK_DEF; + if (X==gecode_EPK_SPEED) return EPK_SPEED; + if (X==gecode_EPK_MEMORY) return EPK_MEMORY; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAR_NONE; +static YAP_Term gecode_INT_VAR_RND; +static YAP_Term gecode_INT_VAR_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_AFC_MIN; +static YAP_Term gecode_INT_VAR_AFC_MAX; +static YAP_Term gecode_INT_VAR_MIN_MIN; +static YAP_Term gecode_INT_VAR_MIN_MAX; +static YAP_Term gecode_INT_VAR_MAX_MIN; +static YAP_Term gecode_INT_VAR_MAX_MAX; +static YAP_Term gecode_INT_VAR_SIZE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; + +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; + if (X==gecode_INT_VAR_RND) return INT_VAR_RND; + if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; + if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; + if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; + if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; + if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; + if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; + if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; + if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; + if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; + if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; + if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; + if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; + if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; + if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; + if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; + if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; + if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; + if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAL_MIN; +static YAP_Term gecode_INT_VAL_MED; +static YAP_Term gecode_INT_VAL_MAX; +static YAP_Term gecode_INT_VAL_RND; +static YAP_Term gecode_INT_VAL_SPLIT_MIN; +static YAP_Term gecode_INT_VAL_SPLIT_MAX; +static YAP_Term gecode_INT_VAL_RANGE_MIN; +static YAP_Term gecode_INT_VAL_RANGE_MAX; +static YAP_Term gecode_INT_VALUES_MIN; +static YAP_Term gecode_INT_VALUES_MAX; + +static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; + if (X==gecode_INT_VAL_MED) return INT_VAL_MED; + if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; + if (X==gecode_INT_VAL_RND) return INT_VAL_RND; + if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; + if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; + if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; + if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; + if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; + if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_ASSIGN_MIN; +static YAP_Term gecode_INT_ASSIGN_MED; +static YAP_Term gecode_INT_ASSIGN_MAX; +static YAP_Term gecode_INT_ASSIGN_RND; + +static IntAssign gecode_IntAssign_from_term(YAP_Term X) +{ + if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; + if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; + if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; + if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SRT_EQ; +static YAP_Term gecode_SRT_NQ; +static YAP_Term gecode_SRT_SUB; +static YAP_Term gecode_SRT_SUP; +static YAP_Term gecode_SRT_DISJ; +static YAP_Term gecode_SRT_CMPL; +static YAP_Term gecode_SRT_LQ; +static YAP_Term gecode_SRT_LE; +static YAP_Term gecode_SRT_GQ; +static YAP_Term gecode_SRT_GR; + +static SetRelType gecode_SetRelType_from_term(YAP_Term X) +{ + if (X==gecode_SRT_EQ) return SRT_EQ; + if (X==gecode_SRT_NQ) return SRT_NQ; + if (X==gecode_SRT_SUB) return SRT_SUB; + if (X==gecode_SRT_SUP) return SRT_SUP; + if (X==gecode_SRT_DISJ) return SRT_DISJ; + if (X==gecode_SRT_CMPL) return SRT_CMPL; + if (X==gecode_SRT_LQ) return SRT_LQ; + if (X==gecode_SRT_LE) return SRT_LE; + if (X==gecode_SRT_GQ) return SRT_GQ; + if (X==gecode_SRT_GR) return SRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SOT_UNION; +static YAP_Term gecode_SOT_DUNION; +static YAP_Term gecode_SOT_INTER; +static YAP_Term gecode_SOT_MINUS; + +static SetOpType gecode_SetOpType_from_term(YAP_Term X) +{ + if (X==gecode_SOT_UNION) return SOT_UNION; + if (X==gecode_SOT_DUNION) return SOT_DUNION; + if (X==gecode_SOT_INTER) return SOT_INTER; + if (X==gecode_SOT_MINUS) return SOT_MINUS; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAR_NONE; +static YAP_Term gecode_SET_VAR_RND; +static YAP_Term gecode_SET_VAR_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_AFC_MIN; +static YAP_Term gecode_SET_VAR_AFC_MAX; +static YAP_Term gecode_SET_VAR_MIN_MIN; +static YAP_Term gecode_SET_VAR_MIN_MAX; +static YAP_Term gecode_SET_VAR_MAX_MIN; +static YAP_Term gecode_SET_VAR_MAX_MAX; +static YAP_Term gecode_SET_VAR_SIZE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; + +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; + if (X==gecode_SET_VAR_RND) return SET_VAR_RND; + if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; + if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; + if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; + if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; + if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; + if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; + if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; + if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; + if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; + if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; + if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; + if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; + if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; + if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAL_MIN_INC; +static YAP_Term gecode_SET_VAL_MIN_EXC; +static YAP_Term gecode_SET_VAL_MED_INC; +static YAP_Term gecode_SET_VAL_MED_EXC; +static YAP_Term gecode_SET_VAL_MAX_INC; +static YAP_Term gecode_SET_VAL_MAX_EXC; +static YAP_Term gecode_SET_VAL_RND_INC; +static YAP_Term gecode_SET_VAL_RND_EXC; + +static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; + if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; + if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; + if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; + if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; + if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; + if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; + if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_ASSIGN_MIN_INC; +static YAP_Term gecode_SET_ASSIGN_MIN_EXC; +static YAP_Term gecode_SET_ASSIGN_MED_INC; +static YAP_Term gecode_SET_ASSIGN_MED_EXC; +static YAP_Term gecode_SET_ASSIGN_MAX_INC; +static YAP_Term gecode_SET_ASSIGN_MAX_EXC; +static YAP_Term gecode_SET_ASSIGN_RND_INC; +static YAP_Term gecode_SET_ASSIGN_RND_EXC; + +static SetAssign gecode_SetAssign_from_term(YAP_Term X) +{ + if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; + if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; + if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; + if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; + if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; + if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; + if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; + if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static int gecode_constraint_unary_357(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unary_353(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nvalues_255(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_257(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_251(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_253(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_218(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_217(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_221(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_139(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_dom_149(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_convex_51(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + convex(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_nooverlap_242(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + nooverlap(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_assign_4(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_3(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_5(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_7(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_6(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_8(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_element_158(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_162(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_152(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_150(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_157(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_165(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_168(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_174(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_166(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_338(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + sequence(*space,X2); + return TRUE; +} + +static int gecode_constraint_notMax_248(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMax(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unary_350(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + unary(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_45(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_36(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_138(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_143(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_137(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_133(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_131(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_148(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_147(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_145(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_32(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_27(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_23(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_21(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nooverlap_244(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_nooverlap_247(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_160(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_154(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_156(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_164(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_172(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_170(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_max_216(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_max_220(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_362(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_unshare_360(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_path_268(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_267(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mult_238(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mult(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_clause_49(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_47(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_precede_273(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + precede(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_distinct_120(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + distinct(*space,X2); + return TRUE; +} + +static int gecode_constraint_member_226(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_229(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_222(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_225(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mod_237(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cardinality_18(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + cardinality(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_atmostOne_9(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + atmostOne(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channelSorted_33(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channelSorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_210(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_214(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_186(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_190(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_42(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + circuit(*space,X2); + return TRUE; +} + +static int gecode_constraint_rel_288(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_291(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_284(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_287(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_282(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_280(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_299(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_295(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_293(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_323(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_321(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_307(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_309(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_303(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_310(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_313(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_314(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_317(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_320(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_331(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_333(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_279(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_277(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_min_232(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_231(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_235(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_cardinality_19(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + cardinality(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_69(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_66(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_60(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_59(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_56(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqrt_346(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqrt(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulatives_117(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_115(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_113(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_111(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_109(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_107(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_105(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_103(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_nvalues_254(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_256(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_250(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_252(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_binpacking_10(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + binpacking(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_201(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_205(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_193(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_197(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_abs_2(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + abs(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_convex_50(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + convex(*space,X2); + return TRUE; +} + +static int gecode_constraint_div_122(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + div(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_311(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_315(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_300(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_301(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_289(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_285(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_283(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_281(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_326(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_327(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_328(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_329(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_weights_364(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + weights(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_219(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + max(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_263(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + path(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_unary_358(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_354(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_348(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_351(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_341(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + sorted(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_40(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_37(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_34(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_142(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_136(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_141(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_132(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_135(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_130(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_129(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_127(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_146(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_144(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_abs_1(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + abs(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_29(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_24(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_304(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_rel_296(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_266(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + path(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_14(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_13(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_15(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mult_239(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mult(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_41(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_38(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_35(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_48(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_clause_46(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_precede_275(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_272(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_271(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_30(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + channel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_86(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_89(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_82(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_85(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_79(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_98(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_101(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_94(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_97(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_91(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_distinct_121(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_distinct_118(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_227(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_223(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mod_236(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mod(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqr_344(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqr(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sequence_337(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_sequence_335(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_264(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_261(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_258(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_divmod_125(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + divmod(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sorted_342(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + sorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_44(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_43(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_31(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_28(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_26(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_22(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_25(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_20(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_52(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_54(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_70(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_72(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_62(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_64(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_61(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_57(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_67(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_74(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_76(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulatives_116(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_114(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_112(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_110(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_108(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_106(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_104(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_102(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_binpacking_11(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + binpacking(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_209(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_213(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_185(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_189(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_200(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_203(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_204(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_207(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_192(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_195(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_196(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_199(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_246(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_nooverlap_241(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_div_123(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + div(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sqr_345(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqr(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_path_265(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_262(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_259(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_unary_356(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_359(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_352(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_355(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_349(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sorted_340(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_343(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_161(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_155(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_173(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_171(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_159(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_163(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_153(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_151(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_182(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_180(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_178(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_176(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_169(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_175(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_167(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sequence_339(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + sequence(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_39(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + circuit(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_precede_274(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_precede_270(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_88(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_84(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_78(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_81(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_100(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_96(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_90(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_93(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_distinct_119(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + distinct(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_230(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_min_234(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sqrt_347(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqrt(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_336(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sequence_334(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unshare_363(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_361(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_269(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_path_260(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_divmod_124(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + divmod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_245(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulative_80(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulative_92(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_228(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_224(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_71(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_73(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_75(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_77(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_63(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_65(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_53(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_55(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_notMin_249(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMin(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_87(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_83(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_99(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_95(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_branch_16(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_12(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_17(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_140(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_134(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_128(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_126(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_208(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_211(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_212(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_215(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_184(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_187(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_188(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_191(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_202(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_206(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_194(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_198(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_240(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_243(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_183(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_181(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_179(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_177(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_290(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_286(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_298(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_294(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_292(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_297(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_324(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_322(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_306(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_308(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_302(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_305(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_312(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_316(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_318(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_319(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_325(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_330(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_332(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_278(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_276(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_233(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + min(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_68(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_58(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + diff --git a/packages/gecode/3.7.0/gecode_yap_cc_init_auto_generated.icc b/packages/gecode/3.7.0/gecode_yap_cc_init_auto_generated.icc new file mode 100644 index 000000000..cb05df765 --- /dev/null +++ b/packages/gecode/3.7.0/gecode_yap_cc_init_auto_generated.icc @@ -0,0 +1,698 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); + gecode_IRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); + gecode_IRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); + gecode_IRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); + gecode_IRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); + gecode_IRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); + gecode_IRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); + gecode_BOT_AND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); + gecode_BOT_OR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); + gecode_BOT_IMP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); + gecode_BOT_EQV = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); + gecode_BOT_XOR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); + gecode_ICL_VAL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); + gecode_ICL_BND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); + gecode_ICL_DOM = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); + gecode_ICL_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); + gecode_TT_FIXP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); + gecode_TT_FIXS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); + gecode_TT_FIXE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); + gecode_EPK_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); + gecode_EPK_SPEED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); + gecode_EPK_MEMORY = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); + gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); + gecode_INT_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); + gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); + gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); + gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); + gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); + gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); + gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); + gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); + gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); + gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); + gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); + gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); + gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); + gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); + gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); + gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); + gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); + gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); + gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); + gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); + gecode_INT_VAL_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); + gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); + gecode_INT_VAL_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); + gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); + gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); + gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); + gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); + gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); + gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); + gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); + gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); + gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); + gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); + gecode_SRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); + gecode_SRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); + gecode_SRT_SUB = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); + gecode_SRT_SUP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); + gecode_SRT_DISJ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); + gecode_SRT_CMPL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); + gecode_SRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); + gecode_SRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); + gecode_SRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); + gecode_SRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); + gecode_SOT_UNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); + gecode_SOT_DUNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); + gecode_SOT_INTER = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); + gecode_SOT_MINUS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); + gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); + gecode_SET_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); + gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); + gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); + gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); + gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); + gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); + gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); + gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); + gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); + gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); + gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); + gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); + gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); + gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); + gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); + gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); + gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); + gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); + gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); + gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); + gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); + gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); + gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); + gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); + gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); + gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); + gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); + gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); + gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); + gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); + gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +YAP_UserCPredicate("gecode_constraint_unary_357", gecode_constraint_unary_357, 6); +YAP_UserCPredicate("gecode_constraint_unary_353", gecode_constraint_unary_353, 6); +YAP_UserCPredicate("gecode_constraint_nvalues_255", gecode_constraint_nvalues_255, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_257", gecode_constraint_nvalues_257, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_251", gecode_constraint_nvalues_251, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_253", gecode_constraint_nvalues_253, 5); +YAP_UserCPredicate("gecode_constraint_max_218", gecode_constraint_max_218, 4); +YAP_UserCPredicate("gecode_constraint_max_217", gecode_constraint_max_217, 4); +YAP_UserCPredicate("gecode_constraint_max_221", gecode_constraint_max_221, 4); +YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 6); +YAP_UserCPredicate("gecode_constraint_dom_149", gecode_constraint_dom_149, 6); +YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 3); +YAP_UserCPredicate("gecode_constraint_nooverlap_242", gecode_constraint_nooverlap_242, 5); +YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); +YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); +YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); +YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); +YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); +YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); +YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); +YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 4); +YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 4); +YAP_UserCPredicate("gecode_constraint_element_150", gecode_constraint_element_150, 4); +YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 4); +YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 4); +YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 4); +YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 4); +YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 4); +YAP_UserCPredicate("gecode_constraint_sequence_338", gecode_constraint_sequence_338, 2); +YAP_UserCPredicate("gecode_constraint_notMax_248", gecode_constraint_notMax_248, 3); +YAP_UserCPredicate("gecode_constraint_unary_350", gecode_constraint_unary_350, 3); +YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 4); +YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 4); +YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 5); +YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 5); +YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 5); +YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 5); +YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 5); +YAP_UserCPredicate("gecode_constraint_dom_148", gecode_constraint_dom_148, 5); +YAP_UserCPredicate("gecode_constraint_dom_147", gecode_constraint_dom_147, 5); +YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 5); +YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 4); +YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); +YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); +YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); +YAP_UserCPredicate("gecode_constraint_nooverlap_244", gecode_constraint_nooverlap_244, 8); +YAP_UserCPredicate("gecode_constraint_nooverlap_247", gecode_constraint_nooverlap_247, 8); +YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 7); +YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 7); +YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 7); +YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 7); +YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 7); +YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 7); +YAP_UserCPredicate("gecode_constraint_max_216", gecode_constraint_max_216, 3); +YAP_UserCPredicate("gecode_constraint_max_220", gecode_constraint_max_220, 3); +YAP_UserCPredicate("gecode_constraint_unshare_362", gecode_constraint_unshare_362, 2); +YAP_UserCPredicate("gecode_constraint_unshare_360", gecode_constraint_unshare_360, 2); +YAP_UserCPredicate("gecode_constraint_path_268", gecode_constraint_path_268, 5); +YAP_UserCPredicate("gecode_constraint_path_267", gecode_constraint_path_267, 5); +YAP_UserCPredicate("gecode_constraint_mult_238", gecode_constraint_mult_238, 4); +YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 6); +YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 6); +YAP_UserCPredicate("gecode_constraint_precede_273", gecode_constraint_precede_273, 5); +YAP_UserCPredicate("gecode_constraint_distinct_120", gecode_constraint_distinct_120, 2); +YAP_UserCPredicate("gecode_constraint_member_226", gecode_constraint_member_226, 4); +YAP_UserCPredicate("gecode_constraint_member_229", gecode_constraint_member_229, 4); +YAP_UserCPredicate("gecode_constraint_member_222", gecode_constraint_member_222, 4); +YAP_UserCPredicate("gecode_constraint_member_225", gecode_constraint_member_225, 4); +YAP_UserCPredicate("gecode_constraint_mod_237", gecode_constraint_mod_237, 5); +YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); +YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); +YAP_UserCPredicate("gecode_constraint_channelSorted_33", gecode_constraint_channelSorted_33, 3); +YAP_UserCPredicate("gecode_constraint_linear_210", gecode_constraint_linear_210, 4); +YAP_UserCPredicate("gecode_constraint_linear_214", gecode_constraint_linear_214, 4); +YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 4); +YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 4); +YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 2); +YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 5); +YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 5); +YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 5); +YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 5); +YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 5); +YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 5); +YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 5); +YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 5); +YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 5); +YAP_UserCPredicate("gecode_constraint_rel_323", gecode_constraint_rel_323, 5); +YAP_UserCPredicate("gecode_constraint_rel_321", gecode_constraint_rel_321, 5); +YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 5); +YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 5); +YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 5); +YAP_UserCPredicate("gecode_constraint_rel_310", gecode_constraint_rel_310, 5); +YAP_UserCPredicate("gecode_constraint_rel_313", gecode_constraint_rel_313, 5); +YAP_UserCPredicate("gecode_constraint_rel_314", gecode_constraint_rel_314, 5); +YAP_UserCPredicate("gecode_constraint_rel_317", gecode_constraint_rel_317, 5); +YAP_UserCPredicate("gecode_constraint_rel_320", gecode_constraint_rel_320, 5); +YAP_UserCPredicate("gecode_constraint_rel_331", gecode_constraint_rel_331, 5); +YAP_UserCPredicate("gecode_constraint_rel_333", gecode_constraint_rel_333, 5); +YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 5); +YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 5); +YAP_UserCPredicate("gecode_constraint_min_232", gecode_constraint_min_232, 4); +YAP_UserCPredicate("gecode_constraint_min_231", gecode_constraint_min_231, 4); +YAP_UserCPredicate("gecode_constraint_min_235", gecode_constraint_min_235, 4); +YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); +YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 4); +YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 4); +YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); +YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 4); +YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 4); +YAP_UserCPredicate("gecode_constraint_sqrt_346", gecode_constraint_sqrt_346, 3); +YAP_UserCPredicate("gecode_constraint_cumulatives_117", gecode_constraint_cumulatives_117, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_115", gecode_constraint_cumulatives_115, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 9); +YAP_UserCPredicate("gecode_constraint_nvalues_254", gecode_constraint_nvalues_254, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_256", gecode_constraint_nvalues_256, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_250", gecode_constraint_nvalues_250, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_252", gecode_constraint_nvalues_252, 4); +YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); +YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 7); +YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 7); +YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 7); +YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 7); +YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); +YAP_UserCPredicate("gecode_constraint_convex_50", gecode_constraint_convex_50, 2); +YAP_UserCPredicate("gecode_constraint_div_122", gecode_constraint_div_122, 4); +YAP_UserCPredicate("gecode_constraint_rel_311", gecode_constraint_rel_311, 6); +YAP_UserCPredicate("gecode_constraint_rel_315", gecode_constraint_rel_315, 6); +YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 6); +YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 6); +YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 6); +YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 6); +YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 6); +YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 6); +YAP_UserCPredicate("gecode_constraint_rel_326", gecode_constraint_rel_326, 6); +YAP_UserCPredicate("gecode_constraint_rel_327", gecode_constraint_rel_327, 6); +YAP_UserCPredicate("gecode_constraint_rel_328", gecode_constraint_rel_328, 6); +YAP_UserCPredicate("gecode_constraint_rel_329", gecode_constraint_rel_329, 6); +YAP_UserCPredicate("gecode_constraint_weights_364", gecode_constraint_weights_364, 5); +YAP_UserCPredicate("gecode_constraint_max_219", gecode_constraint_max_219, 5); +YAP_UserCPredicate("gecode_constraint_path_263", gecode_constraint_path_263, 9); +YAP_UserCPredicate("gecode_constraint_unary_358", gecode_constraint_unary_358, 4); +YAP_UserCPredicate("gecode_constraint_unary_354", gecode_constraint_unary_354, 4); +YAP_UserCPredicate("gecode_constraint_unary_348", gecode_constraint_unary_348, 4); +YAP_UserCPredicate("gecode_constraint_unary_351", gecode_constraint_unary_351, 4); +YAP_UserCPredicate("gecode_constraint_sorted_341", gecode_constraint_sorted_341, 5); +YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 5); +YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 5); +YAP_UserCPredicate("gecode_constraint_circuit_34", gecode_constraint_circuit_34, 5); +YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 4); +YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 4); +YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 4); +YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 4); +YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 4); +YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 4); +YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 4); +YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 4); +YAP_UserCPredicate("gecode_constraint_dom_146", gecode_constraint_dom_146, 4); +YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 4); +YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); +YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); +YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); +YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 3); +YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 3); +YAP_UserCPredicate("gecode_constraint_path_266", gecode_constraint_path_266, 4); +YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); +YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); +YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); +YAP_UserCPredicate("gecode_constraint_mult_239", gecode_constraint_mult_239, 5); +YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 6); +YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 6); +YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 6); +YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 5); +YAP_UserCPredicate("gecode_constraint_clause_46", gecode_constraint_clause_46, 5); +YAP_UserCPredicate("gecode_constraint_precede_275", gecode_constraint_precede_275, 4); +YAP_UserCPredicate("gecode_constraint_precede_272", gecode_constraint_precede_272, 4); +YAP_UserCPredicate("gecode_constraint_precede_271", gecode_constraint_precede_271, 4); +YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_98", gecode_constraint_cumulative_98, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_101", gecode_constraint_cumulative_101, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 7); +YAP_UserCPredicate("gecode_constraint_distinct_121", gecode_constraint_distinct_121, 3); +YAP_UserCPredicate("gecode_constraint_distinct_118", gecode_constraint_distinct_118, 3); +YAP_UserCPredicate("gecode_constraint_member_227", gecode_constraint_member_227, 5); +YAP_UserCPredicate("gecode_constraint_member_223", gecode_constraint_member_223, 5); +YAP_UserCPredicate("gecode_constraint_mod_236", gecode_constraint_mod_236, 4); +YAP_UserCPredicate("gecode_constraint_sqr_344", gecode_constraint_sqr_344, 3); +YAP_UserCPredicate("gecode_constraint_sequence_337", gecode_constraint_sequence_337, 7); +YAP_UserCPredicate("gecode_constraint_sequence_335", gecode_constraint_sequence_335, 7); +YAP_UserCPredicate("gecode_constraint_path_264", gecode_constraint_path_264, 7); +YAP_UserCPredicate("gecode_constraint_path_261", gecode_constraint_path_261, 7); +YAP_UserCPredicate("gecode_constraint_path_258", gecode_constraint_path_258, 7); +YAP_UserCPredicate("gecode_constraint_divmod_125", gecode_constraint_divmod_125, 6); +YAP_UserCPredicate("gecode_constraint_sorted_342", gecode_constraint_sorted_342, 3); +YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); +YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 3); +YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); +YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); +YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); +YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); +YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); +YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); +YAP_UserCPredicate("gecode_constraint_count_52", gecode_constraint_count_52, 5); +YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 5); +YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 5); +YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 5); +YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 5); +YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 5); +YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 5); +YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 5); +YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 5); +YAP_UserCPredicate("gecode_constraint_count_74", gecode_constraint_count_74, 5); +YAP_UserCPredicate("gecode_constraint_count_76", gecode_constraint_count_76, 5); +YAP_UserCPredicate("gecode_constraint_cumulatives_116", gecode_constraint_cumulatives_116, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_114", gecode_constraint_cumulatives_114, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_102", gecode_constraint_cumulatives_102, 8); +YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); +YAP_UserCPredicate("gecode_constraint_linear_209", gecode_constraint_linear_209, 6); +YAP_UserCPredicate("gecode_constraint_linear_213", gecode_constraint_linear_213, 6); +YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 6); +YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 6); +YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 6); +YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 6); +YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 6); +YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 6); +YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); +YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); +YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 6); +YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_246", gecode_constraint_nooverlap_246, 7); +YAP_UserCPredicate("gecode_constraint_nooverlap_241", gecode_constraint_nooverlap_241, 7); +YAP_UserCPredicate("gecode_constraint_div_123", gecode_constraint_div_123, 5); +YAP_UserCPredicate("gecode_constraint_sqr_345", gecode_constraint_sqr_345, 4); +YAP_UserCPredicate("gecode_constraint_path_265", gecode_constraint_path_265, 8); +YAP_UserCPredicate("gecode_constraint_path_262", gecode_constraint_path_262, 8); +YAP_UserCPredicate("gecode_constraint_path_259", gecode_constraint_path_259, 8); +YAP_UserCPredicate("gecode_constraint_unary_356", gecode_constraint_unary_356, 5); +YAP_UserCPredicate("gecode_constraint_unary_359", gecode_constraint_unary_359, 5); +YAP_UserCPredicate("gecode_constraint_unary_352", gecode_constraint_unary_352, 5); +YAP_UserCPredicate("gecode_constraint_unary_355", gecode_constraint_unary_355, 5); +YAP_UserCPredicate("gecode_constraint_unary_349", gecode_constraint_unary_349, 5); +YAP_UserCPredicate("gecode_constraint_sorted_340", gecode_constraint_sorted_340, 4); +YAP_UserCPredicate("gecode_constraint_sorted_343", gecode_constraint_sorted_343, 4); +YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 8); +YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 8); +YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 8); +YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 8); +YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 5); +YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 5); +YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 5); +YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 5); +YAP_UserCPredicate("gecode_constraint_element_182", gecode_constraint_element_182, 5); +YAP_UserCPredicate("gecode_constraint_element_180", gecode_constraint_element_180, 5); +YAP_UserCPredicate("gecode_constraint_element_178", gecode_constraint_element_178, 5); +YAP_UserCPredicate("gecode_constraint_element_176", gecode_constraint_element_176, 5); +YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 5); +YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 5); +YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 5); +YAP_UserCPredicate("gecode_constraint_sequence_339", gecode_constraint_sequence_339, 3); +YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 7); +YAP_UserCPredicate("gecode_constraint_precede_274", gecode_constraint_precede_274, 3); +YAP_UserCPredicate("gecode_constraint_precede_270", gecode_constraint_precede_270, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_78", gecode_constraint_cumulative_78, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_100", gecode_constraint_cumulative_100, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 6); +YAP_UserCPredicate("gecode_constraint_distinct_119", gecode_constraint_distinct_119, 4); +YAP_UserCPredicate("gecode_constraint_min_230", gecode_constraint_min_230, 3); +YAP_UserCPredicate("gecode_constraint_min_234", gecode_constraint_min_234, 3); +YAP_UserCPredicate("gecode_constraint_sqrt_347", gecode_constraint_sqrt_347, 4); +YAP_UserCPredicate("gecode_constraint_sequence_336", gecode_constraint_sequence_336, 6); +YAP_UserCPredicate("gecode_constraint_sequence_334", gecode_constraint_sequence_334, 6); +YAP_UserCPredicate("gecode_constraint_unshare_363", gecode_constraint_unshare_363, 3); +YAP_UserCPredicate("gecode_constraint_unshare_361", gecode_constraint_unshare_361, 3); +YAP_UserCPredicate("gecode_constraint_path_269", gecode_constraint_path_269, 6); +YAP_UserCPredicate("gecode_constraint_path_260", gecode_constraint_path_260, 6); +YAP_UserCPredicate("gecode_constraint_divmod_124", gecode_constraint_divmod_124, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_245", gecode_constraint_nooverlap_245, 9); +YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 5); +YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 5); +YAP_UserCPredicate("gecode_constraint_member_228", gecode_constraint_member_228, 3); +YAP_UserCPredicate("gecode_constraint_member_224", gecode_constraint_member_224, 3); +YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 6); +YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 6); +YAP_UserCPredicate("gecode_constraint_count_75", gecode_constraint_count_75, 6); +YAP_UserCPredicate("gecode_constraint_count_77", gecode_constraint_count_77, 6); +YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 6); +YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 6); +YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 6); +YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 6); +YAP_UserCPredicate("gecode_constraint_notMin_249", gecode_constraint_notMin_249, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_99", gecode_constraint_cumulative_99, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 8); +YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); +YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); +YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); +YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 3); +YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 3); +YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 3); +YAP_UserCPredicate("gecode_constraint_dom_126", gecode_constraint_dom_126, 3); +YAP_UserCPredicate("gecode_constraint_linear_208", gecode_constraint_linear_208, 5); +YAP_UserCPredicate("gecode_constraint_linear_211", gecode_constraint_linear_211, 5); +YAP_UserCPredicate("gecode_constraint_linear_212", gecode_constraint_linear_212, 5); +YAP_UserCPredicate("gecode_constraint_linear_215", gecode_constraint_linear_215, 5); +YAP_UserCPredicate("gecode_constraint_linear_184", gecode_constraint_linear_184, 5); +YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 5); +YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 5); +YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 5); +YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 5); +YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 5); +YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 5); +YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_240", gecode_constraint_nooverlap_240, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_243", gecode_constraint_nooverlap_243, 6); +YAP_UserCPredicate("gecode_constraint_element_183", gecode_constraint_element_183, 6); +YAP_UserCPredicate("gecode_constraint_element_181", gecode_constraint_element_181, 6); +YAP_UserCPredicate("gecode_constraint_element_179", gecode_constraint_element_179, 6); +YAP_UserCPredicate("gecode_constraint_element_177", gecode_constraint_element_177, 6); +YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 4); +YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 4); +YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); +YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 4); +YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 4); +YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 4); +YAP_UserCPredicate("gecode_constraint_rel_324", gecode_constraint_rel_324, 4); +YAP_UserCPredicate("gecode_constraint_rel_322", gecode_constraint_rel_322, 4); +YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); +YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 4); +YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 4); +YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 4); +YAP_UserCPredicate("gecode_constraint_rel_312", gecode_constraint_rel_312, 4); +YAP_UserCPredicate("gecode_constraint_rel_316", gecode_constraint_rel_316, 4); +YAP_UserCPredicate("gecode_constraint_rel_318", gecode_constraint_rel_318, 4); +YAP_UserCPredicate("gecode_constraint_rel_319", gecode_constraint_rel_319, 4); +YAP_UserCPredicate("gecode_constraint_rel_325", gecode_constraint_rel_325, 4); +YAP_UserCPredicate("gecode_constraint_rel_330", gecode_constraint_rel_330, 4); +YAP_UserCPredicate("gecode_constraint_rel_332", gecode_constraint_rel_332, 4); +YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 4); +YAP_UserCPredicate("gecode_constraint_rel_276", gecode_constraint_rel_276, 4); +YAP_UserCPredicate("gecode_constraint_min_233", gecode_constraint_min_233, 5); +YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 3); +YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 3); diff --git a/packages/gecode/3.7.1/gecode-version.txt b/packages/gecode/3.7.1/gecode-version.txt new file mode 100644 index 000000000..a76ccff2a --- /dev/null +++ b/packages/gecode/3.7.1/gecode-version.txt @@ -0,0 +1 @@ +3.7.1 diff --git a/packages/gecode/3.7.1/gecode_yap_auto_generated.yap b/packages/gecode/3.7.1/gecode_yap_auto_generated.yap new file mode 100644 index 000000000..1b519c648 --- /dev/null +++ b/packages/gecode/3.7.1/gecode_yap_auto_generated.yap @@ -0,0 +1,2995 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +is_IntRelType_('IRT_EQ'). +is_IntRelType_('IRT_NQ'). +is_IntRelType_('IRT_LQ'). +is_IntRelType_('IRT_LE'). +is_IntRelType_('IRT_GQ'). +is_IntRelType_('IRT_GR'). + +is_IntRelType_('IRT_EQ','IRT_EQ'). +is_IntRelType_('IRT_NQ','IRT_NQ'). +is_IntRelType_('IRT_LQ','IRT_LQ'). +is_IntRelType_('IRT_LE','IRT_LE'). +is_IntRelType_('IRT_GQ','IRT_GQ'). +is_IntRelType_('IRT_GR','IRT_GR'). + +is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). +is_IntRelType(X) :- is_IntRelType(X,_). + +is_BoolOpType_('BOT_AND'). +is_BoolOpType_('BOT_OR'). +is_BoolOpType_('BOT_IMP'). +is_BoolOpType_('BOT_EQV'). +is_BoolOpType_('BOT_XOR'). + +is_BoolOpType_('BOT_AND','BOT_AND'). +is_BoolOpType_('BOT_OR','BOT_OR'). +is_BoolOpType_('BOT_IMP','BOT_IMP'). +is_BoolOpType_('BOT_EQV','BOT_EQV'). +is_BoolOpType_('BOT_XOR','BOT_XOR'). + +is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). +is_BoolOpType(X) :- is_BoolOpType(X,_). + +is_IntConLevel_('ICL_VAL'). +is_IntConLevel_('ICL_BND'). +is_IntConLevel_('ICL_DOM'). +is_IntConLevel_('ICL_DEF'). + +is_IntConLevel_('ICL_VAL','ICL_VAL'). +is_IntConLevel_('ICL_BND','ICL_BND'). +is_IntConLevel_('ICL_DOM','ICL_DOM'). +is_IntConLevel_('ICL_DEF','ICL_DEF'). + +is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). +is_IntConLevel(X) :- is_IntConLevel(X,_). + +is_TaskType_('TT_FIXP'). +is_TaskType_('TT_FIXS'). +is_TaskType_('TT_FIXE'). + +is_TaskType_('TT_FIXP','TT_FIXP'). +is_TaskType_('TT_FIXS','TT_FIXS'). +is_TaskType_('TT_FIXE','TT_FIXE'). + +is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). +is_TaskType(X) :- is_TaskType(X,_). + +is_ExtensionalPropKind_('EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY'). + +is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). + +is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). +is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). + +is_IntVarBranch_('INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). +is_IntVarBranch(X) :- is_IntVarBranch(X,_). + +is_IntValBranch_('INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX'). + +is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). + +is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). +is_IntValBranch(X) :- is_IntValBranch(X,_). + +is_IntAssign_('INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND'). + +is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). + +is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). +is_IntAssign(X) :- is_IntAssign(X,_). + +is_SetRelType_('SRT_EQ'). +is_SetRelType_('SRT_NQ'). +is_SetRelType_('SRT_SUB'). +is_SetRelType_('SRT_SUP'). +is_SetRelType_('SRT_DISJ'). +is_SetRelType_('SRT_CMPL'). +is_SetRelType_('SRT_LQ'). +is_SetRelType_('SRT_LE'). +is_SetRelType_('SRT_GQ'). +is_SetRelType_('SRT_GR'). + +is_SetRelType_('SRT_EQ','SRT_EQ'). +is_SetRelType_('SRT_NQ','SRT_NQ'). +is_SetRelType_('SRT_SUB','SRT_SUB'). +is_SetRelType_('SRT_SUP','SRT_SUP'). +is_SetRelType_('SRT_DISJ','SRT_DISJ'). +is_SetRelType_('SRT_CMPL','SRT_CMPL'). +is_SetRelType_('SRT_LQ','SRT_LQ'). +is_SetRelType_('SRT_LE','SRT_LE'). +is_SetRelType_('SRT_GQ','SRT_GQ'). +is_SetRelType_('SRT_GR','SRT_GR'). + +is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). +is_SetRelType(X) :- is_SetRelType(X,_). + +is_SetOpType_('SOT_UNION'). +is_SetOpType_('SOT_DUNION'). +is_SetOpType_('SOT_INTER'). +is_SetOpType_('SOT_MINUS'). + +is_SetOpType_('SOT_UNION','SOT_UNION'). +is_SetOpType_('SOT_DUNION','SOT_DUNION'). +is_SetOpType_('SOT_INTER','SOT_INTER'). +is_SetOpType_('SOT_MINUS','SOT_MINUS'). + +is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). +is_SetOpType(X) :- is_SetOpType(X,_). + +is_SetVarBranch_('SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). +is_SetVarBranch(X) :- is_SetVarBranch(X,_). + +is_SetValBranch_('SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC'). + +is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). + +is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). +is_SetValBranch(X) :- is_SetValBranch(X,_). + +is_SetAssign_('SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC'). + +is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). + +is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). +is_SetAssign(X) :- is_SetAssign(X,_). + +unary(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_357(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_353(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). + +nvalues(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_255(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_257(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_251(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_253(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_max_218(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_max_217(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_max_221(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_dom_149(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). + +convex(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_convex_51(Y0,Y1,Y2) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). + +nooverlap(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_nooverlap_242(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). + +assign(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_4(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_3(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_5(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_7(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_6(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_8(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). + +element(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_162(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_152(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_150(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_157(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_165(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_168(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_174(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_166(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> gecode_constraint_sequence_338(Y0,Y1) + ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). + +notMax(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMax_248(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). + +unary(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_unary_350(Y0,Y1,Y2) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_circuit_45(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_137(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_133(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_dom_148(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_147(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntSet(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). + +channel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_32(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> gecode_constraint_nooverlap_244(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; (is_IntConLevel(X7,Y7) + -> gecode_constraint_nooverlap_247(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> gecode_constraint_element_154(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_164(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_BoolVar(X6,Y6) + -> gecode_constraint_element_170(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +max(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_216(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_220(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). + +unshare(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_unshare_362(Y0,Y1) + ; (is_BoolVarArgs(X1,Y1) + -> gecode_constraint_unshare_360(Y0,Y1) + ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). + +path(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_path_268(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_path_267(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). + +mult(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mult_238(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). + +clause(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). + +precede(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_precede_273(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). + +distinct(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_distinct_120(Y0,Y1) + ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). + +member(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_member_226(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_229(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_member_222(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_225(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). + +mod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mod_237(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). + +cardinality(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_cardinality_18(Y0,Y1,Y2) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). + +atmostOne(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). + +channelSorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_channelSorted_33(Y0,Y1,Y2) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_210(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_214(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). + +circuit(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_circuit_42(Y0,Y1) + ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). + +rel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_280(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_323(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_321(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_310(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_313(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_314(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_317(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_320(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_331(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_333(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). + +min(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_min_232(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_min_231(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_min_235(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). + +cardinality(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). + +count(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_69(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_66(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_59(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_56(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). + +sqrt(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqrt_346(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_117(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_115(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +nvalues(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_254(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_256(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_250(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_252(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). + +binpacking(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). + +linear(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +abs(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). + +convex(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> gecode_constraint_convex_50(Y0,Y1) + ; throw(gecode_argument_error(convex(X0,X1),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1),arg=1))). + +div(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_div_122(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). + +rel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_311(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_315(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntSet(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_326(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_327(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_328(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_329(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). + +weights(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_weights_364(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_max_219(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_path_263(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +unary(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_unary_358(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_unary_354(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_unary_348(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_unary_351(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). + +sorted(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_sorted_341(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_34(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). + +dom(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_dom_136(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) + ; (is_IntSet(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_130(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_129(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_127(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_146(Y0,Y1,Y2,Y3) + ; (is_IntSet(X3,Y3) + -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). + +abs(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_abs_1(Y0,Y1,Y2) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). + +channel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). + +rel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_304(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_296(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_path_266(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). + +branch(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarBranch(X2,Y2) + -> (is_SetValBranch(X3,Y3) + -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). + +mult(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mult_239(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). + +clause(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_clause_46(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). + +precede(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_275(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_272(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_precede_271(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). + +channel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_101(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +distinct(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_distinct_121(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_distinct_118(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). + +member(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_227(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_223(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). + +mod(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mod_236(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). + +sqr(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqr_344(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_337(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_335(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_264(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_path_261(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_258(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +divmod(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_divmod_125(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). + +sorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_sorted_342(Y0,Y1,Y2) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_circuit_44(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_circuit_43(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). + +channel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_channel_31(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> gecode_constraint_channel_28(Y0,Y1,Y2) + ; (is_IntVarArgs(X2,Y2) + -> gecode_constraint_channel_26(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_22(Y0,Y1,Y2) + ; (is_SetVar(X2,Y2) + -> gecode_constraint_channel_25(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_20(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_52(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_70(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_62(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_64(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_61(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_57(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_67(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_74(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_76(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_116(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_114(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +binpacking(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). + +linear(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_209(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_213(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> gecode_constraint_nooverlap_246(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_nooverlap_241(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +div(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_div_123(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). + +sqr(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqr_345(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_265(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> gecode_constraint_path_262(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_259(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +unary(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_356(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_359(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_352(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_355(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_349(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). + +sorted(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_sorted_340(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_sorted_343(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_161(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_159(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_163(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_153(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_151(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_182(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_180(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_178(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_176(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_169(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_175(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_167(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). + +sequence(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_sequence_339(Y0,Y1,Y2) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +precede(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_274(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_270(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_78(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_100(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). + +distinct(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_distinct_119(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_230(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_234(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). + +sqrt(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqrt_347(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_336(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_334(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). + +unshare(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_363(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_361(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_path_269(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_path_260(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). + +divmod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_divmod_124(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_nooverlap_245(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +cumulative(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). + +member(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_member_228(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_member_224(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_75(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_77(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_65(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). + +notMin(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMin_249(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +branch(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_16(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_12(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetValBranch(X2,Y2) + -> gecode_constraint_branch_17(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). + +dom(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_140(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_134(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_128(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_126(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_208(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_211(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_212(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_215(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_184(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_nooverlap_240(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_nooverlap_243(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). + +element(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_183(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_181(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_179(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_177(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). + +rel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) + ; (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_297(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_324(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_322(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3) + ; (is_IntVarArgs(X3,Y3) + -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_305(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_312(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_316(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_318(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_319(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_325(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_330(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_332(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_276(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_min_233(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). + +count(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_count_68(Y0,Y1,Y2) + ; (is_IntSetArgs(X2,Y2) + -> gecode_constraint_count_58(Y0,Y1,Y2) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). + diff --git a/packages/gecode/3.7.1/gecode_yap_cc_forward_auto_generated.icc b/packages/gecode/3.7.1/gecode_yap_cc_forward_auto_generated.icc new file mode 100644 index 000000000..67781a39b --- /dev/null +++ b/packages/gecode/3.7.1/gecode_yap_cc_forward_auto_generated.icc @@ -0,0 +1,31 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static IntRelType gecode_IntRelType_from_term(YAP_Term); +static BoolOpType gecode_BoolOpType_from_term(YAP_Term); +static IntConLevel gecode_IntConLevel_from_term(YAP_Term); +static TaskType gecode_TaskType_from_term(YAP_Term); +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); +static IntValBranch gecode_IntValBranch_from_term(YAP_Term); +static IntAssign gecode_IntAssign_from_term(YAP_Term); +static SetRelType gecode_SetRelType_from_term(YAP_Term); +static SetOpType gecode_SetOpType_from_term(YAP_Term); +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); +static SetValBranch gecode_SetValBranch_from_term(YAP_Term); +static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/packages/gecode/3.7.1/gecode_yap_cc_impl_auto_generated.icc b/packages/gecode/3.7.1/gecode_yap_cc_impl_auto_generated.icc new file mode 100644 index 000000000..8b41f068b --- /dev/null +++ b/packages/gecode/3.7.1/gecode_yap_cc_impl_auto_generated.icc @@ -0,0 +1,4315 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static YAP_Term gecode_IRT_EQ; +static YAP_Term gecode_IRT_NQ; +static YAP_Term gecode_IRT_LQ; +static YAP_Term gecode_IRT_LE; +static YAP_Term gecode_IRT_GQ; +static YAP_Term gecode_IRT_GR; + +static IntRelType gecode_IntRelType_from_term(YAP_Term X) +{ + if (X==gecode_IRT_EQ) return IRT_EQ; + if (X==gecode_IRT_NQ) return IRT_NQ; + if (X==gecode_IRT_LQ) return IRT_LQ; + if (X==gecode_IRT_LE) return IRT_LE; + if (X==gecode_IRT_GQ) return IRT_GQ; + if (X==gecode_IRT_GR) return IRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_BOT_AND; +static YAP_Term gecode_BOT_OR; +static YAP_Term gecode_BOT_IMP; +static YAP_Term gecode_BOT_EQV; +static YAP_Term gecode_BOT_XOR; + +static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) +{ + if (X==gecode_BOT_AND) return BOT_AND; + if (X==gecode_BOT_OR) return BOT_OR; + if (X==gecode_BOT_IMP) return BOT_IMP; + if (X==gecode_BOT_EQV) return BOT_EQV; + if (X==gecode_BOT_XOR) return BOT_XOR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_ICL_VAL; +static YAP_Term gecode_ICL_BND; +static YAP_Term gecode_ICL_DOM; +static YAP_Term gecode_ICL_DEF; + +static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) +{ + if (X==gecode_ICL_VAL) return ICL_VAL; + if (X==gecode_ICL_BND) return ICL_BND; + if (X==gecode_ICL_DOM) return ICL_DOM; + if (X==gecode_ICL_DEF) return ICL_DEF; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_TT_FIXP; +static YAP_Term gecode_TT_FIXS; +static YAP_Term gecode_TT_FIXE; + +static TaskType gecode_TaskType_from_term(YAP_Term X) +{ + if (X==gecode_TT_FIXP) return TT_FIXP; + if (X==gecode_TT_FIXS) return TT_FIXS; + if (X==gecode_TT_FIXE) return TT_FIXE; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_EPK_DEF; +static YAP_Term gecode_EPK_SPEED; +static YAP_Term gecode_EPK_MEMORY; + +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) +{ + if (X==gecode_EPK_DEF) return EPK_DEF; + if (X==gecode_EPK_SPEED) return EPK_SPEED; + if (X==gecode_EPK_MEMORY) return EPK_MEMORY; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAR_NONE; +static YAP_Term gecode_INT_VAR_RND; +static YAP_Term gecode_INT_VAR_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_AFC_MIN; +static YAP_Term gecode_INT_VAR_AFC_MAX; +static YAP_Term gecode_INT_VAR_MIN_MIN; +static YAP_Term gecode_INT_VAR_MIN_MAX; +static YAP_Term gecode_INT_VAR_MAX_MIN; +static YAP_Term gecode_INT_VAR_MAX_MAX; +static YAP_Term gecode_INT_VAR_SIZE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; + +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; + if (X==gecode_INT_VAR_RND) return INT_VAR_RND; + if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; + if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; + if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; + if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; + if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; + if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; + if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; + if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; + if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; + if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; + if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; + if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; + if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; + if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; + if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; + if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; + if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; + if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAL_MIN; +static YAP_Term gecode_INT_VAL_MED; +static YAP_Term gecode_INT_VAL_MAX; +static YAP_Term gecode_INT_VAL_RND; +static YAP_Term gecode_INT_VAL_SPLIT_MIN; +static YAP_Term gecode_INT_VAL_SPLIT_MAX; +static YAP_Term gecode_INT_VAL_RANGE_MIN; +static YAP_Term gecode_INT_VAL_RANGE_MAX; +static YAP_Term gecode_INT_VALUES_MIN; +static YAP_Term gecode_INT_VALUES_MAX; + +static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; + if (X==gecode_INT_VAL_MED) return INT_VAL_MED; + if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; + if (X==gecode_INT_VAL_RND) return INT_VAL_RND; + if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; + if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; + if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; + if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; + if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; + if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_ASSIGN_MIN; +static YAP_Term gecode_INT_ASSIGN_MED; +static YAP_Term gecode_INT_ASSIGN_MAX; +static YAP_Term gecode_INT_ASSIGN_RND; + +static IntAssign gecode_IntAssign_from_term(YAP_Term X) +{ + if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; + if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; + if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; + if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SRT_EQ; +static YAP_Term gecode_SRT_NQ; +static YAP_Term gecode_SRT_SUB; +static YAP_Term gecode_SRT_SUP; +static YAP_Term gecode_SRT_DISJ; +static YAP_Term gecode_SRT_CMPL; +static YAP_Term gecode_SRT_LQ; +static YAP_Term gecode_SRT_LE; +static YAP_Term gecode_SRT_GQ; +static YAP_Term gecode_SRT_GR; + +static SetRelType gecode_SetRelType_from_term(YAP_Term X) +{ + if (X==gecode_SRT_EQ) return SRT_EQ; + if (X==gecode_SRT_NQ) return SRT_NQ; + if (X==gecode_SRT_SUB) return SRT_SUB; + if (X==gecode_SRT_SUP) return SRT_SUP; + if (X==gecode_SRT_DISJ) return SRT_DISJ; + if (X==gecode_SRT_CMPL) return SRT_CMPL; + if (X==gecode_SRT_LQ) return SRT_LQ; + if (X==gecode_SRT_LE) return SRT_LE; + if (X==gecode_SRT_GQ) return SRT_GQ; + if (X==gecode_SRT_GR) return SRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SOT_UNION; +static YAP_Term gecode_SOT_DUNION; +static YAP_Term gecode_SOT_INTER; +static YAP_Term gecode_SOT_MINUS; + +static SetOpType gecode_SetOpType_from_term(YAP_Term X) +{ + if (X==gecode_SOT_UNION) return SOT_UNION; + if (X==gecode_SOT_DUNION) return SOT_DUNION; + if (X==gecode_SOT_INTER) return SOT_INTER; + if (X==gecode_SOT_MINUS) return SOT_MINUS; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAR_NONE; +static YAP_Term gecode_SET_VAR_RND; +static YAP_Term gecode_SET_VAR_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_AFC_MIN; +static YAP_Term gecode_SET_VAR_AFC_MAX; +static YAP_Term gecode_SET_VAR_MIN_MIN; +static YAP_Term gecode_SET_VAR_MIN_MAX; +static YAP_Term gecode_SET_VAR_MAX_MIN; +static YAP_Term gecode_SET_VAR_MAX_MAX; +static YAP_Term gecode_SET_VAR_SIZE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; + +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; + if (X==gecode_SET_VAR_RND) return SET_VAR_RND; + if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; + if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; + if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; + if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; + if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; + if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; + if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; + if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; + if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; + if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; + if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; + if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; + if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; + if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAL_MIN_INC; +static YAP_Term gecode_SET_VAL_MIN_EXC; +static YAP_Term gecode_SET_VAL_MED_INC; +static YAP_Term gecode_SET_VAL_MED_EXC; +static YAP_Term gecode_SET_VAL_MAX_INC; +static YAP_Term gecode_SET_VAL_MAX_EXC; +static YAP_Term gecode_SET_VAL_RND_INC; +static YAP_Term gecode_SET_VAL_RND_EXC; + +static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; + if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; + if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; + if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; + if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; + if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; + if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; + if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_ASSIGN_MIN_INC; +static YAP_Term gecode_SET_ASSIGN_MIN_EXC; +static YAP_Term gecode_SET_ASSIGN_MED_INC; +static YAP_Term gecode_SET_ASSIGN_MED_EXC; +static YAP_Term gecode_SET_ASSIGN_MAX_INC; +static YAP_Term gecode_SET_ASSIGN_MAX_EXC; +static YAP_Term gecode_SET_ASSIGN_RND_INC; +static YAP_Term gecode_SET_ASSIGN_RND_EXC; + +static SetAssign gecode_SetAssign_from_term(YAP_Term X) +{ + if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; + if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; + if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; + if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; + if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; + if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; + if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; + if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static int gecode_constraint_unary_357(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unary_353(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nvalues_255(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_257(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_251(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_253(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_218(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_217(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_221(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_139(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_dom_149(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_convex_51(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + convex(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_nooverlap_242(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + nooverlap(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_assign_4(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_3(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_5(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_7(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_6(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_8(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_element_158(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_162(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_152(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_150(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_157(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_165(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_168(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_174(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_166(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_338(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + sequence(*space,X2); + return TRUE; +} + +static int gecode_constraint_notMax_248(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMax(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unary_350(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + unary(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_45(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_36(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_138(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_143(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_137(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_133(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_131(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_148(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_147(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_145(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_32(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_27(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_23(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_21(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nooverlap_244(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_nooverlap_247(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_160(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_154(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_156(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_164(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_172(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_170(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_max_216(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_max_220(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_362(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_unshare_360(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_path_268(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_267(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mult_238(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mult(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_clause_49(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_47(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_precede_273(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + precede(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_distinct_120(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + distinct(*space,X2); + return TRUE; +} + +static int gecode_constraint_member_226(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_229(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_222(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_225(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mod_237(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cardinality_18(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + cardinality(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_atmostOne_9(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + atmostOne(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channelSorted_33(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channelSorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_210(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_214(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_186(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_190(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_42(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + circuit(*space,X2); + return TRUE; +} + +static int gecode_constraint_rel_288(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_291(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_284(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_287(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_282(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_280(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_299(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_295(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_293(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_323(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_321(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_307(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_309(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_303(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_310(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_313(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_314(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_317(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_320(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_331(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_333(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_279(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_277(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_min_232(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_231(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_235(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_cardinality_19(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + cardinality(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_69(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_66(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_60(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_59(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_56(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqrt_346(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqrt(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulatives_117(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_115(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_113(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_111(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_109(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_107(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_105(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_103(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_nvalues_254(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_256(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_250(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_252(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_binpacking_10(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + binpacking(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_201(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_205(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_193(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_197(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_abs_2(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + abs(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_convex_50(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + convex(*space,X2); + return TRUE; +} + +static int gecode_constraint_div_122(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + div(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_311(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_315(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_300(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_301(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_289(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_285(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_283(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_281(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_326(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_327(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_328(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_329(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_weights_364(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + weights(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_219(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + max(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_263(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + path(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_unary_358(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_354(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_348(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_351(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_341(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + sorted(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_40(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_37(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_34(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_142(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_136(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_141(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_132(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_135(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_130(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_129(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_127(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_146(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_144(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_abs_1(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + abs(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_29(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_24(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_304(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_rel_296(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_266(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + path(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_14(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_13(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_15(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mult_239(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mult(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_41(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_38(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_35(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_48(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_clause_46(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_precede_275(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_272(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_271(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_30(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + channel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_86(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_89(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_82(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_85(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_79(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_98(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_101(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_94(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_97(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_91(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_distinct_121(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_distinct_118(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_227(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_223(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mod_236(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mod(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqr_344(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqr(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sequence_337(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_sequence_335(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_264(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_261(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_258(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_divmod_125(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + divmod(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sorted_342(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + sorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_44(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_43(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_31(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_28(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_26(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_22(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_25(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_20(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_52(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_54(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_70(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_72(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_62(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_64(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_61(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_57(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_67(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_74(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_76(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulatives_116(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_114(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_112(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_110(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_108(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_106(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_104(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_102(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_binpacking_11(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + binpacking(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_209(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_213(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_185(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_189(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_200(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_203(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_204(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_207(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_192(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_195(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_196(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_199(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_246(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_nooverlap_241(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_div_123(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + div(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sqr_345(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqr(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_path_265(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_262(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_259(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_unary_356(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_359(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_352(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_355(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_349(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sorted_340(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_343(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_161(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_155(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_173(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_171(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_159(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_163(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_153(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_151(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_182(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_180(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_178(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_176(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_169(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_175(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_167(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sequence_339(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + sequence(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_39(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + circuit(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_precede_274(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_precede_270(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_88(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_84(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_78(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_81(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_100(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_96(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_90(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_93(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_distinct_119(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + distinct(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_230(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_min_234(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sqrt_347(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqrt(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_336(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sequence_334(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unshare_363(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_361(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_269(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_path_260(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_divmod_124(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + divmod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_245(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulative_80(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulative_92(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_228(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_224(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_71(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_73(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_75(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_77(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_63(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_65(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_53(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_55(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_notMin_249(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMin(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_87(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_83(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_99(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_95(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_branch_16(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_12(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_17(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_140(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_134(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_128(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_126(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_208(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_211(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_212(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_215(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_184(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_187(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_188(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_191(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_202(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_206(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_194(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_198(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_240(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_243(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_183(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_181(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_179(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_177(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_290(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_286(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_298(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_294(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_292(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_297(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_324(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_322(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_306(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_308(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_302(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_305(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_312(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_316(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_318(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_319(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_325(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_330(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_332(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_278(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_276(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_233(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + min(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_68(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_58(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + diff --git a/packages/gecode/3.7.1/gecode_yap_cc_init_auto_generated.icc b/packages/gecode/3.7.1/gecode_yap_cc_init_auto_generated.icc new file mode 100644 index 000000000..cb05df765 --- /dev/null +++ b/packages/gecode/3.7.1/gecode_yap_cc_init_auto_generated.icc @@ -0,0 +1,698 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); + gecode_IRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); + gecode_IRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); + gecode_IRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); + gecode_IRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); + gecode_IRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); + gecode_IRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); + gecode_BOT_AND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); + gecode_BOT_OR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); + gecode_BOT_IMP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); + gecode_BOT_EQV = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); + gecode_BOT_XOR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); + gecode_ICL_VAL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); + gecode_ICL_BND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); + gecode_ICL_DOM = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); + gecode_ICL_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); + gecode_TT_FIXP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); + gecode_TT_FIXS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); + gecode_TT_FIXE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); + gecode_EPK_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); + gecode_EPK_SPEED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); + gecode_EPK_MEMORY = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); + gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); + gecode_INT_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); + gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); + gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); + gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); + gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); + gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); + gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); + gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); + gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); + gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); + gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); + gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); + gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); + gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); + gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); + gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); + gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); + gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); + gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); + gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); + gecode_INT_VAL_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); + gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); + gecode_INT_VAL_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); + gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); + gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); + gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); + gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); + gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); + gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); + gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); + gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); + gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); + gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); + gecode_SRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); + gecode_SRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); + gecode_SRT_SUB = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); + gecode_SRT_SUP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); + gecode_SRT_DISJ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); + gecode_SRT_CMPL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); + gecode_SRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); + gecode_SRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); + gecode_SRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); + gecode_SRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); + gecode_SOT_UNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); + gecode_SOT_DUNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); + gecode_SOT_INTER = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); + gecode_SOT_MINUS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); + gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); + gecode_SET_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); + gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); + gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); + gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); + gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); + gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); + gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); + gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); + gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); + gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); + gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); + gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); + gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); + gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); + gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); + gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); + gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); + gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); + gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); + gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); + gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); + gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); + gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); + gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); + gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); + gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); + gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); + gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); + gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); + gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); + gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +YAP_UserCPredicate("gecode_constraint_unary_357", gecode_constraint_unary_357, 6); +YAP_UserCPredicate("gecode_constraint_unary_353", gecode_constraint_unary_353, 6); +YAP_UserCPredicate("gecode_constraint_nvalues_255", gecode_constraint_nvalues_255, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_257", gecode_constraint_nvalues_257, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_251", gecode_constraint_nvalues_251, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_253", gecode_constraint_nvalues_253, 5); +YAP_UserCPredicate("gecode_constraint_max_218", gecode_constraint_max_218, 4); +YAP_UserCPredicate("gecode_constraint_max_217", gecode_constraint_max_217, 4); +YAP_UserCPredicate("gecode_constraint_max_221", gecode_constraint_max_221, 4); +YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 6); +YAP_UserCPredicate("gecode_constraint_dom_149", gecode_constraint_dom_149, 6); +YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 3); +YAP_UserCPredicate("gecode_constraint_nooverlap_242", gecode_constraint_nooverlap_242, 5); +YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); +YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); +YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); +YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); +YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); +YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); +YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); +YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 4); +YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 4); +YAP_UserCPredicate("gecode_constraint_element_150", gecode_constraint_element_150, 4); +YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 4); +YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 4); +YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 4); +YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 4); +YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 4); +YAP_UserCPredicate("gecode_constraint_sequence_338", gecode_constraint_sequence_338, 2); +YAP_UserCPredicate("gecode_constraint_notMax_248", gecode_constraint_notMax_248, 3); +YAP_UserCPredicate("gecode_constraint_unary_350", gecode_constraint_unary_350, 3); +YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 4); +YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 4); +YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 5); +YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 5); +YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 5); +YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 5); +YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 5); +YAP_UserCPredicate("gecode_constraint_dom_148", gecode_constraint_dom_148, 5); +YAP_UserCPredicate("gecode_constraint_dom_147", gecode_constraint_dom_147, 5); +YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 5); +YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 4); +YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); +YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); +YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); +YAP_UserCPredicate("gecode_constraint_nooverlap_244", gecode_constraint_nooverlap_244, 8); +YAP_UserCPredicate("gecode_constraint_nooverlap_247", gecode_constraint_nooverlap_247, 8); +YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 7); +YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 7); +YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 7); +YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 7); +YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 7); +YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 7); +YAP_UserCPredicate("gecode_constraint_max_216", gecode_constraint_max_216, 3); +YAP_UserCPredicate("gecode_constraint_max_220", gecode_constraint_max_220, 3); +YAP_UserCPredicate("gecode_constraint_unshare_362", gecode_constraint_unshare_362, 2); +YAP_UserCPredicate("gecode_constraint_unshare_360", gecode_constraint_unshare_360, 2); +YAP_UserCPredicate("gecode_constraint_path_268", gecode_constraint_path_268, 5); +YAP_UserCPredicate("gecode_constraint_path_267", gecode_constraint_path_267, 5); +YAP_UserCPredicate("gecode_constraint_mult_238", gecode_constraint_mult_238, 4); +YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 6); +YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 6); +YAP_UserCPredicate("gecode_constraint_precede_273", gecode_constraint_precede_273, 5); +YAP_UserCPredicate("gecode_constraint_distinct_120", gecode_constraint_distinct_120, 2); +YAP_UserCPredicate("gecode_constraint_member_226", gecode_constraint_member_226, 4); +YAP_UserCPredicate("gecode_constraint_member_229", gecode_constraint_member_229, 4); +YAP_UserCPredicate("gecode_constraint_member_222", gecode_constraint_member_222, 4); +YAP_UserCPredicate("gecode_constraint_member_225", gecode_constraint_member_225, 4); +YAP_UserCPredicate("gecode_constraint_mod_237", gecode_constraint_mod_237, 5); +YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); +YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); +YAP_UserCPredicate("gecode_constraint_channelSorted_33", gecode_constraint_channelSorted_33, 3); +YAP_UserCPredicate("gecode_constraint_linear_210", gecode_constraint_linear_210, 4); +YAP_UserCPredicate("gecode_constraint_linear_214", gecode_constraint_linear_214, 4); +YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 4); +YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 4); +YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 2); +YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 5); +YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 5); +YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 5); +YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 5); +YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 5); +YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 5); +YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 5); +YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 5); +YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 5); +YAP_UserCPredicate("gecode_constraint_rel_323", gecode_constraint_rel_323, 5); +YAP_UserCPredicate("gecode_constraint_rel_321", gecode_constraint_rel_321, 5); +YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 5); +YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 5); +YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 5); +YAP_UserCPredicate("gecode_constraint_rel_310", gecode_constraint_rel_310, 5); +YAP_UserCPredicate("gecode_constraint_rel_313", gecode_constraint_rel_313, 5); +YAP_UserCPredicate("gecode_constraint_rel_314", gecode_constraint_rel_314, 5); +YAP_UserCPredicate("gecode_constraint_rel_317", gecode_constraint_rel_317, 5); +YAP_UserCPredicate("gecode_constraint_rel_320", gecode_constraint_rel_320, 5); +YAP_UserCPredicate("gecode_constraint_rel_331", gecode_constraint_rel_331, 5); +YAP_UserCPredicate("gecode_constraint_rel_333", gecode_constraint_rel_333, 5); +YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 5); +YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 5); +YAP_UserCPredicate("gecode_constraint_min_232", gecode_constraint_min_232, 4); +YAP_UserCPredicate("gecode_constraint_min_231", gecode_constraint_min_231, 4); +YAP_UserCPredicate("gecode_constraint_min_235", gecode_constraint_min_235, 4); +YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); +YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 4); +YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 4); +YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); +YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 4); +YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 4); +YAP_UserCPredicate("gecode_constraint_sqrt_346", gecode_constraint_sqrt_346, 3); +YAP_UserCPredicate("gecode_constraint_cumulatives_117", gecode_constraint_cumulatives_117, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_115", gecode_constraint_cumulatives_115, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 9); +YAP_UserCPredicate("gecode_constraint_nvalues_254", gecode_constraint_nvalues_254, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_256", gecode_constraint_nvalues_256, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_250", gecode_constraint_nvalues_250, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_252", gecode_constraint_nvalues_252, 4); +YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); +YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 7); +YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 7); +YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 7); +YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 7); +YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); +YAP_UserCPredicate("gecode_constraint_convex_50", gecode_constraint_convex_50, 2); +YAP_UserCPredicate("gecode_constraint_div_122", gecode_constraint_div_122, 4); +YAP_UserCPredicate("gecode_constraint_rel_311", gecode_constraint_rel_311, 6); +YAP_UserCPredicate("gecode_constraint_rel_315", gecode_constraint_rel_315, 6); +YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 6); +YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 6); +YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 6); +YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 6); +YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 6); +YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 6); +YAP_UserCPredicate("gecode_constraint_rel_326", gecode_constraint_rel_326, 6); +YAP_UserCPredicate("gecode_constraint_rel_327", gecode_constraint_rel_327, 6); +YAP_UserCPredicate("gecode_constraint_rel_328", gecode_constraint_rel_328, 6); +YAP_UserCPredicate("gecode_constraint_rel_329", gecode_constraint_rel_329, 6); +YAP_UserCPredicate("gecode_constraint_weights_364", gecode_constraint_weights_364, 5); +YAP_UserCPredicate("gecode_constraint_max_219", gecode_constraint_max_219, 5); +YAP_UserCPredicate("gecode_constraint_path_263", gecode_constraint_path_263, 9); +YAP_UserCPredicate("gecode_constraint_unary_358", gecode_constraint_unary_358, 4); +YAP_UserCPredicate("gecode_constraint_unary_354", gecode_constraint_unary_354, 4); +YAP_UserCPredicate("gecode_constraint_unary_348", gecode_constraint_unary_348, 4); +YAP_UserCPredicate("gecode_constraint_unary_351", gecode_constraint_unary_351, 4); +YAP_UserCPredicate("gecode_constraint_sorted_341", gecode_constraint_sorted_341, 5); +YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 5); +YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 5); +YAP_UserCPredicate("gecode_constraint_circuit_34", gecode_constraint_circuit_34, 5); +YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 4); +YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 4); +YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 4); +YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 4); +YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 4); +YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 4); +YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 4); +YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 4); +YAP_UserCPredicate("gecode_constraint_dom_146", gecode_constraint_dom_146, 4); +YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 4); +YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); +YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); +YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); +YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 3); +YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 3); +YAP_UserCPredicate("gecode_constraint_path_266", gecode_constraint_path_266, 4); +YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); +YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); +YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); +YAP_UserCPredicate("gecode_constraint_mult_239", gecode_constraint_mult_239, 5); +YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 6); +YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 6); +YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 6); +YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 5); +YAP_UserCPredicate("gecode_constraint_clause_46", gecode_constraint_clause_46, 5); +YAP_UserCPredicate("gecode_constraint_precede_275", gecode_constraint_precede_275, 4); +YAP_UserCPredicate("gecode_constraint_precede_272", gecode_constraint_precede_272, 4); +YAP_UserCPredicate("gecode_constraint_precede_271", gecode_constraint_precede_271, 4); +YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_98", gecode_constraint_cumulative_98, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_101", gecode_constraint_cumulative_101, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 7); +YAP_UserCPredicate("gecode_constraint_distinct_121", gecode_constraint_distinct_121, 3); +YAP_UserCPredicate("gecode_constraint_distinct_118", gecode_constraint_distinct_118, 3); +YAP_UserCPredicate("gecode_constraint_member_227", gecode_constraint_member_227, 5); +YAP_UserCPredicate("gecode_constraint_member_223", gecode_constraint_member_223, 5); +YAP_UserCPredicate("gecode_constraint_mod_236", gecode_constraint_mod_236, 4); +YAP_UserCPredicate("gecode_constraint_sqr_344", gecode_constraint_sqr_344, 3); +YAP_UserCPredicate("gecode_constraint_sequence_337", gecode_constraint_sequence_337, 7); +YAP_UserCPredicate("gecode_constraint_sequence_335", gecode_constraint_sequence_335, 7); +YAP_UserCPredicate("gecode_constraint_path_264", gecode_constraint_path_264, 7); +YAP_UserCPredicate("gecode_constraint_path_261", gecode_constraint_path_261, 7); +YAP_UserCPredicate("gecode_constraint_path_258", gecode_constraint_path_258, 7); +YAP_UserCPredicate("gecode_constraint_divmod_125", gecode_constraint_divmod_125, 6); +YAP_UserCPredicate("gecode_constraint_sorted_342", gecode_constraint_sorted_342, 3); +YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); +YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 3); +YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); +YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); +YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); +YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); +YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); +YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); +YAP_UserCPredicate("gecode_constraint_count_52", gecode_constraint_count_52, 5); +YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 5); +YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 5); +YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 5); +YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 5); +YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 5); +YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 5); +YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 5); +YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 5); +YAP_UserCPredicate("gecode_constraint_count_74", gecode_constraint_count_74, 5); +YAP_UserCPredicate("gecode_constraint_count_76", gecode_constraint_count_76, 5); +YAP_UserCPredicate("gecode_constraint_cumulatives_116", gecode_constraint_cumulatives_116, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_114", gecode_constraint_cumulatives_114, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_102", gecode_constraint_cumulatives_102, 8); +YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); +YAP_UserCPredicate("gecode_constraint_linear_209", gecode_constraint_linear_209, 6); +YAP_UserCPredicate("gecode_constraint_linear_213", gecode_constraint_linear_213, 6); +YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 6); +YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 6); +YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 6); +YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 6); +YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 6); +YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 6); +YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); +YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); +YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 6); +YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_246", gecode_constraint_nooverlap_246, 7); +YAP_UserCPredicate("gecode_constraint_nooverlap_241", gecode_constraint_nooverlap_241, 7); +YAP_UserCPredicate("gecode_constraint_div_123", gecode_constraint_div_123, 5); +YAP_UserCPredicate("gecode_constraint_sqr_345", gecode_constraint_sqr_345, 4); +YAP_UserCPredicate("gecode_constraint_path_265", gecode_constraint_path_265, 8); +YAP_UserCPredicate("gecode_constraint_path_262", gecode_constraint_path_262, 8); +YAP_UserCPredicate("gecode_constraint_path_259", gecode_constraint_path_259, 8); +YAP_UserCPredicate("gecode_constraint_unary_356", gecode_constraint_unary_356, 5); +YAP_UserCPredicate("gecode_constraint_unary_359", gecode_constraint_unary_359, 5); +YAP_UserCPredicate("gecode_constraint_unary_352", gecode_constraint_unary_352, 5); +YAP_UserCPredicate("gecode_constraint_unary_355", gecode_constraint_unary_355, 5); +YAP_UserCPredicate("gecode_constraint_unary_349", gecode_constraint_unary_349, 5); +YAP_UserCPredicate("gecode_constraint_sorted_340", gecode_constraint_sorted_340, 4); +YAP_UserCPredicate("gecode_constraint_sorted_343", gecode_constraint_sorted_343, 4); +YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 8); +YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 8); +YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 8); +YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 8); +YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 5); +YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 5); +YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 5); +YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 5); +YAP_UserCPredicate("gecode_constraint_element_182", gecode_constraint_element_182, 5); +YAP_UserCPredicate("gecode_constraint_element_180", gecode_constraint_element_180, 5); +YAP_UserCPredicate("gecode_constraint_element_178", gecode_constraint_element_178, 5); +YAP_UserCPredicate("gecode_constraint_element_176", gecode_constraint_element_176, 5); +YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 5); +YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 5); +YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 5); +YAP_UserCPredicate("gecode_constraint_sequence_339", gecode_constraint_sequence_339, 3); +YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 7); +YAP_UserCPredicate("gecode_constraint_precede_274", gecode_constraint_precede_274, 3); +YAP_UserCPredicate("gecode_constraint_precede_270", gecode_constraint_precede_270, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_78", gecode_constraint_cumulative_78, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_100", gecode_constraint_cumulative_100, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 6); +YAP_UserCPredicate("gecode_constraint_distinct_119", gecode_constraint_distinct_119, 4); +YAP_UserCPredicate("gecode_constraint_min_230", gecode_constraint_min_230, 3); +YAP_UserCPredicate("gecode_constraint_min_234", gecode_constraint_min_234, 3); +YAP_UserCPredicate("gecode_constraint_sqrt_347", gecode_constraint_sqrt_347, 4); +YAP_UserCPredicate("gecode_constraint_sequence_336", gecode_constraint_sequence_336, 6); +YAP_UserCPredicate("gecode_constraint_sequence_334", gecode_constraint_sequence_334, 6); +YAP_UserCPredicate("gecode_constraint_unshare_363", gecode_constraint_unshare_363, 3); +YAP_UserCPredicate("gecode_constraint_unshare_361", gecode_constraint_unshare_361, 3); +YAP_UserCPredicate("gecode_constraint_path_269", gecode_constraint_path_269, 6); +YAP_UserCPredicate("gecode_constraint_path_260", gecode_constraint_path_260, 6); +YAP_UserCPredicate("gecode_constraint_divmod_124", gecode_constraint_divmod_124, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_245", gecode_constraint_nooverlap_245, 9); +YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 5); +YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 5); +YAP_UserCPredicate("gecode_constraint_member_228", gecode_constraint_member_228, 3); +YAP_UserCPredicate("gecode_constraint_member_224", gecode_constraint_member_224, 3); +YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 6); +YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 6); +YAP_UserCPredicate("gecode_constraint_count_75", gecode_constraint_count_75, 6); +YAP_UserCPredicate("gecode_constraint_count_77", gecode_constraint_count_77, 6); +YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 6); +YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 6); +YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 6); +YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 6); +YAP_UserCPredicate("gecode_constraint_notMin_249", gecode_constraint_notMin_249, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_99", gecode_constraint_cumulative_99, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 8); +YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); +YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); +YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); +YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 3); +YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 3); +YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 3); +YAP_UserCPredicate("gecode_constraint_dom_126", gecode_constraint_dom_126, 3); +YAP_UserCPredicate("gecode_constraint_linear_208", gecode_constraint_linear_208, 5); +YAP_UserCPredicate("gecode_constraint_linear_211", gecode_constraint_linear_211, 5); +YAP_UserCPredicate("gecode_constraint_linear_212", gecode_constraint_linear_212, 5); +YAP_UserCPredicate("gecode_constraint_linear_215", gecode_constraint_linear_215, 5); +YAP_UserCPredicate("gecode_constraint_linear_184", gecode_constraint_linear_184, 5); +YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 5); +YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 5); +YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 5); +YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 5); +YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 5); +YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 5); +YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_240", gecode_constraint_nooverlap_240, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_243", gecode_constraint_nooverlap_243, 6); +YAP_UserCPredicate("gecode_constraint_element_183", gecode_constraint_element_183, 6); +YAP_UserCPredicate("gecode_constraint_element_181", gecode_constraint_element_181, 6); +YAP_UserCPredicate("gecode_constraint_element_179", gecode_constraint_element_179, 6); +YAP_UserCPredicate("gecode_constraint_element_177", gecode_constraint_element_177, 6); +YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 4); +YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 4); +YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); +YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 4); +YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 4); +YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 4); +YAP_UserCPredicate("gecode_constraint_rel_324", gecode_constraint_rel_324, 4); +YAP_UserCPredicate("gecode_constraint_rel_322", gecode_constraint_rel_322, 4); +YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); +YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 4); +YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 4); +YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 4); +YAP_UserCPredicate("gecode_constraint_rel_312", gecode_constraint_rel_312, 4); +YAP_UserCPredicate("gecode_constraint_rel_316", gecode_constraint_rel_316, 4); +YAP_UserCPredicate("gecode_constraint_rel_318", gecode_constraint_rel_318, 4); +YAP_UserCPredicate("gecode_constraint_rel_319", gecode_constraint_rel_319, 4); +YAP_UserCPredicate("gecode_constraint_rel_325", gecode_constraint_rel_325, 4); +YAP_UserCPredicate("gecode_constraint_rel_330", gecode_constraint_rel_330, 4); +YAP_UserCPredicate("gecode_constraint_rel_332", gecode_constraint_rel_332, 4); +YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 4); +YAP_UserCPredicate("gecode_constraint_rel_276", gecode_constraint_rel_276, 4); +YAP_UserCPredicate("gecode_constraint_min_233", gecode_constraint_min_233, 5); +YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 3); +YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 3); diff --git a/packages/gecode/3.7.2/gecode-version.txt b/packages/gecode/3.7.2/gecode-version.txt new file mode 100644 index 000000000..0b2eb36f5 --- /dev/null +++ b/packages/gecode/3.7.2/gecode-version.txt @@ -0,0 +1 @@ +3.7.2 diff --git a/packages/gecode/3.7.2/gecode_yap_auto_generated.yap b/packages/gecode/3.7.2/gecode_yap_auto_generated.yap new file mode 100644 index 000000000..1b519c648 --- /dev/null +++ b/packages/gecode/3.7.2/gecode_yap_auto_generated.yap @@ -0,0 +1,2995 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +is_IntRelType_('IRT_EQ'). +is_IntRelType_('IRT_NQ'). +is_IntRelType_('IRT_LQ'). +is_IntRelType_('IRT_LE'). +is_IntRelType_('IRT_GQ'). +is_IntRelType_('IRT_GR'). + +is_IntRelType_('IRT_EQ','IRT_EQ'). +is_IntRelType_('IRT_NQ','IRT_NQ'). +is_IntRelType_('IRT_LQ','IRT_LQ'). +is_IntRelType_('IRT_LE','IRT_LE'). +is_IntRelType_('IRT_GQ','IRT_GQ'). +is_IntRelType_('IRT_GR','IRT_GR'). + +is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). +is_IntRelType(X) :- is_IntRelType(X,_). + +is_BoolOpType_('BOT_AND'). +is_BoolOpType_('BOT_OR'). +is_BoolOpType_('BOT_IMP'). +is_BoolOpType_('BOT_EQV'). +is_BoolOpType_('BOT_XOR'). + +is_BoolOpType_('BOT_AND','BOT_AND'). +is_BoolOpType_('BOT_OR','BOT_OR'). +is_BoolOpType_('BOT_IMP','BOT_IMP'). +is_BoolOpType_('BOT_EQV','BOT_EQV'). +is_BoolOpType_('BOT_XOR','BOT_XOR'). + +is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). +is_BoolOpType(X) :- is_BoolOpType(X,_). + +is_IntConLevel_('ICL_VAL'). +is_IntConLevel_('ICL_BND'). +is_IntConLevel_('ICL_DOM'). +is_IntConLevel_('ICL_DEF'). + +is_IntConLevel_('ICL_VAL','ICL_VAL'). +is_IntConLevel_('ICL_BND','ICL_BND'). +is_IntConLevel_('ICL_DOM','ICL_DOM'). +is_IntConLevel_('ICL_DEF','ICL_DEF'). + +is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). +is_IntConLevel(X) :- is_IntConLevel(X,_). + +is_TaskType_('TT_FIXP'). +is_TaskType_('TT_FIXS'). +is_TaskType_('TT_FIXE'). + +is_TaskType_('TT_FIXP','TT_FIXP'). +is_TaskType_('TT_FIXS','TT_FIXS'). +is_TaskType_('TT_FIXE','TT_FIXE'). + +is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). +is_TaskType(X) :- is_TaskType(X,_). + +is_ExtensionalPropKind_('EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY'). + +is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). + +is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). +is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). + +is_IntVarBranch_('INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). +is_IntVarBranch(X) :- is_IntVarBranch(X,_). + +is_IntValBranch_('INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX'). + +is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). + +is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). +is_IntValBranch(X) :- is_IntValBranch(X,_). + +is_IntAssign_('INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND'). + +is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). + +is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). +is_IntAssign(X) :- is_IntAssign(X,_). + +is_SetRelType_('SRT_EQ'). +is_SetRelType_('SRT_NQ'). +is_SetRelType_('SRT_SUB'). +is_SetRelType_('SRT_SUP'). +is_SetRelType_('SRT_DISJ'). +is_SetRelType_('SRT_CMPL'). +is_SetRelType_('SRT_LQ'). +is_SetRelType_('SRT_LE'). +is_SetRelType_('SRT_GQ'). +is_SetRelType_('SRT_GR'). + +is_SetRelType_('SRT_EQ','SRT_EQ'). +is_SetRelType_('SRT_NQ','SRT_NQ'). +is_SetRelType_('SRT_SUB','SRT_SUB'). +is_SetRelType_('SRT_SUP','SRT_SUP'). +is_SetRelType_('SRT_DISJ','SRT_DISJ'). +is_SetRelType_('SRT_CMPL','SRT_CMPL'). +is_SetRelType_('SRT_LQ','SRT_LQ'). +is_SetRelType_('SRT_LE','SRT_LE'). +is_SetRelType_('SRT_GQ','SRT_GQ'). +is_SetRelType_('SRT_GR','SRT_GR'). + +is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). +is_SetRelType(X) :- is_SetRelType(X,_). + +is_SetOpType_('SOT_UNION'). +is_SetOpType_('SOT_DUNION'). +is_SetOpType_('SOT_INTER'). +is_SetOpType_('SOT_MINUS'). + +is_SetOpType_('SOT_UNION','SOT_UNION'). +is_SetOpType_('SOT_DUNION','SOT_DUNION'). +is_SetOpType_('SOT_INTER','SOT_INTER'). +is_SetOpType_('SOT_MINUS','SOT_MINUS'). + +is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). +is_SetOpType(X) :- is_SetOpType(X,_). + +is_SetVarBranch_('SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). +is_SetVarBranch(X) :- is_SetVarBranch(X,_). + +is_SetValBranch_('SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC'). + +is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). + +is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). +is_SetValBranch(X) :- is_SetValBranch(X,_). + +is_SetAssign_('SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC'). + +is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). + +is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). +is_SetAssign(X) :- is_SetAssign(X,_). + +unary(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_357(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_353(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). + +nvalues(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_255(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_257(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_251(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_253(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_max_218(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_max_217(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_max_221(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_dom_149(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). + +convex(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_convex_51(Y0,Y1,Y2) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). + +nooverlap(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_nooverlap_242(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). + +assign(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_4(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_3(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_5(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_7(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_6(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_8(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). + +element(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_162(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_152(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_150(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_157(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_165(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_168(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_174(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_166(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> gecode_constraint_sequence_338(Y0,Y1) + ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). + +notMax(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMax_248(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). + +unary(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_unary_350(Y0,Y1,Y2) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_circuit_45(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_137(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_133(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_dom_148(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_147(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntSet(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). + +channel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_32(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> gecode_constraint_nooverlap_244(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; (is_IntConLevel(X7,Y7) + -> gecode_constraint_nooverlap_247(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> gecode_constraint_element_154(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_164(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_BoolVar(X6,Y6) + -> gecode_constraint_element_170(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +max(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_216(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_220(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). + +unshare(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_unshare_362(Y0,Y1) + ; (is_BoolVarArgs(X1,Y1) + -> gecode_constraint_unshare_360(Y0,Y1) + ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). + +path(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_path_268(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_path_267(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). + +mult(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mult_238(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). + +clause(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). + +precede(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_precede_273(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). + +distinct(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_distinct_120(Y0,Y1) + ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). + +member(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_member_226(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_229(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_member_222(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_225(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). + +mod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mod_237(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). + +cardinality(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_cardinality_18(Y0,Y1,Y2) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). + +atmostOne(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). + +channelSorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_channelSorted_33(Y0,Y1,Y2) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_210(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_214(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). + +circuit(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_circuit_42(Y0,Y1) + ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). + +rel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_280(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_323(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_321(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_310(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_313(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_314(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_317(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_320(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_331(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_333(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). + +min(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_min_232(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_min_231(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_min_235(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). + +cardinality(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). + +count(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_69(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_66(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_59(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_56(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). + +sqrt(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqrt_346(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_117(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_115(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +nvalues(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_254(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_256(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_250(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_252(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). + +binpacking(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). + +linear(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +abs(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). + +convex(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> gecode_constraint_convex_50(Y0,Y1) + ; throw(gecode_argument_error(convex(X0,X1),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1),arg=1))). + +div(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_div_122(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). + +rel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_311(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_315(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntSet(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_326(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_327(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_328(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_329(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). + +weights(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_weights_364(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_max_219(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_path_263(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +unary(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_unary_358(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_unary_354(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_unary_348(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_unary_351(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). + +sorted(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_sorted_341(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_34(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). + +dom(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_dom_136(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) + ; (is_IntSet(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_130(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_129(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_127(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_146(Y0,Y1,Y2,Y3) + ; (is_IntSet(X3,Y3) + -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). + +abs(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_abs_1(Y0,Y1,Y2) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). + +channel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). + +rel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_304(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_296(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_path_266(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). + +branch(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarBranch(X2,Y2) + -> (is_SetValBranch(X3,Y3) + -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). + +mult(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mult_239(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). + +clause(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_clause_46(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). + +precede(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_275(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_272(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_precede_271(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). + +channel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_101(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +distinct(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_distinct_121(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_distinct_118(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). + +member(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_227(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_223(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). + +mod(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mod_236(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). + +sqr(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqr_344(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_337(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_335(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_264(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_path_261(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_258(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +divmod(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_divmod_125(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). + +sorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_sorted_342(Y0,Y1,Y2) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_circuit_44(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_circuit_43(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). + +channel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_channel_31(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> gecode_constraint_channel_28(Y0,Y1,Y2) + ; (is_IntVarArgs(X2,Y2) + -> gecode_constraint_channel_26(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_22(Y0,Y1,Y2) + ; (is_SetVar(X2,Y2) + -> gecode_constraint_channel_25(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_20(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_52(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_70(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_62(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_64(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_61(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_57(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_67(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_74(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_76(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_116(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_114(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +binpacking(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). + +linear(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_209(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_213(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> gecode_constraint_nooverlap_246(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_nooverlap_241(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +div(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_div_123(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). + +sqr(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqr_345(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_265(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> gecode_constraint_path_262(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_259(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +unary(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_356(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_359(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_352(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_355(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_349(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). + +sorted(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_sorted_340(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_sorted_343(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_161(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_159(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_163(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_153(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_151(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_182(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_180(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_178(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_176(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_169(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_175(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_167(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). + +sequence(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_sequence_339(Y0,Y1,Y2) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +precede(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_274(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_270(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_78(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_100(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). + +distinct(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_distinct_119(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_230(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_234(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). + +sqrt(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqrt_347(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_336(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_334(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). + +unshare(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_363(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_361(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_path_269(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_path_260(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). + +divmod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_divmod_124(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_nooverlap_245(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +cumulative(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). + +member(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_member_228(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_member_224(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_75(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_77(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_65(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). + +notMin(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMin_249(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +branch(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_16(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_12(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetValBranch(X2,Y2) + -> gecode_constraint_branch_17(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). + +dom(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_140(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_134(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_128(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_126(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_208(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_211(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_212(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_215(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_184(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_nooverlap_240(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_nooverlap_243(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). + +element(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_183(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_181(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_179(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_177(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). + +rel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) + ; (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_297(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_324(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_322(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3) + ; (is_IntVarArgs(X3,Y3) + -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_305(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_312(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_316(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_318(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_319(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_325(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_330(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_332(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_276(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_min_233(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). + +count(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_count_68(Y0,Y1,Y2) + ; (is_IntSetArgs(X2,Y2) + -> gecode_constraint_count_58(Y0,Y1,Y2) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). + diff --git a/packages/gecode/3.7.2/gecode_yap_cc_forward_auto_generated.icc b/packages/gecode/3.7.2/gecode_yap_cc_forward_auto_generated.icc new file mode 100644 index 000000000..67781a39b --- /dev/null +++ b/packages/gecode/3.7.2/gecode_yap_cc_forward_auto_generated.icc @@ -0,0 +1,31 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static IntRelType gecode_IntRelType_from_term(YAP_Term); +static BoolOpType gecode_BoolOpType_from_term(YAP_Term); +static IntConLevel gecode_IntConLevel_from_term(YAP_Term); +static TaskType gecode_TaskType_from_term(YAP_Term); +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); +static IntValBranch gecode_IntValBranch_from_term(YAP_Term); +static IntAssign gecode_IntAssign_from_term(YAP_Term); +static SetRelType gecode_SetRelType_from_term(YAP_Term); +static SetOpType gecode_SetOpType_from_term(YAP_Term); +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); +static SetValBranch gecode_SetValBranch_from_term(YAP_Term); +static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/packages/gecode/3.7.2/gecode_yap_cc_impl_auto_generated.icc b/packages/gecode/3.7.2/gecode_yap_cc_impl_auto_generated.icc new file mode 100644 index 000000000..8b41f068b --- /dev/null +++ b/packages/gecode/3.7.2/gecode_yap_cc_impl_auto_generated.icc @@ -0,0 +1,4315 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static YAP_Term gecode_IRT_EQ; +static YAP_Term gecode_IRT_NQ; +static YAP_Term gecode_IRT_LQ; +static YAP_Term gecode_IRT_LE; +static YAP_Term gecode_IRT_GQ; +static YAP_Term gecode_IRT_GR; + +static IntRelType gecode_IntRelType_from_term(YAP_Term X) +{ + if (X==gecode_IRT_EQ) return IRT_EQ; + if (X==gecode_IRT_NQ) return IRT_NQ; + if (X==gecode_IRT_LQ) return IRT_LQ; + if (X==gecode_IRT_LE) return IRT_LE; + if (X==gecode_IRT_GQ) return IRT_GQ; + if (X==gecode_IRT_GR) return IRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_BOT_AND; +static YAP_Term gecode_BOT_OR; +static YAP_Term gecode_BOT_IMP; +static YAP_Term gecode_BOT_EQV; +static YAP_Term gecode_BOT_XOR; + +static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) +{ + if (X==gecode_BOT_AND) return BOT_AND; + if (X==gecode_BOT_OR) return BOT_OR; + if (X==gecode_BOT_IMP) return BOT_IMP; + if (X==gecode_BOT_EQV) return BOT_EQV; + if (X==gecode_BOT_XOR) return BOT_XOR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_ICL_VAL; +static YAP_Term gecode_ICL_BND; +static YAP_Term gecode_ICL_DOM; +static YAP_Term gecode_ICL_DEF; + +static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) +{ + if (X==gecode_ICL_VAL) return ICL_VAL; + if (X==gecode_ICL_BND) return ICL_BND; + if (X==gecode_ICL_DOM) return ICL_DOM; + if (X==gecode_ICL_DEF) return ICL_DEF; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_TT_FIXP; +static YAP_Term gecode_TT_FIXS; +static YAP_Term gecode_TT_FIXE; + +static TaskType gecode_TaskType_from_term(YAP_Term X) +{ + if (X==gecode_TT_FIXP) return TT_FIXP; + if (X==gecode_TT_FIXS) return TT_FIXS; + if (X==gecode_TT_FIXE) return TT_FIXE; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_EPK_DEF; +static YAP_Term gecode_EPK_SPEED; +static YAP_Term gecode_EPK_MEMORY; + +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) +{ + if (X==gecode_EPK_DEF) return EPK_DEF; + if (X==gecode_EPK_SPEED) return EPK_SPEED; + if (X==gecode_EPK_MEMORY) return EPK_MEMORY; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAR_NONE; +static YAP_Term gecode_INT_VAR_RND; +static YAP_Term gecode_INT_VAR_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_AFC_MIN; +static YAP_Term gecode_INT_VAR_AFC_MAX; +static YAP_Term gecode_INT_VAR_MIN_MIN; +static YAP_Term gecode_INT_VAR_MIN_MAX; +static YAP_Term gecode_INT_VAR_MAX_MIN; +static YAP_Term gecode_INT_VAR_MAX_MAX; +static YAP_Term gecode_INT_VAR_SIZE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; + +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; + if (X==gecode_INT_VAR_RND) return INT_VAR_RND; + if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; + if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; + if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; + if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; + if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; + if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; + if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; + if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; + if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; + if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; + if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; + if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; + if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; + if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; + if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; + if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; + if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; + if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAL_MIN; +static YAP_Term gecode_INT_VAL_MED; +static YAP_Term gecode_INT_VAL_MAX; +static YAP_Term gecode_INT_VAL_RND; +static YAP_Term gecode_INT_VAL_SPLIT_MIN; +static YAP_Term gecode_INT_VAL_SPLIT_MAX; +static YAP_Term gecode_INT_VAL_RANGE_MIN; +static YAP_Term gecode_INT_VAL_RANGE_MAX; +static YAP_Term gecode_INT_VALUES_MIN; +static YAP_Term gecode_INT_VALUES_MAX; + +static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; + if (X==gecode_INT_VAL_MED) return INT_VAL_MED; + if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; + if (X==gecode_INT_VAL_RND) return INT_VAL_RND; + if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; + if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; + if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; + if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; + if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; + if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_ASSIGN_MIN; +static YAP_Term gecode_INT_ASSIGN_MED; +static YAP_Term gecode_INT_ASSIGN_MAX; +static YAP_Term gecode_INT_ASSIGN_RND; + +static IntAssign gecode_IntAssign_from_term(YAP_Term X) +{ + if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; + if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; + if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; + if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SRT_EQ; +static YAP_Term gecode_SRT_NQ; +static YAP_Term gecode_SRT_SUB; +static YAP_Term gecode_SRT_SUP; +static YAP_Term gecode_SRT_DISJ; +static YAP_Term gecode_SRT_CMPL; +static YAP_Term gecode_SRT_LQ; +static YAP_Term gecode_SRT_LE; +static YAP_Term gecode_SRT_GQ; +static YAP_Term gecode_SRT_GR; + +static SetRelType gecode_SetRelType_from_term(YAP_Term X) +{ + if (X==gecode_SRT_EQ) return SRT_EQ; + if (X==gecode_SRT_NQ) return SRT_NQ; + if (X==gecode_SRT_SUB) return SRT_SUB; + if (X==gecode_SRT_SUP) return SRT_SUP; + if (X==gecode_SRT_DISJ) return SRT_DISJ; + if (X==gecode_SRT_CMPL) return SRT_CMPL; + if (X==gecode_SRT_LQ) return SRT_LQ; + if (X==gecode_SRT_LE) return SRT_LE; + if (X==gecode_SRT_GQ) return SRT_GQ; + if (X==gecode_SRT_GR) return SRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SOT_UNION; +static YAP_Term gecode_SOT_DUNION; +static YAP_Term gecode_SOT_INTER; +static YAP_Term gecode_SOT_MINUS; + +static SetOpType gecode_SetOpType_from_term(YAP_Term X) +{ + if (X==gecode_SOT_UNION) return SOT_UNION; + if (X==gecode_SOT_DUNION) return SOT_DUNION; + if (X==gecode_SOT_INTER) return SOT_INTER; + if (X==gecode_SOT_MINUS) return SOT_MINUS; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAR_NONE; +static YAP_Term gecode_SET_VAR_RND; +static YAP_Term gecode_SET_VAR_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_AFC_MIN; +static YAP_Term gecode_SET_VAR_AFC_MAX; +static YAP_Term gecode_SET_VAR_MIN_MIN; +static YAP_Term gecode_SET_VAR_MIN_MAX; +static YAP_Term gecode_SET_VAR_MAX_MIN; +static YAP_Term gecode_SET_VAR_MAX_MAX; +static YAP_Term gecode_SET_VAR_SIZE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; + +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; + if (X==gecode_SET_VAR_RND) return SET_VAR_RND; + if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; + if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; + if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; + if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; + if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; + if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; + if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; + if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; + if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; + if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; + if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; + if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; + if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; + if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAL_MIN_INC; +static YAP_Term gecode_SET_VAL_MIN_EXC; +static YAP_Term gecode_SET_VAL_MED_INC; +static YAP_Term gecode_SET_VAL_MED_EXC; +static YAP_Term gecode_SET_VAL_MAX_INC; +static YAP_Term gecode_SET_VAL_MAX_EXC; +static YAP_Term gecode_SET_VAL_RND_INC; +static YAP_Term gecode_SET_VAL_RND_EXC; + +static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; + if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; + if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; + if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; + if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; + if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; + if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; + if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_ASSIGN_MIN_INC; +static YAP_Term gecode_SET_ASSIGN_MIN_EXC; +static YAP_Term gecode_SET_ASSIGN_MED_INC; +static YAP_Term gecode_SET_ASSIGN_MED_EXC; +static YAP_Term gecode_SET_ASSIGN_MAX_INC; +static YAP_Term gecode_SET_ASSIGN_MAX_EXC; +static YAP_Term gecode_SET_ASSIGN_RND_INC; +static YAP_Term gecode_SET_ASSIGN_RND_EXC; + +static SetAssign gecode_SetAssign_from_term(YAP_Term X) +{ + if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; + if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; + if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; + if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; + if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; + if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; + if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; + if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static int gecode_constraint_unary_357(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unary_353(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nvalues_255(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_257(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_251(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_253(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_218(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_217(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_221(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_139(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_dom_149(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_convex_51(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + convex(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_nooverlap_242(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + nooverlap(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_assign_4(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_3(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_5(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_7(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_6(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_8(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_element_158(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_162(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_152(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_150(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_157(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_165(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_168(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_174(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_166(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_338(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + sequence(*space,X2); + return TRUE; +} + +static int gecode_constraint_notMax_248(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMax(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unary_350(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + unary(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_45(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_36(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_138(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_143(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_137(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_133(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_131(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_148(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_147(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_145(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_32(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_27(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_23(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_21(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nooverlap_244(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_nooverlap_247(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_160(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_154(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_156(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_164(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_172(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_170(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_max_216(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_max_220(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_362(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_unshare_360(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_path_268(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_267(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mult_238(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mult(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_clause_49(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_47(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_precede_273(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + precede(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_distinct_120(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + distinct(*space,X2); + return TRUE; +} + +static int gecode_constraint_member_226(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_229(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_222(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_225(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mod_237(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cardinality_18(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + cardinality(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_atmostOne_9(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + atmostOne(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channelSorted_33(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channelSorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_210(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_214(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_186(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_190(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_42(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + circuit(*space,X2); + return TRUE; +} + +static int gecode_constraint_rel_288(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_291(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_284(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_287(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_282(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_280(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_299(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_295(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_293(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_323(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_321(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_307(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_309(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_303(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_310(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_313(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_314(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_317(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_320(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_331(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_333(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_279(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_277(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_min_232(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_231(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_235(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_cardinality_19(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + cardinality(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_69(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_66(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_60(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_59(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_56(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqrt_346(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqrt(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulatives_117(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_115(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_113(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_111(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_109(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_107(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_105(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_103(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_nvalues_254(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_256(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_250(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_252(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_binpacking_10(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + binpacking(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_201(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_205(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_193(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_197(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_abs_2(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + abs(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_convex_50(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + convex(*space,X2); + return TRUE; +} + +static int gecode_constraint_div_122(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + div(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_311(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_315(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_300(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_301(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_289(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_285(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_283(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_281(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_326(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_327(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_328(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_329(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_weights_364(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + weights(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_219(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + max(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_263(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + path(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_unary_358(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_354(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_348(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_351(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_341(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + sorted(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_40(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_37(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_34(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_142(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_136(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_141(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_132(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_135(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_130(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_129(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_127(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_146(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_144(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_abs_1(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + abs(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_29(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_24(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_304(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_rel_296(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_266(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + path(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_14(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_13(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_15(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mult_239(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mult(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_41(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_38(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_35(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_48(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_clause_46(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_precede_275(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_272(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_271(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_30(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + channel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_86(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_89(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_82(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_85(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_79(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_98(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_101(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_94(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_97(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_91(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_distinct_121(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_distinct_118(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_227(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_223(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mod_236(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mod(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqr_344(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqr(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sequence_337(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_sequence_335(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_264(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_261(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_258(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_divmod_125(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + divmod(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sorted_342(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + sorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_44(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_43(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_31(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_28(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_26(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_22(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_25(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_20(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_52(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_54(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_70(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_72(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_62(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_64(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_61(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_57(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_67(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_74(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_76(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulatives_116(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_114(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_112(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_110(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_108(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_106(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_104(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_102(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_binpacking_11(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + binpacking(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_209(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_213(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_185(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_189(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_200(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_203(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_204(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_207(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_192(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_195(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_196(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_199(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_246(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_nooverlap_241(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_div_123(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + div(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sqr_345(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqr(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_path_265(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_262(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_259(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_unary_356(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_359(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_352(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_355(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_349(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sorted_340(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_343(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_161(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_155(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_173(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_171(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_159(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_163(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_153(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_151(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_182(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_180(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_178(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_176(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_169(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_175(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_167(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sequence_339(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + sequence(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_39(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + circuit(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_precede_274(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_precede_270(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_88(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_84(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_78(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_81(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_100(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_96(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_90(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_93(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_distinct_119(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + distinct(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_230(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_min_234(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sqrt_347(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqrt(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_336(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sequence_334(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unshare_363(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_361(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_269(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_path_260(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_divmod_124(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + divmod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_245(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulative_80(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulative_92(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_228(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_224(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_71(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_73(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_75(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_77(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_63(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_65(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_53(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_55(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_notMin_249(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMin(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_87(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_83(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_99(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_95(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_branch_16(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_12(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_17(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_140(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_134(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_128(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_126(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_208(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_211(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_212(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_215(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_184(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_187(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_188(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_191(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_202(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_206(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_194(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_198(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_240(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_243(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_183(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_181(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_179(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_177(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_290(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_286(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_298(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_294(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_292(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_297(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_324(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_322(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_306(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_308(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_302(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_305(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_312(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_316(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_318(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_319(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_325(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_330(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_332(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_278(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_276(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_233(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + min(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_68(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_58(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + diff --git a/packages/gecode/3.7.2/gecode_yap_cc_init_auto_generated.icc b/packages/gecode/3.7.2/gecode_yap_cc_init_auto_generated.icc new file mode 100644 index 000000000..cb05df765 --- /dev/null +++ b/packages/gecode/3.7.2/gecode_yap_cc_init_auto_generated.icc @@ -0,0 +1,698 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); + gecode_IRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); + gecode_IRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); + gecode_IRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); + gecode_IRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); + gecode_IRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); + gecode_IRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); + gecode_BOT_AND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); + gecode_BOT_OR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); + gecode_BOT_IMP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); + gecode_BOT_EQV = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); + gecode_BOT_XOR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); + gecode_ICL_VAL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); + gecode_ICL_BND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); + gecode_ICL_DOM = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); + gecode_ICL_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); + gecode_TT_FIXP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); + gecode_TT_FIXS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); + gecode_TT_FIXE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); + gecode_EPK_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); + gecode_EPK_SPEED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); + gecode_EPK_MEMORY = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); + gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); + gecode_INT_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); + gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); + gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); + gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); + gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); + gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); + gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); + gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); + gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); + gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); + gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); + gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); + gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); + gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); + gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); + gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); + gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); + gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); + gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); + gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); + gecode_INT_VAL_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); + gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); + gecode_INT_VAL_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); + gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); + gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); + gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); + gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); + gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); + gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); + gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); + gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); + gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); + gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); + gecode_SRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); + gecode_SRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); + gecode_SRT_SUB = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); + gecode_SRT_SUP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); + gecode_SRT_DISJ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); + gecode_SRT_CMPL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); + gecode_SRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); + gecode_SRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); + gecode_SRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); + gecode_SRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); + gecode_SOT_UNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); + gecode_SOT_DUNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); + gecode_SOT_INTER = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); + gecode_SOT_MINUS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); + gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); + gecode_SET_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); + gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); + gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); + gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); + gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); + gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); + gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); + gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); + gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); + gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); + gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); + gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); + gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); + gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); + gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); + gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); + gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); + gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); + gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); + gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); + gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); + gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); + gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); + gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); + gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); + gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); + gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); + gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); + gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); + gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); + gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +YAP_UserCPredicate("gecode_constraint_unary_357", gecode_constraint_unary_357, 6); +YAP_UserCPredicate("gecode_constraint_unary_353", gecode_constraint_unary_353, 6); +YAP_UserCPredicate("gecode_constraint_nvalues_255", gecode_constraint_nvalues_255, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_257", gecode_constraint_nvalues_257, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_251", gecode_constraint_nvalues_251, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_253", gecode_constraint_nvalues_253, 5); +YAP_UserCPredicate("gecode_constraint_max_218", gecode_constraint_max_218, 4); +YAP_UserCPredicate("gecode_constraint_max_217", gecode_constraint_max_217, 4); +YAP_UserCPredicate("gecode_constraint_max_221", gecode_constraint_max_221, 4); +YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 6); +YAP_UserCPredicate("gecode_constraint_dom_149", gecode_constraint_dom_149, 6); +YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 3); +YAP_UserCPredicate("gecode_constraint_nooverlap_242", gecode_constraint_nooverlap_242, 5); +YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); +YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); +YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); +YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); +YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); +YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); +YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); +YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 4); +YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 4); +YAP_UserCPredicate("gecode_constraint_element_150", gecode_constraint_element_150, 4); +YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 4); +YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 4); +YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 4); +YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 4); +YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 4); +YAP_UserCPredicate("gecode_constraint_sequence_338", gecode_constraint_sequence_338, 2); +YAP_UserCPredicate("gecode_constraint_notMax_248", gecode_constraint_notMax_248, 3); +YAP_UserCPredicate("gecode_constraint_unary_350", gecode_constraint_unary_350, 3); +YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 4); +YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 4); +YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 5); +YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 5); +YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 5); +YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 5); +YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 5); +YAP_UserCPredicate("gecode_constraint_dom_148", gecode_constraint_dom_148, 5); +YAP_UserCPredicate("gecode_constraint_dom_147", gecode_constraint_dom_147, 5); +YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 5); +YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 4); +YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); +YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); +YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); +YAP_UserCPredicate("gecode_constraint_nooverlap_244", gecode_constraint_nooverlap_244, 8); +YAP_UserCPredicate("gecode_constraint_nooverlap_247", gecode_constraint_nooverlap_247, 8); +YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 7); +YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 7); +YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 7); +YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 7); +YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 7); +YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 7); +YAP_UserCPredicate("gecode_constraint_max_216", gecode_constraint_max_216, 3); +YAP_UserCPredicate("gecode_constraint_max_220", gecode_constraint_max_220, 3); +YAP_UserCPredicate("gecode_constraint_unshare_362", gecode_constraint_unshare_362, 2); +YAP_UserCPredicate("gecode_constraint_unshare_360", gecode_constraint_unshare_360, 2); +YAP_UserCPredicate("gecode_constraint_path_268", gecode_constraint_path_268, 5); +YAP_UserCPredicate("gecode_constraint_path_267", gecode_constraint_path_267, 5); +YAP_UserCPredicate("gecode_constraint_mult_238", gecode_constraint_mult_238, 4); +YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 6); +YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 6); +YAP_UserCPredicate("gecode_constraint_precede_273", gecode_constraint_precede_273, 5); +YAP_UserCPredicate("gecode_constraint_distinct_120", gecode_constraint_distinct_120, 2); +YAP_UserCPredicate("gecode_constraint_member_226", gecode_constraint_member_226, 4); +YAP_UserCPredicate("gecode_constraint_member_229", gecode_constraint_member_229, 4); +YAP_UserCPredicate("gecode_constraint_member_222", gecode_constraint_member_222, 4); +YAP_UserCPredicate("gecode_constraint_member_225", gecode_constraint_member_225, 4); +YAP_UserCPredicate("gecode_constraint_mod_237", gecode_constraint_mod_237, 5); +YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); +YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); +YAP_UserCPredicate("gecode_constraint_channelSorted_33", gecode_constraint_channelSorted_33, 3); +YAP_UserCPredicate("gecode_constraint_linear_210", gecode_constraint_linear_210, 4); +YAP_UserCPredicate("gecode_constraint_linear_214", gecode_constraint_linear_214, 4); +YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 4); +YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 4); +YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 2); +YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 5); +YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 5); +YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 5); +YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 5); +YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 5); +YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 5); +YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 5); +YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 5); +YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 5); +YAP_UserCPredicate("gecode_constraint_rel_323", gecode_constraint_rel_323, 5); +YAP_UserCPredicate("gecode_constraint_rel_321", gecode_constraint_rel_321, 5); +YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 5); +YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 5); +YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 5); +YAP_UserCPredicate("gecode_constraint_rel_310", gecode_constraint_rel_310, 5); +YAP_UserCPredicate("gecode_constraint_rel_313", gecode_constraint_rel_313, 5); +YAP_UserCPredicate("gecode_constraint_rel_314", gecode_constraint_rel_314, 5); +YAP_UserCPredicate("gecode_constraint_rel_317", gecode_constraint_rel_317, 5); +YAP_UserCPredicate("gecode_constraint_rel_320", gecode_constraint_rel_320, 5); +YAP_UserCPredicate("gecode_constraint_rel_331", gecode_constraint_rel_331, 5); +YAP_UserCPredicate("gecode_constraint_rel_333", gecode_constraint_rel_333, 5); +YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 5); +YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 5); +YAP_UserCPredicate("gecode_constraint_min_232", gecode_constraint_min_232, 4); +YAP_UserCPredicate("gecode_constraint_min_231", gecode_constraint_min_231, 4); +YAP_UserCPredicate("gecode_constraint_min_235", gecode_constraint_min_235, 4); +YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); +YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 4); +YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 4); +YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); +YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 4); +YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 4); +YAP_UserCPredicate("gecode_constraint_sqrt_346", gecode_constraint_sqrt_346, 3); +YAP_UserCPredicate("gecode_constraint_cumulatives_117", gecode_constraint_cumulatives_117, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_115", gecode_constraint_cumulatives_115, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 9); +YAP_UserCPredicate("gecode_constraint_nvalues_254", gecode_constraint_nvalues_254, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_256", gecode_constraint_nvalues_256, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_250", gecode_constraint_nvalues_250, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_252", gecode_constraint_nvalues_252, 4); +YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); +YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 7); +YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 7); +YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 7); +YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 7); +YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); +YAP_UserCPredicate("gecode_constraint_convex_50", gecode_constraint_convex_50, 2); +YAP_UserCPredicate("gecode_constraint_div_122", gecode_constraint_div_122, 4); +YAP_UserCPredicate("gecode_constraint_rel_311", gecode_constraint_rel_311, 6); +YAP_UserCPredicate("gecode_constraint_rel_315", gecode_constraint_rel_315, 6); +YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 6); +YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 6); +YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 6); +YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 6); +YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 6); +YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 6); +YAP_UserCPredicate("gecode_constraint_rel_326", gecode_constraint_rel_326, 6); +YAP_UserCPredicate("gecode_constraint_rel_327", gecode_constraint_rel_327, 6); +YAP_UserCPredicate("gecode_constraint_rel_328", gecode_constraint_rel_328, 6); +YAP_UserCPredicate("gecode_constraint_rel_329", gecode_constraint_rel_329, 6); +YAP_UserCPredicate("gecode_constraint_weights_364", gecode_constraint_weights_364, 5); +YAP_UserCPredicate("gecode_constraint_max_219", gecode_constraint_max_219, 5); +YAP_UserCPredicate("gecode_constraint_path_263", gecode_constraint_path_263, 9); +YAP_UserCPredicate("gecode_constraint_unary_358", gecode_constraint_unary_358, 4); +YAP_UserCPredicate("gecode_constraint_unary_354", gecode_constraint_unary_354, 4); +YAP_UserCPredicate("gecode_constraint_unary_348", gecode_constraint_unary_348, 4); +YAP_UserCPredicate("gecode_constraint_unary_351", gecode_constraint_unary_351, 4); +YAP_UserCPredicate("gecode_constraint_sorted_341", gecode_constraint_sorted_341, 5); +YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 5); +YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 5); +YAP_UserCPredicate("gecode_constraint_circuit_34", gecode_constraint_circuit_34, 5); +YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 4); +YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 4); +YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 4); +YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 4); +YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 4); +YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 4); +YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 4); +YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 4); +YAP_UserCPredicate("gecode_constraint_dom_146", gecode_constraint_dom_146, 4); +YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 4); +YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); +YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); +YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); +YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 3); +YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 3); +YAP_UserCPredicate("gecode_constraint_path_266", gecode_constraint_path_266, 4); +YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); +YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); +YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); +YAP_UserCPredicate("gecode_constraint_mult_239", gecode_constraint_mult_239, 5); +YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 6); +YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 6); +YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 6); +YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 5); +YAP_UserCPredicate("gecode_constraint_clause_46", gecode_constraint_clause_46, 5); +YAP_UserCPredicate("gecode_constraint_precede_275", gecode_constraint_precede_275, 4); +YAP_UserCPredicate("gecode_constraint_precede_272", gecode_constraint_precede_272, 4); +YAP_UserCPredicate("gecode_constraint_precede_271", gecode_constraint_precede_271, 4); +YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_98", gecode_constraint_cumulative_98, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_101", gecode_constraint_cumulative_101, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 7); +YAP_UserCPredicate("gecode_constraint_distinct_121", gecode_constraint_distinct_121, 3); +YAP_UserCPredicate("gecode_constraint_distinct_118", gecode_constraint_distinct_118, 3); +YAP_UserCPredicate("gecode_constraint_member_227", gecode_constraint_member_227, 5); +YAP_UserCPredicate("gecode_constraint_member_223", gecode_constraint_member_223, 5); +YAP_UserCPredicate("gecode_constraint_mod_236", gecode_constraint_mod_236, 4); +YAP_UserCPredicate("gecode_constraint_sqr_344", gecode_constraint_sqr_344, 3); +YAP_UserCPredicate("gecode_constraint_sequence_337", gecode_constraint_sequence_337, 7); +YAP_UserCPredicate("gecode_constraint_sequence_335", gecode_constraint_sequence_335, 7); +YAP_UserCPredicate("gecode_constraint_path_264", gecode_constraint_path_264, 7); +YAP_UserCPredicate("gecode_constraint_path_261", gecode_constraint_path_261, 7); +YAP_UserCPredicate("gecode_constraint_path_258", gecode_constraint_path_258, 7); +YAP_UserCPredicate("gecode_constraint_divmod_125", gecode_constraint_divmod_125, 6); +YAP_UserCPredicate("gecode_constraint_sorted_342", gecode_constraint_sorted_342, 3); +YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); +YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 3); +YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); +YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); +YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); +YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); +YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); +YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); +YAP_UserCPredicate("gecode_constraint_count_52", gecode_constraint_count_52, 5); +YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 5); +YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 5); +YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 5); +YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 5); +YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 5); +YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 5); +YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 5); +YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 5); +YAP_UserCPredicate("gecode_constraint_count_74", gecode_constraint_count_74, 5); +YAP_UserCPredicate("gecode_constraint_count_76", gecode_constraint_count_76, 5); +YAP_UserCPredicate("gecode_constraint_cumulatives_116", gecode_constraint_cumulatives_116, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_114", gecode_constraint_cumulatives_114, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_102", gecode_constraint_cumulatives_102, 8); +YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); +YAP_UserCPredicate("gecode_constraint_linear_209", gecode_constraint_linear_209, 6); +YAP_UserCPredicate("gecode_constraint_linear_213", gecode_constraint_linear_213, 6); +YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 6); +YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 6); +YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 6); +YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 6); +YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 6); +YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 6); +YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); +YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); +YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 6); +YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_246", gecode_constraint_nooverlap_246, 7); +YAP_UserCPredicate("gecode_constraint_nooverlap_241", gecode_constraint_nooverlap_241, 7); +YAP_UserCPredicate("gecode_constraint_div_123", gecode_constraint_div_123, 5); +YAP_UserCPredicate("gecode_constraint_sqr_345", gecode_constraint_sqr_345, 4); +YAP_UserCPredicate("gecode_constraint_path_265", gecode_constraint_path_265, 8); +YAP_UserCPredicate("gecode_constraint_path_262", gecode_constraint_path_262, 8); +YAP_UserCPredicate("gecode_constraint_path_259", gecode_constraint_path_259, 8); +YAP_UserCPredicate("gecode_constraint_unary_356", gecode_constraint_unary_356, 5); +YAP_UserCPredicate("gecode_constraint_unary_359", gecode_constraint_unary_359, 5); +YAP_UserCPredicate("gecode_constraint_unary_352", gecode_constraint_unary_352, 5); +YAP_UserCPredicate("gecode_constraint_unary_355", gecode_constraint_unary_355, 5); +YAP_UserCPredicate("gecode_constraint_unary_349", gecode_constraint_unary_349, 5); +YAP_UserCPredicate("gecode_constraint_sorted_340", gecode_constraint_sorted_340, 4); +YAP_UserCPredicate("gecode_constraint_sorted_343", gecode_constraint_sorted_343, 4); +YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 8); +YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 8); +YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 8); +YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 8); +YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 5); +YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 5); +YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 5); +YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 5); +YAP_UserCPredicate("gecode_constraint_element_182", gecode_constraint_element_182, 5); +YAP_UserCPredicate("gecode_constraint_element_180", gecode_constraint_element_180, 5); +YAP_UserCPredicate("gecode_constraint_element_178", gecode_constraint_element_178, 5); +YAP_UserCPredicate("gecode_constraint_element_176", gecode_constraint_element_176, 5); +YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 5); +YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 5); +YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 5); +YAP_UserCPredicate("gecode_constraint_sequence_339", gecode_constraint_sequence_339, 3); +YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 7); +YAP_UserCPredicate("gecode_constraint_precede_274", gecode_constraint_precede_274, 3); +YAP_UserCPredicate("gecode_constraint_precede_270", gecode_constraint_precede_270, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_78", gecode_constraint_cumulative_78, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_100", gecode_constraint_cumulative_100, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 6); +YAP_UserCPredicate("gecode_constraint_distinct_119", gecode_constraint_distinct_119, 4); +YAP_UserCPredicate("gecode_constraint_min_230", gecode_constraint_min_230, 3); +YAP_UserCPredicate("gecode_constraint_min_234", gecode_constraint_min_234, 3); +YAP_UserCPredicate("gecode_constraint_sqrt_347", gecode_constraint_sqrt_347, 4); +YAP_UserCPredicate("gecode_constraint_sequence_336", gecode_constraint_sequence_336, 6); +YAP_UserCPredicate("gecode_constraint_sequence_334", gecode_constraint_sequence_334, 6); +YAP_UserCPredicate("gecode_constraint_unshare_363", gecode_constraint_unshare_363, 3); +YAP_UserCPredicate("gecode_constraint_unshare_361", gecode_constraint_unshare_361, 3); +YAP_UserCPredicate("gecode_constraint_path_269", gecode_constraint_path_269, 6); +YAP_UserCPredicate("gecode_constraint_path_260", gecode_constraint_path_260, 6); +YAP_UserCPredicate("gecode_constraint_divmod_124", gecode_constraint_divmod_124, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_245", gecode_constraint_nooverlap_245, 9); +YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 5); +YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 5); +YAP_UserCPredicate("gecode_constraint_member_228", gecode_constraint_member_228, 3); +YAP_UserCPredicate("gecode_constraint_member_224", gecode_constraint_member_224, 3); +YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 6); +YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 6); +YAP_UserCPredicate("gecode_constraint_count_75", gecode_constraint_count_75, 6); +YAP_UserCPredicate("gecode_constraint_count_77", gecode_constraint_count_77, 6); +YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 6); +YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 6); +YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 6); +YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 6); +YAP_UserCPredicate("gecode_constraint_notMin_249", gecode_constraint_notMin_249, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_99", gecode_constraint_cumulative_99, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 8); +YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); +YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); +YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); +YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 3); +YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 3); +YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 3); +YAP_UserCPredicate("gecode_constraint_dom_126", gecode_constraint_dom_126, 3); +YAP_UserCPredicate("gecode_constraint_linear_208", gecode_constraint_linear_208, 5); +YAP_UserCPredicate("gecode_constraint_linear_211", gecode_constraint_linear_211, 5); +YAP_UserCPredicate("gecode_constraint_linear_212", gecode_constraint_linear_212, 5); +YAP_UserCPredicate("gecode_constraint_linear_215", gecode_constraint_linear_215, 5); +YAP_UserCPredicate("gecode_constraint_linear_184", gecode_constraint_linear_184, 5); +YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 5); +YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 5); +YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 5); +YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 5); +YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 5); +YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 5); +YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_240", gecode_constraint_nooverlap_240, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_243", gecode_constraint_nooverlap_243, 6); +YAP_UserCPredicate("gecode_constraint_element_183", gecode_constraint_element_183, 6); +YAP_UserCPredicate("gecode_constraint_element_181", gecode_constraint_element_181, 6); +YAP_UserCPredicate("gecode_constraint_element_179", gecode_constraint_element_179, 6); +YAP_UserCPredicate("gecode_constraint_element_177", gecode_constraint_element_177, 6); +YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 4); +YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 4); +YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); +YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 4); +YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 4); +YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 4); +YAP_UserCPredicate("gecode_constraint_rel_324", gecode_constraint_rel_324, 4); +YAP_UserCPredicate("gecode_constraint_rel_322", gecode_constraint_rel_322, 4); +YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); +YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 4); +YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 4); +YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 4); +YAP_UserCPredicate("gecode_constraint_rel_312", gecode_constraint_rel_312, 4); +YAP_UserCPredicate("gecode_constraint_rel_316", gecode_constraint_rel_316, 4); +YAP_UserCPredicate("gecode_constraint_rel_318", gecode_constraint_rel_318, 4); +YAP_UserCPredicate("gecode_constraint_rel_319", gecode_constraint_rel_319, 4); +YAP_UserCPredicate("gecode_constraint_rel_325", gecode_constraint_rel_325, 4); +YAP_UserCPredicate("gecode_constraint_rel_330", gecode_constraint_rel_330, 4); +YAP_UserCPredicate("gecode_constraint_rel_332", gecode_constraint_rel_332, 4); +YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 4); +YAP_UserCPredicate("gecode_constraint_rel_276", gecode_constraint_rel_276, 4); +YAP_UserCPredicate("gecode_constraint_min_233", gecode_constraint_min_233, 5); +YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 3); +YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 3); diff --git a/packages/gecode/3.7.3/gecode-version.txt b/packages/gecode/3.7.3/gecode-version.txt new file mode 100644 index 000000000..c1e43e6d4 --- /dev/null +++ b/packages/gecode/3.7.3/gecode-version.txt @@ -0,0 +1 @@ +3.7.3 diff --git a/packages/gecode/3.7.3/gecode_yap_auto_generated.yap b/packages/gecode/3.7.3/gecode_yap_auto_generated.yap new file mode 100644 index 000000000..1b519c648 --- /dev/null +++ b/packages/gecode/3.7.3/gecode_yap_auto_generated.yap @@ -0,0 +1,2995 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +is_IntRelType_('IRT_EQ'). +is_IntRelType_('IRT_NQ'). +is_IntRelType_('IRT_LQ'). +is_IntRelType_('IRT_LE'). +is_IntRelType_('IRT_GQ'). +is_IntRelType_('IRT_GR'). + +is_IntRelType_('IRT_EQ','IRT_EQ'). +is_IntRelType_('IRT_NQ','IRT_NQ'). +is_IntRelType_('IRT_LQ','IRT_LQ'). +is_IntRelType_('IRT_LE','IRT_LE'). +is_IntRelType_('IRT_GQ','IRT_GQ'). +is_IntRelType_('IRT_GR','IRT_GR'). + +is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). +is_IntRelType(X) :- is_IntRelType(X,_). + +is_BoolOpType_('BOT_AND'). +is_BoolOpType_('BOT_OR'). +is_BoolOpType_('BOT_IMP'). +is_BoolOpType_('BOT_EQV'). +is_BoolOpType_('BOT_XOR'). + +is_BoolOpType_('BOT_AND','BOT_AND'). +is_BoolOpType_('BOT_OR','BOT_OR'). +is_BoolOpType_('BOT_IMP','BOT_IMP'). +is_BoolOpType_('BOT_EQV','BOT_EQV'). +is_BoolOpType_('BOT_XOR','BOT_XOR'). + +is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). +is_BoolOpType(X) :- is_BoolOpType(X,_). + +is_IntConLevel_('ICL_VAL'). +is_IntConLevel_('ICL_BND'). +is_IntConLevel_('ICL_DOM'). +is_IntConLevel_('ICL_DEF'). + +is_IntConLevel_('ICL_VAL','ICL_VAL'). +is_IntConLevel_('ICL_BND','ICL_BND'). +is_IntConLevel_('ICL_DOM','ICL_DOM'). +is_IntConLevel_('ICL_DEF','ICL_DEF'). + +is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). +is_IntConLevel(X) :- is_IntConLevel(X,_). + +is_TaskType_('TT_FIXP'). +is_TaskType_('TT_FIXS'). +is_TaskType_('TT_FIXE'). + +is_TaskType_('TT_FIXP','TT_FIXP'). +is_TaskType_('TT_FIXS','TT_FIXS'). +is_TaskType_('TT_FIXE','TT_FIXE'). + +is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). +is_TaskType(X) :- is_TaskType(X,_). + +is_ExtensionalPropKind_('EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY'). + +is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). + +is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). +is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). + +is_IntVarBranch_('INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). +is_IntVarBranch(X) :- is_IntVarBranch(X,_). + +is_IntValBranch_('INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX'). + +is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). + +is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). +is_IntValBranch(X) :- is_IntValBranch(X,_). + +is_IntAssign_('INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND'). + +is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). + +is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). +is_IntAssign(X) :- is_IntAssign(X,_). + +is_SetRelType_('SRT_EQ'). +is_SetRelType_('SRT_NQ'). +is_SetRelType_('SRT_SUB'). +is_SetRelType_('SRT_SUP'). +is_SetRelType_('SRT_DISJ'). +is_SetRelType_('SRT_CMPL'). +is_SetRelType_('SRT_LQ'). +is_SetRelType_('SRT_LE'). +is_SetRelType_('SRT_GQ'). +is_SetRelType_('SRT_GR'). + +is_SetRelType_('SRT_EQ','SRT_EQ'). +is_SetRelType_('SRT_NQ','SRT_NQ'). +is_SetRelType_('SRT_SUB','SRT_SUB'). +is_SetRelType_('SRT_SUP','SRT_SUP'). +is_SetRelType_('SRT_DISJ','SRT_DISJ'). +is_SetRelType_('SRT_CMPL','SRT_CMPL'). +is_SetRelType_('SRT_LQ','SRT_LQ'). +is_SetRelType_('SRT_LE','SRT_LE'). +is_SetRelType_('SRT_GQ','SRT_GQ'). +is_SetRelType_('SRT_GR','SRT_GR'). + +is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). +is_SetRelType(X) :- is_SetRelType(X,_). + +is_SetOpType_('SOT_UNION'). +is_SetOpType_('SOT_DUNION'). +is_SetOpType_('SOT_INTER'). +is_SetOpType_('SOT_MINUS'). + +is_SetOpType_('SOT_UNION','SOT_UNION'). +is_SetOpType_('SOT_DUNION','SOT_DUNION'). +is_SetOpType_('SOT_INTER','SOT_INTER'). +is_SetOpType_('SOT_MINUS','SOT_MINUS'). + +is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). +is_SetOpType(X) :- is_SetOpType(X,_). + +is_SetVarBranch_('SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). +is_SetVarBranch(X) :- is_SetVarBranch(X,_). + +is_SetValBranch_('SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC'). + +is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). + +is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). +is_SetValBranch(X) :- is_SetValBranch(X,_). + +is_SetAssign_('SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC'). + +is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). + +is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). +is_SetAssign(X) :- is_SetAssign(X,_). + +unary(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_357(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_353(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). + +nvalues(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_255(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_257(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_251(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_253(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_max_218(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_max_217(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_max_221(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_dom_149(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). + +convex(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_convex_51(Y0,Y1,Y2) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). + +nooverlap(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_nooverlap_242(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). + +assign(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_4(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_3(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_5(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_7(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_6(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_8(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). + +element(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_162(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_152(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_150(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_157(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_165(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_168(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_174(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_166(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> gecode_constraint_sequence_338(Y0,Y1) + ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). + +notMax(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMax_248(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). + +unary(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_unary_350(Y0,Y1,Y2) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_circuit_45(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_137(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_133(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_dom_148(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_147(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntSet(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). + +channel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_32(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> gecode_constraint_nooverlap_244(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; (is_IntConLevel(X7,Y7) + -> gecode_constraint_nooverlap_247(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> gecode_constraint_element_154(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_164(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_BoolVar(X6,Y6) + -> gecode_constraint_element_170(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +max(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_216(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_220(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). + +unshare(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_unshare_362(Y0,Y1) + ; (is_BoolVarArgs(X1,Y1) + -> gecode_constraint_unshare_360(Y0,Y1) + ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). + +path(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_path_268(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_path_267(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). + +mult(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mult_238(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). + +clause(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). + +precede(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_precede_273(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). + +distinct(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_distinct_120(Y0,Y1) + ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). + +member(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_member_226(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_229(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_member_222(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_225(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). + +mod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mod_237(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). + +cardinality(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_cardinality_18(Y0,Y1,Y2) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). + +atmostOne(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). + +channelSorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_channelSorted_33(Y0,Y1,Y2) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_210(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_214(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). + +circuit(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_circuit_42(Y0,Y1) + ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). + +rel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_280(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_323(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_321(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_310(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_313(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_314(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_317(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_320(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_331(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_333(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). + +min(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_min_232(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_min_231(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_min_235(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). + +cardinality(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). + +count(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_69(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_66(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_59(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_56(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). + +sqrt(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqrt_346(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_117(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_115(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +nvalues(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_254(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_256(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_250(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_252(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). + +binpacking(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). + +linear(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +abs(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). + +convex(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> gecode_constraint_convex_50(Y0,Y1) + ; throw(gecode_argument_error(convex(X0,X1),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1),arg=1))). + +div(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_div_122(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). + +rel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_311(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_315(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntSet(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_326(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_327(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_328(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_329(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). + +weights(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_weights_364(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_max_219(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_path_263(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +unary(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_unary_358(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_unary_354(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_unary_348(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_unary_351(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). + +sorted(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_sorted_341(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_34(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). + +dom(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_dom_136(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) + ; (is_IntSet(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_130(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_129(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_127(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_146(Y0,Y1,Y2,Y3) + ; (is_IntSet(X3,Y3) + -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). + +abs(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_abs_1(Y0,Y1,Y2) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). + +channel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). + +rel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_304(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_296(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_path_266(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). + +branch(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarBranch(X2,Y2) + -> (is_SetValBranch(X3,Y3) + -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). + +mult(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mult_239(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). + +clause(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_clause_46(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). + +precede(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_275(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_272(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_precede_271(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). + +channel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_101(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +distinct(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_distinct_121(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_distinct_118(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). + +member(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_227(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_223(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). + +mod(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mod_236(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). + +sqr(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqr_344(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_337(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_335(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_264(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_path_261(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_258(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +divmod(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_divmod_125(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). + +sorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_sorted_342(Y0,Y1,Y2) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_circuit_44(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_circuit_43(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). + +channel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_channel_31(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> gecode_constraint_channel_28(Y0,Y1,Y2) + ; (is_IntVarArgs(X2,Y2) + -> gecode_constraint_channel_26(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_22(Y0,Y1,Y2) + ; (is_SetVar(X2,Y2) + -> gecode_constraint_channel_25(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_20(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_52(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_70(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_62(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_64(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_61(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_57(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_67(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_74(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_76(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_116(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_114(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +binpacking(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). + +linear(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_209(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_213(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> gecode_constraint_nooverlap_246(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_nooverlap_241(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +div(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_div_123(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). + +sqr(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqr_345(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_265(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> gecode_constraint_path_262(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_259(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +unary(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_356(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_359(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_352(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_355(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_349(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). + +sorted(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_sorted_340(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_sorted_343(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_161(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_159(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_163(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_153(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_151(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_182(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_180(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_178(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_176(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_169(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_175(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_167(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). + +sequence(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_sequence_339(Y0,Y1,Y2) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +precede(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_274(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_270(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_78(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_100(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). + +distinct(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_distinct_119(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_230(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_234(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). + +sqrt(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqrt_347(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_336(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_334(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). + +unshare(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_363(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_361(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_path_269(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_path_260(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). + +divmod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_divmod_124(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_nooverlap_245(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +cumulative(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). + +member(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_member_228(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_member_224(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_75(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_77(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_65(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). + +notMin(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMin_249(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +branch(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_16(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_12(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetValBranch(X2,Y2) + -> gecode_constraint_branch_17(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). + +dom(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_140(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_134(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_128(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_126(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_208(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_211(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_212(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_215(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_184(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_nooverlap_240(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_nooverlap_243(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). + +element(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_183(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_181(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_179(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_177(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). + +rel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) + ; (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_297(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_324(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_322(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3) + ; (is_IntVarArgs(X3,Y3) + -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_305(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_312(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_316(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_318(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_319(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_325(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_330(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_332(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_276(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_min_233(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). + +count(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_count_68(Y0,Y1,Y2) + ; (is_IntSetArgs(X2,Y2) + -> gecode_constraint_count_58(Y0,Y1,Y2) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). + diff --git a/packages/gecode/3.7.3/gecode_yap_cc_forward_auto_generated.icc b/packages/gecode/3.7.3/gecode_yap_cc_forward_auto_generated.icc new file mode 100644 index 000000000..67781a39b --- /dev/null +++ b/packages/gecode/3.7.3/gecode_yap_cc_forward_auto_generated.icc @@ -0,0 +1,31 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static IntRelType gecode_IntRelType_from_term(YAP_Term); +static BoolOpType gecode_BoolOpType_from_term(YAP_Term); +static IntConLevel gecode_IntConLevel_from_term(YAP_Term); +static TaskType gecode_TaskType_from_term(YAP_Term); +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); +static IntValBranch gecode_IntValBranch_from_term(YAP_Term); +static IntAssign gecode_IntAssign_from_term(YAP_Term); +static SetRelType gecode_SetRelType_from_term(YAP_Term); +static SetOpType gecode_SetOpType_from_term(YAP_Term); +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); +static SetValBranch gecode_SetValBranch_from_term(YAP_Term); +static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/packages/gecode/3.7.3/gecode_yap_cc_impl_auto_generated.icc b/packages/gecode/3.7.3/gecode_yap_cc_impl_auto_generated.icc new file mode 100644 index 000000000..8b41f068b --- /dev/null +++ b/packages/gecode/3.7.3/gecode_yap_cc_impl_auto_generated.icc @@ -0,0 +1,4315 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static YAP_Term gecode_IRT_EQ; +static YAP_Term gecode_IRT_NQ; +static YAP_Term gecode_IRT_LQ; +static YAP_Term gecode_IRT_LE; +static YAP_Term gecode_IRT_GQ; +static YAP_Term gecode_IRT_GR; + +static IntRelType gecode_IntRelType_from_term(YAP_Term X) +{ + if (X==gecode_IRT_EQ) return IRT_EQ; + if (X==gecode_IRT_NQ) return IRT_NQ; + if (X==gecode_IRT_LQ) return IRT_LQ; + if (X==gecode_IRT_LE) return IRT_LE; + if (X==gecode_IRT_GQ) return IRT_GQ; + if (X==gecode_IRT_GR) return IRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_BOT_AND; +static YAP_Term gecode_BOT_OR; +static YAP_Term gecode_BOT_IMP; +static YAP_Term gecode_BOT_EQV; +static YAP_Term gecode_BOT_XOR; + +static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) +{ + if (X==gecode_BOT_AND) return BOT_AND; + if (X==gecode_BOT_OR) return BOT_OR; + if (X==gecode_BOT_IMP) return BOT_IMP; + if (X==gecode_BOT_EQV) return BOT_EQV; + if (X==gecode_BOT_XOR) return BOT_XOR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_ICL_VAL; +static YAP_Term gecode_ICL_BND; +static YAP_Term gecode_ICL_DOM; +static YAP_Term gecode_ICL_DEF; + +static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) +{ + if (X==gecode_ICL_VAL) return ICL_VAL; + if (X==gecode_ICL_BND) return ICL_BND; + if (X==gecode_ICL_DOM) return ICL_DOM; + if (X==gecode_ICL_DEF) return ICL_DEF; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_TT_FIXP; +static YAP_Term gecode_TT_FIXS; +static YAP_Term gecode_TT_FIXE; + +static TaskType gecode_TaskType_from_term(YAP_Term X) +{ + if (X==gecode_TT_FIXP) return TT_FIXP; + if (X==gecode_TT_FIXS) return TT_FIXS; + if (X==gecode_TT_FIXE) return TT_FIXE; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_EPK_DEF; +static YAP_Term gecode_EPK_SPEED; +static YAP_Term gecode_EPK_MEMORY; + +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) +{ + if (X==gecode_EPK_DEF) return EPK_DEF; + if (X==gecode_EPK_SPEED) return EPK_SPEED; + if (X==gecode_EPK_MEMORY) return EPK_MEMORY; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAR_NONE; +static YAP_Term gecode_INT_VAR_RND; +static YAP_Term gecode_INT_VAR_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_AFC_MIN; +static YAP_Term gecode_INT_VAR_AFC_MAX; +static YAP_Term gecode_INT_VAR_MIN_MIN; +static YAP_Term gecode_INT_VAR_MIN_MAX; +static YAP_Term gecode_INT_VAR_MAX_MIN; +static YAP_Term gecode_INT_VAR_MAX_MAX; +static YAP_Term gecode_INT_VAR_SIZE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; + +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; + if (X==gecode_INT_VAR_RND) return INT_VAR_RND; + if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; + if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; + if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; + if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; + if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; + if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; + if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; + if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; + if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; + if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; + if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; + if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; + if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; + if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; + if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; + if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; + if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; + if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAL_MIN; +static YAP_Term gecode_INT_VAL_MED; +static YAP_Term gecode_INT_VAL_MAX; +static YAP_Term gecode_INT_VAL_RND; +static YAP_Term gecode_INT_VAL_SPLIT_MIN; +static YAP_Term gecode_INT_VAL_SPLIT_MAX; +static YAP_Term gecode_INT_VAL_RANGE_MIN; +static YAP_Term gecode_INT_VAL_RANGE_MAX; +static YAP_Term gecode_INT_VALUES_MIN; +static YAP_Term gecode_INT_VALUES_MAX; + +static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; + if (X==gecode_INT_VAL_MED) return INT_VAL_MED; + if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; + if (X==gecode_INT_VAL_RND) return INT_VAL_RND; + if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; + if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; + if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; + if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; + if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; + if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_ASSIGN_MIN; +static YAP_Term gecode_INT_ASSIGN_MED; +static YAP_Term gecode_INT_ASSIGN_MAX; +static YAP_Term gecode_INT_ASSIGN_RND; + +static IntAssign gecode_IntAssign_from_term(YAP_Term X) +{ + if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; + if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; + if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; + if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SRT_EQ; +static YAP_Term gecode_SRT_NQ; +static YAP_Term gecode_SRT_SUB; +static YAP_Term gecode_SRT_SUP; +static YAP_Term gecode_SRT_DISJ; +static YAP_Term gecode_SRT_CMPL; +static YAP_Term gecode_SRT_LQ; +static YAP_Term gecode_SRT_LE; +static YAP_Term gecode_SRT_GQ; +static YAP_Term gecode_SRT_GR; + +static SetRelType gecode_SetRelType_from_term(YAP_Term X) +{ + if (X==gecode_SRT_EQ) return SRT_EQ; + if (X==gecode_SRT_NQ) return SRT_NQ; + if (X==gecode_SRT_SUB) return SRT_SUB; + if (X==gecode_SRT_SUP) return SRT_SUP; + if (X==gecode_SRT_DISJ) return SRT_DISJ; + if (X==gecode_SRT_CMPL) return SRT_CMPL; + if (X==gecode_SRT_LQ) return SRT_LQ; + if (X==gecode_SRT_LE) return SRT_LE; + if (X==gecode_SRT_GQ) return SRT_GQ; + if (X==gecode_SRT_GR) return SRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SOT_UNION; +static YAP_Term gecode_SOT_DUNION; +static YAP_Term gecode_SOT_INTER; +static YAP_Term gecode_SOT_MINUS; + +static SetOpType gecode_SetOpType_from_term(YAP_Term X) +{ + if (X==gecode_SOT_UNION) return SOT_UNION; + if (X==gecode_SOT_DUNION) return SOT_DUNION; + if (X==gecode_SOT_INTER) return SOT_INTER; + if (X==gecode_SOT_MINUS) return SOT_MINUS; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAR_NONE; +static YAP_Term gecode_SET_VAR_RND; +static YAP_Term gecode_SET_VAR_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_AFC_MIN; +static YAP_Term gecode_SET_VAR_AFC_MAX; +static YAP_Term gecode_SET_VAR_MIN_MIN; +static YAP_Term gecode_SET_VAR_MIN_MAX; +static YAP_Term gecode_SET_VAR_MAX_MIN; +static YAP_Term gecode_SET_VAR_MAX_MAX; +static YAP_Term gecode_SET_VAR_SIZE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; + +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; + if (X==gecode_SET_VAR_RND) return SET_VAR_RND; + if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; + if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; + if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; + if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; + if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; + if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; + if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; + if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; + if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; + if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; + if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; + if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; + if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; + if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAL_MIN_INC; +static YAP_Term gecode_SET_VAL_MIN_EXC; +static YAP_Term gecode_SET_VAL_MED_INC; +static YAP_Term gecode_SET_VAL_MED_EXC; +static YAP_Term gecode_SET_VAL_MAX_INC; +static YAP_Term gecode_SET_VAL_MAX_EXC; +static YAP_Term gecode_SET_VAL_RND_INC; +static YAP_Term gecode_SET_VAL_RND_EXC; + +static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; + if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; + if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; + if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; + if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; + if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; + if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; + if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_ASSIGN_MIN_INC; +static YAP_Term gecode_SET_ASSIGN_MIN_EXC; +static YAP_Term gecode_SET_ASSIGN_MED_INC; +static YAP_Term gecode_SET_ASSIGN_MED_EXC; +static YAP_Term gecode_SET_ASSIGN_MAX_INC; +static YAP_Term gecode_SET_ASSIGN_MAX_EXC; +static YAP_Term gecode_SET_ASSIGN_RND_INC; +static YAP_Term gecode_SET_ASSIGN_RND_EXC; + +static SetAssign gecode_SetAssign_from_term(YAP_Term X) +{ + if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; + if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; + if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; + if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; + if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; + if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; + if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; + if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static int gecode_constraint_unary_357(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unary_353(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nvalues_255(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_257(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_251(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_253(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_218(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_217(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_221(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_139(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_dom_149(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_convex_51(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + convex(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_nooverlap_242(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + nooverlap(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_assign_4(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_3(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_5(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_7(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_6(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_8(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_element_158(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_162(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_152(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_150(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_157(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_165(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_168(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_174(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_166(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_338(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + sequence(*space,X2); + return TRUE; +} + +static int gecode_constraint_notMax_248(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMax(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unary_350(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + unary(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_45(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_36(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_138(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_143(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_137(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_133(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_131(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_148(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_147(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_145(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_32(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_27(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_23(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_21(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nooverlap_244(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_nooverlap_247(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_160(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_154(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_156(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_164(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_172(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_170(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_max_216(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_max_220(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_362(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_unshare_360(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_path_268(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_267(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mult_238(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mult(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_clause_49(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_47(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_precede_273(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + precede(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_distinct_120(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + distinct(*space,X2); + return TRUE; +} + +static int gecode_constraint_member_226(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_229(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_222(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_225(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mod_237(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cardinality_18(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + cardinality(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_atmostOne_9(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + atmostOne(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channelSorted_33(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channelSorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_210(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_214(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_186(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_190(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_42(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + circuit(*space,X2); + return TRUE; +} + +static int gecode_constraint_rel_288(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_291(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_284(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_287(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_282(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_280(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_299(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_295(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_293(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_323(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_321(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_307(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_309(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_303(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_310(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_313(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_314(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_317(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_320(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_331(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_333(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_279(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_277(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_min_232(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_231(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_235(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_cardinality_19(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + cardinality(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_69(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_66(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_60(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_59(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_56(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqrt_346(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqrt(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulatives_117(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_115(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_113(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_111(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_109(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_107(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_105(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_103(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_nvalues_254(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_256(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_250(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_252(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_binpacking_10(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + binpacking(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_201(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_205(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_193(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_197(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_abs_2(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + abs(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_convex_50(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + convex(*space,X2); + return TRUE; +} + +static int gecode_constraint_div_122(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + div(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_311(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_315(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_300(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_301(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_289(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_285(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_283(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_281(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_326(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_327(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_328(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_329(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_weights_364(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + weights(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_219(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + max(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_263(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + path(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_unary_358(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_354(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_348(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_351(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_341(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + sorted(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_40(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_37(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_34(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_142(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_136(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_141(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_132(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_135(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_130(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_129(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_127(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_146(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_144(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_abs_1(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + abs(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_29(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_24(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_304(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_rel_296(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_266(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + path(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_14(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_13(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_15(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mult_239(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mult(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_41(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_38(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_35(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_48(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_clause_46(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_precede_275(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_272(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_271(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_30(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + channel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_86(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_89(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_82(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_85(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_79(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_98(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_101(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_94(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_97(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_91(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_distinct_121(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_distinct_118(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_227(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_223(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mod_236(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mod(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqr_344(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqr(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sequence_337(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_sequence_335(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_264(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_261(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_258(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_divmod_125(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + divmod(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sorted_342(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + sorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_44(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_43(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_31(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_28(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_26(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_22(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_25(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_20(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_52(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_54(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_70(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_72(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_62(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_64(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_61(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_57(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_67(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_74(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_76(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulatives_116(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_114(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_112(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_110(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_108(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_106(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_104(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_102(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_binpacking_11(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + binpacking(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_209(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_213(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_185(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_189(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_200(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_203(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_204(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_207(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_192(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_195(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_196(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_199(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_246(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_nooverlap_241(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_div_123(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + div(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sqr_345(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqr(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_path_265(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_262(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_259(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_unary_356(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_359(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_352(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_355(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_349(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sorted_340(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_343(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_161(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_155(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_173(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_171(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_159(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_163(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_153(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_151(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_182(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_180(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_178(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_176(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_169(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_175(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_167(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sequence_339(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + sequence(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_39(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + circuit(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_precede_274(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_precede_270(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_88(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_84(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_78(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_81(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_100(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_96(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_90(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_93(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_distinct_119(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + distinct(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_230(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_min_234(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sqrt_347(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqrt(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_336(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sequence_334(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unshare_363(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_361(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_269(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_path_260(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_divmod_124(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + divmod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_245(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulative_80(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulative_92(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_228(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_224(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_71(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_73(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_75(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_77(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_63(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_65(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_53(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_55(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_notMin_249(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMin(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_87(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_83(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_99(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_95(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_branch_16(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_12(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_17(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_140(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_134(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_128(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_126(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_208(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_211(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_212(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_215(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_184(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_187(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_188(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_191(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_202(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_206(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_194(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_198(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_240(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_243(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_183(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_181(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_179(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_177(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_290(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_286(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_298(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_294(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_292(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_297(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_324(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_322(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_306(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_308(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_302(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_305(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_312(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_316(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_318(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_319(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_325(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_330(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_332(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_278(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_276(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_233(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + min(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_68(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_58(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + diff --git a/packages/gecode/3.7.3/gecode_yap_cc_init_auto_generated.icc b/packages/gecode/3.7.3/gecode_yap_cc_init_auto_generated.icc new file mode 100644 index 000000000..cb05df765 --- /dev/null +++ b/packages/gecode/3.7.3/gecode_yap_cc_init_auto_generated.icc @@ -0,0 +1,698 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); + gecode_IRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); + gecode_IRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); + gecode_IRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); + gecode_IRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); + gecode_IRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); + gecode_IRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); + gecode_BOT_AND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); + gecode_BOT_OR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); + gecode_BOT_IMP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); + gecode_BOT_EQV = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); + gecode_BOT_XOR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); + gecode_ICL_VAL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); + gecode_ICL_BND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); + gecode_ICL_DOM = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); + gecode_ICL_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); + gecode_TT_FIXP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); + gecode_TT_FIXS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); + gecode_TT_FIXE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); + gecode_EPK_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); + gecode_EPK_SPEED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); + gecode_EPK_MEMORY = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); + gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); + gecode_INT_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); + gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); + gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); + gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); + gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); + gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); + gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); + gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); + gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); + gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); + gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); + gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); + gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); + gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); + gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); + gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); + gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); + gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); + gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); + gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); + gecode_INT_VAL_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); + gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); + gecode_INT_VAL_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); + gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); + gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); + gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); + gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); + gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); + gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); + gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); + gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); + gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); + gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); + gecode_SRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); + gecode_SRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); + gecode_SRT_SUB = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); + gecode_SRT_SUP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); + gecode_SRT_DISJ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); + gecode_SRT_CMPL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); + gecode_SRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); + gecode_SRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); + gecode_SRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); + gecode_SRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); + gecode_SOT_UNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); + gecode_SOT_DUNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); + gecode_SOT_INTER = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); + gecode_SOT_MINUS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); + gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); + gecode_SET_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); + gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); + gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); + gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); + gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); + gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); + gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); + gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); + gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); + gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); + gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); + gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); + gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); + gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); + gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); + gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); + gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); + gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); + gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); + gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); + gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); + gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); + gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); + gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); + gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); + gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); + gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); + gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); + gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); + gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); + gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +YAP_UserCPredicate("gecode_constraint_unary_357", gecode_constraint_unary_357, 6); +YAP_UserCPredicate("gecode_constraint_unary_353", gecode_constraint_unary_353, 6); +YAP_UserCPredicate("gecode_constraint_nvalues_255", gecode_constraint_nvalues_255, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_257", gecode_constraint_nvalues_257, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_251", gecode_constraint_nvalues_251, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_253", gecode_constraint_nvalues_253, 5); +YAP_UserCPredicate("gecode_constraint_max_218", gecode_constraint_max_218, 4); +YAP_UserCPredicate("gecode_constraint_max_217", gecode_constraint_max_217, 4); +YAP_UserCPredicate("gecode_constraint_max_221", gecode_constraint_max_221, 4); +YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 6); +YAP_UserCPredicate("gecode_constraint_dom_149", gecode_constraint_dom_149, 6); +YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 3); +YAP_UserCPredicate("gecode_constraint_nooverlap_242", gecode_constraint_nooverlap_242, 5); +YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); +YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); +YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); +YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); +YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); +YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); +YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); +YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 4); +YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 4); +YAP_UserCPredicate("gecode_constraint_element_150", gecode_constraint_element_150, 4); +YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 4); +YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 4); +YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 4); +YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 4); +YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 4); +YAP_UserCPredicate("gecode_constraint_sequence_338", gecode_constraint_sequence_338, 2); +YAP_UserCPredicate("gecode_constraint_notMax_248", gecode_constraint_notMax_248, 3); +YAP_UserCPredicate("gecode_constraint_unary_350", gecode_constraint_unary_350, 3); +YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 4); +YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 4); +YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 5); +YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 5); +YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 5); +YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 5); +YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 5); +YAP_UserCPredicate("gecode_constraint_dom_148", gecode_constraint_dom_148, 5); +YAP_UserCPredicate("gecode_constraint_dom_147", gecode_constraint_dom_147, 5); +YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 5); +YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 4); +YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); +YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); +YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); +YAP_UserCPredicate("gecode_constraint_nooverlap_244", gecode_constraint_nooverlap_244, 8); +YAP_UserCPredicate("gecode_constraint_nooverlap_247", gecode_constraint_nooverlap_247, 8); +YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 7); +YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 7); +YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 7); +YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 7); +YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 7); +YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 7); +YAP_UserCPredicate("gecode_constraint_max_216", gecode_constraint_max_216, 3); +YAP_UserCPredicate("gecode_constraint_max_220", gecode_constraint_max_220, 3); +YAP_UserCPredicate("gecode_constraint_unshare_362", gecode_constraint_unshare_362, 2); +YAP_UserCPredicate("gecode_constraint_unshare_360", gecode_constraint_unshare_360, 2); +YAP_UserCPredicate("gecode_constraint_path_268", gecode_constraint_path_268, 5); +YAP_UserCPredicate("gecode_constraint_path_267", gecode_constraint_path_267, 5); +YAP_UserCPredicate("gecode_constraint_mult_238", gecode_constraint_mult_238, 4); +YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 6); +YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 6); +YAP_UserCPredicate("gecode_constraint_precede_273", gecode_constraint_precede_273, 5); +YAP_UserCPredicate("gecode_constraint_distinct_120", gecode_constraint_distinct_120, 2); +YAP_UserCPredicate("gecode_constraint_member_226", gecode_constraint_member_226, 4); +YAP_UserCPredicate("gecode_constraint_member_229", gecode_constraint_member_229, 4); +YAP_UserCPredicate("gecode_constraint_member_222", gecode_constraint_member_222, 4); +YAP_UserCPredicate("gecode_constraint_member_225", gecode_constraint_member_225, 4); +YAP_UserCPredicate("gecode_constraint_mod_237", gecode_constraint_mod_237, 5); +YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); +YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); +YAP_UserCPredicate("gecode_constraint_channelSorted_33", gecode_constraint_channelSorted_33, 3); +YAP_UserCPredicate("gecode_constraint_linear_210", gecode_constraint_linear_210, 4); +YAP_UserCPredicate("gecode_constraint_linear_214", gecode_constraint_linear_214, 4); +YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 4); +YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 4); +YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 2); +YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 5); +YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 5); +YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 5); +YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 5); +YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 5); +YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 5); +YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 5); +YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 5); +YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 5); +YAP_UserCPredicate("gecode_constraint_rel_323", gecode_constraint_rel_323, 5); +YAP_UserCPredicate("gecode_constraint_rel_321", gecode_constraint_rel_321, 5); +YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 5); +YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 5); +YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 5); +YAP_UserCPredicate("gecode_constraint_rel_310", gecode_constraint_rel_310, 5); +YAP_UserCPredicate("gecode_constraint_rel_313", gecode_constraint_rel_313, 5); +YAP_UserCPredicate("gecode_constraint_rel_314", gecode_constraint_rel_314, 5); +YAP_UserCPredicate("gecode_constraint_rel_317", gecode_constraint_rel_317, 5); +YAP_UserCPredicate("gecode_constraint_rel_320", gecode_constraint_rel_320, 5); +YAP_UserCPredicate("gecode_constraint_rel_331", gecode_constraint_rel_331, 5); +YAP_UserCPredicate("gecode_constraint_rel_333", gecode_constraint_rel_333, 5); +YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 5); +YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 5); +YAP_UserCPredicate("gecode_constraint_min_232", gecode_constraint_min_232, 4); +YAP_UserCPredicate("gecode_constraint_min_231", gecode_constraint_min_231, 4); +YAP_UserCPredicate("gecode_constraint_min_235", gecode_constraint_min_235, 4); +YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); +YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 4); +YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 4); +YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); +YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 4); +YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 4); +YAP_UserCPredicate("gecode_constraint_sqrt_346", gecode_constraint_sqrt_346, 3); +YAP_UserCPredicate("gecode_constraint_cumulatives_117", gecode_constraint_cumulatives_117, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_115", gecode_constraint_cumulatives_115, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 9); +YAP_UserCPredicate("gecode_constraint_nvalues_254", gecode_constraint_nvalues_254, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_256", gecode_constraint_nvalues_256, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_250", gecode_constraint_nvalues_250, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_252", gecode_constraint_nvalues_252, 4); +YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); +YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 7); +YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 7); +YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 7); +YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 7); +YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); +YAP_UserCPredicate("gecode_constraint_convex_50", gecode_constraint_convex_50, 2); +YAP_UserCPredicate("gecode_constraint_div_122", gecode_constraint_div_122, 4); +YAP_UserCPredicate("gecode_constraint_rel_311", gecode_constraint_rel_311, 6); +YAP_UserCPredicate("gecode_constraint_rel_315", gecode_constraint_rel_315, 6); +YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 6); +YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 6); +YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 6); +YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 6); +YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 6); +YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 6); +YAP_UserCPredicate("gecode_constraint_rel_326", gecode_constraint_rel_326, 6); +YAP_UserCPredicate("gecode_constraint_rel_327", gecode_constraint_rel_327, 6); +YAP_UserCPredicate("gecode_constraint_rel_328", gecode_constraint_rel_328, 6); +YAP_UserCPredicate("gecode_constraint_rel_329", gecode_constraint_rel_329, 6); +YAP_UserCPredicate("gecode_constraint_weights_364", gecode_constraint_weights_364, 5); +YAP_UserCPredicate("gecode_constraint_max_219", gecode_constraint_max_219, 5); +YAP_UserCPredicate("gecode_constraint_path_263", gecode_constraint_path_263, 9); +YAP_UserCPredicate("gecode_constraint_unary_358", gecode_constraint_unary_358, 4); +YAP_UserCPredicate("gecode_constraint_unary_354", gecode_constraint_unary_354, 4); +YAP_UserCPredicate("gecode_constraint_unary_348", gecode_constraint_unary_348, 4); +YAP_UserCPredicate("gecode_constraint_unary_351", gecode_constraint_unary_351, 4); +YAP_UserCPredicate("gecode_constraint_sorted_341", gecode_constraint_sorted_341, 5); +YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 5); +YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 5); +YAP_UserCPredicate("gecode_constraint_circuit_34", gecode_constraint_circuit_34, 5); +YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 4); +YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 4); +YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 4); +YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 4); +YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 4); +YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 4); +YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 4); +YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 4); +YAP_UserCPredicate("gecode_constraint_dom_146", gecode_constraint_dom_146, 4); +YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 4); +YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); +YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); +YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); +YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 3); +YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 3); +YAP_UserCPredicate("gecode_constraint_path_266", gecode_constraint_path_266, 4); +YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); +YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); +YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); +YAP_UserCPredicate("gecode_constraint_mult_239", gecode_constraint_mult_239, 5); +YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 6); +YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 6); +YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 6); +YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 5); +YAP_UserCPredicate("gecode_constraint_clause_46", gecode_constraint_clause_46, 5); +YAP_UserCPredicate("gecode_constraint_precede_275", gecode_constraint_precede_275, 4); +YAP_UserCPredicate("gecode_constraint_precede_272", gecode_constraint_precede_272, 4); +YAP_UserCPredicate("gecode_constraint_precede_271", gecode_constraint_precede_271, 4); +YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_98", gecode_constraint_cumulative_98, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_101", gecode_constraint_cumulative_101, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 7); +YAP_UserCPredicate("gecode_constraint_distinct_121", gecode_constraint_distinct_121, 3); +YAP_UserCPredicate("gecode_constraint_distinct_118", gecode_constraint_distinct_118, 3); +YAP_UserCPredicate("gecode_constraint_member_227", gecode_constraint_member_227, 5); +YAP_UserCPredicate("gecode_constraint_member_223", gecode_constraint_member_223, 5); +YAP_UserCPredicate("gecode_constraint_mod_236", gecode_constraint_mod_236, 4); +YAP_UserCPredicate("gecode_constraint_sqr_344", gecode_constraint_sqr_344, 3); +YAP_UserCPredicate("gecode_constraint_sequence_337", gecode_constraint_sequence_337, 7); +YAP_UserCPredicate("gecode_constraint_sequence_335", gecode_constraint_sequence_335, 7); +YAP_UserCPredicate("gecode_constraint_path_264", gecode_constraint_path_264, 7); +YAP_UserCPredicate("gecode_constraint_path_261", gecode_constraint_path_261, 7); +YAP_UserCPredicate("gecode_constraint_path_258", gecode_constraint_path_258, 7); +YAP_UserCPredicate("gecode_constraint_divmod_125", gecode_constraint_divmod_125, 6); +YAP_UserCPredicate("gecode_constraint_sorted_342", gecode_constraint_sorted_342, 3); +YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); +YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 3); +YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); +YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); +YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); +YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); +YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); +YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); +YAP_UserCPredicate("gecode_constraint_count_52", gecode_constraint_count_52, 5); +YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 5); +YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 5); +YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 5); +YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 5); +YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 5); +YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 5); +YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 5); +YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 5); +YAP_UserCPredicate("gecode_constraint_count_74", gecode_constraint_count_74, 5); +YAP_UserCPredicate("gecode_constraint_count_76", gecode_constraint_count_76, 5); +YAP_UserCPredicate("gecode_constraint_cumulatives_116", gecode_constraint_cumulatives_116, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_114", gecode_constraint_cumulatives_114, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_102", gecode_constraint_cumulatives_102, 8); +YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); +YAP_UserCPredicate("gecode_constraint_linear_209", gecode_constraint_linear_209, 6); +YAP_UserCPredicate("gecode_constraint_linear_213", gecode_constraint_linear_213, 6); +YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 6); +YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 6); +YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 6); +YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 6); +YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 6); +YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 6); +YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); +YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); +YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 6); +YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_246", gecode_constraint_nooverlap_246, 7); +YAP_UserCPredicate("gecode_constraint_nooverlap_241", gecode_constraint_nooverlap_241, 7); +YAP_UserCPredicate("gecode_constraint_div_123", gecode_constraint_div_123, 5); +YAP_UserCPredicate("gecode_constraint_sqr_345", gecode_constraint_sqr_345, 4); +YAP_UserCPredicate("gecode_constraint_path_265", gecode_constraint_path_265, 8); +YAP_UserCPredicate("gecode_constraint_path_262", gecode_constraint_path_262, 8); +YAP_UserCPredicate("gecode_constraint_path_259", gecode_constraint_path_259, 8); +YAP_UserCPredicate("gecode_constraint_unary_356", gecode_constraint_unary_356, 5); +YAP_UserCPredicate("gecode_constraint_unary_359", gecode_constraint_unary_359, 5); +YAP_UserCPredicate("gecode_constraint_unary_352", gecode_constraint_unary_352, 5); +YAP_UserCPredicate("gecode_constraint_unary_355", gecode_constraint_unary_355, 5); +YAP_UserCPredicate("gecode_constraint_unary_349", gecode_constraint_unary_349, 5); +YAP_UserCPredicate("gecode_constraint_sorted_340", gecode_constraint_sorted_340, 4); +YAP_UserCPredicate("gecode_constraint_sorted_343", gecode_constraint_sorted_343, 4); +YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 8); +YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 8); +YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 8); +YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 8); +YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 5); +YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 5); +YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 5); +YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 5); +YAP_UserCPredicate("gecode_constraint_element_182", gecode_constraint_element_182, 5); +YAP_UserCPredicate("gecode_constraint_element_180", gecode_constraint_element_180, 5); +YAP_UserCPredicate("gecode_constraint_element_178", gecode_constraint_element_178, 5); +YAP_UserCPredicate("gecode_constraint_element_176", gecode_constraint_element_176, 5); +YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 5); +YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 5); +YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 5); +YAP_UserCPredicate("gecode_constraint_sequence_339", gecode_constraint_sequence_339, 3); +YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 7); +YAP_UserCPredicate("gecode_constraint_precede_274", gecode_constraint_precede_274, 3); +YAP_UserCPredicate("gecode_constraint_precede_270", gecode_constraint_precede_270, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_78", gecode_constraint_cumulative_78, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_100", gecode_constraint_cumulative_100, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 6); +YAP_UserCPredicate("gecode_constraint_distinct_119", gecode_constraint_distinct_119, 4); +YAP_UserCPredicate("gecode_constraint_min_230", gecode_constraint_min_230, 3); +YAP_UserCPredicate("gecode_constraint_min_234", gecode_constraint_min_234, 3); +YAP_UserCPredicate("gecode_constraint_sqrt_347", gecode_constraint_sqrt_347, 4); +YAP_UserCPredicate("gecode_constraint_sequence_336", gecode_constraint_sequence_336, 6); +YAP_UserCPredicate("gecode_constraint_sequence_334", gecode_constraint_sequence_334, 6); +YAP_UserCPredicate("gecode_constraint_unshare_363", gecode_constraint_unshare_363, 3); +YAP_UserCPredicate("gecode_constraint_unshare_361", gecode_constraint_unshare_361, 3); +YAP_UserCPredicate("gecode_constraint_path_269", gecode_constraint_path_269, 6); +YAP_UserCPredicate("gecode_constraint_path_260", gecode_constraint_path_260, 6); +YAP_UserCPredicate("gecode_constraint_divmod_124", gecode_constraint_divmod_124, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_245", gecode_constraint_nooverlap_245, 9); +YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 5); +YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 5); +YAP_UserCPredicate("gecode_constraint_member_228", gecode_constraint_member_228, 3); +YAP_UserCPredicate("gecode_constraint_member_224", gecode_constraint_member_224, 3); +YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 6); +YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 6); +YAP_UserCPredicate("gecode_constraint_count_75", gecode_constraint_count_75, 6); +YAP_UserCPredicate("gecode_constraint_count_77", gecode_constraint_count_77, 6); +YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 6); +YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 6); +YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 6); +YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 6); +YAP_UserCPredicate("gecode_constraint_notMin_249", gecode_constraint_notMin_249, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_99", gecode_constraint_cumulative_99, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 8); +YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); +YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); +YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); +YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 3); +YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 3); +YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 3); +YAP_UserCPredicate("gecode_constraint_dom_126", gecode_constraint_dom_126, 3); +YAP_UserCPredicate("gecode_constraint_linear_208", gecode_constraint_linear_208, 5); +YAP_UserCPredicate("gecode_constraint_linear_211", gecode_constraint_linear_211, 5); +YAP_UserCPredicate("gecode_constraint_linear_212", gecode_constraint_linear_212, 5); +YAP_UserCPredicate("gecode_constraint_linear_215", gecode_constraint_linear_215, 5); +YAP_UserCPredicate("gecode_constraint_linear_184", gecode_constraint_linear_184, 5); +YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 5); +YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 5); +YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 5); +YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 5); +YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 5); +YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 5); +YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_240", gecode_constraint_nooverlap_240, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_243", gecode_constraint_nooverlap_243, 6); +YAP_UserCPredicate("gecode_constraint_element_183", gecode_constraint_element_183, 6); +YAP_UserCPredicate("gecode_constraint_element_181", gecode_constraint_element_181, 6); +YAP_UserCPredicate("gecode_constraint_element_179", gecode_constraint_element_179, 6); +YAP_UserCPredicate("gecode_constraint_element_177", gecode_constraint_element_177, 6); +YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 4); +YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 4); +YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); +YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 4); +YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 4); +YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 4); +YAP_UserCPredicate("gecode_constraint_rel_324", gecode_constraint_rel_324, 4); +YAP_UserCPredicate("gecode_constraint_rel_322", gecode_constraint_rel_322, 4); +YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); +YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 4); +YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 4); +YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 4); +YAP_UserCPredicate("gecode_constraint_rel_312", gecode_constraint_rel_312, 4); +YAP_UserCPredicate("gecode_constraint_rel_316", gecode_constraint_rel_316, 4); +YAP_UserCPredicate("gecode_constraint_rel_318", gecode_constraint_rel_318, 4); +YAP_UserCPredicate("gecode_constraint_rel_319", gecode_constraint_rel_319, 4); +YAP_UserCPredicate("gecode_constraint_rel_325", gecode_constraint_rel_325, 4); +YAP_UserCPredicate("gecode_constraint_rel_330", gecode_constraint_rel_330, 4); +YAP_UserCPredicate("gecode_constraint_rel_332", gecode_constraint_rel_332, 4); +YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 4); +YAP_UserCPredicate("gecode_constraint_rel_276", gecode_constraint_rel_276, 4); +YAP_UserCPredicate("gecode_constraint_min_233", gecode_constraint_min_233, 5); +YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 3); +YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 3); diff --git a/packages/gecode/4.0.0/gecode-version.txt b/packages/gecode/4.0.0/gecode-version.txt new file mode 100644 index 000000000..fcdb2e109 --- /dev/null +++ b/packages/gecode/4.0.0/gecode-version.txt @@ -0,0 +1 @@ +4.0.0 diff --git a/packages/gecode/4.0.0/gecode_yap_auto_generated.yap b/packages/gecode/4.0.0/gecode_yap_auto_generated.yap new file mode 100644 index 000000000..4f1fc63c4 --- /dev/null +++ b/packages/gecode/4.0.0/gecode_yap_auto_generated.yap @@ -0,0 +1,3010 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +is_ReifyMode_('RM_EQV'). +is_ReifyMode_('RM_IMP'). +is_ReifyMode_('RM_PMI'). + +is_ReifyMode_('RM_EQV','RM_EQV'). +is_ReifyMode_('RM_IMP','RM_IMP'). +is_ReifyMode_('RM_PMI','RM_PMI'). + +is_ReifyMode(X,Y) :- nonvar(X), is_ReifyMode_(X,Y). +is_ReifyMode(X) :- is_ReifyMode(X,_). + +is_IntRelType_('IRT_EQ'). +is_IntRelType_('IRT_NQ'). +is_IntRelType_('IRT_LQ'). +is_IntRelType_('IRT_LE'). +is_IntRelType_('IRT_GQ'). +is_IntRelType_('IRT_GR'). + +is_IntRelType_('IRT_EQ','IRT_EQ'). +is_IntRelType_('IRT_NQ','IRT_NQ'). +is_IntRelType_('IRT_LQ','IRT_LQ'). +is_IntRelType_('IRT_LE','IRT_LE'). +is_IntRelType_('IRT_GQ','IRT_GQ'). +is_IntRelType_('IRT_GR','IRT_GR'). + +is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). +is_IntRelType(X) :- is_IntRelType(X,_). + +is_BoolOpType_('BOT_AND'). +is_BoolOpType_('BOT_OR'). +is_BoolOpType_('BOT_IMP'). +is_BoolOpType_('BOT_EQV'). +is_BoolOpType_('BOT_XOR'). + +is_BoolOpType_('BOT_AND','BOT_AND'). +is_BoolOpType_('BOT_OR','BOT_OR'). +is_BoolOpType_('BOT_IMP','BOT_IMP'). +is_BoolOpType_('BOT_EQV','BOT_EQV'). +is_BoolOpType_('BOT_XOR','BOT_XOR'). + +is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). +is_BoolOpType(X) :- is_BoolOpType(X,_). + +is_IntConLevel_('ICL_VAL'). +is_IntConLevel_('ICL_BND'). +is_IntConLevel_('ICL_DOM'). +is_IntConLevel_('ICL_DEF'). + +is_IntConLevel_('ICL_VAL','ICL_VAL'). +is_IntConLevel_('ICL_BND','ICL_BND'). +is_IntConLevel_('ICL_DOM','ICL_DOM'). +is_IntConLevel_('ICL_DEF','ICL_DEF'). + +is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). +is_IntConLevel(X) :- is_IntConLevel(X,_). + +is_TaskType_('TT_FIXP'). +is_TaskType_('TT_FIXS'). +is_TaskType_('TT_FIXE'). + +is_TaskType_('TT_FIXP','TT_FIXP'). +is_TaskType_('TT_FIXS','TT_FIXS'). +is_TaskType_('TT_FIXE','TT_FIXE'). + +is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). +is_TaskType(X) :- is_TaskType(X,_). + +is_ExtensionalPropKind_('EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY'). + +is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). + +is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). +is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). + +is_IntVarBranch_('INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). +is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). +is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). +is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). +is_IntVarBranch(X) :- is_IntVarBranch(X,_). + +is_IntValBranch_('INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX'). + +is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). +is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). +is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). + +is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). +is_IntValBranch(X) :- is_IntValBranch(X,_). + +is_IntAssign_('INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND'). + +is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). +is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). +is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). +is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). + +is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). +is_IntAssign(X) :- is_IntAssign(X,_). + +is_SetRelType_('SRT_EQ'). +is_SetRelType_('SRT_NQ'). +is_SetRelType_('SRT_SUB'). +is_SetRelType_('SRT_SUP'). +is_SetRelType_('SRT_DISJ'). +is_SetRelType_('SRT_CMPL'). +is_SetRelType_('SRT_LQ'). +is_SetRelType_('SRT_LE'). +is_SetRelType_('SRT_GQ'). +is_SetRelType_('SRT_GR'). + +is_SetRelType_('SRT_EQ','SRT_EQ'). +is_SetRelType_('SRT_NQ','SRT_NQ'). +is_SetRelType_('SRT_SUB','SRT_SUB'). +is_SetRelType_('SRT_SUP','SRT_SUP'). +is_SetRelType_('SRT_DISJ','SRT_DISJ'). +is_SetRelType_('SRT_CMPL','SRT_CMPL'). +is_SetRelType_('SRT_LQ','SRT_LQ'). +is_SetRelType_('SRT_LE','SRT_LE'). +is_SetRelType_('SRT_GQ','SRT_GQ'). +is_SetRelType_('SRT_GR','SRT_GR'). + +is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). +is_SetRelType(X) :- is_SetRelType(X,_). + +is_SetOpType_('SOT_UNION'). +is_SetOpType_('SOT_DUNION'). +is_SetOpType_('SOT_INTER'). +is_SetOpType_('SOT_MINUS'). + +is_SetOpType_('SOT_UNION','SOT_UNION'). +is_SetOpType_('SOT_DUNION','SOT_DUNION'). +is_SetOpType_('SOT_INTER','SOT_INTER'). +is_SetOpType_('SOT_MINUS','SOT_MINUS'). + +is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). +is_SetOpType(X) :- is_SetOpType(X,_). + +is_SetVarBranch_('SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). +is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). +is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). +is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). + +is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). +is_SetVarBranch(X) :- is_SetVarBranch(X,_). + +is_SetValBranch_('SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC'). + +is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). +is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). +is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). + +is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). +is_SetValBranch(X) :- is_SetValBranch(X,_). + +is_SetAssign_('SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC'). + +is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). +is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). +is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). +is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). +is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). +is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). +is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). +is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). + +is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). +is_SetAssign(X) :- is_SetAssign(X,_). + +unary(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_358(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_354(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). + +nvalues(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_256(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_258(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_252(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_254(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_max_219(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_max_218(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_max_222(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_BoolVar(X5,Y5) + -> gecode_constraint_dom_150(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). + +convex(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_convex_52(Y0,Y1,Y2) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). + +nooverlap(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_nooverlap_243(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). + +assign(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_4(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_3(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_5(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_7(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_6(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_8(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). + +element(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_159(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_163(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_153(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_151(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_166(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_169(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_175(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_167(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> gecode_constraint_sequence_339(Y0,Y1) + ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). + +notMax(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMax_249(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). + +unary(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_unary_351(Y0,Y1,Y2) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_circuit_46(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_140(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_Reify(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_Reify(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_136(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_dom_149(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_148(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntSet(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_dom_146(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). + +channel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_33(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> gecode_constraint_nooverlap_245(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; (is_IntConLevel(X7,Y7) + -> gecode_constraint_nooverlap_248(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_161(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_157(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_165(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_BoolVar(X6,Y6) + -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +max(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_217(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_221(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). + +unshare(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_unshare_363(Y0,Y1) + ; (is_BoolVarArgs(X1,Y1) + -> gecode_constraint_unshare_361(Y0,Y1) + ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). + +path(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_path_269(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_path_268(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). + +mult(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mult_239(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). + +clause(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_50(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). + +precede(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_precede_274(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). + +distinct(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_distinct_121(Y0,Y1) + ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). + +member(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_Reify(X3,Y3) + -> gecode_constraint_member_229(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_228(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_Reify(X3,Y3) + -> gecode_constraint_member_225(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_224(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). + +mod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mod_238(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). + +cardinality(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_cardinality_18(Y0,Y1,Y2) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). + +atmostOne(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). + +channelSorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_channelSorted_34(Y0,Y1,Y2) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_209(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_213(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). + +circuit(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_circuit_43(Y0,Y1) + ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). + +rel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_296(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_324(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_322(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_310(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_304(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_313(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_312(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_317(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_316(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_321(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_332(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_334(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_280(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). + +min(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_min_233(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_min_232(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> gecode_constraint_min_236(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). + +cardinality(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). + +count(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_70(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_67(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_count_61(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_57(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). + +sqrt(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqrt_347(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_118(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_116(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_114(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +nvalues(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_255(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_257(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_251(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_253(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). + +binpacking(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). + +linear(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_Reify(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_Reify(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_208(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_Reify(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_Reify(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +abs(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). + +convex(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> gecode_constraint_convex_51(Y0,Y1) + ; throw(gecode_argument_error(convex(X0,X1),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1),arg=1))). + +div(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_div_123(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). + +rel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_314(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_318(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntSet(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_327(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_328(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_329(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_330(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). + +weights(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_weights_365(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_max_220(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_path_264(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +unary(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_unary_359(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_unary_355(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_unary_349(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_unary_352(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). + +sorted(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_sorted_342(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). + +dom(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3) + ; (is_Reify(X3,Y3) + -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) + ; (is_IntSet(X2,Y2) + -> (is_Reify(X3,Y3) + -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_134(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_130(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_128(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_147(Y0,Y1,Y2,Y3) + ; (is_IntSet(X3,Y3) + -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). + +abs(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_abs_1(Y0,Y1,Y2) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). + +channel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). + +rel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_305(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_297(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_path_267(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). + +branch(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarBranch(X2,Y2) + -> (is_SetValBranch(X3,Y3) + -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). + +mult(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mult_240(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_42(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). + +clause(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). + +precede(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_276(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_273(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_precede_272(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). + +channel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +distinct(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_distinct_122(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_distinct_119(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). + +member(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_Reify(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_230(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_Reify(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_226(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). + +mod(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mod_237(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). + +sqr(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqr_345(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_338(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_336(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_265(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_path_262(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_259(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +divmod(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_divmod_126(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). + +sorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_sorted_343(Y0,Y1,Y2) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_circuit_45(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_circuit_44(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). + +channel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_channel_32(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> gecode_constraint_channel_28(Y0,Y1,Y2) + ; (is_IntVarArgs(X2,Y2) + -> gecode_constraint_channel_26(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_22(Y0,Y1,Y2) + ; (is_SetVar(X2,Y2) + -> gecode_constraint_channel_25(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_20(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> gecode_constraint_channel_31(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2))))))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_65(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_62(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_58(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_68(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_75(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_77(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_117(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_115(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +binpacking(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). + +linear(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_212(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_216(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_Reify(X5,Y5) + -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_Reify(X5,Y5) + -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_Reify(X5,Y5) + -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_Reify(X5,Y5) + -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> gecode_constraint_nooverlap_247(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_nooverlap_242(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +div(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_div_124(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). + +sqr(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqr_346(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_266(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> gecode_constraint_path_263(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_260(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +unary(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_357(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_360(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_353(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_356(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_350(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). + +sorted(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_sorted_341(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_sorted_344(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_162(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_174(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_164(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_154(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_152(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_183(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_181(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_179(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_177(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_170(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_176(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_168(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). + +sequence(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_sequence_340(Y0,Y1,Y2) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +precede(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_275(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_271(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_101(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). + +distinct(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_distinct_120(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_231(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_235(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). + +sqrt(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqrt_348(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_337(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_335(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). + +unshare(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_364(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_362(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_path_270(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_path_261(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). + +divmod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_divmod_125(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_nooverlap_246(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +cumulative(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). + +member(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_member_227(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_member_223(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_74(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_76(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_78(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_64(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_66(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_56(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). + +notMin(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMin_250(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_100(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +branch(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_16(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_12(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetValBranch(X2,Y2) + -> gecode_constraint_branch_17(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). + +dom(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_137(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_133(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_129(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_127(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_linear_211(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_210(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_linear_215(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_214(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_nooverlap_241(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_nooverlap_244(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). + +element(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_184(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_182(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_180(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_178(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). + +rel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3) + ; (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_325(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_323(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3) + ; (is_IntVarArgs(X3,Y3) + -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_311(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_315(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_319(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_320(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_326(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_331(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_333(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_min_234(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). + +count(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_count_69(Y0,Y1,Y2) + ; (is_IntSetArgs(X2,Y2) + -> gecode_constraint_count_59(Y0,Y1,Y2) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). + diff --git a/packages/gecode/4.0.0/gecode_yap_cc_forward_auto_generated.icc b/packages/gecode/4.0.0/gecode_yap_cc_forward_auto_generated.icc new file mode 100644 index 000000000..41c030117 --- /dev/null +++ b/packages/gecode/4.0.0/gecode_yap_cc_forward_auto_generated.icc @@ -0,0 +1,32 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static ReifyMode gecode_ReifyMode_from_term(YAP_Term); +static IntRelType gecode_IntRelType_from_term(YAP_Term); +static BoolOpType gecode_BoolOpType_from_term(YAP_Term); +static IntConLevel gecode_IntConLevel_from_term(YAP_Term); +static TaskType gecode_TaskType_from_term(YAP_Term); +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); +static IntValBranch gecode_IntValBranch_from_term(YAP_Term); +static IntAssign gecode_IntAssign_from_term(YAP_Term); +static SetRelType gecode_SetRelType_from_term(YAP_Term); +static SetOpType gecode_SetOpType_from_term(YAP_Term); +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); +static SetValBranch gecode_SetValBranch_from_term(YAP_Term); +static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/packages/gecode/4.0.0/gecode_yap_cc_impl_auto_generated.icc b/packages/gecode/4.0.0/gecode_yap_cc_impl_auto_generated.icc new file mode 100644 index 000000000..3aed734bc --- /dev/null +++ b/packages/gecode/4.0.0/gecode_yap_cc_impl_auto_generated.icc @@ -0,0 +1,4336 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static YAP_Term gecode_RM_EQV; +static YAP_Term gecode_RM_IMP; +static YAP_Term gecode_RM_PMI; + +static ReifyMode gecode_ReifyMode_from_term(YAP_Term X) +{ + if (X==gecode_RM_EQV) return RM_EQV; + if (X==gecode_RM_IMP) return RM_IMP; + if (X==gecode_RM_PMI) return RM_PMI; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_IRT_EQ; +static YAP_Term gecode_IRT_NQ; +static YAP_Term gecode_IRT_LQ; +static YAP_Term gecode_IRT_LE; +static YAP_Term gecode_IRT_GQ; +static YAP_Term gecode_IRT_GR; + +static IntRelType gecode_IntRelType_from_term(YAP_Term X) +{ + if (X==gecode_IRT_EQ) return IRT_EQ; + if (X==gecode_IRT_NQ) return IRT_NQ; + if (X==gecode_IRT_LQ) return IRT_LQ; + if (X==gecode_IRT_LE) return IRT_LE; + if (X==gecode_IRT_GQ) return IRT_GQ; + if (X==gecode_IRT_GR) return IRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_BOT_AND; +static YAP_Term gecode_BOT_OR; +static YAP_Term gecode_BOT_IMP; +static YAP_Term gecode_BOT_EQV; +static YAP_Term gecode_BOT_XOR; + +static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) +{ + if (X==gecode_BOT_AND) return BOT_AND; + if (X==gecode_BOT_OR) return BOT_OR; + if (X==gecode_BOT_IMP) return BOT_IMP; + if (X==gecode_BOT_EQV) return BOT_EQV; + if (X==gecode_BOT_XOR) return BOT_XOR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_ICL_VAL; +static YAP_Term gecode_ICL_BND; +static YAP_Term gecode_ICL_DOM; +static YAP_Term gecode_ICL_DEF; + +static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) +{ + if (X==gecode_ICL_VAL) return ICL_VAL; + if (X==gecode_ICL_BND) return ICL_BND; + if (X==gecode_ICL_DOM) return ICL_DOM; + if (X==gecode_ICL_DEF) return ICL_DEF; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_TT_FIXP; +static YAP_Term gecode_TT_FIXS; +static YAP_Term gecode_TT_FIXE; + +static TaskType gecode_TaskType_from_term(YAP_Term X) +{ + if (X==gecode_TT_FIXP) return TT_FIXP; + if (X==gecode_TT_FIXS) return TT_FIXS; + if (X==gecode_TT_FIXE) return TT_FIXE; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_EPK_DEF; +static YAP_Term gecode_EPK_SPEED; +static YAP_Term gecode_EPK_MEMORY; + +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) +{ + if (X==gecode_EPK_DEF) return EPK_DEF; + if (X==gecode_EPK_SPEED) return EPK_SPEED; + if (X==gecode_EPK_MEMORY) return EPK_MEMORY; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAR_NONE; +static YAP_Term gecode_INT_VAR_RND; +static YAP_Term gecode_INT_VAR_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_AFC_MIN; +static YAP_Term gecode_INT_VAR_AFC_MAX; +static YAP_Term gecode_INT_VAR_MIN_MIN; +static YAP_Term gecode_INT_VAR_MIN_MAX; +static YAP_Term gecode_INT_VAR_MAX_MIN; +static YAP_Term gecode_INT_VAR_MAX_MAX; +static YAP_Term gecode_INT_VAR_SIZE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; +static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; + +static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; + if (X==gecode_INT_VAR_RND) return INT_VAR_RND; + if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; + if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; + if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; + if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; + if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; + if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; + if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; + if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; + if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; + if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; + if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; + if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; + if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; + if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; + if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; + if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; + if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; + if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_VAL_MIN; +static YAP_Term gecode_INT_VAL_MED; +static YAP_Term gecode_INT_VAL_MAX; +static YAP_Term gecode_INT_VAL_RND; +static YAP_Term gecode_INT_VAL_SPLIT_MIN; +static YAP_Term gecode_INT_VAL_SPLIT_MAX; +static YAP_Term gecode_INT_VAL_RANGE_MIN; +static YAP_Term gecode_INT_VAL_RANGE_MAX; +static YAP_Term gecode_INT_VALUES_MIN; +static YAP_Term gecode_INT_VALUES_MAX; + +static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) +{ + if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; + if (X==gecode_INT_VAL_MED) return INT_VAL_MED; + if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; + if (X==gecode_INT_VAL_RND) return INT_VAL_RND; + if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; + if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; + if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; + if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; + if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; + if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_INT_ASSIGN_MIN; +static YAP_Term gecode_INT_ASSIGN_MED; +static YAP_Term gecode_INT_ASSIGN_MAX; +static YAP_Term gecode_INT_ASSIGN_RND; + +static IntAssign gecode_IntAssign_from_term(YAP_Term X) +{ + if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; + if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; + if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; + if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SRT_EQ; +static YAP_Term gecode_SRT_NQ; +static YAP_Term gecode_SRT_SUB; +static YAP_Term gecode_SRT_SUP; +static YAP_Term gecode_SRT_DISJ; +static YAP_Term gecode_SRT_CMPL; +static YAP_Term gecode_SRT_LQ; +static YAP_Term gecode_SRT_LE; +static YAP_Term gecode_SRT_GQ; +static YAP_Term gecode_SRT_GR; + +static SetRelType gecode_SetRelType_from_term(YAP_Term X) +{ + if (X==gecode_SRT_EQ) return SRT_EQ; + if (X==gecode_SRT_NQ) return SRT_NQ; + if (X==gecode_SRT_SUB) return SRT_SUB; + if (X==gecode_SRT_SUP) return SRT_SUP; + if (X==gecode_SRT_DISJ) return SRT_DISJ; + if (X==gecode_SRT_CMPL) return SRT_CMPL; + if (X==gecode_SRT_LQ) return SRT_LQ; + if (X==gecode_SRT_LE) return SRT_LE; + if (X==gecode_SRT_GQ) return SRT_GQ; + if (X==gecode_SRT_GR) return SRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SOT_UNION; +static YAP_Term gecode_SOT_DUNION; +static YAP_Term gecode_SOT_INTER; +static YAP_Term gecode_SOT_MINUS; + +static SetOpType gecode_SetOpType_from_term(YAP_Term X) +{ + if (X==gecode_SOT_UNION) return SOT_UNION; + if (X==gecode_SOT_DUNION) return SOT_DUNION; + if (X==gecode_SOT_INTER) return SOT_INTER; + if (X==gecode_SOT_MINUS) return SOT_MINUS; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAR_NONE; +static YAP_Term gecode_SET_VAR_RND; +static YAP_Term gecode_SET_VAR_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_AFC_MIN; +static YAP_Term gecode_SET_VAR_AFC_MAX; +static YAP_Term gecode_SET_VAR_MIN_MIN; +static YAP_Term gecode_SET_VAR_MIN_MAX; +static YAP_Term gecode_SET_VAR_MAX_MIN; +static YAP_Term gecode_SET_VAR_MAX_MAX; +static YAP_Term gecode_SET_VAR_SIZE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; +static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; +static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; + +static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; + if (X==gecode_SET_VAR_RND) return SET_VAR_RND; + if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; + if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; + if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; + if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; + if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; + if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; + if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; + if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; + if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; + if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; + if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; + if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; + if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; + if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_VAL_MIN_INC; +static YAP_Term gecode_SET_VAL_MIN_EXC; +static YAP_Term gecode_SET_VAL_MED_INC; +static YAP_Term gecode_SET_VAL_MED_EXC; +static YAP_Term gecode_SET_VAL_MAX_INC; +static YAP_Term gecode_SET_VAL_MAX_EXC; +static YAP_Term gecode_SET_VAL_RND_INC; +static YAP_Term gecode_SET_VAL_RND_EXC; + +static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) +{ + if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; + if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; + if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; + if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; + if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; + if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; + if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; + if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SET_ASSIGN_MIN_INC; +static YAP_Term gecode_SET_ASSIGN_MIN_EXC; +static YAP_Term gecode_SET_ASSIGN_MED_INC; +static YAP_Term gecode_SET_ASSIGN_MED_EXC; +static YAP_Term gecode_SET_ASSIGN_MAX_INC; +static YAP_Term gecode_SET_ASSIGN_MAX_EXC; +static YAP_Term gecode_SET_ASSIGN_RND_INC; +static YAP_Term gecode_SET_ASSIGN_RND_EXC; + +static SetAssign gecode_SetAssign_from_term(YAP_Term X) +{ + if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; + if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; + if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; + if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; + if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; + if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; + if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; + if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; + cerr << "this should never happen" << endl; exit(1); +} + +static int gecode_constraint_unary_358(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unary_354(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nvalues_256(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_258(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_252(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_254(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_219(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_218(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_222(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_142(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_dom_150(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_convex_52(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + convex(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_nooverlap_243(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + nooverlap(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_assign_4(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_3(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_5(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_7(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_6(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_8(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_element_159(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_163(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_153(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_151(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_158(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_166(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_169(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_175(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_167(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_339(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + sequence(*space,X2); + return TRUE; +} + +static int gecode_constraint_notMax_249(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMax(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unary_351(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + unary(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_46(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_37(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_141(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_140(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_144(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_136(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_132(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_149(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_148(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_146(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_33(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_27(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_23(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_21(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nooverlap_245(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_nooverlap_248(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_161(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_155(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_157(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_165(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_173(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_171(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_max_217(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_max_221(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_363(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_unshare_361(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_path_269(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_268(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mult_239(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mult(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_clause_50(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_48(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_precede_274(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + precede(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_distinct_121(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + distinct(*space,X2); + return TRUE; +} + +static int gecode_constraint_member_229(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_228(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_225(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_224(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mod_238(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cardinality_18(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + cardinality(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_atmostOne_9(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + atmostOne(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channelSorted_34(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channelSorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_209(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_213(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_185(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_189(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_43(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + circuit(*space,X2); + return TRUE; +} + +static int gecode_constraint_rel_291(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_290(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_287(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_286(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_283(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_281(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_300(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_296(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_294(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_324(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_322(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_308(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_310(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_304(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_313(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_312(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_317(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_316(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_321(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_332(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_334(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_280(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_278(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_min_233(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_232(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_236(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_cardinality_19(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + cardinality(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_70(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_67(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_61(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_60(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_57(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqrt_347(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqrt(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulatives_118(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_116(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_114(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_112(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_110(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_108(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_106(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_104(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_nvalues_255(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_257(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_251(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_253(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_binpacking_10(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + binpacking(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_204(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_208(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_196(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_200(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_abs_2(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + abs(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_convex_51(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + convex(*space,X2); + return TRUE; +} + +static int gecode_constraint_div_123(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + div(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_314(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_318(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_301(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_302(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_292(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_288(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_284(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_282(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_327(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_328(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_329(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_330(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_weights_365(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + weights(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_220(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + max(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_264(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + path(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_unary_359(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_355(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_349(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_352(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_342(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + sorted(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_41(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_38(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_35(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_139(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_143(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_138(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_135(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_134(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_131(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_130(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_128(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_147(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_145(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_abs_1(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + abs(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_29(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_24(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_305(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_rel_297(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_267(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + path(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_14(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_13(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_15(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mult_240(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mult(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_42(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_39(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_36(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_49(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_clause_47(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_precede_276(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_273(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_272(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_30(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + channel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_87(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_90(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_83(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_86(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_80(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_99(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_102(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_95(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_98(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_92(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_distinct_122(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_distinct_119(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_230(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_226(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mod_237(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mod(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqr_345(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqr(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sequence_338(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_sequence_336(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_265(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_262(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_259(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_divmod_126(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + divmod(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sorted_343(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + sorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_45(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_44(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_32(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_28(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_26(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_22(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_25(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_20(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_31(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_53(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_55(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_71(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_73(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_63(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_65(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_62(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_58(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_68(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_75(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_77(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulatives_117(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_115(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_113(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_111(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_109(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_107(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_105(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_103(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_binpacking_11(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + binpacking(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_212(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_216(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_188(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_192(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_203(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_202(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_207(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_206(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_195(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_194(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_199(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_198(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_247(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_nooverlap_242(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_div_124(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + div(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sqr_346(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqr(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_path_266(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_263(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_260(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_unary_357(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_360(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_353(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_356(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_350(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sorted_341(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_344(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_162(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_156(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_174(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_172(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_160(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_164(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_154(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_152(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_183(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_181(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_179(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_177(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_170(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_176(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_168(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sequence_340(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + sequence(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_40(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + circuit(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_precede_275(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_precede_271(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_89(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_85(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_79(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_82(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_101(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_97(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_91(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_94(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_distinct_120(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + distinct(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_231(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_min_235(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sqrt_348(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqrt(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_337(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sequence_335(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unshare_364(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_362(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_270(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_path_261(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_divmod_125(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + divmod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_246(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulative_81(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulative_93(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_227(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_223(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_72(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_74(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_76(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_78(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_64(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_66(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_54(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_56(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_notMin_250(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMin(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_88(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_84(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_100(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_96(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_branch_16(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_12(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_17(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_137(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_133(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_129(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_127(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_211(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_210(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_215(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_214(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_187(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_186(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_191(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_190(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_201(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_205(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_193(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_197(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_241(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_244(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_184(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_182(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_180(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_178(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_289(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_285(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_299(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_295(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_293(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_298(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_325(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_323(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_307(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_309(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_303(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_306(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_311(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_315(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_319(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_320(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_326(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_331(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_333(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_279(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_277(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_234(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + min(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_69(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_59(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + diff --git a/packages/gecode/4.0.0/gecode_yap_cc_init_auto_generated.icc b/packages/gecode/4.0.0/gecode_yap_cc_init_auto_generated.icc new file mode 100644 index 000000000..31048df5b --- /dev/null +++ b/packages/gecode/4.0.0/gecode_yap_cc_init_auto_generated.icc @@ -0,0 +1,709 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +{ YAP_Atom X= YAP_LookupAtom("RM_EQV"); + gecode_RM_EQV = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("RM_IMP"); + gecode_RM_IMP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("RM_PMI"); + gecode_RM_PMI = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); + gecode_IRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); + gecode_IRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); + gecode_IRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); + gecode_IRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); + gecode_IRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); + gecode_IRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); + gecode_BOT_AND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); + gecode_BOT_OR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); + gecode_BOT_IMP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); + gecode_BOT_EQV = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); + gecode_BOT_XOR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); + gecode_ICL_VAL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); + gecode_ICL_BND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); + gecode_ICL_DOM = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); + gecode_ICL_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); + gecode_TT_FIXP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); + gecode_TT_FIXS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); + gecode_TT_FIXE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); + gecode_EPK_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); + gecode_EPK_SPEED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); + gecode_EPK_MEMORY = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); + gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); + gecode_INT_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); + gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); + gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); + gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); + gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); + gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); + gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); + gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); + gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); + gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); + gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); + gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); + gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); + gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); + gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); + gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); + gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); + gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); + gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); + gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); + gecode_INT_VAL_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); + gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); + gecode_INT_VAL_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); + gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); + gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); + gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); + gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); + gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); + gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); + gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); + gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); + gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); + gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); + gecode_SRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); + gecode_SRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); + gecode_SRT_SUB = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); + gecode_SRT_SUP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); + gecode_SRT_DISJ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); + gecode_SRT_CMPL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); + gecode_SRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); + gecode_SRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); + gecode_SRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); + gecode_SRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); + gecode_SOT_UNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); + gecode_SOT_DUNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); + gecode_SOT_INTER = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); + gecode_SOT_MINUS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); + gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); + gecode_SET_VAR_RND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); + gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); + gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); + gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); + gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); + gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); + gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); + gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); + gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); + gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); + gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); + gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); + gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); + gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); + gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); + gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); + gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); + gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); + gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); + gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); + gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); + gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); + gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); + gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); + gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); + gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); + gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); + gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); + gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); + gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); + gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +YAP_UserCPredicate("gecode_constraint_unary_358", gecode_constraint_unary_358, 6); +YAP_UserCPredicate("gecode_constraint_unary_354", gecode_constraint_unary_354, 6); +YAP_UserCPredicate("gecode_constraint_nvalues_256", gecode_constraint_nvalues_256, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_258", gecode_constraint_nvalues_258, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_252", gecode_constraint_nvalues_252, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_254", gecode_constraint_nvalues_254, 5); +YAP_UserCPredicate("gecode_constraint_max_219", gecode_constraint_max_219, 4); +YAP_UserCPredicate("gecode_constraint_max_218", gecode_constraint_max_218, 4); +YAP_UserCPredicate("gecode_constraint_max_222", gecode_constraint_max_222, 4); +YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 6); +YAP_UserCPredicate("gecode_constraint_dom_150", gecode_constraint_dom_150, 6); +YAP_UserCPredicate("gecode_constraint_convex_52", gecode_constraint_convex_52, 3); +YAP_UserCPredicate("gecode_constraint_nooverlap_243", gecode_constraint_nooverlap_243, 5); +YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); +YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); +YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); +YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); +YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); +YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); +YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 4); +YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 4); +YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 4); +YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 4); +YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); +YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 4); +YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 4); +YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 4); +YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 4); +YAP_UserCPredicate("gecode_constraint_sequence_339", gecode_constraint_sequence_339, 2); +YAP_UserCPredicate("gecode_constraint_notMax_249", gecode_constraint_notMax_249, 3); +YAP_UserCPredicate("gecode_constraint_unary_351", gecode_constraint_unary_351, 3); +YAP_UserCPredicate("gecode_constraint_circuit_46", gecode_constraint_circuit_46, 4); +YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 4); +YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 5); +YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 5); +YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 5); +YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 5); +YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 5); +YAP_UserCPredicate("gecode_constraint_dom_149", gecode_constraint_dom_149, 5); +YAP_UserCPredicate("gecode_constraint_dom_148", gecode_constraint_dom_148, 5); +YAP_UserCPredicate("gecode_constraint_dom_146", gecode_constraint_dom_146, 5); +YAP_UserCPredicate("gecode_constraint_channel_33", gecode_constraint_channel_33, 4); +YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); +YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); +YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); +YAP_UserCPredicate("gecode_constraint_nooverlap_245", gecode_constraint_nooverlap_245, 8); +YAP_UserCPredicate("gecode_constraint_nooverlap_248", gecode_constraint_nooverlap_248, 8); +YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 7); +YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 7); +YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 7); +YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 7); +YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 7); +YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 7); +YAP_UserCPredicate("gecode_constraint_max_217", gecode_constraint_max_217, 3); +YAP_UserCPredicate("gecode_constraint_max_221", gecode_constraint_max_221, 3); +YAP_UserCPredicate("gecode_constraint_unshare_363", gecode_constraint_unshare_363, 2); +YAP_UserCPredicate("gecode_constraint_unshare_361", gecode_constraint_unshare_361, 2); +YAP_UserCPredicate("gecode_constraint_path_269", gecode_constraint_path_269, 5); +YAP_UserCPredicate("gecode_constraint_path_268", gecode_constraint_path_268, 5); +YAP_UserCPredicate("gecode_constraint_mult_239", gecode_constraint_mult_239, 4); +YAP_UserCPredicate("gecode_constraint_clause_50", gecode_constraint_clause_50, 6); +YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 6); +YAP_UserCPredicate("gecode_constraint_precede_274", gecode_constraint_precede_274, 5); +YAP_UserCPredicate("gecode_constraint_distinct_121", gecode_constraint_distinct_121, 2); +YAP_UserCPredicate("gecode_constraint_member_229", gecode_constraint_member_229, 4); +YAP_UserCPredicate("gecode_constraint_member_228", gecode_constraint_member_228, 4); +YAP_UserCPredicate("gecode_constraint_member_225", gecode_constraint_member_225, 4); +YAP_UserCPredicate("gecode_constraint_member_224", gecode_constraint_member_224, 4); +YAP_UserCPredicate("gecode_constraint_mod_238", gecode_constraint_mod_238, 5); +YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); +YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); +YAP_UserCPredicate("gecode_constraint_channelSorted_34", gecode_constraint_channelSorted_34, 3); +YAP_UserCPredicate("gecode_constraint_linear_209", gecode_constraint_linear_209, 4); +YAP_UserCPredicate("gecode_constraint_linear_213", gecode_constraint_linear_213, 4); +YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 4); +YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 4); +YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 2); +YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 5); +YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 5); +YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 5); +YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 5); +YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 5); +YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 5); +YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 5); +YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 5); +YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 5); +YAP_UserCPredicate("gecode_constraint_rel_324", gecode_constraint_rel_324, 5); +YAP_UserCPredicate("gecode_constraint_rel_322", gecode_constraint_rel_322, 5); +YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 5); +YAP_UserCPredicate("gecode_constraint_rel_310", gecode_constraint_rel_310, 5); +YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 5); +YAP_UserCPredicate("gecode_constraint_rel_313", gecode_constraint_rel_313, 5); +YAP_UserCPredicate("gecode_constraint_rel_312", gecode_constraint_rel_312, 5); +YAP_UserCPredicate("gecode_constraint_rel_317", gecode_constraint_rel_317, 5); +YAP_UserCPredicate("gecode_constraint_rel_316", gecode_constraint_rel_316, 5); +YAP_UserCPredicate("gecode_constraint_rel_321", gecode_constraint_rel_321, 5); +YAP_UserCPredicate("gecode_constraint_rel_332", gecode_constraint_rel_332, 5); +YAP_UserCPredicate("gecode_constraint_rel_334", gecode_constraint_rel_334, 5); +YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 5); +YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 5); +YAP_UserCPredicate("gecode_constraint_min_233", gecode_constraint_min_233, 4); +YAP_UserCPredicate("gecode_constraint_min_232", gecode_constraint_min_232, 4); +YAP_UserCPredicate("gecode_constraint_min_236", gecode_constraint_min_236, 4); +YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); +YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 4); +YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 4); +YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 4); +YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); +YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 4); +YAP_UserCPredicate("gecode_constraint_sqrt_347", gecode_constraint_sqrt_347, 3); +YAP_UserCPredicate("gecode_constraint_cumulatives_118", gecode_constraint_cumulatives_118, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_116", gecode_constraint_cumulatives_116, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_114", gecode_constraint_cumulatives_114, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 9); +YAP_UserCPredicate("gecode_constraint_nvalues_255", gecode_constraint_nvalues_255, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_257", gecode_constraint_nvalues_257, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_251", gecode_constraint_nvalues_251, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_253", gecode_constraint_nvalues_253, 4); +YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); +YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 7); +YAP_UserCPredicate("gecode_constraint_linear_208", gecode_constraint_linear_208, 7); +YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 7); +YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 7); +YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); +YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 2); +YAP_UserCPredicate("gecode_constraint_div_123", gecode_constraint_div_123, 4); +YAP_UserCPredicate("gecode_constraint_rel_314", gecode_constraint_rel_314, 6); +YAP_UserCPredicate("gecode_constraint_rel_318", gecode_constraint_rel_318, 6); +YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 6); +YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 6); +YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 6); +YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 6); +YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 6); +YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 6); +YAP_UserCPredicate("gecode_constraint_rel_327", gecode_constraint_rel_327, 6); +YAP_UserCPredicate("gecode_constraint_rel_328", gecode_constraint_rel_328, 6); +YAP_UserCPredicate("gecode_constraint_rel_329", gecode_constraint_rel_329, 6); +YAP_UserCPredicate("gecode_constraint_rel_330", gecode_constraint_rel_330, 6); +YAP_UserCPredicate("gecode_constraint_weights_365", gecode_constraint_weights_365, 5); +YAP_UserCPredicate("gecode_constraint_max_220", gecode_constraint_max_220, 5); +YAP_UserCPredicate("gecode_constraint_path_264", gecode_constraint_path_264, 9); +YAP_UserCPredicate("gecode_constraint_unary_359", gecode_constraint_unary_359, 4); +YAP_UserCPredicate("gecode_constraint_unary_355", gecode_constraint_unary_355, 4); +YAP_UserCPredicate("gecode_constraint_unary_349", gecode_constraint_unary_349, 4); +YAP_UserCPredicate("gecode_constraint_unary_352", gecode_constraint_unary_352, 4); +YAP_UserCPredicate("gecode_constraint_sorted_342", gecode_constraint_sorted_342, 5); +YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 5); +YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 5); +YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 5); +YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 4); +YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 4); +YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 4); +YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 4); +YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 4); +YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 4); +YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 4); +YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 4); +YAP_UserCPredicate("gecode_constraint_dom_147", gecode_constraint_dom_147, 4); +YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 4); +YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); +YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); +YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); +YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 3); +YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 3); +YAP_UserCPredicate("gecode_constraint_path_267", gecode_constraint_path_267, 4); +YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); +YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); +YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); +YAP_UserCPredicate("gecode_constraint_mult_240", gecode_constraint_mult_240, 5); +YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 6); +YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 6); +YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 6); +YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 5); +YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 5); +YAP_UserCPredicate("gecode_constraint_precede_276", gecode_constraint_precede_276, 4); +YAP_UserCPredicate("gecode_constraint_precede_273", gecode_constraint_precede_273, 4); +YAP_UserCPredicate("gecode_constraint_precede_272", gecode_constraint_precede_272, 4); +YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_99", gecode_constraint_cumulative_99, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_102", gecode_constraint_cumulative_102, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_98", gecode_constraint_cumulative_98, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 7); +YAP_UserCPredicate("gecode_constraint_distinct_122", gecode_constraint_distinct_122, 3); +YAP_UserCPredicate("gecode_constraint_distinct_119", gecode_constraint_distinct_119, 3); +YAP_UserCPredicate("gecode_constraint_member_230", gecode_constraint_member_230, 5); +YAP_UserCPredicate("gecode_constraint_member_226", gecode_constraint_member_226, 5); +YAP_UserCPredicate("gecode_constraint_mod_237", gecode_constraint_mod_237, 4); +YAP_UserCPredicate("gecode_constraint_sqr_345", gecode_constraint_sqr_345, 3); +YAP_UserCPredicate("gecode_constraint_sequence_338", gecode_constraint_sequence_338, 7); +YAP_UserCPredicate("gecode_constraint_sequence_336", gecode_constraint_sequence_336, 7); +YAP_UserCPredicate("gecode_constraint_path_265", gecode_constraint_path_265, 7); +YAP_UserCPredicate("gecode_constraint_path_262", gecode_constraint_path_262, 7); +YAP_UserCPredicate("gecode_constraint_path_259", gecode_constraint_path_259, 7); +YAP_UserCPredicate("gecode_constraint_divmod_126", gecode_constraint_divmod_126, 6); +YAP_UserCPredicate("gecode_constraint_sorted_343", gecode_constraint_sorted_343, 3); +YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 3); +YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); +YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 3); +YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); +YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); +YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); +YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); +YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); +YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); +YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 5); +YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 5); +YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 5); +YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 5); +YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 5); +YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 5); +YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 5); +YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 5); +YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 5); +YAP_UserCPredicate("gecode_constraint_count_75", gecode_constraint_count_75, 5); +YAP_UserCPredicate("gecode_constraint_count_77", gecode_constraint_count_77, 5); +YAP_UserCPredicate("gecode_constraint_cumulatives_117", gecode_constraint_cumulatives_117, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_115", gecode_constraint_cumulatives_115, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 8); +YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); +YAP_UserCPredicate("gecode_constraint_linear_212", gecode_constraint_linear_212, 6); +YAP_UserCPredicate("gecode_constraint_linear_216", gecode_constraint_linear_216, 6); +YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 6); +YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); +YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 6); +YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 6); +YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 6); +YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 6); +YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); +YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 6); +YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); +YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_247", gecode_constraint_nooverlap_247, 7); +YAP_UserCPredicate("gecode_constraint_nooverlap_242", gecode_constraint_nooverlap_242, 7); +YAP_UserCPredicate("gecode_constraint_div_124", gecode_constraint_div_124, 5); +YAP_UserCPredicate("gecode_constraint_sqr_346", gecode_constraint_sqr_346, 4); +YAP_UserCPredicate("gecode_constraint_path_266", gecode_constraint_path_266, 8); +YAP_UserCPredicate("gecode_constraint_path_263", gecode_constraint_path_263, 8); +YAP_UserCPredicate("gecode_constraint_path_260", gecode_constraint_path_260, 8); +YAP_UserCPredicate("gecode_constraint_unary_357", gecode_constraint_unary_357, 5); +YAP_UserCPredicate("gecode_constraint_unary_360", gecode_constraint_unary_360, 5); +YAP_UserCPredicate("gecode_constraint_unary_353", gecode_constraint_unary_353, 5); +YAP_UserCPredicate("gecode_constraint_unary_356", gecode_constraint_unary_356, 5); +YAP_UserCPredicate("gecode_constraint_unary_350", gecode_constraint_unary_350, 5); +YAP_UserCPredicate("gecode_constraint_sorted_341", gecode_constraint_sorted_341, 4); +YAP_UserCPredicate("gecode_constraint_sorted_344", gecode_constraint_sorted_344, 4); +YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 8); +YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 8); +YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 8); +YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 8); +YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 5); +YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 5); +YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 5); +YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 5); +YAP_UserCPredicate("gecode_constraint_element_183", gecode_constraint_element_183, 5); +YAP_UserCPredicate("gecode_constraint_element_181", gecode_constraint_element_181, 5); +YAP_UserCPredicate("gecode_constraint_element_179", gecode_constraint_element_179, 5); +YAP_UserCPredicate("gecode_constraint_element_177", gecode_constraint_element_177, 5); +YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 5); +YAP_UserCPredicate("gecode_constraint_element_176", gecode_constraint_element_176, 5); +YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 5); +YAP_UserCPredicate("gecode_constraint_sequence_340", gecode_constraint_sequence_340, 3); +YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 7); +YAP_UserCPredicate("gecode_constraint_precede_275", gecode_constraint_precede_275, 3); +YAP_UserCPredicate("gecode_constraint_precede_271", gecode_constraint_precede_271, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_101", gecode_constraint_cumulative_101, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 6); +YAP_UserCPredicate("gecode_constraint_distinct_120", gecode_constraint_distinct_120, 4); +YAP_UserCPredicate("gecode_constraint_min_231", gecode_constraint_min_231, 3); +YAP_UserCPredicate("gecode_constraint_min_235", gecode_constraint_min_235, 3); +YAP_UserCPredicate("gecode_constraint_sqrt_348", gecode_constraint_sqrt_348, 4); +YAP_UserCPredicate("gecode_constraint_sequence_337", gecode_constraint_sequence_337, 6); +YAP_UserCPredicate("gecode_constraint_sequence_335", gecode_constraint_sequence_335, 6); +YAP_UserCPredicate("gecode_constraint_unshare_364", gecode_constraint_unshare_364, 3); +YAP_UserCPredicate("gecode_constraint_unshare_362", gecode_constraint_unshare_362, 3); +YAP_UserCPredicate("gecode_constraint_path_270", gecode_constraint_path_270, 6); +YAP_UserCPredicate("gecode_constraint_path_261", gecode_constraint_path_261, 6); +YAP_UserCPredicate("gecode_constraint_divmod_125", gecode_constraint_divmod_125, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_246", gecode_constraint_nooverlap_246, 9); +YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 5); +YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 5); +YAP_UserCPredicate("gecode_constraint_member_227", gecode_constraint_member_227, 3); +YAP_UserCPredicate("gecode_constraint_member_223", gecode_constraint_member_223, 3); +YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 6); +YAP_UserCPredicate("gecode_constraint_count_74", gecode_constraint_count_74, 6); +YAP_UserCPredicate("gecode_constraint_count_76", gecode_constraint_count_76, 6); +YAP_UserCPredicate("gecode_constraint_count_78", gecode_constraint_count_78, 6); +YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 6); +YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 6); +YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 6); +YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 6); +YAP_UserCPredicate("gecode_constraint_notMin_250", gecode_constraint_notMin_250, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_100", gecode_constraint_cumulative_100, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 8); +YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); +YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); +YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); +YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 3); +YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 3); +YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 3); +YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 3); +YAP_UserCPredicate("gecode_constraint_linear_211", gecode_constraint_linear_211, 5); +YAP_UserCPredicate("gecode_constraint_linear_210", gecode_constraint_linear_210, 5); +YAP_UserCPredicate("gecode_constraint_linear_215", gecode_constraint_linear_215, 5); +YAP_UserCPredicate("gecode_constraint_linear_214", gecode_constraint_linear_214, 5); +YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 5); +YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 5); +YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 5); +YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 5); +YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 5); +YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 5); +YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 5); +YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_241", gecode_constraint_nooverlap_241, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_244", gecode_constraint_nooverlap_244, 6); +YAP_UserCPredicate("gecode_constraint_element_184", gecode_constraint_element_184, 6); +YAP_UserCPredicate("gecode_constraint_element_182", gecode_constraint_element_182, 6); +YAP_UserCPredicate("gecode_constraint_element_180", gecode_constraint_element_180, 6); +YAP_UserCPredicate("gecode_constraint_element_178", gecode_constraint_element_178, 6); +YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 4); +YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 4); +YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 4); +YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 4); +YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 4); +YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); +YAP_UserCPredicate("gecode_constraint_rel_325", gecode_constraint_rel_325, 4); +YAP_UserCPredicate("gecode_constraint_rel_323", gecode_constraint_rel_323, 4); +YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 4); +YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 4); +YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 4); +YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); +YAP_UserCPredicate("gecode_constraint_rel_311", gecode_constraint_rel_311, 4); +YAP_UserCPredicate("gecode_constraint_rel_315", gecode_constraint_rel_315, 4); +YAP_UserCPredicate("gecode_constraint_rel_319", gecode_constraint_rel_319, 4); +YAP_UserCPredicate("gecode_constraint_rel_320", gecode_constraint_rel_320, 4); +YAP_UserCPredicate("gecode_constraint_rel_326", gecode_constraint_rel_326, 4); +YAP_UserCPredicate("gecode_constraint_rel_331", gecode_constraint_rel_331, 4); +YAP_UserCPredicate("gecode_constraint_rel_333", gecode_constraint_rel_333, 4); +YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 4); +YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 4); +YAP_UserCPredicate("gecode_constraint_min_234", gecode_constraint_min_234, 5); +YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 3); +YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 3); diff --git a/packages/gecode/4.2.0/gecode-version.txt b/packages/gecode/4.2.0/gecode-version.txt new file mode 100644 index 000000000..6aba2b245 --- /dev/null +++ b/packages/gecode/4.2.0/gecode-version.txt @@ -0,0 +1 @@ +4.2.0 diff --git a/packages/gecode/4.2.0/gecode_yap_auto_generated.yap b/packages/gecode/4.2.0/gecode_yap_auto_generated.yap new file mode 100644 index 000000000..051cb381e --- /dev/null +++ b/packages/gecode/4.2.0/gecode_yap_auto_generated.yap @@ -0,0 +1,3516 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +is_RestartMode_('RM_NONE'). +is_RestartMode_('RM_CONSTANT'). +is_RestartMode_('RM_LINEAR'). +is_RestartMode_('RM_LUBY'). +is_RestartMode_('RM_GEOMETRIC'). + +is_RestartMode_('RM_NONE','RM_NONE'). +is_RestartMode_('RM_CONSTANT','RM_CONSTANT'). +is_RestartMode_('RM_LINEAR','RM_LINEAR'). +is_RestartMode_('RM_LUBY','RM_LUBY'). +is_RestartMode_('RM_GEOMETRIC','RM_GEOMETRIC'). + +is_RestartMode(X,Y) :- nonvar(X), is_RestartMode_(X,Y). +is_RestartMode(X) :- is_RestartMode(X,_). + +is_FloatRelType_('FRT_EQ'). +is_FloatRelType_('FRT_NQ'). +is_FloatRelType_('FRT_LQ'). +is_FloatRelType_('FRT_LE'). +is_FloatRelType_('FRT_GQ'). +is_FloatRelType_('FRT_GR'). + +is_FloatRelType_('FRT_EQ','FRT_EQ'). +is_FloatRelType_('FRT_NQ','FRT_NQ'). +is_FloatRelType_('FRT_LQ','FRT_LQ'). +is_FloatRelType_('FRT_LE','FRT_LE'). +is_FloatRelType_('FRT_GQ','FRT_GQ'). +is_FloatRelType_('FRT_GR','FRT_GR'). + +is_FloatRelType(X,Y) :- nonvar(X), is_FloatRelType_(X,Y). +is_FloatRelType(X) :- is_FloatRelType(X,_). + +is_ReifyMode_('RM_EQV'). +is_ReifyMode_('RM_IMP'). +is_ReifyMode_('RM_PMI'). + +is_ReifyMode_('RM_EQV','RM_EQV'). +is_ReifyMode_('RM_IMP','RM_IMP'). +is_ReifyMode_('RM_PMI','RM_PMI'). + +is_ReifyMode(X,Y) :- nonvar(X), is_ReifyMode_(X,Y). +is_ReifyMode(X) :- is_ReifyMode(X,_). + +is_IntRelType_('IRT_EQ'). +is_IntRelType_('IRT_NQ'). +is_IntRelType_('IRT_LQ'). +is_IntRelType_('IRT_LE'). +is_IntRelType_('IRT_GQ'). +is_IntRelType_('IRT_GR'). + +is_IntRelType_('IRT_EQ','IRT_EQ'). +is_IntRelType_('IRT_NQ','IRT_NQ'). +is_IntRelType_('IRT_LQ','IRT_LQ'). +is_IntRelType_('IRT_LE','IRT_LE'). +is_IntRelType_('IRT_GQ','IRT_GQ'). +is_IntRelType_('IRT_GR','IRT_GR'). + +is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). +is_IntRelType(X) :- is_IntRelType(X,_). + +is_BoolOpType_('BOT_AND'). +is_BoolOpType_('BOT_OR'). +is_BoolOpType_('BOT_IMP'). +is_BoolOpType_('BOT_EQV'). +is_BoolOpType_('BOT_XOR'). + +is_BoolOpType_('BOT_AND','BOT_AND'). +is_BoolOpType_('BOT_OR','BOT_OR'). +is_BoolOpType_('BOT_IMP','BOT_IMP'). +is_BoolOpType_('BOT_EQV','BOT_EQV'). +is_BoolOpType_('BOT_XOR','BOT_XOR'). + +is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). +is_BoolOpType(X) :- is_BoolOpType(X,_). + +is_IntConLevel_('ICL_VAL'). +is_IntConLevel_('ICL_BND'). +is_IntConLevel_('ICL_DOM'). +is_IntConLevel_('ICL_DEF'). + +is_IntConLevel_('ICL_VAL','ICL_VAL'). +is_IntConLevel_('ICL_BND','ICL_BND'). +is_IntConLevel_('ICL_DOM','ICL_DOM'). +is_IntConLevel_('ICL_DEF','ICL_DEF'). + +is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). +is_IntConLevel(X) :- is_IntConLevel(X,_). + +is_TaskType_('TT_FIXP'). +is_TaskType_('TT_FIXS'). +is_TaskType_('TT_FIXE'). + +is_TaskType_('TT_FIXP','TT_FIXP'). +is_TaskType_('TT_FIXS','TT_FIXS'). +is_TaskType_('TT_FIXE','TT_FIXE'). + +is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). +is_TaskType(X) :- is_TaskType(X,_). + +is_ExtensionalPropKind_('EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY'). + +is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). +is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). +is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). + +is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). +is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). + +is_SetRelType_('SRT_EQ'). +is_SetRelType_('SRT_NQ'). +is_SetRelType_('SRT_SUB'). +is_SetRelType_('SRT_SUP'). +is_SetRelType_('SRT_DISJ'). +is_SetRelType_('SRT_CMPL'). +is_SetRelType_('SRT_LQ'). +is_SetRelType_('SRT_LE'). +is_SetRelType_('SRT_GQ'). +is_SetRelType_('SRT_GR'). + +is_SetRelType_('SRT_EQ','SRT_EQ'). +is_SetRelType_('SRT_NQ','SRT_NQ'). +is_SetRelType_('SRT_SUB','SRT_SUB'). +is_SetRelType_('SRT_SUP','SRT_SUP'). +is_SetRelType_('SRT_DISJ','SRT_DISJ'). +is_SetRelType_('SRT_CMPL','SRT_CMPL'). +is_SetRelType_('SRT_LQ','SRT_LQ'). +is_SetRelType_('SRT_LE','SRT_LE'). +is_SetRelType_('SRT_GQ','SRT_GQ'). +is_SetRelType_('SRT_GR','SRT_GR'). + +is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). +is_SetRelType(X) :- is_SetRelType(X,_). + +is_SetOpType_('SOT_UNION'). +is_SetOpType_('SOT_DUNION'). +is_SetOpType_('SOT_INTER'). +is_SetOpType_('SOT_MINUS'). + +is_SetOpType_('SOT_UNION','SOT_UNION'). +is_SetOpType_('SOT_DUNION','SOT_DUNION'). +is_SetOpType_('SOT_INTER','SOT_INTER'). +is_SetOpType_('SOT_MINUS','SOT_MINUS'). + +is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). +is_SetOpType(X) :- is_SetOpType(X,_). + +unary(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_458(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_unary_454(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). + +nvalues(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_345(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_347(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_341(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nvalues_343(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_max_302(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_max_300(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_FloatVar(X1,Y1) + -> (is_FloatVar(X2,Y2) + -> (is_FloatVar(X3,Y3) + -> gecode_constraint_max_301(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_Reify(X3,Y3) + -> gecode_constraint_max_305(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2)))))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_dom_200(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_Reify(X5,Y5) + -> gecode_constraint_dom_209(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). + +convex(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_convex_91(Y0,Y1,Y2) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). + +nooverlap(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_nooverlap_329(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). + +assign(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVar(X1,Y1) + -> (is_FloatAssign(X2,Y2) + -> gecode_constraint_assign_15(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_FloatVarArgs(X1,Y1) + -> (is_FloatAssign(X2,Y2) + -> gecode_constraint_assign_6(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_3(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_1(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_9(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> gecode_constraint_assign_17(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_12(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> gecode_constraint_assign_19(Y0,Y1,Y2) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))))) + ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). + +element(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_220(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_224(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_214(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_212(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_219(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_element_227(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_element_230(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_element_236(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_element_228(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> gecode_constraint_sequence_437(Y0,Y1) + ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). + +notMax(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMax_335(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). + +ite(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_ite_256(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4),arg=1))). + +unary(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_unary_451(Y0,Y1,Y2) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). + +nroot(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_nroot_339(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(nroot(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(nroot(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(nroot(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(nroot(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(nroot(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_circuit_85(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_circuit_76(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). + +dom(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_dom_199(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_198(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_Reify(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_202(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_Reify(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_194(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_dom_185(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_dom_181(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; (is_FloatVar(X1,Y1) + -> (is_FloatNum(X2,Y2) + -> (is_FloatNum(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_dom_187(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_dom_208(Y0,Y1,Y2,Y3,Y4) + ; (is_Reify(X4,Y4) + -> gecode_constraint_dom_210(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntSet(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_dom_206(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). + +channel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_66(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_channel_62(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_channel_60(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> gecode_constraint_nooverlap_331(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; (is_IntConLevel(X7,Y7) + -> gecode_constraint_nooverlap_334(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_222(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> gecode_constraint_element_216(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntSetArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_218(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_SetVar(X6,Y6) + -> gecode_constraint_element_226(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_element_234(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_BoolVar(X6,Y6) + -> gecode_constraint_element_232(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +max(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVarArgs(X1,Y1) + -> (is_FloatVar(X2,Y2) + -> gecode_constraint_max_298(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_299(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_max_304(Y0,Y1,Y2) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=2))))) + ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). + +unshare(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_unshare_463(Y0,Y1) + ; (is_BoolVarArgs(X1,Y1) + -> gecode_constraint_unshare_461(Y0,Y1) + ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). + +path(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_path_358(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_path_357(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). + +branch(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> (is_Symmetries(X4,Y4) + -> (is_IntBranchFilter(X5,Y5) + -> (is_IntVarValPrint(X6,Y6) + -> gecode_constraint_branch_34(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> (is_Symmetries(X4,Y4) + -> (is_BoolBranchFilter(X5,Y5) + -> (is_BoolVarValPrint(X6,Y6) + -> gecode_constraint_branch_28(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarBranch(X2,Y2) + -> (is_SetValBranch(X3,Y3) + -> (is_Symmetries(X4,Y4) + -> (is_SetBranchFilter(X5,Y5) + -> (is_SetVarValPrint(X6,Y6) + -> gecode_constraint_branch_40(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=2))))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +mult(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mult_325(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) + ; (is_FloatVar(X1,Y1) + -> (is_FloatVar(X2,Y2) + -> (is_FloatVar(X3,Y3) + -> gecode_constraint_mult_324(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). + +clause(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_89(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_clause_87(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). + +precede(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_precede_366(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). + +distinct(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_distinct_160(Y0,Y1) + ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). + +member(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_Reify(X3,Y3) + -> gecode_constraint_member_312(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_311(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_Reify(X3,Y3) + -> gecode_constraint_member_308(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_member_307(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). + +mod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mod_323(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). + +cardinality(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_cardinality_57(Y0,Y1,Y2) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). + +atmostOne(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_atmostOne_53(Y0,Y1,Y2) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). + +channelSorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_channelSorted_73(Y0,Y1,Y2) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). + +extensional(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_TupleSet(X2,Y2) + -> (is_ExtensionalPropKind(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_extensional_253(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_TupleSet(X2,Y2) + -> (is_ExtensionalPropKind(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_extensional_248(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=1))). + +linear(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVarArgs(X1,Y1) + -> (is_FloatRelType(X2,Y2) + -> (is_FloatVar(X3,Y3) + -> gecode_constraint_linear_272(Y0,Y1,Y2,Y3) + ; (is_FloatNum(X3,Y3) + -> gecode_constraint_linear_270(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_258(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_262(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_linear_290(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_linear_294(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). + +circuit(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> gecode_constraint_circuit_82(Y0,Y1) + ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). + +rel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVar(X1,Y1) + -> (is_FloatRelType(X2,Y2) + -> (is_FloatVal(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_406(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_FloatVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_408(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_422(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_rel_420(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_392(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_388(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_386(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_383(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_382(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_BoolVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_379(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_378(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_rel_375(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_rel_373(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_402(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_404(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_398(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_411(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_410(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_415(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_414(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_419(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_430(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_rel_432(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_372(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_rel_370(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2)))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). + +min(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_min_318(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_min_316(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_FloatVar(X1,Y1) + -> (is_FloatVar(X2,Y2) + -> (is_FloatVar(X3,Y3) + -> gecode_constraint_min_317(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_Reify(X3,Y3) + -> gecode_constraint_min_321(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2)))))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). + +cardinality(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_cardinality_56(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_cardinality_58(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). + +count(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_109(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_106(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; (is_IntSet(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_count_100(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_count_99(Y0,Y1,Y2,Y3) + ; (is_IntArgs(X3,Y3) + -> gecode_constraint_count_96(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). + +sqrt(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqrt_447(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) + ; (is_FloatVar(X1,Y1) + -> (is_FloatVar(X2,Y2) + -> gecode_constraint_sqrt_446(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_157(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_153(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_151(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_149(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_147(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_145(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_cumulatives_143(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +nvalues(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_344(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_346(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_nvalues_340(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_nvalues_342(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). + +binpacking(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_binpacking_54(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). + +linear(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_Reify(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_285(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_Reify(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_289(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_Reify(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_277(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_Reify(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_linear_281(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +abs(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_abs_52(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). + +convex(X0,X1) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> gecode_constraint_convex_90(Y0,Y1) + ; throw(gecode_argument_error(convex(X0,X1),arg=2))) + ; throw(gecode_argument_error(convex(X0,X1),arg=1))). + +div(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_div_163(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) + ; (is_FloatVar(X1,Y1) + -> (is_FloatVar(X2,Y2) + -> (is_FloatVar(X3,Y3) + -> gecode_constraint_div_162(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). + +rel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_412(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_416(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntSet(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_395(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_396(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_384(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_380(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; (is_BoolOpType(X2,Y2) + -> (is_BoolVar(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_376(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_rel_374(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_SetOpType(X2,Y2) + -> (is_IntSet(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_425(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_426(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_SetVar(X3,Y3) + -> (is_SetRelType(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_rel_427(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_SetVar(X5,Y5) + -> gecode_constraint_rel_428(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). + +weights(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_weights_465(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). + +max(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_max_303(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_path_353(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +unary(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> gecode_constraint_unary_459(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_unary_455(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_unary_449(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_unary_452(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). + +nroot(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_nroot_338(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=3))) + ; (is_FloatVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_FloatVar(X3,Y3) + -> gecode_constraint_nroot_337(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=1))). + +sorted(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_sorted_440(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_80(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_circuit_77(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_circuit_74(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). + +dom(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVar(X1,Y1) + -> (is_FloatVal(X2,Y2) + -> (is_Reify(X3,Y3) + -> gecode_constraint_dom_189(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; (is_FloatNum(X2,Y2) + -> (is_FloatNum(X3,Y3) + -> gecode_constraint_dom_186(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) + ; (is_FloatVarArgs(X1,Y1) + -> (is_FloatNum(X2,Y2) + -> (is_FloatNum(X3,Y3) + -> gecode_constraint_dom_172(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_170(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_168(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_180(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_179(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_177(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_175(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))))) + ; (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_197(Y0,Y1,Y2,Y3) + ; (is_Reify(X3,Y3) + -> gecode_constraint_dom_201(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_196(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) + ; (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_204(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_Reify(X3,Y3) + -> gecode_constraint_dom_193(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_dom_192(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_184(Y0,Y1,Y2,Y3) + ; (is_IntSet(X3,Y3) + -> gecode_constraint_dom_183(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_dom_207(Y0,Y1,Y2,Y3) + ; (is_IntSet(X3,Y3) + -> gecode_constraint_dom_205(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2)))))))))) + ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). + +abs(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_abs_51(Y0,Y1,Y2) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) + ; (is_FloatVar(X1,Y1) + -> (is_FloatVar(X2,Y2) + -> gecode_constraint_abs_50(Y0,Y1,Y2) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). + +channel(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_channel_68(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_channel_63(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). + +assign(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVarArgs(X1,Y1) + -> (is_FloatAssign(X2,Y2) + -> (is_FloatBranchFilter(X3,Y3) + -> (is_FloatVarValPrint(X4,Y4) + -> gecode_constraint_assign_8(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> (is_BoolBranchFilter(X3,Y3) + -> (is_BoolVarValPrint(X4,Y4) + -> gecode_constraint_assign_5(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> (is_IntBranchFilter(X3,Y3) + -> (is_IntVarValPrint(X4,Y4) + -> gecode_constraint_assign_11(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> (is_SetBranchFilter(X3,Y3) + -> (is_SetVarValPrint(X4,Y4) + -> gecode_constraint_assign_14(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=2)))))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=1))). + +rel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_399(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> gecode_constraint_rel_389(Y0,Y1,Y2) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_path_356(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). + +branch(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVar(X1,Y1) + -> (is_FloatValBranch(X2,Y2) + -> (is_FloatVarValPrint(X3,Y3) + -> gecode_constraint_branch_45(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_FloatVarArgs(X1,Y1) + -> (is_FloatVarBranch(X2,Y2) + -> (is_FloatValBranch(X3,Y3) + -> gecode_constraint_branch_29(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_23(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> (is_BoolVarValPrint(X3,Y3) + -> gecode_constraint_branch_22(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> gecode_constraint_branch_35(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> (is_IntVarValPrint(X3,Y3) + -> gecode_constraint_branch_47(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarBranch(X2,Y2) + -> (is_SetValBranch(X3,Y3) + -> gecode_constraint_branch_41(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetValBranch(X2,Y2) + -> (is_SetVarValPrint(X3,Y3) + -> gecode_constraint_branch_49(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2)))))))))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). + +mult(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_mult_326(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_81(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_circuit_78(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_circuit_75(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). + +clause(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_clause_88(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolVar(X4,Y4) + -> gecode_constraint_clause_86(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). + +precede(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_368(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_precede_365(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_precede_364(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). + +channel(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_channel_69(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_126(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_129(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_122(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_125(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_119(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_138(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_141(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> gecode_constraint_cumulative_134(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_137(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_cumulative_131(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +distinct(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_distinct_161(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_distinct_158(Y0,Y1,Y2) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). + +member(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_Reify(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_313(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> (is_Reify(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_member_309(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). + +mod(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_mod_322(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). + +sqr(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_sqr_444(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) + ; (is_FloatVar(X1,Y1) + -> (is_FloatVar(X2,Y2) + -> gecode_constraint_sqr_443(Y0,Y1,Y2) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_436(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_sequence_434(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_354(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_path_351(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> gecode_constraint_path_348(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +divmod(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_divmod_166(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). + +sorted(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_sorted_441(Y0,Y1,Y2) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). + +extensional(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_TupleSet(X2,Y2) + -> (is_ExtensionalPropKind(X3,Y3) + -> gecode_constraint_extensional_252(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=4))) + ; (is_DFA(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_extensional_255(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_TupleSet(X2,Y2) + -> (is_ExtensionalPropKind(X3,Y3) + -> gecode_constraint_extensional_247(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=4))) + ; (is_DFA(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_extensional_250(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=3)))) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=1))). + +circuit(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_circuit_84(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_circuit_83(Y0,Y1,Y2) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). + +channel(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_71(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_61(Y0,Y1,Y2) + ; (is_SetVar(X2,Y2) + -> gecode_constraint_channel_64(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_channel_59(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> gecode_constraint_channel_67(Y0,Y1,Y2) + ; (is_IntVarArgs(X2,Y2) + -> gecode_constraint_channel_65(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_FloatVar(X2,Y2) + -> gecode_constraint_channel_72(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> gecode_constraint_channel_70(Y0,Y1,Y2) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))))) + ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_92(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_94(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_110(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_112(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_102(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_104(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_101(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) + ; (is_IntSetArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_97(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_count_107(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_count_114(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_count_116(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). + +cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_154(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_152(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_150(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_148(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_146(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_144(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; (is_IntArgs(X5,Y5) + -> (is_IntArgs(X6,Y6) + -> (is_bool(X7,Y7) + -> gecode_constraint_cumulatives_142(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +binpacking(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_binpacking_55(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). + +extensional(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_TupleSet(X2,Y2) + -> gecode_constraint_extensional_251(Y0,Y1,Y2) + ; (is_DFA(X2,Y2) + -> gecode_constraint_extensional_254(Y0,Y1,Y2) + ; throw(gecode_argument_error(extensional(X0,X1,X2),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_TupleSet(X2,Y2) + -> gecode_constraint_extensional_246(Y0,Y1,Y2) + ; (is_DFA(X2,Y2) + -> gecode_constraint_extensional_249(Y0,Y1,Y2) + ; throw(gecode_argument_error(extensional(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(extensional(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(extensional(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_293(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_297(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_261(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_265(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_FloatValArgs(X1,Y1) + -> (is_FloatVarArgs(X2,Y2) + -> (is_FloatRelType(X3,Y3) + -> (is_FloatVar(X4,Y4) + -> (is_Reify(X5,Y5) + -> gecode_constraint_linear_269(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_FloatNum(X4,Y4) + -> (is_Reify(X5,Y5) + -> gecode_constraint_linear_267(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_Reify(X5,Y5) + -> gecode_constraint_linear_284(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_283(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_Reify(X5,Y5) + -> gecode_constraint_linear_288(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_287(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_Reify(X5,Y5) + -> gecode_constraint_linear_276(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_275(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; (is_IntVar(X4,Y4) + -> (is_Reify(X5,Y5) + -> gecode_constraint_linear_280(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_linear_279(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2)))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> gecode_constraint_nooverlap_333(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_nooverlap_328(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +div(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_div_164(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). + +sqr(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqr_445(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). + +path(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_355(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_IntVarArgs(X6,Y6) + -> (is_IntVar(X7,Y7) + -> gecode_constraint_path_352(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_path_349(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +unary(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_TaskTypeArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_457(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_460(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_BoolVarArgs(X4,Y4) + -> gecode_constraint_unary_453(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_456(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_BoolVarArgs(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_unary_450(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). + +sorted(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> gecode_constraint_sorted_439(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_sorted_442(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). + +element(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_223(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_217(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_int(X5,Y5) + -> (is_IntVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_235(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; (is_BoolVar(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_element_233(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +assign(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVar(X1,Y1) + -> (is_FloatAssign(X2,Y2) + -> (is_FloatVarValPrint(X3,Y3) + -> gecode_constraint_assign_16(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) + ; (is_FloatVarArgs(X1,Y1) + -> (is_FloatAssign(X2,Y2) + -> (is_FloatBranchFilter(X3,Y3) + -> gecode_constraint_assign_7(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> (is_BoolBranchFilter(X3,Y3) + -> gecode_constraint_assign_4(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> (is_BoolVarValPrint(X3,Y3) + -> gecode_constraint_assign_2(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> (is_IntBranchFilter(X3,Y3) + -> gecode_constraint_assign_10(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntAssign(X2,Y2) + -> (is_IntVarValPrint(X3,Y3) + -> gecode_constraint_assign_18(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> (is_SetBranchFilter(X3,Y3) + -> gecode_constraint_assign_13(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetAssign(X2,Y2) + -> (is_SetVarValPrint(X3,Y3) + -> gecode_constraint_assign_20(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=2)))))))))) + ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=1))). + +element(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_221(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_225(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_215(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_213(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_244(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_242(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_240(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> gecode_constraint_element_238(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_int(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_231(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_237(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; (is_BoolVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_element_229(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). + +sequence(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_sequence_438(Y0,Y1,Y2) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). + +branch(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVarArgs(X1,Y1) + -> (is_FloatVarBranch(X2,Y2) + -> (is_FloatValBranch(X3,Y3) + -> (is_FloatBranchFilter(X4,Y4) + -> gecode_constraint_branch_30(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> (is_Symmetries(X4,Y4) + -> gecode_constraint_branch_26(Y0,Y1,Y2,Y3,Y4) + ; (is_BoolBranchFilter(X4,Y4) + -> gecode_constraint_branch_24(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> (is_Symmetries(X4,Y4) + -> gecode_constraint_branch_32(Y0,Y1,Y2,Y3,Y4) + ; (is_IntBranchFilter(X4,Y4) + -> gecode_constraint_branch_36(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarBranch(X2,Y2) + -> (is_SetValBranch(X3,Y3) + -> (is_SetBranchFilter(X4,Y4) + -> gecode_constraint_branch_42(Y0,Y1,Y2,Y3,Y4) + ; (is_Symmetries(X4,Y4) + -> gecode_constraint_branch_38(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=2)))))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=1))). + +circuit(X0,X1,X2,X3,X4,X5,X6) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVar(X5,Y5) + -> (is_IntConLevel(X6,Y6) + -> gecode_constraint_circuit_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) + ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). + +pow(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_pow_361(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=3))) + ; (is_FloatVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_FloatVar(X3,Y3) + -> gecode_constraint_pow_360(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=2)))) + ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=1))). + +precede(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_367(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> gecode_constraint_precede_363(Y0,Y1,Y2) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_128(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_124(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_118(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_121(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_140(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> gecode_constraint_cumulative_136(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_cumulative_130(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_cumulative_133(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). + +distinct(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_distinct_159(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVarArgs(X1,Y1) + -> (is_FloatVar(X2,Y2) + -> gecode_constraint_min_314(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_315(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_min_320(Y0,Y1,Y2) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=2))))) + ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). + +sqrt(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntConLevel(X3,Y3) + -> gecode_constraint_sqrt_448(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) + ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). + +sequence(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_435(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntSet(X2,Y2) + -> (is_int(X3,Y3) + -> (is_int(X4,Y4) + -> (is_int(X5,Y5) + -> gecode_constraint_sequence_433(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). + +unshare(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_464(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntConLevel(X2,Y2) + -> gecode_constraint_unshare_462(Y0,Y1,Y2) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). + +path(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_path_359(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntVar(X5,Y5) + -> gecode_constraint_path_350(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) + ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). + +divmod(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> gecode_constraint_divmod_165(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). + +branch(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVarArgs(X1,Y1) + -> (is_FloatVarBranch(X2,Y2) + -> (is_FloatValBranch(X3,Y3) + -> (is_FloatBranchFilter(X4,Y4) + -> (is_FloatVarValPrint(X5,Y5) + -> gecode_constraint_branch_31(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> (is_Symmetries(X4,Y4) + -> (is_BoolBranchFilter(X5,Y5) + -> gecode_constraint_branch_27(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_BoolBranchFilter(X4,Y4) + -> (is_BoolVarValPrint(X5,Y5) + -> gecode_constraint_branch_25(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntVarBranch(X2,Y2) + -> (is_IntValBranch(X3,Y3) + -> (is_Symmetries(X4,Y4) + -> (is_IntBranchFilter(X5,Y5) + -> gecode_constraint_branch_33(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntBranchFilter(X4,Y4) + -> (is_IntVarValPrint(X5,Y5) + -> gecode_constraint_branch_37(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=3))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarBranch(X2,Y2) + -> (is_SetValBranch(X3,Y3) + -> (is_SetBranchFilter(X4,Y4) + -> (is_SetVarValPrint(X5,Y5) + -> gecode_constraint_branch_43(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_Symmetries(X4,Y4) + -> (is_SetBranchFilter(X5,Y5) + -> gecode_constraint_branch_39(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=2)))))) + ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntVarArgs(X5,Y5) + -> (is_IntVarArgs(X6,Y6) + -> (is_BoolVarArgs(X7,Y7) + -> (is_IntConLevel(X8,Y8) + -> gecode_constraint_nooverlap_332(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). + +cumulative(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_120(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> gecode_constraint_cumulative_132(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). + +member(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_member_310(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_member_306(Y0,Y1,Y2) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) + ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). + +count(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_111(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_113(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVar(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_115(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_117(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSet(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_103(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_105(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_93(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_count_95(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). + +pow(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_pow_362(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(pow(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(pow(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(pow(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(pow(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(pow(X0,X1,X2,X3,X4),arg=1))). + +notMin(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> gecode_constraint_notMin_336(Y0,Y1,Y2) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). + +cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- + (is_Space_or_Clause(X0,Y0) + -> (is_int(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_127(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_123(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; (is_IntVar(X1,Y1) + -> (is_TaskTypeArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_139(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntVarArgs(X4,Y4) + -> (is_IntArgs(X5,Y5) + -> (is_BoolVarArgs(X6,Y6) + -> (is_IntConLevel(X7,Y7) + -> gecode_constraint_cumulative_135(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) + ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). + +branch(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_46(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntValBranch(X2,Y2) + -> gecode_constraint_branch_21(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_FloatVar(X1,Y1) + -> (is_FloatValBranch(X2,Y2) + -> gecode_constraint_branch_44(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetValBranch(X2,Y2) + -> gecode_constraint_branch_48(Y0,Y1,Y2) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2)))))) + ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). + +dom(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVar(X1,Y1) + -> (is_FloatVal(X2,Y2) + -> gecode_constraint_dom_188(Y0,Y1,Y2) + ; (is_FloatVar(X2,Y2) + -> gecode_constraint_dom_190(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; (is_FloatVarArgs(X1,Y1) + -> (is_FloatVarArgs(X2,Y2) + -> gecode_constraint_dom_171(Y0,Y1,Y2) + ; (is_FloatVal(X2,Y2) + -> gecode_constraint_dom_173(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> gecode_constraint_dom_169(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_BoolVar(X2,Y2) + -> gecode_constraint_dom_167(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_178(Y0,Y1,Y2) + ; (is_IntVarArgs(X2,Y2) + -> gecode_constraint_dom_176(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_174(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))))) + ; (is_IntVar(X1,Y1) + -> (is_int(X2,Y2) + -> gecode_constraint_dom_195(Y0,Y1,Y2) + ; (is_IntVar(X2,Y2) + -> gecode_constraint_dom_203(Y0,Y1,Y2) + ; (is_IntSet(X2,Y2) + -> gecode_constraint_dom_191(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))))) + ; (is_SetVarArgs(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> gecode_constraint_dom_182(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))) + ; (is_SetVar(X1,Y1) + -> (is_SetVar(X2,Y2) + -> gecode_constraint_dom_211(Y0,Y1,Y2) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))))))))) + ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). + +linear(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_linear_292(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_291(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_linear_296(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_295(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_FloatVarArgs(X1,Y1) + -> (is_FloatRelType(X2,Y2) + -> (is_FloatVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_linear_273(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5))) + ; (is_FloatNum(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_linear_271(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_linear_260(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_259(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; (is_IntVar(X3,Y3) + -> (is_Reify(X4,Y4) + -> gecode_constraint_linear_264(Y0,Y1,Y2,Y3,Y4) + ; (is_IntConLevel(X4,Y4) + -> gecode_constraint_linear_263(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_FloatValArgs(X1,Y1) + -> (is_FloatVarArgs(X2,Y2) + -> (is_FloatRelType(X3,Y3) + -> (is_FloatVar(X4,Y4) + -> gecode_constraint_linear_268(Y0,Y1,Y2,Y3,Y4) + ; (is_FloatNum(X4,Y4) + -> gecode_constraint_linear_266(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) + ; (is_IntArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_282(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_286(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; (is_BoolVarArgs(X2,Y2) + -> (is_IntRelType(X3,Y3) + -> (is_int(X4,Y4) + -> gecode_constraint_linear_274(Y0,Y1,Y2,Y3,Y4) + ; (is_IntVar(X4,Y4) + -> gecode_constraint_linear_278(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))))) + ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). + +nooverlap(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntArgs(X2,Y2) + -> (is_IntVarArgs(X3,Y3) + -> (is_IntArgs(X4,Y4) + -> (is_BoolVarArgs(X5,Y5) + -> gecode_constraint_nooverlap_327(Y0,Y1,Y2,Y3,Y4,Y5) + ; (is_IntConLevel(X5,Y5) + -> gecode_constraint_nooverlap_330(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). + +element(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_245(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_243(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntSetArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_241(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; (is_IntArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> (is_SetVar(X4,Y4) + -> (is_IntSet(X5,Y5) + -> gecode_constraint_element_239(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). + +rel(X0,X1,X2,X3) :- + (is_Space_or_Clause(X0,Y0) + -> (is_FloatVar(X1,Y1) + -> (is_FloatRelType(X2,Y2) + -> (is_FloatVal(X3,Y3) + -> gecode_constraint_rel_405(Y0,Y1,Y2,Y3) + ; (is_FloatVar(X3,Y3) + -> gecode_constraint_rel_407(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_SetOpType(X1,Y1) + -> (is_SetVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_423(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_IntVarArgs(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_421(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_FloatVarArgs(X1,Y1) + -> (is_FloatRelType(X2,Y2) + -> (is_FloatVal(X3,Y3) + -> gecode_constraint_rel_393(Y0,Y1,Y2,Y3) + ; (is_FloatVar(X3,Y3) + -> gecode_constraint_rel_394(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_391(Y0,Y1,Y2,Y3) + ; (is_BoolVarArgs(X3,Y3) + -> gecode_constraint_rel_387(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_385(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_390(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_BoolVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_381(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_377(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_IntVarArgs(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_401(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_403(Y0,Y1,Y2,Y3) + ; (is_IntVarArgs(X3,Y3) + -> gecode_constraint_rel_397(Y0,Y1,Y2,Y3) + ; (is_IntConLevel(X3,Y3) + -> gecode_constraint_rel_400(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; (is_IntVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_409(Y0,Y1,Y2,Y3) + ; (is_IntVar(X3,Y3) + -> gecode_constraint_rel_413(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_417(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) + ; (is_SetRelType(X2,Y2) + -> (is_SetVar(X3,Y3) + -> gecode_constraint_rel_418(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_SetVar(X1,Y1) + -> (is_IntRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_424(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) + ; (is_SetRelType(X2,Y2) + -> (is_IntVar(X3,Y3) + -> gecode_constraint_rel_429(Y0,Y1,Y2,Y3) + ; (is_SetVar(X3,Y3) + -> gecode_constraint_rel_431(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) + ; (is_BoolOpType(X1,Y1) + -> (is_BoolVarArgs(X2,Y2) + -> (is_int(X3,Y3) + -> gecode_constraint_rel_371(Y0,Y1,Y2,Y3) + ; (is_BoolVar(X3,Y3) + -> gecode_constraint_rel_369(Y0,Y1,Y2,Y3) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))))) + ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). + +min(X0,X1,X2,X3,X4) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntConLevel(X4,Y4) + -> gecode_constraint_min_319(Y0,Y1,Y2,Y3,Y4) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) + ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). + +count(X0,X1,X2) :- + (is_Space_or_Clause(X0,Y0) + -> (is_IntVarArgs(X1,Y1) + -> (is_IntVarArgs(X2,Y2) + -> gecode_constraint_count_108(Y0,Y1,Y2) + ; (is_IntSetArgs(X2,Y2) + -> gecode_constraint_count_98(Y0,Y1,Y2) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) + ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). + +ite(X0,X1,X2,X3,X4,X5) :- + (is_Space_or_Clause(X0,Y0) + -> (is_BoolVar(X1,Y1) + -> (is_IntVar(X2,Y2) + -> (is_IntVar(X3,Y3) + -> (is_IntVar(X4,Y4) + -> (is_IntConLevel(X5,Y5) + -> gecode_constraint_ite_257(Y0,Y1,Y2,Y3,Y4,Y5) + ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=6))) + ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=5))) + ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=4))) + ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=3))) + ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=2))) + ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=1))). + diff --git a/packages/gecode/4.2.0/gecode_yap_cc_forward_auto_generated.icc b/packages/gecode/4.2.0/gecode_yap_cc_forward_auto_generated.icc new file mode 100644 index 000000000..cb696e86a --- /dev/null +++ b/packages/gecode/4.2.0/gecode_yap_cc_forward_auto_generated.icc @@ -0,0 +1,28 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static RestartMode gecode_RestartMode_from_term(YAP_Term); +static FloatRelType gecode_FloatRelType_from_term(YAP_Term); +static ReifyMode gecode_ReifyMode_from_term(YAP_Term); +static IntRelType gecode_IntRelType_from_term(YAP_Term); +static BoolOpType gecode_BoolOpType_from_term(YAP_Term); +static IntConLevel gecode_IntConLevel_from_term(YAP_Term); +static TaskType gecode_TaskType_from_term(YAP_Term); +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); +static SetRelType gecode_SetRelType_from_term(YAP_Term); +static SetOpType gecode_SetOpType_from_term(YAP_Term); diff --git a/packages/gecode/4.2.0/gecode_yap_cc_impl_auto_generated.icc b/packages/gecode/4.2.0/gecode_yap_cc_impl_auto_generated.icc new file mode 100644 index 000000000..b264e3b68 --- /dev/null +++ b/packages/gecode/4.2.0/gecode_yap_cc_impl_auto_generated.icc @@ -0,0 +1,5232 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +static YAP_Term gecode_RM_NONE; +static YAP_Term gecode_RM_CONSTANT; +static YAP_Term gecode_RM_LINEAR; +static YAP_Term gecode_RM_LUBY; +static YAP_Term gecode_RM_GEOMETRIC; + +static RestartMode gecode_RestartMode_from_term(YAP_Term X) +{ + if (X==gecode_RM_NONE) return RM_NONE; + if (X==gecode_RM_CONSTANT) return RM_CONSTANT; + if (X==gecode_RM_LINEAR) return RM_LINEAR; + if (X==gecode_RM_LUBY) return RM_LUBY; + if (X==gecode_RM_GEOMETRIC) return RM_GEOMETRIC; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_FRT_EQ; +static YAP_Term gecode_FRT_NQ; +static YAP_Term gecode_FRT_LQ; +static YAP_Term gecode_FRT_LE; +static YAP_Term gecode_FRT_GQ; +static YAP_Term gecode_FRT_GR; + +static FloatRelType gecode_FloatRelType_from_term(YAP_Term X) +{ + if (X==gecode_FRT_EQ) return FRT_EQ; + if (X==gecode_FRT_NQ) return FRT_NQ; + if (X==gecode_FRT_LQ) return FRT_LQ; + if (X==gecode_FRT_LE) return FRT_LE; + if (X==gecode_FRT_GQ) return FRT_GQ; + if (X==gecode_FRT_GR) return FRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_RM_EQV; +static YAP_Term gecode_RM_IMP; +static YAP_Term gecode_RM_PMI; + +static ReifyMode gecode_ReifyMode_from_term(YAP_Term X) +{ + if (X==gecode_RM_EQV) return RM_EQV; + if (X==gecode_RM_IMP) return RM_IMP; + if (X==gecode_RM_PMI) return RM_PMI; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_IRT_EQ; +static YAP_Term gecode_IRT_NQ; +static YAP_Term gecode_IRT_LQ; +static YAP_Term gecode_IRT_LE; +static YAP_Term gecode_IRT_GQ; +static YAP_Term gecode_IRT_GR; + +static IntRelType gecode_IntRelType_from_term(YAP_Term X) +{ + if (X==gecode_IRT_EQ) return IRT_EQ; + if (X==gecode_IRT_NQ) return IRT_NQ; + if (X==gecode_IRT_LQ) return IRT_LQ; + if (X==gecode_IRT_LE) return IRT_LE; + if (X==gecode_IRT_GQ) return IRT_GQ; + if (X==gecode_IRT_GR) return IRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_BOT_AND; +static YAP_Term gecode_BOT_OR; +static YAP_Term gecode_BOT_IMP; +static YAP_Term gecode_BOT_EQV; +static YAP_Term gecode_BOT_XOR; + +static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) +{ + if (X==gecode_BOT_AND) return BOT_AND; + if (X==gecode_BOT_OR) return BOT_OR; + if (X==gecode_BOT_IMP) return BOT_IMP; + if (X==gecode_BOT_EQV) return BOT_EQV; + if (X==gecode_BOT_XOR) return BOT_XOR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_ICL_VAL; +static YAP_Term gecode_ICL_BND; +static YAP_Term gecode_ICL_DOM; +static YAP_Term gecode_ICL_DEF; + +static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) +{ + if (X==gecode_ICL_VAL) return ICL_VAL; + if (X==gecode_ICL_BND) return ICL_BND; + if (X==gecode_ICL_DOM) return ICL_DOM; + if (X==gecode_ICL_DEF) return ICL_DEF; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_TT_FIXP; +static YAP_Term gecode_TT_FIXS; +static YAP_Term gecode_TT_FIXE; + +static TaskType gecode_TaskType_from_term(YAP_Term X) +{ + if (X==gecode_TT_FIXP) return TT_FIXP; + if (X==gecode_TT_FIXS) return TT_FIXS; + if (X==gecode_TT_FIXE) return TT_FIXE; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_EPK_DEF; +static YAP_Term gecode_EPK_SPEED; +static YAP_Term gecode_EPK_MEMORY; + +static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) +{ + if (X==gecode_EPK_DEF) return EPK_DEF; + if (X==gecode_EPK_SPEED) return EPK_SPEED; + if (X==gecode_EPK_MEMORY) return EPK_MEMORY; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SRT_EQ; +static YAP_Term gecode_SRT_NQ; +static YAP_Term gecode_SRT_SUB; +static YAP_Term gecode_SRT_SUP; +static YAP_Term gecode_SRT_DISJ; +static YAP_Term gecode_SRT_CMPL; +static YAP_Term gecode_SRT_LQ; +static YAP_Term gecode_SRT_LE; +static YAP_Term gecode_SRT_GQ; +static YAP_Term gecode_SRT_GR; + +static SetRelType gecode_SetRelType_from_term(YAP_Term X) +{ + if (X==gecode_SRT_EQ) return SRT_EQ; + if (X==gecode_SRT_NQ) return SRT_NQ; + if (X==gecode_SRT_SUB) return SRT_SUB; + if (X==gecode_SRT_SUP) return SRT_SUP; + if (X==gecode_SRT_DISJ) return SRT_DISJ; + if (X==gecode_SRT_CMPL) return SRT_CMPL; + if (X==gecode_SRT_LQ) return SRT_LQ; + if (X==gecode_SRT_LE) return SRT_LE; + if (X==gecode_SRT_GQ) return SRT_GQ; + if (X==gecode_SRT_GR) return SRT_GR; + cerr << "this should never happen" << endl; exit(1); +} + +static YAP_Term gecode_SOT_UNION; +static YAP_Term gecode_SOT_DUNION; +static YAP_Term gecode_SOT_INTER; +static YAP_Term gecode_SOT_MINUS; + +static SetOpType gecode_SetOpType_from_term(YAP_Term X) +{ + if (X==gecode_SOT_UNION) return SOT_UNION; + if (X==gecode_SOT_DUNION) return SOT_DUNION; + if (X==gecode_SOT_INTER) return SOT_INTER; + if (X==gecode_SOT_MINUS) return SOT_MINUS; + cerr << "this should never happen" << endl; exit(1); +} + +static int gecode_constraint_unary_458(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unary_454(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + unary(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nvalues_345(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_347(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_341(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nvalues_343(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nvalues(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_302(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_300(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_301(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); + FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_max_305(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + max(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_200(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_dom_209(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + dom(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_convex_91(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + convex(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_nooverlap_329(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + nooverlap(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_assign_15(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatAssign X3 = gecode_FloatAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_6(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatAssign X3 = gecode_FloatAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_3(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_1(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_9(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_17(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_12(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_assign_19(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + assign(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_element_220(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_224(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_214(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_212(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_219(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_227(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_230(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_236(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_228(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + element(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_437(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + sequence(*space,X2); + return TRUE; +} + +static int gecode_constraint_notMax_335(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMax(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_ite_256(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + ite(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_451(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + unary(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_nroot_339(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + nroot(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_85(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_76(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + circuit(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_199(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_198(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_202(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_194(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_185(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_181(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_187(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatNum X3 = gecode_FloatNum_from_term(YAP_ARG3); + FloatNum X4 = gecode_FloatNum_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_208(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_210(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_206(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + dom(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_66(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_62(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_60(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + channel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nooverlap_331(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_nooverlap_334(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_222(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_216(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_218(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_226(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_234(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_element_232(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + element(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_max_298(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_max_299(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_max_304(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + max(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_463(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_unshare_461(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + unshare(*space,X2); + return TRUE; +} + +static int gecode_constraint_path_358(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_357(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + path(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_branch_34(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); + IntBranchFilter X6 = gecode_IntBranchFilter_from_term(YAP_ARG6); + IntVarValPrint X7 = gecode_IntVarValPrint_from_term(YAP_ARG7); + branch(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_branch_28(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); + BoolBranchFilter X6 = gecode_BoolBranchFilter_from_term(YAP_ARG6); + BoolVarValPrint X7 = gecode_BoolVarValPrint_from_term(YAP_ARG7); + branch(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_branch_40(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); + SetBranchFilter X6 = gecode_SetBranchFilter_from_term(YAP_ARG6); + SetVarValPrint X7 = gecode_SetVarValPrint_from_term(YAP_ARG7); + branch(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_mult_325(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mult(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mult_324(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); + FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); + mult(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_clause_89(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_87(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + clause(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_precede_366(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + precede(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_distinct_160(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + distinct(*space,X2); + return TRUE; +} + +static int gecode_constraint_member_312(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_311(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_308(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_member_307(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + member(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mod_323(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cardinality_57(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + cardinality(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_atmostOne_53(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + atmostOne(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channelSorted_73(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channelSorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_extensional_253(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); + ExtensionalPropKind X4 = gecode_ExtensionalPropKind_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + extensional(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_extensional_248(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); + ExtensionalPropKind X4 = gecode_ExtensionalPropKind_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + extensional(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_272(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); + FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_270(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); + FloatNum X4 = gecode_FloatNum_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_258(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_262(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_290(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_294(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + linear(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_82(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + circuit(*space,X2); + return TRUE; +} + +static int gecode_constraint_rel_406(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); + FloatVal X4 = gecode_FloatVal_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_408(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); + FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_422(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_420(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_392(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_388(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_386(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_383(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_382(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_379(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_378(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_375(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_373(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_402(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_404(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_398(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_411(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_410(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_415(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_414(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_419(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_430(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_432(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_372(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_370(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + rel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_min_318(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_316(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_317(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); + FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_321(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + min(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_cardinality_56(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + cardinality(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_cardinality_58(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + cardinality(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_109(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_106(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_100(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_99(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_count_96(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + count(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqrt_447(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqrt(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sqrt_446(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); + sqrt(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulatives_157(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_155(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_153(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_151(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_149(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_147(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_145(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulatives_143(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_nvalues_344(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_346(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_340(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nvalues_342(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nvalues(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_binpacking_54(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + binpacking(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_linear_285(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_289(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_277(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_linear_281(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + linear(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_abs_52(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + abs(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_convex_90(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + convex(*space,X2); + return TRUE; +} + +static int gecode_constraint_div_163(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + div(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_div_162(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); + FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); + div(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_412(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_416(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_395(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_396(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_384(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_380(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_376(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_374(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_425(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_426(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_427(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_428(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); + SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); + rel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_weights_465(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + weights(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_max_303(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + max(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_path_353(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + path(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_unary_459(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_455(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_449(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_unary_452(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + unary(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nroot_338(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + nroot(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_nroot_337(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); + nroot(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_440(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + sorted(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_80(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_77(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_74(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + circuit(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_dom_189(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatVal X3 = gecode_FloatVal_from_term(YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_186(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatNum X3 = gecode_FloatNum_from_term(YAP_ARG3); + FloatNum X4 = gecode_FloatNum_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_172(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatNum X3 = gecode_FloatNum_from_term(YAP_ARG3); + FloatNum X4 = gecode_FloatNum_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_170(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_168(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_180(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_179(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_177(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_175(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_197(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_201(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_196(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_204(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_193(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_192(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_184(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_183(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_207(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_dom_205(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); + dom(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_abs_51(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + abs(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_abs_50(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); + abs(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_68(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_channel_63(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + channel(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_assign_8(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatAssign X3 = gecode_FloatAssign_from_term(YAP_ARG3); + FloatBranchFilter X4 = gecode_FloatBranchFilter_from_term(YAP_ARG4); + FloatVarValPrint X5 = gecode_FloatVarValPrint_from_term(YAP_ARG5); + assign(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_assign_5(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + BoolBranchFilter X4 = gecode_BoolBranchFilter_from_term(YAP_ARG4); + BoolVarValPrint X5 = gecode_BoolVarValPrint_from_term(YAP_ARG5); + assign(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_assign_11(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + IntBranchFilter X4 = gecode_IntBranchFilter_from_term(YAP_ARG4); + IntVarValPrint X5 = gecode_IntVarValPrint_from_term(YAP_ARG5); + assign(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_assign_14(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + SetBranchFilter X4 = gecode_SetBranchFilter_from_term(YAP_ARG4); + SetVarValPrint X5 = gecode_SetVarValPrint_from_term(YAP_ARG5); + assign(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_rel_399(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_rel_389(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + rel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_356(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + path(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_45(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatValBranch X3 = gecode_FloatValBranch_from_term(YAP_ARG3); + FloatVarValPrint X4 = gecode_FloatVarValPrint_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_29(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatVarBranch X3 = gecode_FloatVarBranch_from_term(YAP_ARG3); + FloatValBranch X4 = gecode_FloatValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_23(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_22(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + BoolVarValPrint X4 = gecode_BoolVarValPrint_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_35(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_47(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + IntVarValPrint X4 = gecode_IntVarValPrint_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_41(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_branch_49(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); + SetVarValPrint X4 = gecode_SetVarValPrint_from_term(YAP_ARG4); + branch(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_mult_326(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + mult(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_81(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_78(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_circuit_75(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + circuit(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_clause_88(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_clause_86(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); + clause(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_precede_368(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_365(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_364(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + precede(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_channel_69(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + channel(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_126(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_129(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_122(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_125(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_119(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_138(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_141(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_134(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_137(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_cumulative_131(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + cumulative(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_distinct_161(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_distinct_158(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + distinct(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_313(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_309(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + Reify X4 = gecode_Reify_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + member(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_mod_322(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + mod(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sqr_444(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + sqr(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sqr_443(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); + sqr(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sequence_436(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_sequence_434(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + sequence(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_354(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_351(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_path_348(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + path(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_divmod_166(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + divmod(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sorted_441(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + sorted(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_extensional_252(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); + ExtensionalPropKind X4 = gecode_ExtensionalPropKind_from_term(YAP_ARG4); + extensional(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_extensional_255(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + DFA X3 = gecode_DFA_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + extensional(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_extensional_247(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); + ExtensionalPropKind X4 = gecode_ExtensionalPropKind_from_term(YAP_ARG4); + extensional(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_extensional_250(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + DFA X3 = gecode_DFA_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + extensional(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_circuit_84(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_circuit_83(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + circuit(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_71(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_61(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_64(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_59(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_67(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_65(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_72(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_channel_70(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + channel(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_92(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_94(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_110(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_112(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_102(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_104(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_101(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_97(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_107(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_114(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_116(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + count(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulatives_156(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_154(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_152(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_150(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_148(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_146(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_144(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulatives_142(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); + bool X8 = gecode_bool_from_term(YAP_ARG8); + cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_binpacking_55(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + binpacking(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_extensional_251(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); + extensional(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_extensional_254(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + DFA X3 = gecode_DFA_from_term(YAP_ARG3); + extensional(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_extensional_246(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); + extensional(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_extensional_249(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + DFA X3 = gecode_DFA_from_term(YAP_ARG3); + extensional(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_293(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_297(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_261(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_265(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_269(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatValArgs X2 = gecode_FloatValArgs_from_term(YAP_ARG2); + FloatVarArgs X3 = gecode_FloatVarArgs_from_term(space,YAP_ARG3); + FloatRelType X4 = gecode_FloatRelType_from_term(YAP_ARG4); + FloatVar X5 = gecode_FloatVar_from_term(space,YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_267(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatValArgs X2 = gecode_FloatValArgs_from_term(YAP_ARG2); + FloatVarArgs X3 = gecode_FloatVarArgs_from_term(space,YAP_ARG3); + FloatRelType X4 = gecode_FloatRelType_from_term(YAP_ARG4); + FloatNum X5 = gecode_FloatNum_from_term(YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_284(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_283(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_288(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_287(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_276(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_275(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_280(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + Reify X6 = gecode_Reify_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_linear_279(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + linear(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_333(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_nooverlap_328(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + nooverlap(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_div_164(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + div(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sqr_445(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqr(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_path_355(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_352(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_path_349(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + path(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_unary_457(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_460(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_453(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_456(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_unary_450(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + unary(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sorted_439(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sorted_442(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sorted(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_223(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_217(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_235(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_element_233(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + element(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_assign_16(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatAssign X3 = gecode_FloatAssign_from_term(YAP_ARG3); + FloatVarValPrint X4 = gecode_FloatVarValPrint_from_term(YAP_ARG4); + assign(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_assign_7(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatAssign X3 = gecode_FloatAssign_from_term(YAP_ARG3); + FloatBranchFilter X4 = gecode_FloatBranchFilter_from_term(YAP_ARG4); + assign(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_assign_4(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + BoolBranchFilter X4 = gecode_BoolBranchFilter_from_term(YAP_ARG4); + assign(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_assign_2(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + BoolVarValPrint X4 = gecode_BoolVarValPrint_from_term(YAP_ARG4); + assign(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_assign_10(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + IntBranchFilter X4 = gecode_IntBranchFilter_from_term(YAP_ARG4); + assign(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_assign_18(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); + IntVarValPrint X4 = gecode_IntVarValPrint_from_term(YAP_ARG4); + assign(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_assign_13(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + SetBranchFilter X4 = gecode_SetBranchFilter_from_term(YAP_ARG4); + assign(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_assign_20(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); + SetVarValPrint X4 = gecode_SetVarValPrint_from_term(YAP_ARG4); + assign(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_element_221(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_225(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_215(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_213(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_244(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_242(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_240(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_238(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_231(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_237(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_element_229(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + element(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_sequence_438(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + sequence(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_30(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatVarBranch X3 = gecode_FloatVarBranch_from_term(YAP_ARG3); + FloatValBranch X4 = gecode_FloatValBranch_from_term(YAP_ARG4); + FloatBranchFilter X5 = gecode_FloatBranchFilter_from_term(YAP_ARG5); + branch(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_branch_26(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); + branch(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_branch_24(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + BoolBranchFilter X5 = gecode_BoolBranchFilter_from_term(YAP_ARG5); + branch(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_branch_32(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); + branch(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_branch_36(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + IntBranchFilter X5 = gecode_IntBranchFilter_from_term(YAP_ARG5); + branch(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_branch_42(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + SetBranchFilter X5 = gecode_SetBranchFilter_from_term(YAP_ARG5); + branch(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_branch_38(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); + branch(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_circuit_79(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); + circuit(*space,X2,X3,X4,X5,X6,X7); + return TRUE; +} + +static int gecode_constraint_pow_361(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + pow(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_pow_360(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); + pow(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_precede_367(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_precede_363(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + precede(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_128(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_124(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_118(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_121(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_140(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_136(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_130(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_cumulative_133(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + cumulative(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_distinct_159(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + distinct(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_314(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_min_315(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_min_320(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + min(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_sqrt_448(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + sqrt(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_sequence_435(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_sequence_433(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + int X6 = gecode_int_from_term(YAP_ARG6); + sequence(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_unshare_464(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_unshare_462(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); + unshare(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_path_359(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_path_350(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); + path(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_divmod_165(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + divmod(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_branch_31(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatVarBranch X3 = gecode_FloatVarBranch_from_term(YAP_ARG3); + FloatValBranch X4 = gecode_FloatValBranch_from_term(YAP_ARG4); + FloatBranchFilter X5 = gecode_FloatBranchFilter_from_term(YAP_ARG5); + FloatVarValPrint X6 = gecode_FloatVarValPrint_from_term(YAP_ARG6); + branch(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_branch_27(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); + BoolBranchFilter X6 = gecode_BoolBranchFilter_from_term(YAP_ARG6); + branch(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_branch_25(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + BoolBranchFilter X5 = gecode_BoolBranchFilter_from_term(YAP_ARG5); + BoolVarValPrint X6 = gecode_BoolVarValPrint_from_term(YAP_ARG6); + branch(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_branch_33(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); + IntBranchFilter X6 = gecode_IntBranchFilter_from_term(YAP_ARG6); + branch(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_branch_37(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); + IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); + IntBranchFilter X5 = gecode_IntBranchFilter_from_term(YAP_ARG5); + IntVarValPrint X6 = gecode_IntVarValPrint_from_term(YAP_ARG6); + branch(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_branch_43(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + SetBranchFilter X5 = gecode_SetBranchFilter_from_term(YAP_ARG5); + SetVarValPrint X6 = gecode_SetVarValPrint_from_term(YAP_ARG6); + branch(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_branch_39(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); + SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); + Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); + SetBranchFilter X6 = gecode_SetBranchFilter_from_term(YAP_ARG6); + branch(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_332(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); + IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); + BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); + IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); + nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); + return TRUE; +} + +static int gecode_constraint_cumulative_120(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_cumulative_132(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + cumulative(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_member_310(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_member_306(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + member(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_111(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_113(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_115(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_117(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_103(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_105(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_93(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_count_95(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + count(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_pow_362(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + pow(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_notMin_336(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + notMin(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_cumulative_127(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_123(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int X2 = gecode_int_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_139(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_cumulative_135(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); + IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); + BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); + IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); + cumulative(*space,X2,X3,X4,X5,X6,X7,X8); + return TRUE; +} + +static int gecode_constraint_branch_46(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_21(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_44(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatValBranch X3 = gecode_FloatValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_branch_48(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); + branch(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_188(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatVal X3 = gecode_FloatVal_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_190(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_171(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatVarArgs X3 = gecode_FloatVarArgs_from_term(space,YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_173(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatVal X3 = gecode_FloatVal_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_169(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_167(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_178(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_176(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_174(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_195(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + int X3 = gecode_int_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_203(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_191(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_182(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_dom_211(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); + dom(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_linear_292(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_291(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_296(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_295(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_273(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); + FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_271(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); + FloatNum X4 = gecode_FloatNum_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_260(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_259(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_264(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + Reify X5 = gecode_Reify_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_263(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_268(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatValArgs X2 = gecode_FloatValArgs_from_term(YAP_ARG2); + FloatVarArgs X3 = gecode_FloatVarArgs_from_term(space,YAP_ARG3); + FloatRelType X4 = gecode_FloatRelType_from_term(YAP_ARG4); + FloatVar X5 = gecode_FloatVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_266(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatValArgs X2 = gecode_FloatValArgs_from_term(YAP_ARG2); + FloatVarArgs X3 = gecode_FloatVarArgs_from_term(space,YAP_ARG3); + FloatRelType X4 = gecode_FloatRelType_from_term(YAP_ARG4); + FloatNum X5 = gecode_FloatNum_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_282(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_286(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_274(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + int X5 = gecode_int_from_term(YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_linear_278(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + linear(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_nooverlap_327(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_nooverlap_330(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + nooverlap(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_245(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_243(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_241(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_element_239(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); + IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); + element(*space,X2,X3,X4,X5,X6); + return TRUE; +} + +static int gecode_constraint_rel_405(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); + FloatVal X4 = gecode_FloatVal_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_407(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); + FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); + FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_423(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_421(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_393(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); + FloatVal X4 = gecode_FloatVal_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_394(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); + FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); + FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_391(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_387(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_385(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_390(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_381(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_377(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_401(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_403(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_397(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_400(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_409(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_413(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_417(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_418(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_424(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_429(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_431(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); + SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); + SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_371(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + int X4 = gecode_int_from_term(YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_rel_369(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); + BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); + BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); + rel(*space,X2,X3,X4); + return TRUE; +} + +static int gecode_constraint_min_319(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); + min(*space,X2,X3,X4,X5); + return TRUE; +} + +static int gecode_constraint_count_108(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_count_98(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); + IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); + count(*space,X2,X3); + return TRUE; +} + +static int gecode_constraint_ite_257(void) +{ + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); + IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); + IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); + IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); + IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); + ite(*space,X2,X3,X4,X5,X6); + return TRUE; +} + diff --git a/packages/gecode/4.2.0/gecode_yap_cc_init_auto_generated.icc b/packages/gecode/4.2.0/gecode_yap_cc_init_auto_generated.icc new file mode 100644 index 000000000..96c3bbe9d --- /dev/null +++ b/packages/gecode/4.2.0/gecode_yap_cc_init_auto_generated.icc @@ -0,0 +1,640 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +{ YAP_Atom X= YAP_LookupAtom("RM_NONE"); + gecode_RM_NONE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("RM_CONSTANT"); + gecode_RM_CONSTANT = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("RM_LINEAR"); + gecode_RM_LINEAR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("RM_LUBY"); + gecode_RM_LUBY = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("RM_GEOMETRIC"); + gecode_RM_GEOMETRIC = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("FRT_EQ"); + gecode_FRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("FRT_NQ"); + gecode_FRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("FRT_LQ"); + gecode_FRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("FRT_LE"); + gecode_FRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("FRT_GQ"); + gecode_FRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("FRT_GR"); + gecode_FRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("RM_EQV"); + gecode_RM_EQV = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("RM_IMP"); + gecode_RM_IMP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("RM_PMI"); + gecode_RM_PMI = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); + gecode_IRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); + gecode_IRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); + gecode_IRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); + gecode_IRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); + gecode_IRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); + gecode_IRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); + gecode_BOT_AND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); + gecode_BOT_OR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); + gecode_BOT_IMP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); + gecode_BOT_EQV = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); + gecode_BOT_XOR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); + gecode_ICL_VAL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); + gecode_ICL_BND = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); + gecode_ICL_DOM = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); + gecode_ICL_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); + gecode_TT_FIXP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); + gecode_TT_FIXS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); + gecode_TT_FIXE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); + gecode_EPK_DEF = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); + gecode_EPK_SPEED = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); + gecode_EPK_MEMORY = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); + gecode_SRT_EQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); + gecode_SRT_NQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); + gecode_SRT_SUB = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); + gecode_SRT_SUP = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); + gecode_SRT_DISJ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); + gecode_SRT_CMPL = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); + gecode_SRT_LQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); + gecode_SRT_LE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); + gecode_SRT_GQ = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); + gecode_SRT_GR = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); + gecode_SOT_UNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); + gecode_SOT_DUNION = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); + gecode_SOT_INTER = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } +{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); + gecode_SOT_MINUS = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + +YAP_UserCPredicate("gecode_constraint_unary_458", gecode_constraint_unary_458, 6); +YAP_UserCPredicate("gecode_constraint_unary_454", gecode_constraint_unary_454, 6); +YAP_UserCPredicate("gecode_constraint_nvalues_345", gecode_constraint_nvalues_345, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_347", gecode_constraint_nvalues_347, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_341", gecode_constraint_nvalues_341, 5); +YAP_UserCPredicate("gecode_constraint_nvalues_343", gecode_constraint_nvalues_343, 5); +YAP_UserCPredicate("gecode_constraint_max_302", gecode_constraint_max_302, 4); +YAP_UserCPredicate("gecode_constraint_max_300", gecode_constraint_max_300, 4); +YAP_UserCPredicate("gecode_constraint_max_301", gecode_constraint_max_301, 4); +YAP_UserCPredicate("gecode_constraint_max_305", gecode_constraint_max_305, 4); +YAP_UserCPredicate("gecode_constraint_dom_200", gecode_constraint_dom_200, 6); +YAP_UserCPredicate("gecode_constraint_dom_209", gecode_constraint_dom_209, 6); +YAP_UserCPredicate("gecode_constraint_convex_91", gecode_constraint_convex_91, 3); +YAP_UserCPredicate("gecode_constraint_nooverlap_329", gecode_constraint_nooverlap_329, 5); +YAP_UserCPredicate("gecode_constraint_assign_15", gecode_constraint_assign_15, 3); +YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); +YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); +YAP_UserCPredicate("gecode_constraint_assign_1", gecode_constraint_assign_1, 3); +YAP_UserCPredicate("gecode_constraint_assign_9", gecode_constraint_assign_9, 3); +YAP_UserCPredicate("gecode_constraint_assign_17", gecode_constraint_assign_17, 3); +YAP_UserCPredicate("gecode_constraint_assign_12", gecode_constraint_assign_12, 3); +YAP_UserCPredicate("gecode_constraint_assign_19", gecode_constraint_assign_19, 3); +YAP_UserCPredicate("gecode_constraint_element_220", gecode_constraint_element_220, 4); +YAP_UserCPredicate("gecode_constraint_element_224", gecode_constraint_element_224, 4); +YAP_UserCPredicate("gecode_constraint_element_214", gecode_constraint_element_214, 4); +YAP_UserCPredicate("gecode_constraint_element_212", gecode_constraint_element_212, 4); +YAP_UserCPredicate("gecode_constraint_element_219", gecode_constraint_element_219, 4); +YAP_UserCPredicate("gecode_constraint_element_227", gecode_constraint_element_227, 4); +YAP_UserCPredicate("gecode_constraint_element_230", gecode_constraint_element_230, 4); +YAP_UserCPredicate("gecode_constraint_element_236", gecode_constraint_element_236, 4); +YAP_UserCPredicate("gecode_constraint_element_228", gecode_constraint_element_228, 4); +YAP_UserCPredicate("gecode_constraint_sequence_437", gecode_constraint_sequence_437, 2); +YAP_UserCPredicate("gecode_constraint_notMax_335", gecode_constraint_notMax_335, 3); +YAP_UserCPredicate("gecode_constraint_ite_256", gecode_constraint_ite_256, 5); +YAP_UserCPredicate("gecode_constraint_unary_451", gecode_constraint_unary_451, 3); +YAP_UserCPredicate("gecode_constraint_nroot_339", gecode_constraint_nroot_339, 5); +YAP_UserCPredicate("gecode_constraint_circuit_85", gecode_constraint_circuit_85, 4); +YAP_UserCPredicate("gecode_constraint_circuit_76", gecode_constraint_circuit_76, 4); +YAP_UserCPredicate("gecode_constraint_dom_199", gecode_constraint_dom_199, 5); +YAP_UserCPredicate("gecode_constraint_dom_198", gecode_constraint_dom_198, 5); +YAP_UserCPredicate("gecode_constraint_dom_202", gecode_constraint_dom_202, 5); +YAP_UserCPredicate("gecode_constraint_dom_194", gecode_constraint_dom_194, 5); +YAP_UserCPredicate("gecode_constraint_dom_185", gecode_constraint_dom_185, 5); +YAP_UserCPredicate("gecode_constraint_dom_181", gecode_constraint_dom_181, 5); +YAP_UserCPredicate("gecode_constraint_dom_187", gecode_constraint_dom_187, 5); +YAP_UserCPredicate("gecode_constraint_dom_208", gecode_constraint_dom_208, 5); +YAP_UserCPredicate("gecode_constraint_dom_210", gecode_constraint_dom_210, 5); +YAP_UserCPredicate("gecode_constraint_dom_206", gecode_constraint_dom_206, 5); +YAP_UserCPredicate("gecode_constraint_channel_66", gecode_constraint_channel_66, 4); +YAP_UserCPredicate("gecode_constraint_channel_62", gecode_constraint_channel_62, 4); +YAP_UserCPredicate("gecode_constraint_channel_60", gecode_constraint_channel_60, 4); +YAP_UserCPredicate("gecode_constraint_nooverlap_331", gecode_constraint_nooverlap_331, 8); +YAP_UserCPredicate("gecode_constraint_nooverlap_334", gecode_constraint_nooverlap_334, 8); +YAP_UserCPredicate("gecode_constraint_element_222", gecode_constraint_element_222, 7); +YAP_UserCPredicate("gecode_constraint_element_216", gecode_constraint_element_216, 7); +YAP_UserCPredicate("gecode_constraint_element_218", gecode_constraint_element_218, 7); +YAP_UserCPredicate("gecode_constraint_element_226", gecode_constraint_element_226, 7); +YAP_UserCPredicate("gecode_constraint_element_234", gecode_constraint_element_234, 7); +YAP_UserCPredicate("gecode_constraint_element_232", gecode_constraint_element_232, 7); +YAP_UserCPredicate("gecode_constraint_max_298", gecode_constraint_max_298, 3); +YAP_UserCPredicate("gecode_constraint_max_299", gecode_constraint_max_299, 3); +YAP_UserCPredicate("gecode_constraint_max_304", gecode_constraint_max_304, 3); +YAP_UserCPredicate("gecode_constraint_unshare_463", gecode_constraint_unshare_463, 2); +YAP_UserCPredicate("gecode_constraint_unshare_461", gecode_constraint_unshare_461, 2); +YAP_UserCPredicate("gecode_constraint_path_358", gecode_constraint_path_358, 5); +YAP_UserCPredicate("gecode_constraint_path_357", gecode_constraint_path_357, 5); +YAP_UserCPredicate("gecode_constraint_branch_34", gecode_constraint_branch_34, 7); +YAP_UserCPredicate("gecode_constraint_branch_28", gecode_constraint_branch_28, 7); +YAP_UserCPredicate("gecode_constraint_branch_40", gecode_constraint_branch_40, 7); +YAP_UserCPredicate("gecode_constraint_mult_325", gecode_constraint_mult_325, 4); +YAP_UserCPredicate("gecode_constraint_mult_324", gecode_constraint_mult_324, 4); +YAP_UserCPredicate("gecode_constraint_clause_89", gecode_constraint_clause_89, 6); +YAP_UserCPredicate("gecode_constraint_clause_87", gecode_constraint_clause_87, 6); +YAP_UserCPredicate("gecode_constraint_precede_366", gecode_constraint_precede_366, 5); +YAP_UserCPredicate("gecode_constraint_distinct_160", gecode_constraint_distinct_160, 2); +YAP_UserCPredicate("gecode_constraint_member_312", gecode_constraint_member_312, 4); +YAP_UserCPredicate("gecode_constraint_member_311", gecode_constraint_member_311, 4); +YAP_UserCPredicate("gecode_constraint_member_308", gecode_constraint_member_308, 4); +YAP_UserCPredicate("gecode_constraint_member_307", gecode_constraint_member_307, 4); +YAP_UserCPredicate("gecode_constraint_mod_323", gecode_constraint_mod_323, 5); +YAP_UserCPredicate("gecode_constraint_cardinality_57", gecode_constraint_cardinality_57, 3); +YAP_UserCPredicate("gecode_constraint_atmostOne_53", gecode_constraint_atmostOne_53, 3); +YAP_UserCPredicate("gecode_constraint_channelSorted_73", gecode_constraint_channelSorted_73, 3); +YAP_UserCPredicate("gecode_constraint_extensional_253", gecode_constraint_extensional_253, 5); +YAP_UserCPredicate("gecode_constraint_extensional_248", gecode_constraint_extensional_248, 5); +YAP_UserCPredicate("gecode_constraint_linear_272", gecode_constraint_linear_272, 4); +YAP_UserCPredicate("gecode_constraint_linear_270", gecode_constraint_linear_270, 4); +YAP_UserCPredicate("gecode_constraint_linear_258", gecode_constraint_linear_258, 4); +YAP_UserCPredicate("gecode_constraint_linear_262", gecode_constraint_linear_262, 4); +YAP_UserCPredicate("gecode_constraint_linear_290", gecode_constraint_linear_290, 4); +YAP_UserCPredicate("gecode_constraint_linear_294", gecode_constraint_linear_294, 4); +YAP_UserCPredicate("gecode_constraint_circuit_82", gecode_constraint_circuit_82, 2); +YAP_UserCPredicate("gecode_constraint_rel_406", gecode_constraint_rel_406, 5); +YAP_UserCPredicate("gecode_constraint_rel_408", gecode_constraint_rel_408, 5); +YAP_UserCPredicate("gecode_constraint_rel_422", gecode_constraint_rel_422, 5); +YAP_UserCPredicate("gecode_constraint_rel_420", gecode_constraint_rel_420, 5); +YAP_UserCPredicate("gecode_constraint_rel_392", gecode_constraint_rel_392, 5); +YAP_UserCPredicate("gecode_constraint_rel_388", gecode_constraint_rel_388, 5); +YAP_UserCPredicate("gecode_constraint_rel_386", gecode_constraint_rel_386, 5); +YAP_UserCPredicate("gecode_constraint_rel_383", gecode_constraint_rel_383, 5); +YAP_UserCPredicate("gecode_constraint_rel_382", gecode_constraint_rel_382, 5); +YAP_UserCPredicate("gecode_constraint_rel_379", gecode_constraint_rel_379, 5); +YAP_UserCPredicate("gecode_constraint_rel_378", gecode_constraint_rel_378, 5); +YAP_UserCPredicate("gecode_constraint_rel_375", gecode_constraint_rel_375, 5); +YAP_UserCPredicate("gecode_constraint_rel_373", gecode_constraint_rel_373, 5); +YAP_UserCPredicate("gecode_constraint_rel_402", gecode_constraint_rel_402, 5); +YAP_UserCPredicate("gecode_constraint_rel_404", gecode_constraint_rel_404, 5); +YAP_UserCPredicate("gecode_constraint_rel_398", gecode_constraint_rel_398, 5); +YAP_UserCPredicate("gecode_constraint_rel_411", gecode_constraint_rel_411, 5); +YAP_UserCPredicate("gecode_constraint_rel_410", gecode_constraint_rel_410, 5); +YAP_UserCPredicate("gecode_constraint_rel_415", gecode_constraint_rel_415, 5); +YAP_UserCPredicate("gecode_constraint_rel_414", gecode_constraint_rel_414, 5); +YAP_UserCPredicate("gecode_constraint_rel_419", gecode_constraint_rel_419, 5); +YAP_UserCPredicate("gecode_constraint_rel_430", gecode_constraint_rel_430, 5); +YAP_UserCPredicate("gecode_constraint_rel_432", gecode_constraint_rel_432, 5); +YAP_UserCPredicate("gecode_constraint_rel_372", gecode_constraint_rel_372, 5); +YAP_UserCPredicate("gecode_constraint_rel_370", gecode_constraint_rel_370, 5); +YAP_UserCPredicate("gecode_constraint_min_318", gecode_constraint_min_318, 4); +YAP_UserCPredicate("gecode_constraint_min_316", gecode_constraint_min_316, 4); +YAP_UserCPredicate("gecode_constraint_min_317", gecode_constraint_min_317, 4); +YAP_UserCPredicate("gecode_constraint_min_321", gecode_constraint_min_321, 4); +YAP_UserCPredicate("gecode_constraint_cardinality_56", gecode_constraint_cardinality_56, 4); +YAP_UserCPredicate("gecode_constraint_cardinality_58", gecode_constraint_cardinality_58, 4); +YAP_UserCPredicate("gecode_constraint_count_109", gecode_constraint_count_109, 4); +YAP_UserCPredicate("gecode_constraint_count_106", gecode_constraint_count_106, 4); +YAP_UserCPredicate("gecode_constraint_count_100", gecode_constraint_count_100, 4); +YAP_UserCPredicate("gecode_constraint_count_99", gecode_constraint_count_99, 4); +YAP_UserCPredicate("gecode_constraint_count_96", gecode_constraint_count_96, 4); +YAP_UserCPredicate("gecode_constraint_sqrt_447", gecode_constraint_sqrt_447, 3); +YAP_UserCPredicate("gecode_constraint_sqrt_446", gecode_constraint_sqrt_446, 3); +YAP_UserCPredicate("gecode_constraint_cumulatives_157", gecode_constraint_cumulatives_157, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_155", gecode_constraint_cumulatives_155, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_153", gecode_constraint_cumulatives_153, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_151", gecode_constraint_cumulatives_151, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_149", gecode_constraint_cumulatives_149, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_147", gecode_constraint_cumulatives_147, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_145", gecode_constraint_cumulatives_145, 9); +YAP_UserCPredicate("gecode_constraint_cumulatives_143", gecode_constraint_cumulatives_143, 9); +YAP_UserCPredicate("gecode_constraint_nvalues_344", gecode_constraint_nvalues_344, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_346", gecode_constraint_nvalues_346, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_340", gecode_constraint_nvalues_340, 4); +YAP_UserCPredicate("gecode_constraint_nvalues_342", gecode_constraint_nvalues_342, 4); +YAP_UserCPredicate("gecode_constraint_binpacking_54", gecode_constraint_binpacking_54, 4); +YAP_UserCPredicate("gecode_constraint_linear_285", gecode_constraint_linear_285, 7); +YAP_UserCPredicate("gecode_constraint_linear_289", gecode_constraint_linear_289, 7); +YAP_UserCPredicate("gecode_constraint_linear_277", gecode_constraint_linear_277, 7); +YAP_UserCPredicate("gecode_constraint_linear_281", gecode_constraint_linear_281, 7); +YAP_UserCPredicate("gecode_constraint_abs_52", gecode_constraint_abs_52, 4); +YAP_UserCPredicate("gecode_constraint_convex_90", gecode_constraint_convex_90, 2); +YAP_UserCPredicate("gecode_constraint_div_163", gecode_constraint_div_163, 4); +YAP_UserCPredicate("gecode_constraint_div_162", gecode_constraint_div_162, 4); +YAP_UserCPredicate("gecode_constraint_rel_412", gecode_constraint_rel_412, 6); +YAP_UserCPredicate("gecode_constraint_rel_416", gecode_constraint_rel_416, 6); +YAP_UserCPredicate("gecode_constraint_rel_395", gecode_constraint_rel_395, 6); +YAP_UserCPredicate("gecode_constraint_rel_396", gecode_constraint_rel_396, 6); +YAP_UserCPredicate("gecode_constraint_rel_384", gecode_constraint_rel_384, 6); +YAP_UserCPredicate("gecode_constraint_rel_380", gecode_constraint_rel_380, 6); +YAP_UserCPredicate("gecode_constraint_rel_376", gecode_constraint_rel_376, 6); +YAP_UserCPredicate("gecode_constraint_rel_374", gecode_constraint_rel_374, 6); +YAP_UserCPredicate("gecode_constraint_rel_425", gecode_constraint_rel_425, 6); +YAP_UserCPredicate("gecode_constraint_rel_426", gecode_constraint_rel_426, 6); +YAP_UserCPredicate("gecode_constraint_rel_427", gecode_constraint_rel_427, 6); +YAP_UserCPredicate("gecode_constraint_rel_428", gecode_constraint_rel_428, 6); +YAP_UserCPredicate("gecode_constraint_weights_465", gecode_constraint_weights_465, 5); +YAP_UserCPredicate("gecode_constraint_max_303", gecode_constraint_max_303, 5); +YAP_UserCPredicate("gecode_constraint_path_353", gecode_constraint_path_353, 9); +YAP_UserCPredicate("gecode_constraint_unary_459", gecode_constraint_unary_459, 4); +YAP_UserCPredicate("gecode_constraint_unary_455", gecode_constraint_unary_455, 4); +YAP_UserCPredicate("gecode_constraint_unary_449", gecode_constraint_unary_449, 4); +YAP_UserCPredicate("gecode_constraint_unary_452", gecode_constraint_unary_452, 4); +YAP_UserCPredicate("gecode_constraint_nroot_338", gecode_constraint_nroot_338, 4); +YAP_UserCPredicate("gecode_constraint_nroot_337", gecode_constraint_nroot_337, 4); +YAP_UserCPredicate("gecode_constraint_sorted_440", gecode_constraint_sorted_440, 5); +YAP_UserCPredicate("gecode_constraint_circuit_80", gecode_constraint_circuit_80, 5); +YAP_UserCPredicate("gecode_constraint_circuit_77", gecode_constraint_circuit_77, 5); +YAP_UserCPredicate("gecode_constraint_circuit_74", gecode_constraint_circuit_74, 5); +YAP_UserCPredicate("gecode_constraint_dom_189", gecode_constraint_dom_189, 4); +YAP_UserCPredicate("gecode_constraint_dom_186", gecode_constraint_dom_186, 4); +YAP_UserCPredicate("gecode_constraint_dom_172", gecode_constraint_dom_172, 4); +YAP_UserCPredicate("gecode_constraint_dom_170", gecode_constraint_dom_170, 4); +YAP_UserCPredicate("gecode_constraint_dom_168", gecode_constraint_dom_168, 4); +YAP_UserCPredicate("gecode_constraint_dom_180", gecode_constraint_dom_180, 4); +YAP_UserCPredicate("gecode_constraint_dom_179", gecode_constraint_dom_179, 4); +YAP_UserCPredicate("gecode_constraint_dom_177", gecode_constraint_dom_177, 4); +YAP_UserCPredicate("gecode_constraint_dom_175", gecode_constraint_dom_175, 4); +YAP_UserCPredicate("gecode_constraint_dom_197", gecode_constraint_dom_197, 4); +YAP_UserCPredicate("gecode_constraint_dom_201", gecode_constraint_dom_201, 4); +YAP_UserCPredicate("gecode_constraint_dom_196", gecode_constraint_dom_196, 4); +YAP_UserCPredicate("gecode_constraint_dom_204", gecode_constraint_dom_204, 4); +YAP_UserCPredicate("gecode_constraint_dom_193", gecode_constraint_dom_193, 4); +YAP_UserCPredicate("gecode_constraint_dom_192", gecode_constraint_dom_192, 4); +YAP_UserCPredicate("gecode_constraint_dom_184", gecode_constraint_dom_184, 4); +YAP_UserCPredicate("gecode_constraint_dom_183", gecode_constraint_dom_183, 4); +YAP_UserCPredicate("gecode_constraint_dom_207", gecode_constraint_dom_207, 4); +YAP_UserCPredicate("gecode_constraint_dom_205", gecode_constraint_dom_205, 4); +YAP_UserCPredicate("gecode_constraint_abs_51", gecode_constraint_abs_51, 3); +YAP_UserCPredicate("gecode_constraint_abs_50", gecode_constraint_abs_50, 3); +YAP_UserCPredicate("gecode_constraint_channel_68", gecode_constraint_channel_68, 5); +YAP_UserCPredicate("gecode_constraint_channel_63", gecode_constraint_channel_63, 5); +YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 5); +YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 5); +YAP_UserCPredicate("gecode_constraint_assign_11", gecode_constraint_assign_11, 5); +YAP_UserCPredicate("gecode_constraint_assign_14", gecode_constraint_assign_14, 5); +YAP_UserCPredicate("gecode_constraint_rel_399", gecode_constraint_rel_399, 3); +YAP_UserCPredicate("gecode_constraint_rel_389", gecode_constraint_rel_389, 3); +YAP_UserCPredicate("gecode_constraint_path_356", gecode_constraint_path_356, 4); +YAP_UserCPredicate("gecode_constraint_branch_45", gecode_constraint_branch_45, 4); +YAP_UserCPredicate("gecode_constraint_branch_29", gecode_constraint_branch_29, 4); +YAP_UserCPredicate("gecode_constraint_branch_23", gecode_constraint_branch_23, 4); +YAP_UserCPredicate("gecode_constraint_branch_22", gecode_constraint_branch_22, 4); +YAP_UserCPredicate("gecode_constraint_branch_35", gecode_constraint_branch_35, 4); +YAP_UserCPredicate("gecode_constraint_branch_47", gecode_constraint_branch_47, 4); +YAP_UserCPredicate("gecode_constraint_branch_41", gecode_constraint_branch_41, 4); +YAP_UserCPredicate("gecode_constraint_branch_49", gecode_constraint_branch_49, 4); +YAP_UserCPredicate("gecode_constraint_mult_326", gecode_constraint_mult_326, 5); +YAP_UserCPredicate("gecode_constraint_circuit_81", gecode_constraint_circuit_81, 6); +YAP_UserCPredicate("gecode_constraint_circuit_78", gecode_constraint_circuit_78, 6); +YAP_UserCPredicate("gecode_constraint_circuit_75", gecode_constraint_circuit_75, 6); +YAP_UserCPredicate("gecode_constraint_clause_88", gecode_constraint_clause_88, 5); +YAP_UserCPredicate("gecode_constraint_clause_86", gecode_constraint_clause_86, 5); +YAP_UserCPredicate("gecode_constraint_precede_368", gecode_constraint_precede_368, 4); +YAP_UserCPredicate("gecode_constraint_precede_365", gecode_constraint_precede_365, 4); +YAP_UserCPredicate("gecode_constraint_precede_364", gecode_constraint_precede_364, 4); +YAP_UserCPredicate("gecode_constraint_channel_69", gecode_constraint_channel_69, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_126", gecode_constraint_cumulative_126, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_129", gecode_constraint_cumulative_129, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_122", gecode_constraint_cumulative_122, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_125", gecode_constraint_cumulative_125, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_119", gecode_constraint_cumulative_119, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_138", gecode_constraint_cumulative_138, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_141", gecode_constraint_cumulative_141, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_134", gecode_constraint_cumulative_134, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_137", gecode_constraint_cumulative_137, 7); +YAP_UserCPredicate("gecode_constraint_cumulative_131", gecode_constraint_cumulative_131, 7); +YAP_UserCPredicate("gecode_constraint_distinct_161", gecode_constraint_distinct_161, 3); +YAP_UserCPredicate("gecode_constraint_distinct_158", gecode_constraint_distinct_158, 3); +YAP_UserCPredicate("gecode_constraint_member_313", gecode_constraint_member_313, 5); +YAP_UserCPredicate("gecode_constraint_member_309", gecode_constraint_member_309, 5); +YAP_UserCPredicate("gecode_constraint_mod_322", gecode_constraint_mod_322, 4); +YAP_UserCPredicate("gecode_constraint_sqr_444", gecode_constraint_sqr_444, 3); +YAP_UserCPredicate("gecode_constraint_sqr_443", gecode_constraint_sqr_443, 3); +YAP_UserCPredicate("gecode_constraint_sequence_436", gecode_constraint_sequence_436, 7); +YAP_UserCPredicate("gecode_constraint_sequence_434", gecode_constraint_sequence_434, 7); +YAP_UserCPredicate("gecode_constraint_path_354", gecode_constraint_path_354, 7); +YAP_UserCPredicate("gecode_constraint_path_351", gecode_constraint_path_351, 7); +YAP_UserCPredicate("gecode_constraint_path_348", gecode_constraint_path_348, 7); +YAP_UserCPredicate("gecode_constraint_divmod_166", gecode_constraint_divmod_166, 6); +YAP_UserCPredicate("gecode_constraint_sorted_441", gecode_constraint_sorted_441, 3); +YAP_UserCPredicate("gecode_constraint_extensional_252", gecode_constraint_extensional_252, 4); +YAP_UserCPredicate("gecode_constraint_extensional_255", gecode_constraint_extensional_255, 4); +YAP_UserCPredicate("gecode_constraint_extensional_247", gecode_constraint_extensional_247, 4); +YAP_UserCPredicate("gecode_constraint_extensional_250", gecode_constraint_extensional_250, 4); +YAP_UserCPredicate("gecode_constraint_circuit_84", gecode_constraint_circuit_84, 3); +YAP_UserCPredicate("gecode_constraint_circuit_83", gecode_constraint_circuit_83, 3); +YAP_UserCPredicate("gecode_constraint_channel_71", gecode_constraint_channel_71, 3); +YAP_UserCPredicate("gecode_constraint_channel_61", gecode_constraint_channel_61, 3); +YAP_UserCPredicate("gecode_constraint_channel_64", gecode_constraint_channel_64, 3); +YAP_UserCPredicate("gecode_constraint_channel_59", gecode_constraint_channel_59, 3); +YAP_UserCPredicate("gecode_constraint_channel_67", gecode_constraint_channel_67, 3); +YAP_UserCPredicate("gecode_constraint_channel_65", gecode_constraint_channel_65, 3); +YAP_UserCPredicate("gecode_constraint_channel_72", gecode_constraint_channel_72, 3); +YAP_UserCPredicate("gecode_constraint_channel_70", gecode_constraint_channel_70, 3); +YAP_UserCPredicate("gecode_constraint_count_92", gecode_constraint_count_92, 5); +YAP_UserCPredicate("gecode_constraint_count_94", gecode_constraint_count_94, 5); +YAP_UserCPredicate("gecode_constraint_count_110", gecode_constraint_count_110, 5); +YAP_UserCPredicate("gecode_constraint_count_112", gecode_constraint_count_112, 5); +YAP_UserCPredicate("gecode_constraint_count_102", gecode_constraint_count_102, 5); +YAP_UserCPredicate("gecode_constraint_count_104", gecode_constraint_count_104, 5); +YAP_UserCPredicate("gecode_constraint_count_101", gecode_constraint_count_101, 5); +YAP_UserCPredicate("gecode_constraint_count_97", gecode_constraint_count_97, 5); +YAP_UserCPredicate("gecode_constraint_count_107", gecode_constraint_count_107, 5); +YAP_UserCPredicate("gecode_constraint_count_114", gecode_constraint_count_114, 5); +YAP_UserCPredicate("gecode_constraint_count_116", gecode_constraint_count_116, 5); +YAP_UserCPredicate("gecode_constraint_cumulatives_156", gecode_constraint_cumulatives_156, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_154", gecode_constraint_cumulatives_154, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_152", gecode_constraint_cumulatives_152, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_150", gecode_constraint_cumulatives_150, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_148", gecode_constraint_cumulatives_148, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_146", gecode_constraint_cumulatives_146, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_144", gecode_constraint_cumulatives_144, 8); +YAP_UserCPredicate("gecode_constraint_cumulatives_142", gecode_constraint_cumulatives_142, 8); +YAP_UserCPredicate("gecode_constraint_binpacking_55", gecode_constraint_binpacking_55, 5); +YAP_UserCPredicate("gecode_constraint_extensional_251", gecode_constraint_extensional_251, 3); +YAP_UserCPredicate("gecode_constraint_extensional_254", gecode_constraint_extensional_254, 3); +YAP_UserCPredicate("gecode_constraint_extensional_246", gecode_constraint_extensional_246, 3); +YAP_UserCPredicate("gecode_constraint_extensional_249", gecode_constraint_extensional_249, 3); +YAP_UserCPredicate("gecode_constraint_linear_293", gecode_constraint_linear_293, 6); +YAP_UserCPredicate("gecode_constraint_linear_297", gecode_constraint_linear_297, 6); +YAP_UserCPredicate("gecode_constraint_linear_261", gecode_constraint_linear_261, 6); +YAP_UserCPredicate("gecode_constraint_linear_265", gecode_constraint_linear_265, 6); +YAP_UserCPredicate("gecode_constraint_linear_269", gecode_constraint_linear_269, 6); +YAP_UserCPredicate("gecode_constraint_linear_267", gecode_constraint_linear_267, 6); +YAP_UserCPredicate("gecode_constraint_linear_284", gecode_constraint_linear_284, 6); +YAP_UserCPredicate("gecode_constraint_linear_283", gecode_constraint_linear_283, 6); +YAP_UserCPredicate("gecode_constraint_linear_288", gecode_constraint_linear_288, 6); +YAP_UserCPredicate("gecode_constraint_linear_287", gecode_constraint_linear_287, 6); +YAP_UserCPredicate("gecode_constraint_linear_276", gecode_constraint_linear_276, 6); +YAP_UserCPredicate("gecode_constraint_linear_275", gecode_constraint_linear_275, 6); +YAP_UserCPredicate("gecode_constraint_linear_280", gecode_constraint_linear_280, 6); +YAP_UserCPredicate("gecode_constraint_linear_279", gecode_constraint_linear_279, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_333", gecode_constraint_nooverlap_333, 7); +YAP_UserCPredicate("gecode_constraint_nooverlap_328", gecode_constraint_nooverlap_328, 7); +YAP_UserCPredicate("gecode_constraint_div_164", gecode_constraint_div_164, 5); +YAP_UserCPredicate("gecode_constraint_sqr_445", gecode_constraint_sqr_445, 4); +YAP_UserCPredicate("gecode_constraint_path_355", gecode_constraint_path_355, 8); +YAP_UserCPredicate("gecode_constraint_path_352", gecode_constraint_path_352, 8); +YAP_UserCPredicate("gecode_constraint_path_349", gecode_constraint_path_349, 8); +YAP_UserCPredicate("gecode_constraint_unary_457", gecode_constraint_unary_457, 5); +YAP_UserCPredicate("gecode_constraint_unary_460", gecode_constraint_unary_460, 5); +YAP_UserCPredicate("gecode_constraint_unary_453", gecode_constraint_unary_453, 5); +YAP_UserCPredicate("gecode_constraint_unary_456", gecode_constraint_unary_456, 5); +YAP_UserCPredicate("gecode_constraint_unary_450", gecode_constraint_unary_450, 5); +YAP_UserCPredicate("gecode_constraint_sorted_439", gecode_constraint_sorted_439, 4); +YAP_UserCPredicate("gecode_constraint_sorted_442", gecode_constraint_sorted_442, 4); +YAP_UserCPredicate("gecode_constraint_element_223", gecode_constraint_element_223, 8); +YAP_UserCPredicate("gecode_constraint_element_217", gecode_constraint_element_217, 8); +YAP_UserCPredicate("gecode_constraint_element_235", gecode_constraint_element_235, 8); +YAP_UserCPredicate("gecode_constraint_element_233", gecode_constraint_element_233, 8); +YAP_UserCPredicate("gecode_constraint_assign_16", gecode_constraint_assign_16, 4); +YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 4); +YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 4); +YAP_UserCPredicate("gecode_constraint_assign_2", gecode_constraint_assign_2, 4); +YAP_UserCPredicate("gecode_constraint_assign_10", gecode_constraint_assign_10, 4); +YAP_UserCPredicate("gecode_constraint_assign_18", gecode_constraint_assign_18, 4); +YAP_UserCPredicate("gecode_constraint_assign_13", gecode_constraint_assign_13, 4); +YAP_UserCPredicate("gecode_constraint_assign_20", gecode_constraint_assign_20, 4); +YAP_UserCPredicate("gecode_constraint_element_221", gecode_constraint_element_221, 5); +YAP_UserCPredicate("gecode_constraint_element_225", gecode_constraint_element_225, 5); +YAP_UserCPredicate("gecode_constraint_element_215", gecode_constraint_element_215, 5); +YAP_UserCPredicate("gecode_constraint_element_213", gecode_constraint_element_213, 5); +YAP_UserCPredicate("gecode_constraint_element_244", gecode_constraint_element_244, 5); +YAP_UserCPredicate("gecode_constraint_element_242", gecode_constraint_element_242, 5); +YAP_UserCPredicate("gecode_constraint_element_240", gecode_constraint_element_240, 5); +YAP_UserCPredicate("gecode_constraint_element_238", gecode_constraint_element_238, 5); +YAP_UserCPredicate("gecode_constraint_element_231", gecode_constraint_element_231, 5); +YAP_UserCPredicate("gecode_constraint_element_237", gecode_constraint_element_237, 5); +YAP_UserCPredicate("gecode_constraint_element_229", gecode_constraint_element_229, 5); +YAP_UserCPredicate("gecode_constraint_sequence_438", gecode_constraint_sequence_438, 3); +YAP_UserCPredicate("gecode_constraint_branch_30", gecode_constraint_branch_30, 5); +YAP_UserCPredicate("gecode_constraint_branch_26", gecode_constraint_branch_26, 5); +YAP_UserCPredicate("gecode_constraint_branch_24", gecode_constraint_branch_24, 5); +YAP_UserCPredicate("gecode_constraint_branch_32", gecode_constraint_branch_32, 5); +YAP_UserCPredicate("gecode_constraint_branch_36", gecode_constraint_branch_36, 5); +YAP_UserCPredicate("gecode_constraint_branch_42", gecode_constraint_branch_42, 5); +YAP_UserCPredicate("gecode_constraint_branch_38", gecode_constraint_branch_38, 5); +YAP_UserCPredicate("gecode_constraint_circuit_79", gecode_constraint_circuit_79, 7); +YAP_UserCPredicate("gecode_constraint_pow_361", gecode_constraint_pow_361, 4); +YAP_UserCPredicate("gecode_constraint_pow_360", gecode_constraint_pow_360, 4); +YAP_UserCPredicate("gecode_constraint_precede_367", gecode_constraint_precede_367, 3); +YAP_UserCPredicate("gecode_constraint_precede_363", gecode_constraint_precede_363, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_128", gecode_constraint_cumulative_128, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_124", gecode_constraint_cumulative_124, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_118", gecode_constraint_cumulative_118, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_121", gecode_constraint_cumulative_121, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_140", gecode_constraint_cumulative_140, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_136", gecode_constraint_cumulative_136, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_130", gecode_constraint_cumulative_130, 6); +YAP_UserCPredicate("gecode_constraint_cumulative_133", gecode_constraint_cumulative_133, 6); +YAP_UserCPredicate("gecode_constraint_distinct_159", gecode_constraint_distinct_159, 4); +YAP_UserCPredicate("gecode_constraint_min_314", gecode_constraint_min_314, 3); +YAP_UserCPredicate("gecode_constraint_min_315", gecode_constraint_min_315, 3); +YAP_UserCPredicate("gecode_constraint_min_320", gecode_constraint_min_320, 3); +YAP_UserCPredicate("gecode_constraint_sqrt_448", gecode_constraint_sqrt_448, 4); +YAP_UserCPredicate("gecode_constraint_sequence_435", gecode_constraint_sequence_435, 6); +YAP_UserCPredicate("gecode_constraint_sequence_433", gecode_constraint_sequence_433, 6); +YAP_UserCPredicate("gecode_constraint_unshare_464", gecode_constraint_unshare_464, 3); +YAP_UserCPredicate("gecode_constraint_unshare_462", gecode_constraint_unshare_462, 3); +YAP_UserCPredicate("gecode_constraint_path_359", gecode_constraint_path_359, 6); +YAP_UserCPredicate("gecode_constraint_path_350", gecode_constraint_path_350, 6); +YAP_UserCPredicate("gecode_constraint_divmod_165", gecode_constraint_divmod_165, 5); +YAP_UserCPredicate("gecode_constraint_branch_31", gecode_constraint_branch_31, 6); +YAP_UserCPredicate("gecode_constraint_branch_27", gecode_constraint_branch_27, 6); +YAP_UserCPredicate("gecode_constraint_branch_25", gecode_constraint_branch_25, 6); +YAP_UserCPredicate("gecode_constraint_branch_33", gecode_constraint_branch_33, 6); +YAP_UserCPredicate("gecode_constraint_branch_37", gecode_constraint_branch_37, 6); +YAP_UserCPredicate("gecode_constraint_branch_43", gecode_constraint_branch_43, 6); +YAP_UserCPredicate("gecode_constraint_branch_39", gecode_constraint_branch_39, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_332", gecode_constraint_nooverlap_332, 9); +YAP_UserCPredicate("gecode_constraint_cumulative_120", gecode_constraint_cumulative_120, 5); +YAP_UserCPredicate("gecode_constraint_cumulative_132", gecode_constraint_cumulative_132, 5); +YAP_UserCPredicate("gecode_constraint_member_310", gecode_constraint_member_310, 3); +YAP_UserCPredicate("gecode_constraint_member_306", gecode_constraint_member_306, 3); +YAP_UserCPredicate("gecode_constraint_count_111", gecode_constraint_count_111, 6); +YAP_UserCPredicate("gecode_constraint_count_113", gecode_constraint_count_113, 6); +YAP_UserCPredicate("gecode_constraint_count_115", gecode_constraint_count_115, 6); +YAP_UserCPredicate("gecode_constraint_count_117", gecode_constraint_count_117, 6); +YAP_UserCPredicate("gecode_constraint_count_103", gecode_constraint_count_103, 6); +YAP_UserCPredicate("gecode_constraint_count_105", gecode_constraint_count_105, 6); +YAP_UserCPredicate("gecode_constraint_count_93", gecode_constraint_count_93, 6); +YAP_UserCPredicate("gecode_constraint_count_95", gecode_constraint_count_95, 6); +YAP_UserCPredicate("gecode_constraint_pow_362", gecode_constraint_pow_362, 5); +YAP_UserCPredicate("gecode_constraint_notMin_336", gecode_constraint_notMin_336, 3); +YAP_UserCPredicate("gecode_constraint_cumulative_127", gecode_constraint_cumulative_127, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_123", gecode_constraint_cumulative_123, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_139", gecode_constraint_cumulative_139, 8); +YAP_UserCPredicate("gecode_constraint_cumulative_135", gecode_constraint_cumulative_135, 8); +YAP_UserCPredicate("gecode_constraint_branch_46", gecode_constraint_branch_46, 3); +YAP_UserCPredicate("gecode_constraint_branch_21", gecode_constraint_branch_21, 3); +YAP_UserCPredicate("gecode_constraint_branch_44", gecode_constraint_branch_44, 3); +YAP_UserCPredicate("gecode_constraint_branch_48", gecode_constraint_branch_48, 3); +YAP_UserCPredicate("gecode_constraint_dom_188", gecode_constraint_dom_188, 3); +YAP_UserCPredicate("gecode_constraint_dom_190", gecode_constraint_dom_190, 3); +YAP_UserCPredicate("gecode_constraint_dom_171", gecode_constraint_dom_171, 3); +YAP_UserCPredicate("gecode_constraint_dom_173", gecode_constraint_dom_173, 3); +YAP_UserCPredicate("gecode_constraint_dom_169", gecode_constraint_dom_169, 3); +YAP_UserCPredicate("gecode_constraint_dom_167", gecode_constraint_dom_167, 3); +YAP_UserCPredicate("gecode_constraint_dom_178", gecode_constraint_dom_178, 3); +YAP_UserCPredicate("gecode_constraint_dom_176", gecode_constraint_dom_176, 3); +YAP_UserCPredicate("gecode_constraint_dom_174", gecode_constraint_dom_174, 3); +YAP_UserCPredicate("gecode_constraint_dom_195", gecode_constraint_dom_195, 3); +YAP_UserCPredicate("gecode_constraint_dom_203", gecode_constraint_dom_203, 3); +YAP_UserCPredicate("gecode_constraint_dom_191", gecode_constraint_dom_191, 3); +YAP_UserCPredicate("gecode_constraint_dom_182", gecode_constraint_dom_182, 3); +YAP_UserCPredicate("gecode_constraint_dom_211", gecode_constraint_dom_211, 3); +YAP_UserCPredicate("gecode_constraint_linear_292", gecode_constraint_linear_292, 5); +YAP_UserCPredicate("gecode_constraint_linear_291", gecode_constraint_linear_291, 5); +YAP_UserCPredicate("gecode_constraint_linear_296", gecode_constraint_linear_296, 5); +YAP_UserCPredicate("gecode_constraint_linear_295", gecode_constraint_linear_295, 5); +YAP_UserCPredicate("gecode_constraint_linear_273", gecode_constraint_linear_273, 5); +YAP_UserCPredicate("gecode_constraint_linear_271", gecode_constraint_linear_271, 5); +YAP_UserCPredicate("gecode_constraint_linear_260", gecode_constraint_linear_260, 5); +YAP_UserCPredicate("gecode_constraint_linear_259", gecode_constraint_linear_259, 5); +YAP_UserCPredicate("gecode_constraint_linear_264", gecode_constraint_linear_264, 5); +YAP_UserCPredicate("gecode_constraint_linear_263", gecode_constraint_linear_263, 5); +YAP_UserCPredicate("gecode_constraint_linear_268", gecode_constraint_linear_268, 5); +YAP_UserCPredicate("gecode_constraint_linear_266", gecode_constraint_linear_266, 5); +YAP_UserCPredicate("gecode_constraint_linear_282", gecode_constraint_linear_282, 5); +YAP_UserCPredicate("gecode_constraint_linear_286", gecode_constraint_linear_286, 5); +YAP_UserCPredicate("gecode_constraint_linear_274", gecode_constraint_linear_274, 5); +YAP_UserCPredicate("gecode_constraint_linear_278", gecode_constraint_linear_278, 5); +YAP_UserCPredicate("gecode_constraint_nooverlap_327", gecode_constraint_nooverlap_327, 6); +YAP_UserCPredicate("gecode_constraint_nooverlap_330", gecode_constraint_nooverlap_330, 6); +YAP_UserCPredicate("gecode_constraint_element_245", gecode_constraint_element_245, 6); +YAP_UserCPredicate("gecode_constraint_element_243", gecode_constraint_element_243, 6); +YAP_UserCPredicate("gecode_constraint_element_241", gecode_constraint_element_241, 6); +YAP_UserCPredicate("gecode_constraint_element_239", gecode_constraint_element_239, 6); +YAP_UserCPredicate("gecode_constraint_rel_405", gecode_constraint_rel_405, 4); +YAP_UserCPredicate("gecode_constraint_rel_407", gecode_constraint_rel_407, 4); +YAP_UserCPredicate("gecode_constraint_rel_423", gecode_constraint_rel_423, 4); +YAP_UserCPredicate("gecode_constraint_rel_421", gecode_constraint_rel_421, 4); +YAP_UserCPredicate("gecode_constraint_rel_393", gecode_constraint_rel_393, 4); +YAP_UserCPredicate("gecode_constraint_rel_394", gecode_constraint_rel_394, 4); +YAP_UserCPredicate("gecode_constraint_rel_391", gecode_constraint_rel_391, 4); +YAP_UserCPredicate("gecode_constraint_rel_387", gecode_constraint_rel_387, 4); +YAP_UserCPredicate("gecode_constraint_rel_385", gecode_constraint_rel_385, 4); +YAP_UserCPredicate("gecode_constraint_rel_390", gecode_constraint_rel_390, 4); +YAP_UserCPredicate("gecode_constraint_rel_381", gecode_constraint_rel_381, 4); +YAP_UserCPredicate("gecode_constraint_rel_377", gecode_constraint_rel_377, 4); +YAP_UserCPredicate("gecode_constraint_rel_401", gecode_constraint_rel_401, 4); +YAP_UserCPredicate("gecode_constraint_rel_403", gecode_constraint_rel_403, 4); +YAP_UserCPredicate("gecode_constraint_rel_397", gecode_constraint_rel_397, 4); +YAP_UserCPredicate("gecode_constraint_rel_400", gecode_constraint_rel_400, 4); +YAP_UserCPredicate("gecode_constraint_rel_409", gecode_constraint_rel_409, 4); +YAP_UserCPredicate("gecode_constraint_rel_413", gecode_constraint_rel_413, 4); +YAP_UserCPredicate("gecode_constraint_rel_417", gecode_constraint_rel_417, 4); +YAP_UserCPredicate("gecode_constraint_rel_418", gecode_constraint_rel_418, 4); +YAP_UserCPredicate("gecode_constraint_rel_424", gecode_constraint_rel_424, 4); +YAP_UserCPredicate("gecode_constraint_rel_429", gecode_constraint_rel_429, 4); +YAP_UserCPredicate("gecode_constraint_rel_431", gecode_constraint_rel_431, 4); +YAP_UserCPredicate("gecode_constraint_rel_371", gecode_constraint_rel_371, 4); +YAP_UserCPredicate("gecode_constraint_rel_369", gecode_constraint_rel_369, 4); +YAP_UserCPredicate("gecode_constraint_min_319", gecode_constraint_min_319, 5); +YAP_UserCPredicate("gecode_constraint_count_108", gecode_constraint_count_108, 3); +YAP_UserCPredicate("gecode_constraint_count_98", gecode_constraint_count_98, 3); +YAP_UserCPredicate("gecode_constraint_ite_257", gecode_constraint_ite_257, 6); diff --git a/packages/gecode/DOC.txt b/packages/gecode/DOC.txt new file mode 100644 index 000000000..601934345 --- /dev/null +++ b/packages/gecode/DOC.txt @@ -0,0 +1,189 @@ +USING THE GECODE MODULE +======================= + +:- use_module(library(gecode)). + + +CREATING A SPACE +================ + + Space := space + +CREATING VARIABLES +================== + +Unlike in Gecode, variable objects are not bound to a specific Space. Each one +actually contains an index with which it is possible to access a Space-bound +Gecode variable. Variables can be created using the following expressions: + + IVar := intvar(Space,SPEC...) + BVar := boolvar(Space) + SVar := setvar(Space,SPEC...) + +where SPEC... is the same as in Gecode. For creating lists of variables use +the following variants: + + IVars := intvars(Space,N,SPEC...) + BVars := boolvars(Space,N,SPEC...) + SVars := setvars(Space,N,SPEC...) + +where N is the number of variables to create (just like for XXXVarArray in +Gecode). Sometimes an IntSet is necessary: + + ISet := intset([SPEC...]) + +where each SPEC is either an integer or a pair (I,J) of integers. An IntSet +describes a set of ints by providing either intervals, or integers (which stand +for an interval of themselves). It might be tempting to simply represent an +IntSet as a list of specs, but this would be ambiguous with IntArgs which, +here, are represented as lists of ints. + + Space += keep(Var) + Space += keep(Vars) + +Variables can be marked as "kept". In this case, only such variables will be +explicitly copied during search. This could bring substantial benefits in +memory usage. Of course, in a solution, you can then only look at variables +that have been "kept". If no variable is marked as "kept", then they are all +kept. Thus marking variables as "kept" is purely an optimization. + + +CONSTRAINTS AND BRANCHINGS +========================== + +all constraint and branching posting functions are available just like in +Gecode. Wherever a XXXArgs or YYYSharedArray is expected, simply use a list. +At present, there is no support for minimodel-like constraint posting. +Constraints and branchings are added to a space using: + + Space += CONSTRAINT + Space += BRANCHING + +For example: + + Space += rel(X,'IRT_EQ',Y) + +arrays of variables are represented by lists of variables, and constants are +represented by atoms with the same name as the Gecode constant +(e.g. 'INT_VAR_SIZE_MIN'). + +SEARCHING FOR SOLUTIONS +======================= + + SolSpace := search(Space) + +This is a backtrackable predicate that enumerates all solution spaces +(SolSpace). It may also take options: + + SolSpace := search(Space,Options) + +Options is a list whose elements maybe: + +restart + to select the Restart search engine +threads=N + to activate the parallel search engine and control the number of + workers (see Gecode doc) +c_d=N + to set the commit distance for recomputation +a_d=N + to set the adaptive distance for recomputation + +EXTRACTING INFO FROM A SOLUTION +=============================== + +An advantage of non Space-bound variables, is that you can use them both to +post constraints in the original space AND to consult their values in +solutions. Below are methods for looking up information about variables. Each +of these methods can either take a variable as argument, or a list of +variables, and returns resp. either a value, or a list of values: + + Val := assigned(Space,X) + + Val := min(Space,X) + Val := max(Space,X) + Val := med(Space,X) + Val := val(Space,X) + Val := size(Space,X) + Val := width(Space,X) + Val := regret_min(Space,X) + Val := regret_max(Space,X) + + Val := glbSize(Space,V) + Val := lubSize(Space,V) + Val := unknownSize(Space,V) + Val := cardMin(Space,V) + Val := cardMax(Space,V) + Val := lubMin(Space,V) + Val := lubMax(Space,V) + Val := glbMin(Space,V) + Val := glbMax(Space,V) + Val := glb_ranges(Space,V) + Val := lub_ranges(Space,V) + Val := unknown_ranges(Space,V) + Val := glb_values(Space,V) + Val := lub_values(Space,V) + Val := unknown_values(Space,V) + +DISJUNCTORS +=========== + +Disjunctors provide support for disjunctions of clauses, where each clause is a +conjunction of constraints: + + C1 or C2 or ... or Cn + +Each clause is executed "speculatively": this means it does not affect the main +space. When a clause becomes failed, it is discarded. When only one clause +remains, it is committed: this means that it now affects the main space. + +Example: + +Consider the problem where either X=Y=0 or X=Y+(1 or 2) for variable X and Y +that take values in 0..3. + + Space := space, + [X,Y] := intvars(Space,2,0,3), + +First, we must create a disjunctor as a manager for our 2 clauses: + + Disj := disjunctor(Space), + +We can now create our first clause: + + C1 := clause(Disj), + +This clause wants to constrain X and Y to 0. However, since it must be +executed "speculatively", it must operate on new variables X1 and Y1 that +shadow X and Y: + + [X1,Y1] := intvars(C1,2,0,3), + C1 += forward([X,Y],[X1,Y1]), + +The forward(...) stipulation indicates which global variable is shadowed by +which clause-local variable. Now we can post the speculative clause-local +constraints for X=Y=0: + + C1 += rel(X1,'IRT_EQ',0), + C1 += rel(Y1,'IRT_EQ',0), + +We now create the second clause which uses X2 and Y2 to shadow X and Y: + + C2 := clause(Disj), + [X2,Y2] := intvars(C2,2,0,3), + C2 += forward([X,Y],[X2,Y2]), + +However, this clause also needs a clause-local variable Z2 taking values 1 or +2 in order to post the clause-local constraint X2=Y2+Z2: + + Z2 := intvar(C2,1,2), + C2 += linear([-1,1,1],[X2,Y2,Z2],'IRT_EQ',0), + +Finally, we can branch and search: + + Space += branch([X,Y],'INT_VAR_SIZE_MIN','INT_VAL_MIN'), + SolSpace := search(Space), + +and lookup values of variables in each solution: + + [X_,Y_] := val(SolSpace,[X,Y]). diff --git a/packages/gecode/Makefile.in b/packages/gecode/Makefile.in new file mode 100644 index 000000000..047553535 --- /dev/null +++ b/packages/gecode/Makefile.in @@ -0,0 +1,78 @@ +# +# default base directory for YAP installation +# (EROOT for architecture-dependent files) +# +prefix = @prefix@ +exec_prefix = @exec_prefix@ +ROOTDIR = $(prefix) +EROOTDIR = @exec_prefix@ +abs_top_builddir = @abs_top_builddir@ +# +# where the binary should be +# +BINDIR = $(EROOTDIR)/bin +# +# where YAP should look for libraries +# +LIBDIR=@libdir@ +YAPLIBDIR=@libdir@/Yap +# +# where YAP should look for architecture-independent Prolog libraries +# +SHAREDIR=$(ROOTDIR)/share +# +# +CXX=@CXX@ +CXXFLAGS= @SHLIB_CXXFLAGS@ $(YAP_EXTRAS) $(DEFS) -I. -I$(srcdir) -I../.. -I$(srcdir)/../../include -I$(srcdir)/../../os +# +# +# You shouldn't need to change what follows. +# +INSTALL=@INSTALL@ +INSTALL_DATA=@INSTALL_DATA@ +INSTALL_PROGRAM=@INSTALL_PROGRAM@ +SHELL=/bin/sh +RANLIB=@RANLIB@ +srcdir=@srcdir@ +SO=@SO@ +#4.1VPATH=@srcdir@:@srcdir@/OPTYap +CWD=$(PWD) +# + +OBJS=gecode_yap.o +SOBJS=gecode_yap.@SO@ + +GECODE_VERSION = @GECODE_VERSION@ +DISJUNCTOR = -DDISJUNCTOR +GECODE_LIBS = @GECODE_EXTRALIBS@ +GECODE_MAJOR = @GECODE_MAJOR@ +all: $(SOBJS) gecode.yap + +gecode_yap.o: \ + $(srcdir)/gecode$(GECODE_MAJOR)_yap.cc \ + $(srcdir)/gecode$(GECODE_MAJOR)-common.icc \ + $(srcdir)/$(GECODE_VERSION)/gecode_yap_cc_impl_auto_generated.icc \ + $(srcdir)/$(GECODE_VERSION)/gecode_yap_cc_init_auto_generated.icc \ + $(srcdir)/$(GECODE_VERSION)/gecode_yap_cc_forward_auto_generated.icc \ + $(srcdir)/disjunctor.icc \ + $(srcdir)/disjunctor.hh + $(CXX) -c -I$(srcdir)/$(GECODE_VERSION) $(CXXFLAGS) $(DISJUNCTOR) -o $@ $< + +@DO_SECOND_LD@gecode_yap.@SO@: gecode_yap.o +@DO_SECOND_LD@ @SHLIB_CXX_LD@ -o gecode_yap.@SO@ gecode_yap.o $(LDFLAGS) $(GECODE_LIBS) @EXTRA_LIBS_FOR_DLLS@ + +gecode.yap: $(srcdir)/gecode$(GECODE_MAJOR)_yap_hand_written.yap $(srcdir)/$(GECODE_VERSION)/gecode_yap_auto_generated.yap + cat $^ > $@ + +.PHONY: all clean install + +clean: + -rm -f *.o *.so *~ gecode.yap + +install: all + mkdir -p $(DESTDIR)$(YAPLIBDIR) + mkdir -p $(DESTDIR)$(SHAREDIR)/Yap + mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/gecode + $(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR) + $(INSTALL) gecode.yap $(DESTDIR)$(SHAREDIR)/Yap + $(INSTALL) $(srcdir)/clpfd.yap $(DESTDIR)$(SHAREDIR)/Yap/gecode diff --git a/packages/gecode/Makefile.sav b/packages/gecode/Makefile.sav new file mode 100644 index 000000000..a2acd2056 --- /dev/null +++ b/packages/gecode/Makefile.sav @@ -0,0 +1,34 @@ +CODEGEN=code-generator.py +DISJUNCTOR = -DDISJUNCTOR + +yap: gecode_yap.so gecode.yap + +gecode_yap.o: gecode_yap.cc gecode-common.icc \ + gecode_yap_cc_impl_auto_generated.icc \ + gecode_yap_cc_init_auto_generated.icc \ + gecode_yap_cc_forward_auto_generated.icc \ + disjunctor.icc disjunctor.hh + $(CXX) -Wall -ggdb -c -shared -fPIC $(DISJUNCTOR) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $< + +gecode_yap.so: gecode_yap.o + $(CXX) -shared $(LDFLAGS) -o $@ $< -lgecodeint -lgecodeset -lgecodesearch + +gecode_yap_cc_init_auto_generated.icc: $(CODEGEN) + python $< -t yap-cc-init > $@ + +gecode_yap_cc_impl_auto_generated.icc: $(CODEGEN) + python $< -t yap-cc-impl > $@ + +gecode_yap_cc_forward_auto_generated.icc: $(CODEGEN) + python $< -t yap-cc-forward > $@ + +gecode_yap_auto_generated.yap: $(CODEGEN) + python $< -t yap-prolog > $@ + +gecode.yap: gecode_yap_hand_written.yap gecode_yap_auto_generated.yap + cat $^ > $@ + +.PHONY: yap + +clean: + -rm -f *.o *.so *~ *_auto_generated* gecode.yap diff --git a/packages/gecode/README b/packages/gecode/README new file mode 100644 index 000000000..c3bca8c57 --- /dev/null +++ b/packages/gecode/README @@ -0,0 +1,12 @@ +Development of gecode/yap takes place in: + + git@github.com:denys-duchier/yap-6.3.git + +which tracks the official yap repository and is also regularly pulled into it. +see: + https://github.com/denys-duchier/yap-6.3 + +Enquiries/bug reports can be made either on the yap mailing list or to the +author denys.duchier /AT/ univ-orleans.fr. + +What litle documentation there is can be found in file DOC.txt. diff --git a/packages/gecode/clp_examples/3jugs.yap b/packages/gecode/clp_examples/3jugs.yap new file mode 100644 index 000000000..94dfaa918 --- /dev/null +++ b/packages/gecode/clp_examples/3jugs.yap @@ -0,0 +1,129 @@ +% Example with matrices,based on: +% +% Three jugs problem in Minzinc modelled as a shortest path problem. +% +% Problem from Taha "Introduction to Operations Research", page 245 +% +% Model created by Hakan Kjellerstrand, hakank@bonetmail.com +% See also my MiniZinc page: http://www.hakank.org/minizinc + +% +% VSC: had to transpose the matrix, and change the constraints.... +% + +:- style_check( all ). + +:- use_module(library(gecode/clpfd)). +:- use_module(library(maplist)). +:- use_module(library(lists)). + +main :- + problem(Z, X, InFlow, OutFlow, N), + out(Z, X, InFlow, OutFlow, N), + fail. +main. + +problem(Z, X, InFlow, OutFlow, N) :- + N = 15, + Start = 1, + End = 15, + M = 999, + d( M, DD ), + D = array[1..N,1..N] of DD, % distance + RHS = array[1..N] of _, % requirements (right hand statement) + X = array[1..N, 1..N] of 0..1, % the resulting matrix, 1 if connected, 0 else + OutFlow = array[1..N] of 0..1, + InFlow = array[1..N] of 0..1, + +% objective to minimize + Z in 0..M, + Z #= sum( [I in 1..N, J in 1..N] where D[I,J] + RHS[I] <== 1 ; + I == End -> + RHS[I] <== -1 ; + RHS[I] <== 0 ) + ), + + + % must be larger than 0?? + foreach( [I in 1..N, J in 1..N], + ( D[J,I] = M -> + X[J,I] #= 0 ; + true ) + ), + % outflow constraint + foreach(I in 1..N, + OutFlow[I] #= sum(J in 1..N where D[J,I]. +%%============================================================================= + +:- use_module(library(gecode/clpfd)). +:- use_module(library(maplist)). + +% 5 people want to have a photograph together, but they have preferences. +photo(Ex, People, Amount) :- + ex(Ex, People, Preferences), + length(People, Len), + Len0 is Len-1, + People ins 0..Len0, + all_distinct(People), + % Bools are the satisfied constraints + maplist(preference_satisfied, Preferences, Bools), + length(Preferences, PLen), + Amount in 0..PLen, + sum( Bools ) #= Amount, + % add all satisfied constraints + maximize(Amount), + labeling([], People). + +%reification, use with care +preference_satisfied(X-Y, B) :- + abs(X - Y) #= 1 #<==> B. + +ex(s,[Alice,Bob,Carl,Deb,Evan], [Alice-Carl, + Carl-Deb, + Deb-Alice, + Evan-Alice, + Bob-Evan, + Carl-Evan, + Deb-Evan, + Evan-Bob]). + +ex(l,[Betty,Chris,Donald,Fred,Gary,Mary,Paul,Peter,Susan], + [Betty-Donald, + Betty-Gary, + Betty-Peter, + Chris-Gary, + Chris-Susan, + Donald-Fred, + Donald-Gary, + Fred-Betty, + Fred-Gary, + Gary-Mary, + Gary-Betty, + Mary-Betty, + Mary-Susan, + Paul-Donald, + Paul-Peter, + Peter-Susan, + Peter-Paul]). diff --git a/packages/gecode/clp_examples/queens.yap b/packages/gecode/clp_examples/queens.yap new file mode 100644 index 000000000..4131a68f5 --- /dev/null +++ b/packages/gecode/clp_examples/queens.yap @@ -0,0 +1,38 @@ + +:- use_module(library(gecode/clpfd)). +:- use_module(library(maplist)). + +queens(N, Queens) :- + length(Queens, N), + Queens ins 1..N, + all_distinct(Queens), + foldl(inc, Queens, Inc, 0, _), % [0, 1, 2, .... ] + foldl(dec, Queens, Dec, 0, _), % [0, -1, -2, ... ] + all_distinct(Inc,Queens), + all_distinct(Dec,Queens), + labeling([], Queens). + +inc(_, I0, I0, I) :- + I is I0+1. + +dec(_, I0, I0, I) :- + I is I0-1. + +lqueens(N, Queens) :- + length(Queens, N), + Queens ins 1..N, + all_distinct(Queens), + lconstrain( Queens, 0 ), + labeling([], Queens). + +lconstrain([], _). +lconstrain( [Q|Queens], I0) :- + I is I0+1, + foldl(constrain(Q, I0), Queens, I, _), + lconstrain( Queens, I). + +constrain(Q, I, R, J, J1) :- + J1 is J+1, + Q + I #\= R + J, + Q - I #\= R - J. + diff --git a/packages/gecode/clp_examples/send_more_money.yap b/packages/gecode/clp_examples/send_more_money.yap new file mode 100644 index 000000000..fc03a4337 --- /dev/null +++ b/packages/gecode/clp_examples/send_more_money.yap @@ -0,0 +1,34 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011, 2013 by Denys Duchier, Vitor Santos Costa +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +:- use_module(library(gecode/clpfd)). + +% S E N D +% + M O R E +% --------- +% M O N E Y +send_more_money(Letters) :- + [S,E,N,D,M,O,R,Y] = Letters, + Letters ins 0..9, + M #\= 0, + S #\= 0, + all_distinct(Letters), + 1000*S + 100*E + 10*N + D + + 1000*M + 100*O + 10*R + E #= + 10000*M + 1000*O + 100*N + 10*E + Y, + labeling([], Letters). diff --git a/packages/gecode/clp_examples/send_most_money.yap b/packages/gecode/clp_examples/send_most_money.yap new file mode 100644 index 000000000..9665b3eeb --- /dev/null +++ b/packages/gecode/clp_examples/send_most_money.yap @@ -0,0 +1,36 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011, 2013 by Denys Duchier, Vitor Santos Costa +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +:- use_module(library(gecode/clpfd)). + +% S E N D +% + M O S T +% --------- +% M O N E Y +send_most_money(Letters, Money) :- + [S,E,N,D,M,O,T,Y] = Letters, + Letters ins 0..9, + Money in 0..99999, + M #\= 0, + S #\= 0, + all_distinct(Letters), + 1000*S + 100*E + 10*N + D + + 1000*M + 100*O + 10*S + T #= Money, + 10000*M + 1000*O + 100*N + 10*E + Y #= Money, + maximize(Money), + labeling([], Letters). diff --git a/packages/gecode/clp_examples/sudoku.yap b/packages/gecode/clp_examples/sudoku.yap new file mode 100644 index 000000000..34b5735d9 --- /dev/null +++ b/packages/gecode/clp_examples/sudoku.yap @@ -0,0 +1,79 @@ + + +:- style_check(all). + +:- use_module(library(gecode/clpfd)). +:- use_module(library(maplist)). + + +sudoku( Ex ) :- + problem(Ex, Els), + output(Els). + +% +% gecode constraints +% +problem(Ex, Els) :- + length(Els, 81), + Els ins 1..9, + M <== matrix( Els, [dim=[9,9]] ), + % select rows + foreach( I in 0..8 , all_different(M[I,_]) ), + % select cols + foreach( J in 0..8, all_different(M[_,J]) ), + % select squares + foreach( [I,J] ins 0..2 , + all_different(M[I*3+(0..2),J*3+(0..2)]) ), + ex(Ex, Els), +% maplist( bound, Els, Exs), + labeling( [], Els ). + + +% The gecode interface doesn't support wake-ups on binding constained variables, this is the closest. +% +bound(El, X) :- + ( nonvar(X) -> El #= X ; true ). + +% +% output using matrix library +% +output(Els) :- + M <== matrix( Els, [dim=[9,9]] ), + foreach( I in 0..2 , output(M, I) ), + output_line. + +output(M, I) :- + output_line, + foreach( J in 0..2 , output_row(M, J+I*3) ). + +output_row( M, Row ) :- + L <== M[Row,_], + format('| ~d ~d ~d | ~d ~d ~d | ~d ~d ~d |~n', L). + +output_line :- + format(' ~|~`-t~24+~n', []). + +ex( 1, [ + _,6,_,1,_,4,_,5,_, + _,_,8,3,_,5,6,_,_, + 2,_,_,_,_,_,_,_,1, + 8,_,_,4,_,7,_,_,6, + _,_,6,_,_,_,3,_,_, + 7,_,_,9,_,1,_,_,4, + 5,_,_,_,_,_,_,_,2, + _,_,7,2,_,6,9,_,_, + _,4,_,5,_,8,_,7,_ + ] ). + + +ex(2, [ + _,_,1,_,8,_,6,_,4, + _,3,7,6,_,_,_,_,_, + 5,_,_,_,_,_,_,_,_, + _,_,_,_,_,5,_,_,_, + _,_,6,_,1,_,8,_,_, + _,_,_,4,_,_,_,_,_, + _,_,_,_,_,_,_,_,3, + _,_,_,_,_,7,5,2,_, + 8,_,2,_,9,_,7,_,_ + ] ). diff --git a/packages/gecode/clp_examples/test.yap b/packages/gecode/clp_examples/test.yap new file mode 100644 index 0000000000000000000000000000000000000000..7a9862416a2773ef270f5e1c8bbab3f883a3787d GIT binary patch literal 2807 zcmc&$VNau45Z$l#S4^^BZu72{+g7U^Yts73P2T56i-cf%t7It{z+K&6zh|ZtN|ma~ zOE$&=m*LKtbA~x|z8zCuyu>zGJlMq#MPVFMx7X=l{VBJ>I$b`+R>jd>7G^K%-Y(Lm zJz2z$t7R8qZ%3`e$2iIh4(JpPeLLdlq4rK<3w{@#NnNdqvT$B zz9!H01z*2P-fvG1m`73y$Gpz&(g_WvoVF~3D$Aff%Yd^;nt_^Z(oAR!q;9wc8RyMOqv02(HT(*J{O~iN=8SIe z8r_;0QlqQOR$@3hIKVRc$dTwgLOT1H2zr3)|g-vom z5945wCV7#e0SeVxgQjb)V!!5Vsjaa(MQF2P*U;BXa`E^KXSaBnn7%z8_E)CD%&1~! z)XvPPWM=eH*_NwN6muY2p+vQ=<`bjQScMYZ_~dwV#;?2Mzo+7Ph4s80>p8H>D|-I6 zj5_#_g=;8@wRhB%f<9MGE$EhwN=sSzUuC?gsJT%8Zg{*LkBLoSb6wAT6kks4i&EAL zuqn^GXzwt~!WR!CtdAjpU!T$yp{IFNG$)sMiR(d9U)m36eWup+`qff@yHrQ zYq@~~3wA`VccZ_{ORx@~qjmJ#syW};VQRH1x%$GcykpCUe7Q2_%9&%E+!qhZ)il`j zO6gjxF~;a+GwF^zwHKQMW^Cl60pAr8B%Sq6#;ayV)UWX$n*%Ovwl*w5@8Vg+AwEP^nrUwe@16KO!$DZR Nj3W4!EKfeh-XE5Rzw-b9 literal 0 HcmV?d00001 diff --git a/packages/gecode/clpfd.yap b/packages/gecode/clpfd.yap new file mode 100644 index 000000000..e9a3c16f0 --- /dev/null +++ b/packages/gecode/clpfd.yap @@ -0,0 +1,1143 @@ +:- module(clpfd, [ + op(100, yf, []), + op(760, yfx, #<==>), + op(750, xfy, #==>), + op(750, yfx, #<==), + op(740, yfx, #\/), + op(730, yfx, #\), + op(720, yfx, #/\), + op(710, fy, #\), + op(705, xfx, where), + op(700, xfx, #>), + op(700, xfx, #<), + op(700, xfx, #>=), + op(700, xfx, #=<), + op(700, xfx, #=), + op(700, xfx, #\=), + op(700, xf, #>), + op(700, xf, #<), + op(700, xf, #>=), + op(700, xf, #=<), + op(700, xf, #=), + op(700, xf, #\=), + op(700, xfx, in), + op(700, xfx, ins), + op(500, yfx, '<=>'), + op(500, yfx, '=>'), + op(450, xfx, ..), % should bind more tightly than \/ + (#>)/2, + (#<)/2, + (#>=)/2, + (#=<)/2, + (#=)/2, + (#\=)/2, + (#>)/1, + (#<)/1, + (#>=)/1, + (#=<)/1, + (#=)/1, + (#\=)/1, + (#<==>)/2, + (#==>)/2, + (#<==)/2, + (#\)/1, + (#\/)/2, + (#/\)/2, + in/2 , + ins/2, + boolvar/1, + boolvars/1, + all_different/1, + all_distinct/1, + all_distinct/2, + maximize/1, + minimize/1, + sum/3, + lex_chain/1, + minimum/2, + min/2, + maximum/2, + max/2, + scalar_product/4, + element/2, + extensional_constraint/2, + in_relation/2, + clause/4, + dfa/4, + in_dfa/2, + in_dfa/4, /* + tuples_in/2, */ + labeling/2 /*, + label/1, + indomain/1, + serialized/2, + global_cardinality/2, + global_cardinality/3, + circuit/1, + element/3, + automaton/3, + automaton/8, + transpose/2, + zcompare/3, + chain/2, + fd_var/1, + fd_inf/2, + fd_sup/2, + fd_size/2, + fd_dom/2 */ + ]). + +:- use_module(library(gecode)). +:- use_module(library(maplist)). +:- reexport(library(matrix), [(<==)/2, foreach/2, foreach/4, of/2]). + +% build array of constraints +% +matrix:array_extension(_.._ , clpfd:build). + +build( I..J, _, Size, L) :- + length( L, Size ), + L ins I..J. + +matrix:rhs_opaque(X) :- constraint(X). + +constraint( (_ #> _) ). +constraint( (_ #< _) ). +constraint( (_ #>= _) ). +constraint( (_ #=< _) ). +constraint( (_ #= _) ). +constraint( (_ #\= _) ). +constraint( (_ #\ _) ). +constraint( (_ #<==> _) ). +constraint( (_ #==> _) ). +constraint( (_ #<== _) ). +constraint( (_ #\/ _) ). +constraint( (_ #/\ _) ). +constraint( in(_, _) ). %2, +constraint( ins(_, _) ). %2, +constraint( all_different(_) ). %1, +constraint( all_distinct(_) ). %1, +constraint( all_distinct(_,_) ). %1, +constraint( sum(_, _, _) ). %3, +constraint( scalar_product(_, _, _, _) ). %4, +constraint( min(_, _) ). %2, +constraint( minimum(_, _) ). %2, +constraint( max(_, _) ). %2, +constraint( maximum(_, _) ). %2, +constraint( in_relation(_, _) ). %2, +constraint( in_dfa(_, _) ). %2, +constraint( in_dfa(_, _, _, _) ). %2, +constraint( tuples_in(_, _) ). %2, +constraint( labeling(_, _) ). %2, +constraint( label(_) ). %1, +constraint( indomain(_) ). %1, +constraint( lex_chain(_) ). %1, +constraint( serialized(_, _) ). %2, +constraint( global_cardinality(_, _) ). %2, +constraint( global_cardinality(_, _, _) ). %3, +constraint( circuit(_) ). %1, +constraint( element(_, _, _) ). %3, +constraint( automaton(_, _, _) ). %3, +constraint( automaton(_, _, _, _, _, _, _, _) ). %8, +constraint( transpose(_, _) ). %2, +constraint( zcompare(_, _, _) ). %3, +constraint( chain(_, _) ). %2, +constraint( element(_, _) ). %2, +constraint( fd_var(_) ). %1, +constraint( fd_inf(_, _) ). %2, +constraint( fd_sup(_, _) ). %2, +constraint( fd_size(_, _) ). %2, +constraint( fd_dom(_, _) ). %2 +constraint( clause(_, _, _, _) ). %2 + + +process_constraints((B0,B1), (NB0, NB1), Env) :- + process_constraints(B0, NB0, Env), + process_constraints(B1, NB1, Env). +process_constraints(B, B, env(_Space)) :- + constraint(B), !. +process_constraints(B, B, _Env). +% process_constraint(B, NB, Space). + +( A #= B) :- + get_home(Env), + check(A, NA), + check(B, NB), + post( rel(NA, (#=), NB), Env, _). +( A #\= B) :- + get_home(Env), + check(A, NA), + check(B, NB), + post( rel(NA, (#\=), NB), Env, _). +( A #< B) :- + get_home(Env), + check(A, NA), + check(B, NB), + post( rel(NA, (#<), NB), Env, _). +( A #> B) :- + get_home(Env), + check(A, NA), + check(B, NB), + post( rel(NA, (#>), NB), Env, _). +( A #=< B) :- + get_home(Env), + check(A, NA), + check(B, NB), + post( rel(NA, (#=<), NB), Env, _). +( A #>= B) :- + get_home(Env), + check(A, NA), + check(B, NB), + post( rel(NA, (#>=), NB), Env, _). +( A #= ) :- + get_home(Env), + check(A, NA), + post( rel(NA, (#=)), Env, _). +( A #\= ) :- + get_home(Env), + check(A, NA), + post( rel(NA, (#\=)), Env, _). +( A #< ) :- + get_home(Env), + check(A, NA), + post( rel(NA, (#<)), Env, _). +( A #> ) :- + get_home(Env), + check(A, NA), + post( rel(NA, (#>)), Env, _). +( A #=< ) :- + get_home(Env), + check(A, NA), + post( rel(NA, (#=<) ), Env, _). +( A #>= ) :- + get_home(Env), + check(A, NA), + post( rel(NA, (#>=)), Env, _). +sum( L, Op, V) :- + get_home( Env ), + check(L, NL), + check(V, NV), + post( rel(sum(NL), Op, NV), Env, _). +( A #<==> VBool) :- + get_home(Space-Map), + check(A, NA), + check(VBool, NVBool), + Bool := boolvar(Space), + m( NVBool, Bool, 0, 1, Map), + Space += reify(Bool, 'RM_EQV', R), + post(NA, Space-Map, R). +( A #==> VBool) :- + get_home(Space-Map), + check(A, NA), + check(VBool, NVBool), + Bool := boolvar(Space), + m( NVBool, Bool, 0, 1, Map), + Space += reify(Bool, 'RM_IMP', R), + post(NA, Space-Map, R). +( A #<== VBool) :- + get_home(Space-Map), + check(A, NA), + check(VBool, NVBool), + Bool := boolvar(Space), + m( NVBool, Bool, 0, 1, Map), + Space += reify(Bool, 'RM_PMI', R), + post(NA, Space-Map, R). +'#\\'(A) :- + get_home(Space-Map), + check(A, NA), + B := boolvar(Space), + Space += reify(B, 'RM_EQV', R), + Space += rel(B, 'BOT_EQV', 0), + post(NA, Space-Map, R). +( A1 #\/ A2 ) :- + get_home(Space-Map), + check(A1, NA1), + check(A2, NA2), + B1 := boolvar(Space), + B2 := boolvar(Space), + Space += reify(B1, 'RM_EQV', R1), + Space += reify(B2, 'RM_EQV', R2), + post(NA1, Space-Map, R1), + post(NA2, Space-Map, R2), + Space += rel(B1, B2, 'BOT_OR', 1). +( A1 #/\ A2 ) :- + get_home(Space-Map), + check(A1, NA1), + check(A2, NA2), + B1 := boolvar(Space), + B2 := boolvar(Space), + Space += reify(B1, 'RM_EQV', R1), + Space += reify(B2, 'RM_EQV', R2), + post(NA1, Space-Map, R1), + post(NA2, Space-Map, R2), + Space += rel(B1, B2, 'BOT_AND', 1). +( X in A..B) :- + get_home(Space-Map), + check(A, NA), + check(B, NB), + m(X, NX, NA, NB, Map), + NX := intvar(Space, NA, NB). +( Xs ins A..B) :- + get_home(Space-Map), + check(A, NA), + check(B, NB), + maplist(lm(NA, NB, Map), Xs, NXs), + length(Xs, N), + NXs := intvars(Space, N, NA, NB). +boolvar( X ) :- + get_home(Space-Map), + m(X, NX, 0, 1, Map), + NX := boolvar( Space ). +boolvars( Xs ) :- + get_home(Space-Map), + maplist(lm(0, 1, Map), Xs, NXs), + length(Xs, N), + NXs := boolvars( Space, N ). +all_different( Xs ) :- + get_home(Env), + check(Xs, NXs), + post( all_different( NXs ), Env, _ ). +all_distinct( Xs ) :- + get_home(Env), + check(Xs, NXs), + post( all_distinct( NXs ), Env, _ ). +all_distinct( Cs, Xs ) :- + get_home(Env), + check(Xs, NXs), + post( all_distinct( Cs, NXs ), Env, _ ). +scalar_product( Cs, Vs, Rels, X ) :- + get_home(Env), + check(Vs, NVs), + post( scalar_product( Cs, NVs, Rels, X ), Env, _ ). +lex_chain( Cs ) :- + get_home(Env), + check(Cs, NCs), + post( rel( NCs, '#=<' ), Env, _ ). +minimum( V, Xs ) :- + get_home(Env), + check(Xs, NXs), + check(V, NV), + post( rel( min(NXs), (#=), NV ), Env, _ ). +min( Xs, V ) :- + get_home(Env), + check(Xs, NXs), + check(V, NV), + post( rel( min(NXs), (#=), NV ), Env, _ ). +maximum( V, Xs ) :- + get_home(Env), + check(Xs, NXs), + check(V, NV), + post( rel( max(NXs), (#=), NV ), Env, _ ). +max( Xs, V ) :- + get_home(Env), + check(Xs, NXs), + check(V, NV), + post( rel( max(NXs), (#=), NV ), Env, _ ). +element( V, Xs ) :- + get_home(Env), + check(Xs, NXs), + check(V, NV), + post( element( NV, NXs ), Env, _ ). +in_relation( Xs, Rel ) :- + get_home(Env), + check(Xs, NXs), + post(in_tupleset(NXs, Rel), Env, _ ). +in_dfa( Xs, Rel ) :- + get_home(Env), + check(Xs, NXs), + post(in_dfa(NXs, Rel), Env, _ ). +in_dfa( Xs, S0, Ts, Fs ) :- + get_home(Env), + check(Xs, NXs), + post(in_dfa(NXs, S0, Ts, Fs), Env, _ ). +clause( and, Ps, Ns, V ) :- + get_home(Env), + check(Ps, NPs), + check(Ns, NNs), + check(V, NV), + post(clause( 'BOT_AND', NPs, NNs, NV), Env, _ ). +clause( or, Ps, Ns, V ) :- + get_home(Env), + check(Ps, NPs), + check(Ns, NNs), + check(V, NV), + post(clause( 'BOT_OR', NPs, NNs, NV), Env, _ ). + +labeling(Opts, Xs) :- + get_home(Space-Map), + foldl2( processs_lab_opt, Opts, 'INT_VAR_SIZE_MIN', BranchVar, 'INT_VAL_MIN', BranchVal), + term_variables(Xs, Vs), + check( Vs, X1s ), + ( X1s == [] -> true ; + maplist(ll(Map), X1s, NXs), + Space += branch(NXs, BranchVar, BranchVal) ). + +processs_lab_opt(leftmost, _, 'INT_VAR_NONE', BranchVal, BranchVal). +processs_lab_opt(min, _, 'INT_VAR_SIZE_MIN', BranchVal, BranchVal). +processs_lab_opt(max, _, 'INT_VAR_SIZE_MAX', BranchVal, BranchVal). +processs_lab_opt(ff, _, 'INT_VAR_DEGREE_MIN', BranchVal, BranchVal). +processs_lab_opt(min_step, BranchVar, BranchVar, _, 'INT_VAL_MIN'). +processs_lab_opt(max_step, BranchVar, BranchVar, _, 'INT_VAL_MIN'). +processs_lab_opt(bisect, BranchVar, BranchVar, _, 'INT_VAL_MED'). +processs_lab_opt(enum, BranchVar, BranchVar, _, 'INT_VALUES_MIN'). + + +maximize(V) :- + get_home(Space-Map), + l(V, I, Map), + Space += maximize(I). + +minimize(V) :- + get_home(Space-Map), + l(V, I, Map), + Space += minimize(I). + +extensional_constraint( Tuples, TupleSet) :- + TupleSet := tupleset( Tuples ). + +dfa( S0, Transitions, Finals, DFA) :- + DFA := dfa( S0, Transitions, Finals ). + + +check(V, NV) :- + ( var(V) -> V = NV ; + number(V) -> V = NV ; + is_list(V) -> maplist(check, V, NV) ; + V = sum(_,_) -> V = NV ; + V = '[]'(Indx, Mat) -> NV <== '[]'(Indx, Mat) ; + V = '$matrix'(_, _, _, _, C) -> C =.. [_|L], maplist(check, L, NV) ; + V = A+B -> check(A,NA), check(B, NB), NV = NB+NA ; + V = A-B -> check(A,NA), check(B, NB), NV = NB-NA ; + arith(V, _) -> V =.. [C|L], maplist(check, L, NL), NV =.. [C|NL] ; + constraint(V) -> V =.. [C|L], maplist(check, L, NL), NV =.. [C|NL] ). + +post( ( A #= B), Env, Reify) :- + post( rel( A, (#=), B), Env, Reify). +post( ( A #\= B), Env, Reify) :- + post( rel( A, (#\=), B), Env, Reify). +post( ( A #> B), Env, Reify) :- + post( rel( A, (#>), B), Env, Reify). +post( ( A #< B), Env, Reify) :- + post( rel( A, (#<), B), Env, Reify). +post( ( A #>= B), Env, Reify) :- + post( rel( A, (#>=), B), Env, Reify). +post( ( A #=< B), Env, Reify) :- + post( rel( A, (#=<), B), Env, Reify). +% [X,Y,Z] #< +post( rel( A, Op), Space-Map, Reify):- + ( var( A ) -> l(A, IA, Map) ; checklist( var, A ) -> maplist(ll(Map), A, IA ) ), + gecode_arith_op( Op, GOP ), + (var(Reify) -> Space += rel(IA, GOP) ; + Space += rel(IA, GOP, Reify) ). + +% X #< Y +% X #< 2 +post( rel( A, Op, B), Space-Map, Reify):- + var(A), + ( var(B) -> l(B, IB, Map) ; integer(B) -> IB = B ), !, + l(A, IA, Map), + gecode_arith_op( Op, GOP ), + (var(Reify) -> Space += rel(IA, GOP, IB) ; + Space += rel(IA, GOP, IB, Reify) ). + +% 2 #\= B -> reverse +post( rel( A, Op, B), Space-Map, Reify) :- + ( var(A) ; integer(A) ), !, + reverse_arith_op( Op, ROp ), + post( rel( B, ROp, A), Space-Map, Reify). + +% A is never unbound + +% [A,B,C,D] #< 3 +post( rel( A, Op, B ), Space-Map, Reify):- + checklist( var, A ), !, + maplist(ll(Map), A, IL ), + ( var(B) -> l(B, IB, Map) ; integer(B) -> IB = B ; equality(B, NB, Space-Map), l(NB, IB, Map) ), !, + gecode_arith_op( Op, GOP ), + (var(Reify) -> Space += rel(IL, GOP) ; + Space += rel(IL, GOP, IB) ). + +% sum([A,B,C]) #= X +post( rel( sum(L), Op, Out), Space-Map, Reify):- !, + checklist( var, L ), !, + maplist(ll(Map), L, IL ), + ( var(Out) -> l(Out, IOut, Map) ; integer(Out) -> IOut = Out ; equality(Out, NOut, Space-Map), l(NOut, IOut, Map) ), + gecode_arith_op( Op, GOP ), + (var(Reify) -> + Space += linear(IL, GOP, IOut); + Space += linear(IL, GOP, IOut, Reify) + ). + +% count([A,B,C], 3) #= X +post( rel( count(X, Y), Op, Out), Space-Map, Reify):- !, + ( checklist( var, X ) -> maplist(ll(Map), X, IX ) ), + ( var(Y) -> l(Y, IY, Map) ; integer(Y) -> IY = Y ; equality(Y, NY, Space-Map), l(NY, IY, Map) ), + ( var(Out) -> l(Out, IOut, Map) ; integer(Out) -> IOut = Out ; equality(Out, NOut, Space-Map), l(NOut, IOut, Map) ), !, + gecode_arith_op( Op, GOP ), + (var(Reify) -> + Space += count(IX, IY, GOP, IOut); + Space += count(IX, IY, GOP, IOut, Reify) + ). + + +% sum([I in 0..N-1, M[I]]) #= X +post( rel( sum(Foreach, Cond), Op, Out), Space-Map, Reify):- !, + ( var(Out) -> l(Out, IOut, Map) ; integer(Out) -> IOut = Out ; equality(Out, NOut, Space-Map), l(NOut, IOut, Map) ), + cond2list( Foreach, Cond, Cs, L), + maplist(ll(Map), [Out|L], [IOut|IL] ), + gecode_arith_op( Op, GOP ), + (L = [] -> true ; + var(Reify) -> + Space += linear(Cs, IL, GOP, IOut); + Space += linear(Cs, IL, GOP, IOut, Reify) + ). + +post( rel(A1+A2, Op, B), Space-Map, Reify):- + ( nonvar(B) ; B = _ + _ ; B = _-_), !, + linearize(A1+A2, 1, As, Bs, CAs, CBs, 0, A0, Space-Map), + linearize(B, -1, Bs, [], CBs, [], A0, B0, Space-Map), + gecode_arith_op( Op, GOP ), + (var(Reify) -> + ( checklist(is_one, CAs) -> + Space += linear(As, GOP, B0); + Space += linear(CAs, As, GOP, B0) + ) + ; + ( checklist(is_one, CAs) -> + Space += linear(As, GOP, B0, Reify); + Space += linear(CAs, As, GOP, B0, Reify) + ) + ). + +post( rel(A1-A2, Op, B), Space-Map, Reify):- + ( nonvar(B) ; B = _ + _ ; B = _-_), !, + linearize(A1-A2, 1, As, Bs, CAs, CBs, 0, A0, Space-Map), + linearize(B, -1, Bs, [], CBs, [], A0, B0, Space-Map), + gecode_arith_op( Op, GOP ), + (var(Reify) -> + ( checklist(is_one, CAs) -> + Space += linear(As, GOP, B0); + Space += linear(CAs, As, GOP, B0) + ) + ; + ( checklist(is_one, CAs) -> + Space += linear(As, GOP, B0, Reify); + Space += linear(CAs, As, GOP, B0, Reify) + ) + ). + +post( rel(A, Op, B), Space-Map, Reify):- + arith(A, Name), + A =.. [_Op,A1], + is_list(A1), !, + ( _Op = min -> true ; _Op = max ), + maplist(equality_l( Space-Map), A1, NA1), + maplist(in_c_l( Space-Map), NA1, VA1), + equality(B, B1, Space-Map), + out_c(Name, VA1, B1, Op, Space-Map, Reify). + +post( rel(A, Op, B), Space-Map, Reify):- + arith(A, Name), + A =.. [_Op,A1], !, + equality(A1, NA1, Space-Map), + in_c(NA1, VA1, Space-Map), !, + equality(B, B1, Space-Map), + out_c(Name, VA1, B1, Op, Space-Map, Reify). + +post( rel(A, Op, B), Space-Map, Reify):- + arith(A, Name), + A =.. [_Op,A1,A2], !, + equality(A1, NA1, Space-Map), + in_c(NA1, VA1, Space-Map), + equality(A2, NA2, Space-Map), + in_c(NA2, VA2, Space-Map), + equality(B, B1, Space-Map), + out_c(Name, VA1, VA2, B1, Op, Space-Map, Reify). + +post( scalar_product(Cs, L, Op, Out), Space-Map, Reify):- + var(Out), !, + maplist(ll(Map), [Out|L], [IOut|IL] ), + gecode_arith_op( Op, GOP ), + (var(Reify) -> + Space += linear(Cs, IL, GOP, IOut); + Space += linear(Cs, IL, GOP, IOut, Reify) + ). +post( scalar_product(Cs, L, Op, Out), Space-Map, Reify):- + integer(Out), !, + maplist(ll(Map), L, IL ), + gecode_arith_op( Op, GOP ), + (var(Reify) -> + Space += linear(Cs, IL, GOP, Out); + Space += linear(Cs, IL, GOP, Out, Reify) + ). +post( all_different( Xs ), Space-Map, Reify) :- + maplist(ll(Map), Xs, NXs), + (var(Reify) -> + Space += distinct(NXs) + ; + throw(error(domain(not_reifiable),all_different( Xs ))) + ). +post( all_distinct( Xs ), Space-Map, Reify) :- + maplist(ll(Map), Xs, NXs), + (var(Reify) -> + Space += distinct(NXs) + ; + throw(error(domain(not_reifiable),all_distinct( Xs ))) + ). +post( all_distinct( Cs , Xs ), Space-Map, Reify) :- + maplist(ll(Map), Xs, NXs), + (var(Reify) -> + Space += distinct(Cs,NXs) + ; + throw(error(domain(not_reifiable),all_distinct( Cs , Xs ))) + ). +post(in_tupleset(Xs, Tuples), Space-Map, Reify) :- + is_list( Tuples ), !, + TS := tupleset( Tuples ), + maplist(ll(Map), Xs, IXs), + (var(Reify) -> + Space += extensional(IXs, TS) + ; + throw(error(domain(not_reifiable),in_relation(Xs, Tuples))) + ). +post(in_tupleset(Xs, TS), Space-Map, Reify) :- + maplist(ll(Map), Xs, IXs), + (var(Reify) -> + Space += extensional(IXs, TS) + ; + throw(error(domain(not_reifiable),in_relation(Xs, TS))) + ). +post(in_dfa(Xs, S0, Trs, Fs), Space-Map, Reify) :- + TS := dfa( S0, Trs, Fs ), + maplist(ll(Map), Xs, IXs), + (var(Reify) -> + Space += extensional(IXs, TS) + ; + throw(error(domain(not_reifiable),in_dfa(Xs, S0, Trs, Fs))) + ). +post(in_dfa(Xs, TS), Space-Map, Reify) :- + maplist(ll(Map), Xs, IXs), + (var(Reify) -> + Space += extensional(IXs, TS) + ; + throw(error(domain(not_reifiable),in_dfa(Xs, TS))) + ). + +post(element(V, Xs), Space-Map, Reify) :- + l(V, IV, Map), + maplist(ll(Map), Xs, IXs), + (var(Reify) -> + Space += element(IV, IXs) + ; + Space += element(IV, IXs, Reify) + ). + +post(clause( Type, Ps, Ns, V), Space-Map, Reify) :- + (integer(V) -> V = IV ; l(V, IV, Map) ), + maplist(ll(Map), Ps, IPs), + maplist(ll(Map), Ns, INs), + (var(Reify) -> + Space += clause(Type, IPs, INs, IV) + ; + Space += clause(Type, IPs, INs, IV, Reify) + ). + +gecode_arith_op( (#=) , 'IRT_EQ' ). +gecode_arith_op( (#\=) , 'IRT_NQ' ). +gecode_arith_op( (#>) , 'IRT_GR' ). +gecode_arith_op( (#>=) , 'IRT_GQ' ). +gecode_arith_op( (#<) , 'IRT_LE' ). +gecode_arith_op( (#=<) , 'IRT_LQ' ). + +reverse_arith_op( (#=) , (#=) ). +reverse_arith_op( (#\=) , (#\=) ). +reverse_arith_op( (#>) , (#<) ). +reverse_arith_op( (#>=) , (#=<) ). +reverse_arith_op( (#<) , (#>) ). +reverse_arith_op( (#=<) , (#>=) ). + +linearize(V, C, [A|As], As, [C|CAs], CAs, I, I, _-Map) :- + var(V), !, + l(V, A, Map). +linearize(A+B, C, As, Bs, CAs, CBs, I, IF, Env) :- + linearize(A, C, As, A1s, CAs, CA1s, I, I1, Env), + linearize(B, C, A1s, Bs, CA1s, CBs, I1, IF, Env). +linearize(A-B, C, As, Bs, CAs, CBs, I, IF, Env) :- + NC is -C, + linearize(A, C, As, A1s, CAs, CA1s, I, I1, Env), + linearize(B, NC, A1s, Bs, CA1s, CBs, I1, IF, Env). +linearize(A, C, As, As, CAs, CAs, I, IF, _) :- + integer(A), !, + IF is I-C*A. +linearize(A, C, As, As, CAs, CAs, I, IF, _) :- + ground(A), + catch( (B is eval(A)), _, fail ), !, + IF is I-C*B. +linearize(C1*B, C, As, Bs, CAs, CBs, I, IF, Env) :- + integer(C1), !, + NC is C*C1, + linearize(B, NC, As, Bs, CAs, CBs, I, IF, Env). +linearize(B*C1, C, As, Bs, CAs, CBs, I, IF, Env) :- + integer(C1), !, + NC is C*C1, + linearize(B, NC, As, Bs, CAs, CBs, I, IF, Env). +linearize(AC, C, [A|Bs], Bs, [C|CBs], CBs, I, I, Env) :- + arith(AC, _), + equality(AC, V, Env), + Env = _-Map, + l(V, A, Map). + +arith('/\\'(_,_), (/\)). +arith('\\/'(_,_), (\/)). +arith('=>'(_,_), (=>)). +arith('<=>'(_,_), (<=>)). +arith(xor(_,_), xor). +arith(abs(_), abs). +arith(min(_), min). +arith(max(_), max). +arith(min(_,_), min). +arith(max(_,_), max). +arith((_ * _), times). +arith((_ / _), div). +arith(sum(_), sum). +arith(sum(_,_), sum). +arith(count(_,_), count). + +% replace abs(min(A,B)-max(A,B)) by +% min(A,B,A1), max(A,B,A2), linear([1,-1],[A1,B1],=,A3), abs(A3,AN) +equality(V, V, _Env) :- + var( V ), !. +equality(V, V, _Env) :- + integer( V ), !. +equality(abs(V), NV, Env) :- + equality(V, VA, Env), + new_arith(abs, VA, NV, Env). +equality(min(V), NV, Env) :- + maplist( equality_l(Env), V, VA ), + new_arith(min, VA, NV, Env). +equality(max(V), NV, Env) :- + maplist( equality_l(Env), V, VA ), + new_arith(max, VA, NV, Env). +equality(V1+V2, NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( plus, V1A, V2A, NV, Env). +equality(V1-V2, NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( minus, V1A, V2A, NV, Env). +equality(V1*V2, NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( times, V1A, V2A, NV, Env). +equality(V1/V2, NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( div, V1A, V2A, NV, Env). +equality(V1 mod V2, NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( (mod), V1A, V2A, NV, Env). +equality(max( V1 , V2), NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( (max), V1A, V2A, NV, Env). +equality(min( V1 , V2), NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( (min), V1A, V2A, NV, Env). +equality(sum( V ), NV, Env) :- + maplist( equality_l(Env), V, VA ), + new_arith(sum, VA, NV, Env). +equality(sum( C, G ), NV, Env) :- + new_arith(sum, C, G, NV, Env). +equality('/\\'( V1 , V2), NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( (/\), V1A, V2A, NV, Env). +equality('\\/'( V1 , V2), NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( (\/), V1A, V2A, NV, Env). +equality('<=>'( V1 , V2), NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( (<=>), V1A, V2A, NV, Env). +equality('=>'( V1 , V2), NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( (=>), V1A, V2A, NV, Env). +equality('xor'( V1 , V2), NV, Env) :- + equality(V1, V1A, Env), + equality(V2, V2A, Env), + new_arith( (xor), V1A, V2A, NV, Env). + +equality_l(Env, V0, V) :- + equality(V0, V, Env). + +% abs(X) #= 3 +out_c(Name, A1, B, Op, Space-Map, Reify) :- + integer(B), !, + new_arith( Name, A1, NB, Space-Map), + gecode_arith_op( Op, BOP ), + l(NB, IB, Map), + ( var(Reify) -> + Space += rel(IB, BOP, B) + ; + Space += rel(IB, BOP, B, Reify) + ). +% abs(X) #= Cin[..] +out_c(Name, A1, B, (#=), Space-Map, Reify) :- + var(Reify), + l(B, IB, Map), !, + l(A1, IA1, Map), + G =.. [Name, IA1, IB], + Space += G. +% abs(X) #= NEW +out_c(Name, A1, B, (#=), Space-Map, Reify) :- + var(Reify), !, + new_arith( Name, A1, B, Space-Map). +% abs(X) #> NEW +out_c(Name, A1, B, Op, Space-Map, Reify) :- + l(B, IB0, Map), !, + new_arith( Name, A1, NB, Space-Map), + l(NB, IB, Map), + gecode_arith_op( Op, BOP ), + ( + nonvar(Reify) -> + Space += rel(IB, BOP, IB0) + ; + Space += rel(IB, BOP, IB0, Reify) + ). + +% X*Y #= 3 +out_c(Name, A1, A2, B, Op, Space-Map, Reify) :- + integer(B), !, + new_arith( Name, A1, A2, NB, Space-Map), + l(NB, IB, Map), + gecode_arith_op( Op, BOP ), + ( var(Reify) -> + Space += rel(IB, BOP, B) + ; + Space += rel(IB, BOP, B, Reify) + ). +% X*Y #= Cin[..] +out_c(Name, A1, A2, B, (#=), Space-Map, Reify) :- + var(Reify), + l(B, IB, Map), !, + l(A1, IA1, Map), + l(A2, IA2, Map), + G =.. [Name, IA1, IA2, IB], + Space += G. +% abs(X) #= NEW, cannot be reified +out_c(Name, A1, A2, B, (#=), Space-Map, Reify) :- + var(Reify), !, + new_arith( Name, A1, A2, B, Space-Map). +% min(X,Y) #= Cin[..] <=> +out_c(Name, A1, A2, B, Op, Space-Map, Reify) :- + l(B, IB0, Map), !, + new_arith( Name, A1, A2, NB, Space-Map), + l(NB, IB, Map), + gecode_arith_op( Op, BOP ), + ( var(Reify) -> + Space += rel(IB, BOP, IB0) + ; + Space += rel(IB, BOP, IB0, Reify) + ). + +new_arith( abs, V, NV, Space-Map) :- + l(V, X, Min0, Max0, Map), + ( Min0 < 0 -> + ( Max0 < 0 -> Min is -Max0, Max is -Min0 ; + Min = 0 , Max is max( -Min0, Max0 ) ) + ; + Min = Min0, Max = Max0 + ), + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + Space += abs(X, NX). + +new_arith( min, V, NV, Space-Map) :- + V = [V1|RV], + l(V1, _X1, Min0, Max0, Map), + foldl2( min_l(Map), RV, Max0, Max, Min0, Min), + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + maplist(ll(Map), V, X), + Space += min(X, NX). + +new_arith( max, V, NV, Space-Map) :- + V = [V1|RV], + l(V1, _X1, Min0, Max0, Map), + foldl2( max_l(Map), RV, Max0, Max, Min0, Min), + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + maplist(ll(Map), V, X), + Space += min(X, NX). + +new_arith( sum, V, NV, Space-Map) :- + foldl2( sum_l(Map), V, 0, Max, 0, Min), + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + maplist(ll(Map), V, X), + Space += linear(X, 'IRT_EQ', NX). + +new_arith( minus, V1, V2, NV, Space-Map) :- + l(V1, X1, Min1, Max1, Map), + l(V2, X2, Min2, Max2, Map), + Min is Min1-Max2, + Max is Max1-Min2, + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + Space += linear([1,-1], [X1,X2], 'IRT_EQ', NX). + +new_arith( plus, V1, V2, NV, Space-Map) :- + l(V1, X1, Min1, Max1, Map), + l(V2, X2, Min2, Max2, Map), + Min is Min1+Min2, + Max is Max1+Max2, + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + Space += linear([1,1], [X1,X2], 'IRT_EQ', NX). + +new_arith( min, V1, V2, NV, Space-Map) :- + l(V1, X1, Min1, Max1, Map), + l(V2, X2, Min2, Max2, Map), + Min is min(Min1,Min2), + Max is min(Max1,Max2), + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + Space += min(X1, X2, NX). + +new_arith( max, V1, V2, NV, Space-Map) :- + l(V1, X1, Min1, Max1, Map), + l(V2, X2, Min2, Max2, Map), + Min is max(Min1,Min2), + Max is max(Max1,Max2), + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + Space += max(X1, X2, NX). + +new_arith( times, V1, V2, NV, Space-Map) :- + l(V1, X1, Min1, Max1, Map), + l(V2, X2, Min2, Max2, Map), + min_times(Min1,Min2,Max1,Max2,Min), + max_times(Min1,Min2,Max1,Max2,Max), + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + Space += times(X1, X2, NX). + +new_arith( (div), V1, V2, NV, Space-Map) :- + l(V1, X1, Min1, Max1, Map), + l(V2, X2, Min2, Max2, Map), + min_div(Min1,Min2,Max1,Max2,Min), + max_div(Min1,Min2,Max1,Max2,Max), + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + Space += div(X1, X2, NX). + +new_arith( (mod), V1, V2, NV, Space-Map) :- + l(V1, X1, _Min1, Max1, Map), + l(V2, X2, _Min2, Max2, Map), + Min is 0, + Max is min(abs(Max1), Max2-1), + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + Space += mod(X1, X2, NX). + +new_arith( sum, Foreach, Cond, NV, Space-Map) :- + cond2list( Foreach, Cond, Cs, V), + foldl2( sum_l(Map), V, 0, Max, 0, Min), + NX := intvar(Space, Min, Max), + m(NV, NX, Min, Max, Map), + maplist(ll(Map), V, X), + Space += linear(Cs, X, 'IRT_EQ', NX). + +new_arith( (/\), V1, V2, NV, Space-Map) :- + l(V1, X1, Map), + l(V2, X2, Map), + NX := boolvar(Space), + m(NV, NX, 0, 1, Map), + Space += rel(X1, 'BOT_AND', X2, NX). + +new_arith( (\/), V1, V2, NV, Space-Map) :- + l(V1, X1, Map), + l(V2, X2, Map), + NX := boolvar(Space), + m(NV, NX, 0, 1, Map), + Space += rel(X1, 'BOT_OR', X2, NX). + +new_arith( (=>), V1, V2, NV, Space-Map) :- + l(V1, X1, Map), + l(V2, X2, Map), + NX := boolvar(Space), + m(NV, NX, 0, 1, Map), + Space += rel(X1, 'BOT_IMP', X2, NX). + + +new_arith( (<=>), V1, V2, NV, Space-Map) :- + l(V1, X1, Map), + l(V2, X2, Map), + NX := boolvar(Space), + m(NV, NX, 0, 1, Map), + Space += rel(X1, 'BOT_EQV', X2, NX). + +new_arith( xor, V1, V2, NV, Space-Map) :- + l(V1, X1, Map), + l(V2, X2, Map), + NX := boolvar(Space), + m(NV, NX, 0, 1, Map), + Space += rel(X1, 'BOT_XOR', X2, NX). + + + +min_times(Min1,Min2,Max1,Max2,Min) :- + Min is min(Min1*Min2, min(Min1*Max2, min(Max1*Min2, Max1*Max2))). + +max_times(Min1,Min2,Max1,Max2,Max) :- + Max is max(Min1*Min2, max(Min1*Max2, max(Max1*Min2, Max1*Max2))). + +min_div(Min1,Min20,Max1,Max20,Min) :- + ( Min20 == 0 -> Min2 = 1 ; Min2 = Min20), + ( Max20 == 0 -> Max2 = -1; Max2 = Max20), + Min is min(Min1 div Min2, min(Min1 div Max2, min(Max1 div Min2, Max1 div Max2))). + +max_div(Min1,Min20,Max1,Max20,Max) :- + ( Min20 == 0 -> Min2 = 1 ; Min2 = Min20), + ( Max20 == 0 -> Max2 = -1; Max2 = Max20), + Max is max(Min1 div Min2, max(Min1 div Max2, max(Max1 div Min2, Max1 div Max2))). + +min_l(Map, V, Min0, Min, Max0, Max) :- + l(V, _, Min1, Max1, Map), + Min is min(Min0, Min1), + Max is min(Max0, Max1). + +max_l(Map, V, Min0, Min, Max0, Max) :- + l(V, _, Min1, Max1, Map), + Min is max(Min0, Min1), + Max is max(Max0, Max1). + +sum_l(Map, V, Min0, Min, Max0, Max) :- + l(V, _, Min1, Max1, Map), + Min is Min0 + Min1, + Max is Max0 + Max1. + + +in_c(A, A, _y) :- + var(A), !. +in_c(C, A, Space-Map) :- + integer(C), + Min is C-1, + NX := intvar(Space, Min, C), + m(A, NX, Min, C, Map), + Space += rel(NX, 'IRT_EQ', C). + +in_c_l(Env, V, IV) :- + in_c(V, IV, Env). + +user:term_expansion( ( H :- B), (H :- (clpfd:init_gecode(Space, Me), NB, clpfd:close_gecode(Space, Vs, Me)) ) ) :- + process_constraints(B, NB, Env), + term_variables(H, Vs), + nonvar( Env ), !, + Env = env( Space ). + +init_gecode(Space, old) :- + nb_current(gecode_space, Space), nonvar(Space), !. +init_gecode(Space-Map, new) :- + Space := space, + b_setval(gecode_done, false), + b_setval(gecode_space, Space-Map). + +close_gecode(_Space, _Vs, old) :- !. +close_gecode(Space-Map, Vs0, new) :- + term_variables(Vs0, Vs), + selectlist(intvar(Map), Vs, CVs), + maplist(ll(Map), CVs, IVs), + SolSpace := search(Space), + b_setval(gecode_done, true), + CVs := val(SolSpace,IVs). + +intvar(Map, V) :- + l(V, _IV, Map). + +get_home(Home) :- + b_getval(gecode_space, Home). + +cond2list((List where Goal), El, Cs, Vs) :- !, + foreach( List, add_el(Goal, El), ([])-([]), Cs-Vs ). +cond2list(List, El, Cs, Vs) :- !, + foreach( List, add_el(true, El), ([])-([]), Cs-Vs ). + +add_el(G0, El, Cs-Vs, [C|Cs]-[V|Vs]) :- + call(G0), !, + E <== El, + ( var(E) -> C = 1, E = V ; E = C*V, integer(C), var(V) -> true ; E = V*C, integer(C), var(V) ). +add_el(_G0, _El, Cs-Vs, Cs-Vs). + +% An attributed variable with attribute value Domain has been +% assigned the value Y + +attr_unify_hook(_, _) :- + b_getval(gecode_done, true), !. +attr_unify_hook(v(IV1,_,_), Y) :- + ( get_attr(Y, clpfd, v(IV2,_,_)) + -> + nb_getval(gecode_space, Space-_), + ( IV1 == IV2 -> true ; + Space += rel(IV1, 'IRT_EQ', IV2) ) + ; var(Y) + -> true + ; integer(Y) -> + nb_getval(gecode_space, Space-_), + Space += rel(IV1, 'IRT_EQ', Y) + ). + +% Translate attributes from this module to residual goals + +attribute_goals(X) --> + { get_attr(X, clpfd, v(_,A,B)) }, + [X in A..B]. + +m(X, Y, A, B, _Map) :- + put_attr(X, clpfd, v(Y, A, B)). +/* +m(NV, OV, NA, NB, Vs) :- + var(Vs), !, + Vs = [v(NV,OV,NA,NB)|_]. +m(NV, OV, NA, NB, [_|Vs]) :- + m(NV, OV, NA, NB, Vs). +*/ + +lm(A, B, Map, X, Y) :- + m(X, Y, A, B, Map). + +l(V, IV, _) :- + get_attr(V, clpfd, v(IV, _, _)). +/* +l(_NV, _OV, Vs) :- + var(Vs), !, + fail. +l(NV, OV, [v(V, OV, _A, _B)|_Vs]) :- + V == NV, !. +l(NV, OV, [_|Vs]) :- + l(NV, OV, Vs). +*/ + +ll(Map, X, Y) :- + l(X, Y, Map). + +l(V, IV, A, B, _) :- + get_attr(V, clpfd, v(IV, A, B)). + +/* +l(_NV, _OV, _, _, Vs) :- + var(Vs), !, + fail. +l(NV, OV, A, B, [v(V, OV, A, B)|_Vs]) :- + V == NV, !. +l(NV, OV, A, B, [_|Vs]) :- + l(NV, OV, A, B, Vs). +*/ + +is_one(1). + diff --git a/packages/gecode/configure.in b/packages/gecode/configure.in new file mode 100644 index 000000000..2823e4728 --- /dev/null +++ b/packages/gecode/configure.in @@ -0,0 +1,82 @@ +dnl Gecode support + +dnl gecode is usually in /usr/local +if test -d /usr/local/include/gecode; then + CFLAGS="$CFLAGS -I/usr/local/include" + SHLIB_CXXFLAGS="$SHLIB_CXXFLAGS -I/usr/local/include" + GECODE_EXTRALIBS="-L/usr/local/lib" +fi + +AC_CHECK_HEADER(gecode/support/config.hpp, + have_gecode=yes, have_gecode=no) + +AC_ARG_ENABLE(gecode, + [ --enable-gecode install gecode library], + [use_gecode="$enableval" + if test "$use_gecode" = yes; then + if test "$have_gecode" = no; then + AC_MSG_ERROR([cannot enable gecode: gecode library not found]) + fi + fi], use_gecode=$have_gecode) + +if test "$use_gecode" = no; then + ENABLE_GECODE="@# " +else + ENABLE_GECODE="" +fi +AC_SUBST(ENABLE_GECODE) + +AC_MSG_CHECKING([if dynamic arrays are supported]) + +AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([[void foo(int n) { int a[n]; a[1]=0; }]],[[foo(3);]]) + ],[ + AC_MSG_RESULT([yes]) + AC_DEFINE([HAVE_DYNARRAY],[1],[Define if dynamic arrays are supported]) + ],[ + AC_MSG_RESULT([no]) + ]) + +GECODE_VERSION=unknown-gecode-version + +GECODE_EXTRALIBS="$GECODE_EXTRALIBS -lgecodesupport -lgecodekernel -lgecodefloat -lgecodeint -lgecodeset -lgecodesearch -lgecodeset" + +AC_SUBST(GECODE_VERSION) +AC_SUBST(GECODE_EXTRALIBS) + +if test "$use_gecode" = yes; then + AC_MSG_CHECKING([gecode version]) + AC_RUN_IFELSE([AC_LANG_PROGRAM([[ +#include "gecode/support/config.hpp" +#include +]],[[ + FILE* out = fopen("conftest.out","w"); + fprintf(out,"%s\n",GECODE_VERSION); + fclose(out); + return 0; +]])],[GECODE_VERSION=$(cat conftest.out) + AC_MSG_RESULT([$GECODE_VERSION])], + [AC_MSG_ERROR([cannot determine gecode version])]) + case "$target_os" in + *darwin*) + AC_MSG_CHECKING([if -framework gecode is required]) + AC_LANG_PUSH([C++]) + saved_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -framework gecode" + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#include "gecode/int.hh" +]],[[ +Gecode::Exception e("",""); +return 0; +]])],[GECODE_EXTRALIBS="-framework gecode" + AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no])]) + AC_LANG_POP() + CXXFLAGS="$saved_CXXFLAGS" + ;; + esac +fi + +GECODE_MAJOR=`echo $GECODE_VERSION| sed 's/\(^.\).*/\1/'` + +AC_SUBST(GECODE_MAJOR) diff --git a/packages/gecode/dev/Makefile b/packages/gecode/dev/Makefile new file mode 100644 index 000000000..4464bb185 --- /dev/null +++ b/packages/gecode/dev/Makefile @@ -0,0 +1,5 @@ +all: + python code-generator.py + +clean: + -rm -f *~ *.pyc diff --git a/packages/gecode/dev/code-generator.py b/packages/gecode/dev/code-generator.py new file mode 100644 index 000000000..fa71c8df9 --- /dev/null +++ b/packages/gecode/dev/code-generator.py @@ -0,0 +1,717 @@ +# -*- python -*- +#============================================================================== +# Copyright (C) 2011 by Denys Duchier +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . +#============================================================================== + +import re + +NOTICE_CC = """// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= +""" + +NOTICE_PROLOG="""%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= +""" + +def prolog_print_notice(): + print NOTICE_PROLOG + +def cc_print_notice(): + print NOTICE_CC + +class Type(object): + + DEFAULT = re.compile("""^(.+)=(.+)$""") + CONST = re.compile("""^const\\b(.+)$""") + UNSIGNED = re.compile("""^unsigned\\b(.+)$""") + REFERENCE = re.compile("""^(.+)&$""") + + def __init__(self, text): + if isinstance(text, Type): + self.clone_from(text) + return + text = text.strip() + m = self.DEFAULT.match(text) + if m: + self.default = m.group(2).strip() + text = m.group(1).strip() + else: + self.default = None + m = self.CONST.match(text) + if m: + self.const = True + text = m.group(1).strip() + else: + self.const = False + m = self.UNSIGNED.match(text) + if m: + self.unsigned = True + text = m.group(1).strip() + else: + self.unsigned = False + m = self.REFERENCE.match(text) + if m: + self.reference = True + text = m.group(1).strip() + else: + self.reference = False + self.type = text + + def __str__(self): + l = [] + if self.const: l.append("const ") + if self.unsigned: l.append("unsigned ") + l.append(self.type) + if self.reference: l.append("&") + if self.default is not None: + l.append("=") + l.append(self.default) + return ''.join(l) + + def clone_from(self, other): + self.const = other.const + self.unsigned = other.unsigned + self.type = other.type + self.reference = other.reference + self.default = other.default + + def clone(self): + return type(self)(self) + + +class Constraint(object): + + DECL = re.compile("""^([^(]+)\\b(\w+)\((.*)\);$""") + ARG = re.compile("""((?:[^,<(]|<[^>]*>|\([^)]*\))+),?""") + + def __init__(self, line): + if isinstance(line, Constraint): + self.clone_from(line) + return + line = line.strip() + m = self.DECL.match(line) + self.rettype = Type(m.group(1).strip()) + self.name = m.group(2) + argtypes = [] + for x in self.ARG.finditer(m.group(3).strip()): + argtypes.append(Type(x.group(1))) + self.argtypes = tuple(argtypes) + self.api = None + + def __str__(self): + l = [] + l.append(str(self.rettype)) + l.append(" ") + l.append(self.name) + sep = "(" + for x in self.argtypes: + l.append(sep) + sep = ", " + l.append(str(x)) + l.append(")") + if self.api is not None: + l.append(" -> ") + l.append(self.api) + l.append(";") + return ''.join(l) + + def clone_from(self, other): + self.rettype = other.rettype.clone() + self.name = other.name + self.argtypes = tuple(t.clone() for t in other.argtypes) + + def clone(self): + return type(self)(self) + + +COMMENT = re.compile("""^\\s*//.*$""") + +def load_decls(filename): + decls = [] + for line in open(filename): + line = line.strip() + if not line: continue + m = COMMENT.match(line) + if m: continue + decls.append(Constraint(line)) + return decls + +class DeclsLoader(object): + + def __init__(self, filename): + self.decls = load_decls(filename) + + def print_decls(self): + for con in self.decls: + print str(con) + +class PredGenerator(DeclsLoader): + + OMIT = ("VarBranchOptions", + "ValBranchOptions", + "TieBreakVarBranch", + "TieBreak", + "TieBreak", + "TieBreak", + "TieBreakVarBranchOptions", + "TieBreakVarBranch") + + def __init__(self, filename): + super(PredGenerator, self).__init__(filename) + self._change_home_to_space() + self._change_intsharedarray_to_intargs() + self._generate() + self._number() + + def _change_home_to_space(self): + for p in self.decls: + for t in p.argtypes: + if t.type=="Home": + t.type="Space" + + def _change_intsharedarray_to_intargs(self): + for p in self.decls: + for t in p.argtypes: + if t.type=="IntSharedArray": + t.type="IntArgs" + + def _generate(self): + # drop the constraints and optional arguments we can't handle + preds = [] + for con in self.decls: + if self._con_ok(con): + con = con.clone() + con.argtypes = tuple(self._drop_deco(t) for t in con.argtypes + if t.type not in self.OMIT) + preds.append(con) + # for each pred that has an argument with a default produce + # 2 preds (1 without, 1 with). repeat until all defaults have + # been removed. + again = True + while again: + preds_ = [] + again = False + for con in preds: + i = self._defaulted(con.argtypes) + if i is None: + preds_.append(con) + else: + again = True + before = con.argtypes[:i] + # without the default argument + # and therefore without the args that follow + con1 = con.clone() + con1.argtypes = before + preds_.append(con1) + # with the default argument (not default anymore) + con2 = con.clone() + arg = con.argtypes[i].clone() + arg.default=None + after = con.argtypes[i+1:] + con2.argtypes = before + (arg,) + after + preds_.append(con2) + preds = preds_ + self.preds = preds + + def _con_ok(self, con): + for t in con.argtypes: + if (t.type in self.OMIT) and (t.default is None): + return False + return True + + def _drop_deco(self, t): + # drop const, ref, and unsigned indications + t.const = False + t.reference = False + t.unsigned = False + return t + + def _defaulted(self, argtypes): + i = 0 + for x in argtypes: + if x.default is not None: + return i + i += 1 + return None + + def _number(self): + i = 1 + for x in self.preds: + x.api = "%s_%d" % (x.name,i) + i += 1 + + def print_preds(self): + for p in self.preds: + print str(p) + +class Cluster(object): + + def __init__(self, name, arity): + self.name = name + self.arity = arity + self.preds = [] + +# discriminating tree based on argument types +class DTree(object): + + def __init__(self, i, preds, cluster): + self.index = i + self.cluster = cluster + if len(preds) == 1 and len(preds[0].argtypes) == i: + self.is_leaf = True + self.pred = preds[0] + return + self.is_leaf = False + # i is the index of the current arg + # preds are the predicates to be indexed under this tree node + dispatch = {} + for p in preds: + t = p.argtypes[i] + d = dispatch.get(t.type, None) + if d is None: + d = [] + dispatch[t.type] = d + d.append(p) + self.subtrees = tuple((t2,DTree(i+1,p2,cluster)) + for t2,p2 in dispatch.iteritems()) + + def _generate_body(self, user_vars, lib_vars): + if self.is_leaf: + return PrologLiteral("gecode_constraint_%s(%s)" % (self.pred.api, ",".join(lib_vars))) + X = user_vars[self.index] + Y = lib_vars[self.index] + return self._generate_dispatch(0, user_vars, lib_vars) + + def _generate_dispatch(self, i, user_vars, lib_vars): + if i == len(self.subtrees): + return PrologLiteral("throw(gecode_argument_error(%s(%s),arg=%d))" \ + % (self.cluster.name, ",".join(user_vars), + self.index+1)) + typ, dtree = self.subtrees[i] + idx = self.index + X = user_vars[idx] + Y = lib_vars[idx] + # hack for disjunctor support + if typ=="Space": + typ = "Space_or_Clause" + return PrologIF( + PrologLiteral("is_%s(%s,%s)" % (typ,X,Y)), + dtree._generate_body(user_vars, lib_vars), + self._generate_dispatch(i+1, user_vars, lib_vars)) + + def _cc_descriptors(self, name, argtypes): + if self.is_leaf: + return (CCDescriptor(name, argtypes, self.pred.api),) + descriptors = [] + for typ,dtree in self.subtrees: + descriptors.extend(dtree._cc_descriptors(name,(argtypes+(typ,)))) + return descriptors + +class YAPConstraintGeneratorBase(PredGenerator): + + def __init__(self, filename): + super(YAPConstraintGeneratorBase, self).__init__(filename) + self._classify() + self._dtreefy() + + # create clusters (predicate,arity) + def _classify(self): + clusters = {} + for pred in self.preds: + name = pred.name + arity = len(pred.argtypes) + key = (name,arity) + cluster = clusters.get(key, None) + if cluster is None: + cluster = Cluster(name, arity) + clusters[key] = cluster + cluster.preds.append(pred) + self.clusters = clusters + + # for each cluster, create a dtree + def _dtreefy(self): + dtrees = {} + for key, cluster in self.clusters.iteritems(): + dtree = DTree(0, cluster.preds, cluster) + dtrees[key] = dtree + self.dtrees = dtrees + + def _user_vars(self, arity): + return tuple(("X%d" % i) for i in range(arity)) + + def _lib_vars(self, arity): + return tuple(("Y%d" % i) for i in range(arity)) + +class YAPConstraintPrologGenerator(YAPConstraintGeneratorBase): + + def __init__(self, filename): + super(YAPConstraintPrologGenerator, self).__init__(filename) + + def _prolog_clauses(self): + clauses = [] + for (name, arity), dtree in self.dtrees.iteritems(): + user_vars = self._user_vars(arity) + lib_vars = self._lib_vars(arity) + head = "%s(%s)" % (name, ",".join(user_vars)) + body = dtree._generate_body(user_vars, lib_vars) + clause = PrologClause(head, body) + clauses.append(clause) + return clauses + + def generate(self): + out = OStream(sys.stdout) + for clause in self._prolog_clauses(): + clause.pp(out, 0) + +class YAPConstraintCCGenerator(YAPConstraintGeneratorBase): + + def __init__(self, filename): + super(YAPConstraintCCGenerator, self).__init__(filename) + + def _cc_descriptors(self): + descriptors = [] + for (name, arity), dtree in self.dtrees.iteritems(): + descriptors.extend(dtree._cc_descriptors(name,())) + return descriptors + + def generate_impl(self): + for d in self._cc_descriptors(): + d.generate_impl() + + def generate_init(self): + for d in self._cc_descriptors(): + d.generate_init() + +# output stream that keeps track of the current column +# to facilitate proper indentation + +import sys + +class OStream(object): + + def __init__(self, fd=sys.stdout): + self.file = fd + self.column = 0 + + def write(self, s): + reset = False + for x in s.split('\n'): + if reset: + self.newline() + else: + reset = True + self.file.write(x) + self.column += len(x) + + def newline(self): + self.file.write("\n") + self.column = 0 + + def writeln(self, s=None): + if s is not None: + self.write(s) + self.newline() + + def indent_to(self, n): + if n0: + self.write(' ') + n -= 1 + +# representation of prolog code that automatically supports proper indentation + +class PrologObject(object): + pass + +class PrologClause(PrologObject): + + def __init__(self, head, body): + self.head = head + self.body = body + + def pp(self, out, offset): + out.indent_to(offset) + out.write(self.head) + out.writeln(" :-") + self.body.pp(out, offset+8) + out.writeln(".") + out.writeln() + +class PrologLiteral(PrologObject): + + def __init__(self, lit): + self.literal = lit + + def pp(self, out, offset): + out.indent_to(offset) + out.write(self.literal) + +class PrologIF(PrologObject): + + def __init__(self, cond, left, right): + self.cond = cond + self.left = left + self.right = right + + def pp(self, out, offset): + out.indent_to(offset) + out.write("("), + indent = offset+1 + self.cond.pp(out, indent) + out.writeln() + out.indent_to(indent) + out.write("-> ") + self.left.pp(out, indent+3) + out.writeln() + out.indent_to(indent) + out.write("; ") + self.right.pp(out, indent+3) + out.write(")") + +ENUM_CLASSES = None +ENUM_CLASSES_AVOID = ('ScriptMode','ViewSelStatus','ExecStatus', + 'ActorProperty','SpaceStatus') + +def enum_classes(): + global ENUM_CLASSES + if ENUM_CLASSES is None: + filename = "gecode-enums-%s.py" % gecode_version() + import imp + ENUM_CLASSES = imp.load_source( + "gecode_enums", + filename).ENUM_CLASSES + ENUM_CLASSES = tuple(x for x in ENUM_CLASSES if x.TYPE not in ENUM_CLASSES_AVOID) + return ENUM_CLASSES + +class YAPEnumImpl(object): + + def generate(self): + self._generate_atoms() + self._generate_from_term() + + def _generate_atoms(self): + for x in self.ENUM: + print "static YAP_Term gecode_%s;" % x + print + + def _generate_from_term(self): + print "static %s gecode_%s_from_term(YAP_Term X)" % (self.TYPE,self.TYPE) + print "{" + for x in self.ENUM: + print " if (X==gecode_%s) return %s;" % (x,x) + print ' cerr << "this should never happen" << endl; exit(1);' + print "}" + print + + def _generate_from_term_forward_decl(self): + print "static %s gecode_%s_from_term(YAP_Term);" % (self.TYPE,self.TYPE) + +class YAPEnumImplGenerator(object): + + def generate(self): + for c in enum_classes(): + class C(c,YAPEnumImpl): pass + o = C() + o.generate() + +class YAPEnumForwardGenerator(object): + + def generate(self): + for c in enum_classes(): + class C(c,YAPEnumImpl): pass + o = C() + o._generate_from_term_forward_decl() + +class YAPEnumInit(object): + + def generate(self): + for x in self.ENUM: + print '{ YAP_Atom X= YAP_LookupAtom("%s");' % x + print ' gecode_%s = YAP_MkAtomTerm(X);' % x + print ' YAP_AtomGetHold(X); }' + print + +class YAPEnumInitGenerator(object): + + def generate(self): + for c in enum_classes(): + class C(c,YAPEnumInit): pass + o = C() + o.generate() + +class YAPEnumProlog(object): + + def generate(self): + for x in self.ENUM: + print "is_%s_('%s')." % (self.TYPE, x) + print + for x in self.ENUM: + print "is_%s_('%s','%s')." % (self.TYPE, x, x) + print + print "is_%s(X,Y) :- nonvar(X), is_%s_(X,Y)." % (self.TYPE,self.TYPE) + print "is_%s(X) :- is_%s(X,_)." % (self.TYPE,self.TYPE) + print + +class YAPEnumPrologGenerator(object): + + def generate(self): + for c in enum_classes(): + class C(c,YAPEnumProlog): pass + o = C() + o.generate() + +class CCDescriptor(object): + + def __init__(self, name, argtypes, api): + self.name = name + self.argtypes = argtypes + self.api = api + + def generate_impl(self): + print "static int gecode_constraint_%s(void)" % self.api + print "{" + i = 1 + args = [] + has_space = False + for t in self.argtypes: + v = "X%d" % i + a = "YAP_ARG%d" % i + if t=="Space": + v = "*space" + print " GenericSpace* space = gecode_Space_from_term(%s);" % a + has_space = True + else: + extra = "" + if t in ("IntVar","BoolVar","SetVar","FloatVar","IntVarArgs","BoolVarArgs","SetVarArgs","FloatVarArgs"): + extra = "space," + if has_space == False: + print " GenericSpace* space = gecode_Space_from_term(%s);" % a + has_space = True + print " %s %s = gecode_%s_from_term(%s%s);" % (t,v,t,extra,a) + args.append(v) + i += 1 + print " %s(%s);" % (self.name, ",".join(args)) + print " return TRUE;" + print "}" + print + + def generate_init(self): + print 'YAP_UserCPredicate("gecode_constraint_%s", gecode_constraint_%s, %d);' \ + % (self.api, self.api, len(self.argtypes)) + +GECODE_VERSION = None + +def gecode_version(): + global GECODE_VERSION + if GECODE_VERSION is not None: + return GECODE_VERSION + from distutils.ccompiler import new_compiler + try: + from distutils.ccompiler import customize_compiler + except: + from distutils.sysconfig import customize_compiler + import os + cxx = new_compiler() + customize_compiler(cxx) + pid = os.getpid() + file_hh = "_gecode_version_%d.hh" % pid + file_txt = "_gecode_version_%d.txt" % pid + f = file(file_hh,"w") + f.write("""#include "gecode/support/config.hpp" +@@GECODE_VERSION""") + f.close() + cxx.preprocess(file_hh,output_file=file_txt) + f = open(file_txt) + version = "" + for line in f: + if line.startswith("@@"): + version = line[3:-2] + break + f.close() + os.remove(file_hh) + os.remove(file_txt) + GECODE_VERSION = version + return version + +def generate_files(): + DIR = "../%s" % gecode_version() + import os, os.path + DIR = os.path.abspath(DIR) + if not os.path.exists(DIR): + os.mkdir(DIR) + filename = "gecode-prototypes-%s.hh" % gecode_version() + import sys + stdout = sys.stdout + try: + sys.stdout = file(os.path.join(DIR,"gecode-version.txt"),"w") + print gecode_version() + sys.stdout.close() + sys.stdout = file(os.path.join(DIR,"gecode_yap_auto_generated.yap"),"w") + prolog_print_notice() + YAPEnumPrologGenerator().generate() + YAPConstraintPrologGenerator(filename).generate() + sys.stdout.close() + sys.stdout = file(os.path.join(DIR,"gecode_yap_cc_impl_auto_generated.icc"),"w") + cc_print_notice() + YAPEnumImplGenerator().generate() + YAPConstraintCCGenerator(filename).generate_impl() + sys.stdout.close() + sys.stdout = file(os.path.join(DIR,"gecode_yap_cc_init_auto_generated.icc"),"w") + cc_print_notice() + YAPEnumInitGenerator().generate() + YAPConstraintCCGenerator(filename).generate_init() + sys.stdout.close() + sys.stdout = file(os.path.join(DIR,"gecode_yap_cc_forward_auto_generated.icc"),"w") + cc_print_notice() + YAPEnumForwardGenerator().generate() + sys.stdout.close() + finally: + sys.stdout = stdout + +if __name__ == '__main__': + generate_files() diff --git a/packages/gecode/dev/extractor/Doxyfile.in b/packages/gecode/dev/extractor/Doxyfile.in new file mode 100644 index 000000000..e20ff3563 --- /dev/null +++ b/packages/gecode/dev/extractor/Doxyfile.in @@ -0,0 +1,1716 @@ +# Doxyfile 1.7.4 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" "). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = Gecode + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer +# a quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify an logo or icon that is +# included in the documentation. The maximum height of the logo should not +# exceed 55 pixels and the maximum width should not exceed 200 pixels. +# Doxygen will copy the logo to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful if your file system +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this +# tag. The format is ext=language, where ext is a file extension, and language +# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, +# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make +# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C +# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions +# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also makes the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and +# unions are shown inside the group in which they are included (e.g. using +# @ingroup) instead of on a separate page (for HTML and Man pages) or +# section (for LaTeX and RTF). + +INLINE_GROUPED_CLASSES = NO + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penalty. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will roughly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespaces are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen +# will list include files with double quotes in the documentation +# rather than with sharp brackets. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen +# will sort the (brief and detailed) documentation of class members so that +# constructors and destructors are listed first. If set to NO (the default) +# the constructors will appear in the respective orders defined by +# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. +# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO +# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to +# do proper type resolution of all parameters of a function it will reject a +# match between the prototype and the implementation of a member function even +# if there is only one candidate or it is obvious which candidate to choose +# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen +# will still accept a match between prototype and implementation in such cases. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or macro consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and macros in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. The create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. +# You can optionally specify a file name after the option, if omitted +# DoxygenLayout.xml will be used as the name of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# The WARN_NO_PARAMDOC option can be enabled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = @GECODEDIR@ + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = ISO-8859-1 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh +# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py +# *.f90 *.f *.for *.vhd *.vhdl + +FILE_PATTERNS = *.hh *.hpp + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty or if +# non of the patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) +# and it is also possible to disable source filtering for a specific pattern +# using *.ext= (so without naming a filter). This option only has effect when +# FILTER_SOURCE_FILES is enabled. + +FILTER_SOURCE_PATTERNS = + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = YES + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = NO + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. Note that when using a custom header you are responsible +# for the proper inclusion of any scripts and style sheets that doxygen +# needs, which is dependent on the configuration options used. +# It is adviced to generate a default header using "doxygen -w html +# header.html footer.html stylesheet.css YourConfigFile" and then modify +# that header. Note that the header is subject to change so you typically +# have to redo this when upgrading to a newer version of doxygen or when changing the value of configuration settings such as GENERATE_TREEVIEW! + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that +# the files will be copied as-is; there are no commands or markers available. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. +# Doxygen will adjust the colors in the stylesheet and background images +# according to this color. Hue is specified as an angle on a colorwheel, +# see http://en.wikipedia.org/wiki/Hue for more information. +# For instance the value 0 represents red, 60 is yellow, 120 is green, +# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. +# The allowed range is 0 to 359. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of +# the colors in the HTML output. For a value of 0 the output will use +# grayscales only. A value of 255 will produce the most vivid colors. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to +# the luminance component of the colors in the HTML output. Values below +# 100 gradually make the output lighter, whereas values above 100 make +# the output darker. The value divided by 100 is the actual gamma applied, +# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, +# and 100 does not change the gamma. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting +# this to NO can help when comparing the output of multiple runs. + +HTML_TIMESTAMP = YES + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated +# that can be used as input for Qt's qhelpgenerator to generate a +# Qt Compressed Help (.qch) of the generated HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to +# add. For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see +# +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's +# filter section matches. +# +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files +# will be generated, which together with the HTML files, form an Eclipse help +# plugin. To install this plugin and make it available under the help contents +# menu in Eclipse, the contents of the directory containing the HTML and XML +# files needs to be copied into the plugins directory of eclipse. The name of +# the directory within the plugins directory should be the same as +# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before +# the help appears. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have +# this name. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values +# (range [0,1..20]) that doxygen will group on one line in the generated HTML +# documentation. Note that a value of 0 will completely suppress the enum +# values from appearing in the overview section. + +ENUM_VALUES_PER_LINE = 4 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open +# links to external symbols imported via tag files in a separate window. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are +# not supported properly for IE 6.0, but are supported on all modern browsers. +# Note that when changing this option you need to delete any form_*.png files +# in the HTML output before the changes have effect. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax +# (see http://www.mathjax.org) which uses client side Javascript for the +# rendering instead of using prerendered bitmaps. Use this if you do not +# have LaTeX installed or if you want to formulas look prettier in the HTML +# output. When enabled you also need to install MathJax separately and +# configure the path to it using the MATHJAX_RELPATH option. + +USE_MATHJAX = NO + +# When MathJax is enabled you need to specify the location relative to the +# HTML output directory using the MATHJAX_RELPATH option. The destination +# directory should contain the MathJax.js script. For instance, if the mathjax +# directory is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the +# mathjax.org site, so you can quickly see the result without installing +# MathJax, but it is strongly recommended to install a local copy of MathJax +# before deployment. + +MATHJAX_RELPATH = http://www.mathjax.org/mathjax + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box +# for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using +# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets +# (GENERATE_DOCSET) there is already a search function so this one should +# typically be disabled. For large projects the javascript based search engine +# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. + +SEARCHENGINE = YES + +# When the SERVER_BASED_SEARCH tag is enabled the search engine will be +# implemented using a PHP enabled web server instead of at the web client +# using Javascript. Doxygen will generate the search PHP script and index +# file to put on the web server. The advantage of the server +# based approach is that it scales better to large projects and allows +# full text search. The disadvantages are that it is more difficult to setup +# and does not have live searching capabilities. + +SERVER_BASED_SEARCH = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. +# Note that when enabling USE_PDFLATEX this option is only used for +# generating bitmaps for formulas in the HTML output, but not in the +# Makefile that is written to the output directory. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4 + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for +# the generated latex document. The footer should contain everything after +# the last chapter. If it is left blank doxygen will generate a +# standard footer. Notice: only use this tag if you know what you are doing! + +LATEX_FOOTER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = YES + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = YES + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include +# source code with syntax highlighting in the LaTeX output. +# Note that which sources are shown also depends on other settings +# such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = YES + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# pointed to by INCLUDE_PATH will be searched when a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition that +# overrules the definition found in the source code. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all references to function-like macros +# that are alone on a line, have an all uppercase name, and do not end with a +# semicolon, because these will confuse the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option also works with HAVE_DOT disabled, but it is recommended to +# install and use dot, since it yields more powerful graphs. + +CLASS_DIAGRAMS = NO + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = NO + +# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is +# allowed to run in parallel. When set to 0 (the default) doxygen will +# base this on the number of processors available in the system. You can set it +# explicitly to a value larger than 0 to get control over the balance +# between CPU load and processing speed. + +DOT_NUM_THREADS = 0 + +# By default doxygen will write a font called Helvetica to the output +# directory and reference it in all dot files that doxygen generates. +# When you want a differently looking font you can specify the font name +# using DOT_FONTNAME. You need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = Helvetica + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will generate a graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are svg, png, jpg, or gif. +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MSCFILE_DIRS tag can be used to specify one or more directories that +# contain msc files that are included in the documentation (see the +# \mscfile command). + +MSCFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/packages/gecode/dev/extractor/Makefile b/packages/gecode/dev/extractor/Makefile new file mode 100644 index 000000000..e45782ddc --- /dev/null +++ b/packages/gecode/dev/extractor/Makefile @@ -0,0 +1,36 @@ +GECODEDIR := $(shell g++ $(CPPFLAGS) $(CXXFLAGS) -H -E gecodedir.hh 2>&1 >/dev/null | grep gecode/kernel.hh | awk '{print $$2}' | sed 's|/kernel.hh||') +GECODECONFIG := $(GECODEDIR)/support/config.hpp +GECODEVERSION := $(shell cat $(GECODECONFIG) | egrep '\' | awk '{print $$3}' | sed 's/"//g') +PROTOTYPES = ../gecode-prototypes-$(GECODEVERSION).hh +ENUMS = ../gecode-enums-$(GECODEVERSION).py + +all: $(PROTOTYPES) $(ENUMS) + +$(PROTOTYPES): % : xml/namespaceGecode.xml extract-prototypes.xsl + cat notice.hh > $@ || { rm -f $@; exit 1; } + xsltproc extract-prototypes.xsl $< \ + | grep EXPORT \ + | grep -v Symmetry \ + | sed 's/Gecode:://g' \ + | sed 's/< //>/g' \ + | sed 's/ \&/\&/g' \ + | sed 's/, /,/g' \ + | sed 's/forceinline //g' \ + | sed 's/GECODE_INT_EXPORT //g' \ + | sed 's/GECODE_FLOAT_EXPORT //g' \ + | sed 's/GECODE_SET_EXPORT //g' \ + | grep -v '*' | sort >> $@ || { rm -f $@; exit 1; } + +$(ENUMS): % : xml/namespaceGecode.xml extract-enums.xsl + cat notice.py > $@ || { rm -f $@; exit 1; } + xsltproc extract-enums.xsl $< >> $@ || { rm -f $@; exit 1; } + +xml/namespaceGecode.xml: Doxyfile + doxygen Doxyfile + +Doxyfile: Doxyfile.in + cat $< | sed "s#@GECODEDIR@#$(GECODEDIR)#" > $@ || { rm -f $@; exit 1; } + +clean: + -rm -rf *~ gecode-prototypes-*.hh gecode-enums-*.py Doxyfile xml diff --git a/packages/gecode/dev/extractor/README b/packages/gecode/dev/extractor/README new file mode 100644 index 000000000..6a098164e --- /dev/null +++ b/packages/gecode/dev/extractor/README @@ -0,0 +1,2 @@ +This directory contains support code for automatically extracting +prototypes from the local Gecode installation. diff --git a/packages/gecode/dev/extractor/extract-enums.xsl b/packages/gecode/dev/extractor/extract-enums.xsl new file mode 100644 index 000000000..313e8d6f7 --- /dev/null +++ b/packages/gecode/dev/extractor/extract-enums.xsl @@ -0,0 +1,31 @@ + + + + ENUM_CLASSES = [] + + + + class + + (object): + + TYPE = ' + + ' + ENUM = [ + + , + ' + + ' + + ] + +ENUM_CLASSES.append( + + ) + + + + + diff --git a/packages/gecode/dev/extractor/extract-prototypes.xsl b/packages/gecode/dev/extractor/extract-prototypes.xsl new file mode 100644 index 000000000..7ceacbaf7 --- /dev/null +++ b/packages/gecode/dev/extractor/extract-prototypes.xsl @@ -0,0 +1,21 @@ + + + + + + + + + ( + , + + + = + + + + ); + + + + diff --git a/packages/gecode/dev/extractor/gecodedir.hh b/packages/gecode/dev/extractor/gecodedir.hh new file mode 100644 index 000000000..b3cc63621 --- /dev/null +++ b/packages/gecode/dev/extractor/gecodedir.hh @@ -0,0 +1 @@ +#include "gecode/kernel.hh" diff --git a/packages/gecode/dev/extractor/notice.hh b/packages/gecode/dev/extractor/notice.hh new file mode 100644 index 000000000..935fe8212 --- /dev/null +++ b/packages/gecode/dev/extractor/notice.hh @@ -0,0 +1,3 @@ +// This file was automatically extracted from Gecode source files. +// It is subject to the same Copyright as the source files from which +// it is derived, and is distributed under the same Licensing conditions. diff --git a/packages/gecode/dev/extractor/notice.py b/packages/gecode/dev/extractor/notice.py new file mode 100644 index 000000000..cdfd4d2cd --- /dev/null +++ b/packages/gecode/dev/extractor/notice.py @@ -0,0 +1,3 @@ +# This file was automatically extracted from Gecode source files. +# It is subject to the same Copyright as the source files from which +# it is derived, and is distributed under the same Licensing conditions. diff --git a/packages/gecode/dev/gecode-enums-3.6.0.py b/packages/gecode/dev/gecode-enums-3.6.0.py new file mode 100644 index 000000000..838a0deb2 --- /dev/null +++ b/packages/gecode/dev/gecode-enums-3.6.0.py @@ -0,0 +1,113 @@ +# This file was automatically extracted from Gecode source files. +# It is subject to the same Copyright as the source files from which +# it is derived, and is distributed under the same Licensing conditions. +ENUM_CLASSES = [] + +class ScriptMode(object): + TYPE = 'ScriptMode' + ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] + +ENUM_CLASSES.append(ScriptMode) + +class IntRelType(object): + TYPE = 'IntRelType' + ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] + +ENUM_CLASSES.append(IntRelType) + +class BoolOpType(object): + TYPE = 'BoolOpType' + ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] + +ENUM_CLASSES.append(BoolOpType) + +class IntConLevel(object): + TYPE = 'IntConLevel' + ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] + +ENUM_CLASSES.append(IntConLevel) + +class TaskType(object): + TYPE = 'TaskType' + ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] + +ENUM_CLASSES.append(TaskType) + +class ExtensionalPropKind(object): + TYPE = 'ExtensionalPropKind' + ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] + +ENUM_CLASSES.append(ExtensionalPropKind) + +class IntVarBranch(object): + TYPE = 'IntVarBranch' + ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] + +ENUM_CLASSES.append(IntVarBranch) + +class IntValBranch(object): + TYPE = 'IntValBranch' + ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] + +ENUM_CLASSES.append(IntValBranch) + +class IntAssign(object): + TYPE = 'IntAssign' + ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] + +ENUM_CLASSES.append(IntAssign) + +class ViewSelStatus(object): + TYPE = 'ViewSelStatus' + ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] + +ENUM_CLASSES.append(ViewSelStatus) + +class ExecStatus(object): + TYPE = 'ExecStatus' + ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] + +ENUM_CLASSES.append(ExecStatus) + +class ActorProperty(object): + TYPE = 'ActorProperty' + ENUM = ['AP_DISPOSE','AP_WEAKLY'] + +ENUM_CLASSES.append(ActorProperty) + +class SpaceStatus(object): + TYPE = 'SpaceStatus' + ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] + +ENUM_CLASSES.append(SpaceStatus) + +class SetRelType(object): + TYPE = 'SetRelType' + ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL'] + +ENUM_CLASSES.append(SetRelType) + +class SetOpType(object): + TYPE = 'SetOpType' + ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] + +ENUM_CLASSES.append(SetOpType) + +class SetVarBranch(object): + TYPE = 'SetVarBranch' + ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] + +ENUM_CLASSES.append(SetVarBranch) + +class SetValBranch(object): + TYPE = 'SetValBranch' + ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] + +ENUM_CLASSES.append(SetValBranch) + +class SetAssign(object): + TYPE = 'SetAssign' + ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] + +ENUM_CLASSES.append(SetAssign) + diff --git a/packages/gecode/dev/gecode-enums-3.7.0.py b/packages/gecode/dev/gecode-enums-3.7.0.py new file mode 100644 index 000000000..f2d84a057 --- /dev/null +++ b/packages/gecode/dev/gecode-enums-3.7.0.py @@ -0,0 +1,113 @@ +# This file was automatically extracted from Gecode source files. +# It is subject to the same Copyright as the source files from which +# it is derived, and is distributed under the same Licensing conditions. +ENUM_CLASSES = [] + +class ScriptMode(object): + TYPE = 'ScriptMode' + ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] + +ENUM_CLASSES.append(ScriptMode) + +class IntRelType(object): + TYPE = 'IntRelType' + ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] + +ENUM_CLASSES.append(IntRelType) + +class BoolOpType(object): + TYPE = 'BoolOpType' + ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] + +ENUM_CLASSES.append(BoolOpType) + +class IntConLevel(object): + TYPE = 'IntConLevel' + ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] + +ENUM_CLASSES.append(IntConLevel) + +class TaskType(object): + TYPE = 'TaskType' + ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] + +ENUM_CLASSES.append(TaskType) + +class ExtensionalPropKind(object): + TYPE = 'ExtensionalPropKind' + ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] + +ENUM_CLASSES.append(ExtensionalPropKind) + +class IntVarBranch(object): + TYPE = 'IntVarBranch' + ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] + +ENUM_CLASSES.append(IntVarBranch) + +class IntValBranch(object): + TYPE = 'IntValBranch' + ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] + +ENUM_CLASSES.append(IntValBranch) + +class IntAssign(object): + TYPE = 'IntAssign' + ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] + +ENUM_CLASSES.append(IntAssign) + +class ViewSelStatus(object): + TYPE = 'ViewSelStatus' + ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] + +ENUM_CLASSES.append(ViewSelStatus) + +class ExecStatus(object): + TYPE = 'ExecStatus' + ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] + +ENUM_CLASSES.append(ExecStatus) + +class ActorProperty(object): + TYPE = 'ActorProperty' + ENUM = ['AP_DISPOSE','AP_WEAKLY'] + +ENUM_CLASSES.append(ActorProperty) + +class SpaceStatus(object): + TYPE = 'SpaceStatus' + ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] + +ENUM_CLASSES.append(SpaceStatus) + +class SetRelType(object): + TYPE = 'SetRelType' + ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] + +ENUM_CLASSES.append(SetRelType) + +class SetOpType(object): + TYPE = 'SetOpType' + ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] + +ENUM_CLASSES.append(SetOpType) + +class SetVarBranch(object): + TYPE = 'SetVarBranch' + ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] + +ENUM_CLASSES.append(SetVarBranch) + +class SetValBranch(object): + TYPE = 'SetValBranch' + ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] + +ENUM_CLASSES.append(SetValBranch) + +class SetAssign(object): + TYPE = 'SetAssign' + ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] + +ENUM_CLASSES.append(SetAssign) + diff --git a/packages/gecode/dev/gecode-enums-3.7.1.py b/packages/gecode/dev/gecode-enums-3.7.1.py new file mode 100644 index 000000000..f2d84a057 --- /dev/null +++ b/packages/gecode/dev/gecode-enums-3.7.1.py @@ -0,0 +1,113 @@ +# This file was automatically extracted from Gecode source files. +# It is subject to the same Copyright as the source files from which +# it is derived, and is distributed under the same Licensing conditions. +ENUM_CLASSES = [] + +class ScriptMode(object): + TYPE = 'ScriptMode' + ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] + +ENUM_CLASSES.append(ScriptMode) + +class IntRelType(object): + TYPE = 'IntRelType' + ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] + +ENUM_CLASSES.append(IntRelType) + +class BoolOpType(object): + TYPE = 'BoolOpType' + ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] + +ENUM_CLASSES.append(BoolOpType) + +class IntConLevel(object): + TYPE = 'IntConLevel' + ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] + +ENUM_CLASSES.append(IntConLevel) + +class TaskType(object): + TYPE = 'TaskType' + ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] + +ENUM_CLASSES.append(TaskType) + +class ExtensionalPropKind(object): + TYPE = 'ExtensionalPropKind' + ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] + +ENUM_CLASSES.append(ExtensionalPropKind) + +class IntVarBranch(object): + TYPE = 'IntVarBranch' + ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] + +ENUM_CLASSES.append(IntVarBranch) + +class IntValBranch(object): + TYPE = 'IntValBranch' + ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] + +ENUM_CLASSES.append(IntValBranch) + +class IntAssign(object): + TYPE = 'IntAssign' + ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] + +ENUM_CLASSES.append(IntAssign) + +class ViewSelStatus(object): + TYPE = 'ViewSelStatus' + ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] + +ENUM_CLASSES.append(ViewSelStatus) + +class ExecStatus(object): + TYPE = 'ExecStatus' + ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] + +ENUM_CLASSES.append(ExecStatus) + +class ActorProperty(object): + TYPE = 'ActorProperty' + ENUM = ['AP_DISPOSE','AP_WEAKLY'] + +ENUM_CLASSES.append(ActorProperty) + +class SpaceStatus(object): + TYPE = 'SpaceStatus' + ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] + +ENUM_CLASSES.append(SpaceStatus) + +class SetRelType(object): + TYPE = 'SetRelType' + ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] + +ENUM_CLASSES.append(SetRelType) + +class SetOpType(object): + TYPE = 'SetOpType' + ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] + +ENUM_CLASSES.append(SetOpType) + +class SetVarBranch(object): + TYPE = 'SetVarBranch' + ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] + +ENUM_CLASSES.append(SetVarBranch) + +class SetValBranch(object): + TYPE = 'SetValBranch' + ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] + +ENUM_CLASSES.append(SetValBranch) + +class SetAssign(object): + TYPE = 'SetAssign' + ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] + +ENUM_CLASSES.append(SetAssign) + diff --git a/packages/gecode/dev/gecode-enums-3.7.2.py b/packages/gecode/dev/gecode-enums-3.7.2.py new file mode 100644 index 000000000..f2d84a057 --- /dev/null +++ b/packages/gecode/dev/gecode-enums-3.7.2.py @@ -0,0 +1,113 @@ +# This file was automatically extracted from Gecode source files. +# It is subject to the same Copyright as the source files from which +# it is derived, and is distributed under the same Licensing conditions. +ENUM_CLASSES = [] + +class ScriptMode(object): + TYPE = 'ScriptMode' + ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] + +ENUM_CLASSES.append(ScriptMode) + +class IntRelType(object): + TYPE = 'IntRelType' + ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] + +ENUM_CLASSES.append(IntRelType) + +class BoolOpType(object): + TYPE = 'BoolOpType' + ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] + +ENUM_CLASSES.append(BoolOpType) + +class IntConLevel(object): + TYPE = 'IntConLevel' + ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] + +ENUM_CLASSES.append(IntConLevel) + +class TaskType(object): + TYPE = 'TaskType' + ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] + +ENUM_CLASSES.append(TaskType) + +class ExtensionalPropKind(object): + TYPE = 'ExtensionalPropKind' + ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] + +ENUM_CLASSES.append(ExtensionalPropKind) + +class IntVarBranch(object): + TYPE = 'IntVarBranch' + ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] + +ENUM_CLASSES.append(IntVarBranch) + +class IntValBranch(object): + TYPE = 'IntValBranch' + ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] + +ENUM_CLASSES.append(IntValBranch) + +class IntAssign(object): + TYPE = 'IntAssign' + ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] + +ENUM_CLASSES.append(IntAssign) + +class ViewSelStatus(object): + TYPE = 'ViewSelStatus' + ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] + +ENUM_CLASSES.append(ViewSelStatus) + +class ExecStatus(object): + TYPE = 'ExecStatus' + ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] + +ENUM_CLASSES.append(ExecStatus) + +class ActorProperty(object): + TYPE = 'ActorProperty' + ENUM = ['AP_DISPOSE','AP_WEAKLY'] + +ENUM_CLASSES.append(ActorProperty) + +class SpaceStatus(object): + TYPE = 'SpaceStatus' + ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] + +ENUM_CLASSES.append(SpaceStatus) + +class SetRelType(object): + TYPE = 'SetRelType' + ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] + +ENUM_CLASSES.append(SetRelType) + +class SetOpType(object): + TYPE = 'SetOpType' + ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] + +ENUM_CLASSES.append(SetOpType) + +class SetVarBranch(object): + TYPE = 'SetVarBranch' + ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] + +ENUM_CLASSES.append(SetVarBranch) + +class SetValBranch(object): + TYPE = 'SetValBranch' + ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] + +ENUM_CLASSES.append(SetValBranch) + +class SetAssign(object): + TYPE = 'SetAssign' + ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] + +ENUM_CLASSES.append(SetAssign) + diff --git a/packages/gecode/dev/gecode-enums-3.7.3.py b/packages/gecode/dev/gecode-enums-3.7.3.py new file mode 100644 index 000000000..f2d84a057 --- /dev/null +++ b/packages/gecode/dev/gecode-enums-3.7.3.py @@ -0,0 +1,113 @@ +# This file was automatically extracted from Gecode source files. +# It is subject to the same Copyright as the source files from which +# it is derived, and is distributed under the same Licensing conditions. +ENUM_CLASSES = [] + +class ScriptMode(object): + TYPE = 'ScriptMode' + ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] + +ENUM_CLASSES.append(ScriptMode) + +class IntRelType(object): + TYPE = 'IntRelType' + ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] + +ENUM_CLASSES.append(IntRelType) + +class BoolOpType(object): + TYPE = 'BoolOpType' + ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] + +ENUM_CLASSES.append(BoolOpType) + +class IntConLevel(object): + TYPE = 'IntConLevel' + ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] + +ENUM_CLASSES.append(IntConLevel) + +class TaskType(object): + TYPE = 'TaskType' + ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] + +ENUM_CLASSES.append(TaskType) + +class ExtensionalPropKind(object): + TYPE = 'ExtensionalPropKind' + ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] + +ENUM_CLASSES.append(ExtensionalPropKind) + +class IntVarBranch(object): + TYPE = 'IntVarBranch' + ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] + +ENUM_CLASSES.append(IntVarBranch) + +class IntValBranch(object): + TYPE = 'IntValBranch' + ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] + +ENUM_CLASSES.append(IntValBranch) + +class IntAssign(object): + TYPE = 'IntAssign' + ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] + +ENUM_CLASSES.append(IntAssign) + +class ViewSelStatus(object): + TYPE = 'ViewSelStatus' + ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] + +ENUM_CLASSES.append(ViewSelStatus) + +class ExecStatus(object): + TYPE = 'ExecStatus' + ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] + +ENUM_CLASSES.append(ExecStatus) + +class ActorProperty(object): + TYPE = 'ActorProperty' + ENUM = ['AP_DISPOSE','AP_WEAKLY'] + +ENUM_CLASSES.append(ActorProperty) + +class SpaceStatus(object): + TYPE = 'SpaceStatus' + ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] + +ENUM_CLASSES.append(SpaceStatus) + +class SetRelType(object): + TYPE = 'SetRelType' + ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] + +ENUM_CLASSES.append(SetRelType) + +class SetOpType(object): + TYPE = 'SetOpType' + ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] + +ENUM_CLASSES.append(SetOpType) + +class SetVarBranch(object): + TYPE = 'SetVarBranch' + ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] + +ENUM_CLASSES.append(SetVarBranch) + +class SetValBranch(object): + TYPE = 'SetValBranch' + ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] + +ENUM_CLASSES.append(SetValBranch) + +class SetAssign(object): + TYPE = 'SetAssign' + ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] + +ENUM_CLASSES.append(SetAssign) + diff --git a/packages/gecode/dev/gecode-enums-4.0.0.py b/packages/gecode/dev/gecode-enums-4.0.0.py new file mode 100644 index 000000000..bebe9fa0d --- /dev/null +++ b/packages/gecode/dev/gecode-enums-4.0.0.py @@ -0,0 +1,119 @@ +# This file was automatically extracted from Gecode source files. +# It is subject to the same Copyright as the source files from which +# it is derived, and is distributed under the same Licensing conditions. +ENUM_CLASSES = [] + +class ScriptMode(object): + TYPE = 'ScriptMode' + ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] + +ENUM_CLASSES.append(ScriptMode) + +class ReifyMode(object): + TYPE = 'ReifyMode' + ENUM = ['RM_EQV','RM_IMP','RM_PMI'] + +ENUM_CLASSES.append(ReifyMode) + +class IntRelType(object): + TYPE = 'IntRelType' + ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] + +ENUM_CLASSES.append(IntRelType) + +class BoolOpType(object): + TYPE = 'BoolOpType' + ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] + +ENUM_CLASSES.append(BoolOpType) + +class IntConLevel(object): + TYPE = 'IntConLevel' + ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] + +ENUM_CLASSES.append(IntConLevel) + +class TaskType(object): + TYPE = 'TaskType' + ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] + +ENUM_CLASSES.append(TaskType) + +class ExtensionalPropKind(object): + TYPE = 'ExtensionalPropKind' + ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] + +ENUM_CLASSES.append(ExtensionalPropKind) + +class IntVarBranch(object): + TYPE = 'IntVarBranch' + ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] + +ENUM_CLASSES.append(IntVarBranch) + +class IntValBranch(object): + TYPE = 'IntValBranch' + ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] + +ENUM_CLASSES.append(IntValBranch) + +class IntAssign(object): + TYPE = 'IntAssign' + ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] + +ENUM_CLASSES.append(IntAssign) + +class ViewSelStatus(object): + TYPE = 'ViewSelStatus' + ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] + +ENUM_CLASSES.append(ViewSelStatus) + +class ExecStatus(object): + TYPE = 'ExecStatus' + ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] + +ENUM_CLASSES.append(ExecStatus) + +class ActorProperty(object): + TYPE = 'ActorProperty' + ENUM = ['AP_DISPOSE','AP_WEAKLY'] + +ENUM_CLASSES.append(ActorProperty) + +class SpaceStatus(object): + TYPE = 'SpaceStatus' + ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] + +ENUM_CLASSES.append(SpaceStatus) + +class SetRelType(object): + TYPE = 'SetRelType' + ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] + +ENUM_CLASSES.append(SetRelType) + +class SetOpType(object): + TYPE = 'SetOpType' + ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] + +ENUM_CLASSES.append(SetOpType) + +class SetVarBranch(object): + TYPE = 'SetVarBranch' + ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] + +ENUM_CLASSES.append(SetVarBranch) + +class SetValBranch(object): + TYPE = 'SetValBranch' + ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] + +ENUM_CLASSES.append(SetValBranch) + +class SetAssign(object): + TYPE = 'SetAssign' + ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] + +ENUM_CLASSES.append(SetAssign) + diff --git a/packages/gecode/dev/gecode-enums-4.2.0.py b/packages/gecode/dev/gecode-enums-4.2.0.py new file mode 100644 index 000000000..c1c631ee2 --- /dev/null +++ b/packages/gecode/dev/gecode-enums-4.2.0.py @@ -0,0 +1,95 @@ +# This file was automatically extracted from Gecode source files. +# It is subject to the same Copyright as the source files from which +# it is derived, and is distributed under the same Licensing conditions. +ENUM_CLASSES = [] + +class ScriptMode(object): + TYPE = 'ScriptMode' + ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] + +ENUM_CLASSES.append(ScriptMode) + +class RestartMode(object): + TYPE = 'RestartMode' + ENUM = ['RM_NONE','RM_CONSTANT','RM_LINEAR','RM_LUBY','RM_GEOMETRIC'] + +ENUM_CLASSES.append(RestartMode) + +class FloatRelType(object): + TYPE = 'FloatRelType' + ENUM = ['FRT_EQ','FRT_NQ','FRT_LQ','FRT_LE','FRT_GQ','FRT_GR'] + +ENUM_CLASSES.append(FloatRelType) + +class ReifyMode(object): + TYPE = 'ReifyMode' + ENUM = ['RM_EQV','RM_IMP','RM_PMI'] + +ENUM_CLASSES.append(ReifyMode) + +class IntRelType(object): + TYPE = 'IntRelType' + ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] + +ENUM_CLASSES.append(IntRelType) + +class BoolOpType(object): + TYPE = 'BoolOpType' + ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] + +ENUM_CLASSES.append(BoolOpType) + +class IntConLevel(object): + TYPE = 'IntConLevel' + ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] + +ENUM_CLASSES.append(IntConLevel) + +class TaskType(object): + TYPE = 'TaskType' + ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] + +ENUM_CLASSES.append(TaskType) + +class ExtensionalPropKind(object): + TYPE = 'ExtensionalPropKind' + ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] + +ENUM_CLASSES.append(ExtensionalPropKind) + +class ViewSelStatus(object): + TYPE = 'ViewSelStatus' + ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] + +ENUM_CLASSES.append(ViewSelStatus) + +class ExecStatus(object): + TYPE = 'ExecStatus' + ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] + +ENUM_CLASSES.append(ExecStatus) + +class ActorProperty(object): + TYPE = 'ActorProperty' + ENUM = ['AP_DISPOSE','AP_WEAKLY'] + +ENUM_CLASSES.append(ActorProperty) + +class SpaceStatus(object): + TYPE = 'SpaceStatus' + ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] + +ENUM_CLASSES.append(SpaceStatus) + +class SetRelType(object): + TYPE = 'SetRelType' + ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] + +ENUM_CLASSES.append(SetRelType) + +class SetOpType(object): + TYPE = 'SetOpType' + ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] + +ENUM_CLASSES.append(SetOpType) + diff --git a/packages/gecode/dev/gecode-prototypes-3.6.0.hh b/packages/gecode/dev/gecode-prototypes-3.6.0.hh new file mode 100644 index 000000000..8e5189e4a --- /dev/null +++ b/packages/gecode/dev/gecode-prototypes-3.6.0.hh @@ -0,0 +1,209 @@ +// This file was automatically extracted from Gecode source files. +// It is subject to the same Copyright as the source files from which +// it is derived, and is distributed under the same Licensing conditions. +void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void atmostOne(Home,const SetVarArgs&,unsigned int); +void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); +void cardinality(Home,SetVar,IntVar); +void cardinality(Home,SetVar,unsigned int,unsigned int); +void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,SetVar); +void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void channel(Home,const IntVarArgs&,const SetVarArgs&); +void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); +void channelSorted(Home,const IntVarArgs&,SetVar); +void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void convex(Home,SetVar); +void convex(Home,SetVar,SetVar); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); +void dom(Home,SetVar,SetRelType,const IntSet&); +void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); +void dom(Home,SetVar,SetRelType,int); +void dom(Home,SetVar,SetRelType,int,BoolVar); +void dom(Home,SetVar,SetRelType,int,int); +void dom(Home,SetVar,SetRelType,int,int,BoolVar); +void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const IntSetArgs&,IntVar,SetVar); +void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const SetVarArgs&,IntVar,SetVar); +void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void max(Home,SetVar,IntVar); +void max(Home,SetVar,IntVar,BoolVar); +void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void min(Home,SetVar,IntVar); +void min(Home,SetVar,IntVar,BoolVar); +void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void notMax(Home,SetVar,IntVar); +void notMin(Home,SetVar,IntVar); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void precede(Home,const SetVarArgs&,const IntArgs&); +void precede(Home,const SetVarArgs&,int,int); +void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar,BoolVar); +void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const IntVarArgs&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,SetVar); +void rel(Home,SetVar,IntRelType,IntVar); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,IntVar); +void rel(Home,SetVar,SetRelType,IntVar,BoolVar); +void rel(Home,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,SetVar,BoolVar); +void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const SetVarArgs&); +void sequence(Home,const SetVarArgs&,SetVar); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); +void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); +void weights(Home,const IntArgs&,const IntArgs&,SetVar,IntVar); diff --git a/packages/gecode/dev/gecode-prototypes-3.7.0.hh b/packages/gecode/dev/gecode-prototypes-3.7.0.hh new file mode 100644 index 000000000..a0120ac9d --- /dev/null +++ b/packages/gecode/dev/gecode-prototypes-3.7.0.hh @@ -0,0 +1,221 @@ +// This file was automatically extracted from Gecode source files. +// It is subject to the same Copyright as the source files from which +// it is derived, and is distributed under the same Licensing conditions. +void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void atmostOne(Home,const SetVarArgs&,unsigned int); +void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); +void cardinality(Home,SetVar,IntVar); +void cardinality(Home,SetVar,unsigned int,unsigned int); +void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,SetVar); +void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void channel(Home,const IntVarArgs&,const SetVarArgs&); +void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); +void channelSorted(Home,const IntVarArgs&,SetVar); +void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void convex(Home,SetVar); +void convex(Home,SetVar,SetVar); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); +void dom(Home,SetVar,SetRelType,const IntSet&); +void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); +void dom(Home,SetVar,SetRelType,int); +void dom(Home,SetVar,SetRelType,int,BoolVar); +void dom(Home,SetVar,SetRelType,int,int); +void dom(Home,SetVar,SetRelType,int,int,BoolVar); +void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const IntSetArgs&,IntVar,SetVar); +void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const SetVarArgs&,IntVar,SetVar); +void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void max(Home,SetVar,IntVar); +void max(Home,SetVar,IntVar,BoolVar); +void member(Home,const BoolVarArgs&,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void min(Home,SetVar,IntVar); +void min(Home,SetVar,IntVar,BoolVar); +void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void notMax(Home,SetVar,IntVar); +void notMin(Home,SetVar,IntVar); +void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void precede(Home,const SetVarArgs&,const IntArgs&); +void precede(Home,const SetVarArgs&,int,int); +void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar,BoolVar); +void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const IntVarArgs&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,SetVar); +void rel(Home,SetVar,IntRelType,IntVar); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,IntVar); +void rel(Home,SetVar,SetRelType,IntVar,BoolVar); +void rel(Home,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,SetVar,BoolVar); +void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const SetVarArgs&); +void sequence(Home,const SetVarArgs&,SetVar); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); +void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); +void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/packages/gecode/dev/gecode-prototypes-3.7.1.hh b/packages/gecode/dev/gecode-prototypes-3.7.1.hh new file mode 100644 index 000000000..a0120ac9d --- /dev/null +++ b/packages/gecode/dev/gecode-prototypes-3.7.1.hh @@ -0,0 +1,221 @@ +// This file was automatically extracted from Gecode source files. +// It is subject to the same Copyright as the source files from which +// it is derived, and is distributed under the same Licensing conditions. +void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void atmostOne(Home,const SetVarArgs&,unsigned int); +void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); +void cardinality(Home,SetVar,IntVar); +void cardinality(Home,SetVar,unsigned int,unsigned int); +void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,SetVar); +void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void channel(Home,const IntVarArgs&,const SetVarArgs&); +void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); +void channelSorted(Home,const IntVarArgs&,SetVar); +void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void convex(Home,SetVar); +void convex(Home,SetVar,SetVar); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); +void dom(Home,SetVar,SetRelType,const IntSet&); +void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); +void dom(Home,SetVar,SetRelType,int); +void dom(Home,SetVar,SetRelType,int,BoolVar); +void dom(Home,SetVar,SetRelType,int,int); +void dom(Home,SetVar,SetRelType,int,int,BoolVar); +void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const IntSetArgs&,IntVar,SetVar); +void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const SetVarArgs&,IntVar,SetVar); +void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void max(Home,SetVar,IntVar); +void max(Home,SetVar,IntVar,BoolVar); +void member(Home,const BoolVarArgs&,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void min(Home,SetVar,IntVar); +void min(Home,SetVar,IntVar,BoolVar); +void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void notMax(Home,SetVar,IntVar); +void notMin(Home,SetVar,IntVar); +void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void precede(Home,const SetVarArgs&,const IntArgs&); +void precede(Home,const SetVarArgs&,int,int); +void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar,BoolVar); +void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const IntVarArgs&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,SetVar); +void rel(Home,SetVar,IntRelType,IntVar); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,IntVar); +void rel(Home,SetVar,SetRelType,IntVar,BoolVar); +void rel(Home,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,SetVar,BoolVar); +void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const SetVarArgs&); +void sequence(Home,const SetVarArgs&,SetVar); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); +void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); +void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/packages/gecode/dev/gecode-prototypes-3.7.2.hh b/packages/gecode/dev/gecode-prototypes-3.7.2.hh new file mode 100644 index 000000000..a0120ac9d --- /dev/null +++ b/packages/gecode/dev/gecode-prototypes-3.7.2.hh @@ -0,0 +1,221 @@ +// This file was automatically extracted from Gecode source files. +// It is subject to the same Copyright as the source files from which +// it is derived, and is distributed under the same Licensing conditions. +void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void atmostOne(Home,const SetVarArgs&,unsigned int); +void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); +void cardinality(Home,SetVar,IntVar); +void cardinality(Home,SetVar,unsigned int,unsigned int); +void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,SetVar); +void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void channel(Home,const IntVarArgs&,const SetVarArgs&); +void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); +void channelSorted(Home,const IntVarArgs&,SetVar); +void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void convex(Home,SetVar); +void convex(Home,SetVar,SetVar); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); +void dom(Home,SetVar,SetRelType,const IntSet&); +void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); +void dom(Home,SetVar,SetRelType,int); +void dom(Home,SetVar,SetRelType,int,BoolVar); +void dom(Home,SetVar,SetRelType,int,int); +void dom(Home,SetVar,SetRelType,int,int,BoolVar); +void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const IntSetArgs&,IntVar,SetVar); +void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const SetVarArgs&,IntVar,SetVar); +void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void max(Home,SetVar,IntVar); +void max(Home,SetVar,IntVar,BoolVar); +void member(Home,const BoolVarArgs&,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void min(Home,SetVar,IntVar); +void min(Home,SetVar,IntVar,BoolVar); +void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void notMax(Home,SetVar,IntVar); +void notMin(Home,SetVar,IntVar); +void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void precede(Home,const SetVarArgs&,const IntArgs&); +void precede(Home,const SetVarArgs&,int,int); +void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar,BoolVar); +void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const IntVarArgs&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,SetVar); +void rel(Home,SetVar,IntRelType,IntVar); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,IntVar); +void rel(Home,SetVar,SetRelType,IntVar,BoolVar); +void rel(Home,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,SetVar,BoolVar); +void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const SetVarArgs&); +void sequence(Home,const SetVarArgs&,SetVar); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); +void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); +void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/packages/gecode/dev/gecode-prototypes-3.7.3.hh b/packages/gecode/dev/gecode-prototypes-3.7.3.hh new file mode 100644 index 000000000..a0120ac9d --- /dev/null +++ b/packages/gecode/dev/gecode-prototypes-3.7.3.hh @@ -0,0 +1,221 @@ +// This file was automatically extracted from Gecode source files. +// It is subject to the same Copyright as the source files from which +// it is derived, and is distributed under the same Licensing conditions. +void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void atmostOne(Home,const SetVarArgs&,unsigned int); +void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); +void cardinality(Home,SetVar,IntVar); +void cardinality(Home,SetVar,unsigned int,unsigned int); +void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,SetVar); +void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void channel(Home,const IntVarArgs&,const SetVarArgs&); +void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); +void channelSorted(Home,const IntVarArgs&,SetVar); +void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void convex(Home,SetVar); +void convex(Home,SetVar,SetVar); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); +void dom(Home,SetVar,SetRelType,const IntSet&); +void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); +void dom(Home,SetVar,SetRelType,int); +void dom(Home,SetVar,SetRelType,int,BoolVar); +void dom(Home,SetVar,SetRelType,int,int); +void dom(Home,SetVar,SetRelType,int,int,BoolVar); +void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const IntSetArgs&,IntVar,SetVar); +void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const SetVarArgs&,IntVar,SetVar); +void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void max(Home,SetVar,IntVar); +void max(Home,SetVar,IntVar,BoolVar); +void member(Home,const BoolVarArgs&,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void min(Home,SetVar,IntVar); +void min(Home,SetVar,IntVar,BoolVar); +void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void notMax(Home,SetVar,IntVar); +void notMin(Home,SetVar,IntVar); +void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void precede(Home,const SetVarArgs&,const IntArgs&); +void precede(Home,const SetVarArgs&,int,int); +void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar,BoolVar); +void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const IntVarArgs&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,SetVar); +void rel(Home,SetVar,IntRelType,IntVar); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,IntVar); +void rel(Home,SetVar,SetRelType,IntVar,BoolVar); +void rel(Home,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,SetVar,BoolVar); +void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const SetVarArgs&); +void sequence(Home,const SetVarArgs&,SetVar); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); +void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); +void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/packages/gecode/dev/gecode-prototypes-4.0.0.hh b/packages/gecode/dev/gecode-prototypes-4.0.0.hh new file mode 100644 index 000000000..8828b6cf3 --- /dev/null +++ b/packages/gecode/dev/gecode-prototypes-4.0.0.hh @@ -0,0 +1,222 @@ +// This file was automatically extracted from Gecode source files. +// It is subject to the same Copyright as the source files from which +// it is derived, and is distributed under the same Licensing conditions. +void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); +void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); +void atmostOne(Home,const SetVarArgs&,unsigned int); +void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); +void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); +void cardinality(Home,SetVar,IntVar); +void cardinality(Home,SetVar,unsigned int,unsigned int); +void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,SetVar); +void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void channel(Home,const IntVarArgs&,const SetVarArgs&); +void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void channel(Home,const SetVarArgs&,const SetVarArgs&); +void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); +void channelSorted(Home,const IntVarArgs&,SetVar); +void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void convex(Home,SetVar); +void convex(Home,SetVar,SetVar); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,Reify,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,Reify,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,Reify,IntConLevel=ICL_DEF); +void dom(Home,SetVar,SetRelType,const IntSet&); +void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); +void dom(Home,SetVar,SetRelType,int); +void dom(Home,SetVar,SetRelType,int,BoolVar); +void dom(Home,SetVar,SetRelType,int,int); +void dom(Home,SetVar,SetRelType,int,int,BoolVar); +void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const IntSetArgs&,IntVar,SetVar); +void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const SetVarArgs&,IntVar,SetVar); +void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); +void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void max(Home,SetVar,IntVar); +void max(Home,SetVar,IntVar,BoolVar); +void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const BoolVarArgs&,BoolVar,Reify,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,Reify,IntConLevel=ICL_DEF); +void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void min(Home,SetVar,IntVar); +void min(Home,SetVar,IntVar,BoolVar); +void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void notMax(Home,SetVar,IntVar); +void notMin(Home,SetVar,IntVar); +void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void precede(Home,const SetVarArgs&,const IntArgs&); +void precede(Home,const SetVarArgs&,int,int); +void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,Reify,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar,BoolVar); +void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const IntVarArgs&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,SetVar); +void rel(Home,SetVar,IntRelType,IntVar); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,IntVar); +void rel(Home,SetVar,SetRelType,IntVar,BoolVar); +void rel(Home,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,SetVar,BoolVar); +void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const SetVarArgs&); +void sequence(Home,const SetVarArgs&,SetVar); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); +void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); +void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/packages/gecode/dev/gecode-prototypes-4.2.0.hh b/packages/gecode/dev/gecode-prototypes-4.2.0.hh new file mode 100644 index 000000000..8fe67ddf5 --- /dev/null +++ b/packages/gecode/dev/gecode-prototypes-4.2.0.hh @@ -0,0 +1,280 @@ +// This file was automatically extracted from Gecode source files. +// It is subject to the same Copyright as the source files from which +// it is derived, and is distributed under the same Licensing conditions. +BrancherHandle assign(Home,BoolVar,IntAssign,BoolVarValPrint=NULL); +BrancherHandle assign(Home,const BoolVarArgs&,IntAssign,BoolBranchFilter=NULL,BoolVarValPrint=NULL); +BrancherHandle assign(Home,const FloatVarArgs&,FloatAssign,FloatBranchFilter=NULL,FloatVarValPrint=NULL); +BrancherHandle assign(Home,const IntVarArgs&,IntAssign,IntBranchFilter=NULL,IntVarValPrint=NULL); +BrancherHandle assign(Home,const SetVarArgs&,SetAssign,SetBranchFilter=NULL,SetVarValPrint=NULL); +BrancherHandle assign(Home,FloatVar,FloatAssign,FloatVarValPrint=NULL); +BrancherHandle assign(Home,IntVar,IntAssign,IntVarValPrint=NULL); +BrancherHandle assign(Home,SetVar,SetAssign,SetVarValPrint=NULL); +BrancherHandle branch(Home,BoolVar,IntValBranch,BoolVarValPrint=NULL); +BrancherHandle branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,BoolBranchFilter=NULL,BoolVarValPrint=NULL); +BrancherHandle branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const Symmetries&,BoolBranchFilter=NULL,BoolVarValPrint=NULL); +BrancherHandle branch(Home,const BoolVarArgs&,TieBreak,IntValBranch,BoolBranchFilter=NULL,BoolVarValPrint=NULL); +BrancherHandle branch(Home,const BoolVarArgs&,TieBreak,IntValBranch,const Symmetries&,BoolBranchFilter=NULL,BoolVarValPrint=NULL); +BrancherHandle branch(Home,const FloatVarArgs&,FloatVarBranch,FloatValBranch,FloatBranchFilter=NULL,FloatVarValPrint=NULL); +BrancherHandle branch(Home,const FloatVarArgs&,TieBreak,FloatValBranch,FloatBranchFilter=NULL,FloatVarValPrint=NULL); +BrancherHandle branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const Symmetries&,IntBranchFilter=NULL,IntVarValPrint=NULL); +BrancherHandle branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,IntBranchFilter=NULL,IntVarValPrint=NULL); +BrancherHandle branch(Home,const IntVarArgs&,TieBreak,IntValBranch,const Symmetries&,IntBranchFilter=NULL,IntVarValPrint=NULL); +BrancherHandle branch(Home,const IntVarArgs&,TieBreak,IntValBranch,IntBranchFilter=NULL,IntVarValPrint=NULL); +BrancherHandle branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const Symmetries&,SetBranchFilter=NULL,SetVarValPrint=NULL); +BrancherHandle branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,SetBranchFilter=NULL,SetVarValPrint=NULL); +BrancherHandle branch(Home,const SetVarArgs&,TieBreak,SetValBranch,const Symmetries&,SetBranchFilter=NULL,SetVarValPrint=NULL); +BrancherHandle branch(Home,const SetVarArgs&,TieBreak,SetValBranch,SetBranchFilter=NULL,SetVarValPrint=NULL); +BrancherHandle branch(Home,FloatVar,FloatValBranch,FloatVarValPrint=NULL); +BrancherHandle branch(Home,IntVar,IntValBranch,IntVarValPrint=NULL); +BrancherHandle branch(Home,SetVar,SetValBranch,SetVarValPrint=NULL); +void abs(Home,FloatVar,FloatVar); +void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void atmostOne(Home,const SetVarArgs&,unsigned int); +void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cardinality(Home,const SetVarArgs&,unsigned int,unsigned int); +void cardinality(Home,SetVar,IntVar); +void cardinality(Home,SetVar,unsigned int,unsigned int); +void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); +void channel(Home,const BoolVarArgs&,SetVar); +void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void channel(Home,const IntVarArgs&,const SetVarArgs&); +void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void channel(Home,const SetVarArgs&,const SetVarArgs&); +void channel(Home,FloatVar,IntVar); +void channel(Home,IntVar,FloatVar); +void channelSorted(Home,const IntVarArgs&,SetVar); +void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void convex(Home,SetVar); +void convex(Home,SetVar,SetVar); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); +void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); +void div(Home,FloatVar,FloatVar,FloatVar); +void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void dom(Home,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void dom(Home,const BoolVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void dom(Home,const FloatVarArgs&,const FloatVarArgs&); +void dom(Home,const FloatVarArgs&,FloatNum,FloatNum); +void dom(Home,const FloatVarArgs&,FloatVal); +void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); +void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void dom(Home,const SetVarArgs&,const SetVarArgs&); +void dom(Home,const SetVarArgs&,SetRelType,const IntSet&); +void dom(Home,const SetVarArgs&,SetRelType,int); +void dom(Home,const SetVarArgs&,SetRelType,int,int); +void dom(Home,FloatVar,FloatNum,FloatNum); +void dom(Home,FloatVar,FloatNum,FloatNum,Reify); +void dom(Home,FloatVar,FloatVal); +void dom(Home,FloatVar,FloatVal,Reify); +void dom(Home,FloatVar,FloatVar); +void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); +void dom(Home,IntVar,const IntSet&,Reify,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,int,Reify,IntConLevel=ICL_DEF); +void dom(Home,IntVar,int,Reify,IntConLevel=ICL_DEF); +void dom(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void dom(Home,SetVar,SetRelType,const IntSet&); +void dom(Home,SetVar,SetRelType,const IntSet&,Reify); +void dom(Home,SetVar,SetRelType,int); +void dom(Home,SetVar,SetRelType,int,int); +void dom(Home,SetVar,SetRelType,int,int,Reify); +void dom(Home,SetVar,SetRelType,int,Reify); +void dom(Home,SetVar,SetVar); +void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const IntSetArgs&,IntVar,SetVar); +void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); +void element(Home,const SetVarArgs&,IntVar,SetVar); +void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); +void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); +void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); +void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); +void ite(Home,BoolVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const BoolVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); +void linear(Home,const FloatValArgs&,const FloatVarArgs&,FloatRelType,FloatNum); +void linear(Home,const FloatValArgs&,const FloatVarArgs&,FloatRelType,FloatNum,Reify); +void linear(Home,const FloatValArgs&,const FloatVarArgs&,FloatRelType,FloatVar); +void linear(Home,const FloatValArgs&,const FloatVarArgs&,FloatRelType,FloatVar,Reify); +void linear(Home,const FloatVarArgs&,FloatRelType,FloatNum); +void linear(Home,const FloatVarArgs&,FloatRelType,FloatNum,Reify); +void linear(Home,const FloatVarArgs&,FloatRelType,FloatVar); +void linear(Home,const FloatVarArgs&,FloatRelType,FloatVar,Reify); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void linear(Home,const IntVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); +void max(Home,const FloatVarArgs&,FloatVar); +void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void max(Home,FloatVar,FloatVar,FloatVar); +void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void max(Home,SetVar,IntVar); +void max(Home,SetVar,IntVar,Reify); +void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void member(Home,const BoolVarArgs&,BoolVar,Reify,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void member(Home,const IntVarArgs&,IntVar,Reify,IntConLevel=ICL_DEF); +void min(Home,const FloatVarArgs&,FloatVar); +void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void min(Home,FloatVar,FloatVar,FloatVar); +void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void min(Home,SetVar,IntVar); +void min(Home,SetVar,IntVar,Reify); +void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void mult(Home,FloatVar,FloatVar,FloatVar); +void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void notMax(Home,SetVar,IntVar); +void notMin(Home,SetVar,IntVar); +void nroot(Home,FloatVar,int,FloatVar); +void nroot(Home,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); +void pow(Home,FloatVar,int,FloatVar); +void pow(Home,IntVar,int,IntVar,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); +void precede(Home,const SetVarArgs&,const IntArgs&); +void precede(Home,const SetVarArgs&,int,int); +void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,BoolVar,Reify,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,BoolVar,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const FloatVarArgs&,FloatRelType,FloatVal); +void rel(Home,const FloatVarArgs&,FloatRelType,FloatVar); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,FloatVar,FloatRelType,FloatVal); +void rel(Home,FloatVar,FloatRelType,FloatVal,Reify); +void rel(Home,FloatVar,FloatRelType,FloatVar); +void rel(Home,FloatVar,FloatRelType,FloatVar,Reify); +void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,int,Reify,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); +void rel(Home,IntVar,IntRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar); +void rel(Home,IntVar,SetRelType,SetVar,Reify); +void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const IntVarArgs&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); +void rel(Home,SetOpType,const SetVarArgs&,SetVar); +void rel(Home,SetVar,IntRelType,IntVar); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); +void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,IntVar); +void rel(Home,SetVar,SetRelType,IntVar,Reify); +void rel(Home,SetVar,SetRelType,SetVar); +void rel(Home,SetVar,SetRelType,SetVar,Reify); +void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); +void sequence(Home,const SetVarArgs&); +void sequence(Home,const SetVarArgs&,SetVar); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void sqr(Home,FloatVar,FloatVar); +void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void sqrt(Home,FloatVar,FloatVar); +void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); +void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); +void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); +void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); +void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/packages/gecode/disjunctor.hh b/packages/gecode/disjunctor.hh new file mode 100644 index 000000000..6fc2d445d --- /dev/null +++ b/packages/gecode/disjunctor.hh @@ -0,0 +1,156 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +#ifndef __GECODE_DISJUNCTOR_HH__ +#define __GECODE_DISJUNCTOR_HH__ + +#include +#include +#include + +namespace Gecode { namespace Disjunctor_ { + + using namespace generic_gecode; + + //========================================================================= + // from a user perspective, a Disjunctor corresponds to a set of + // speculative clauses: + // + // - when a non-committed clause fails, it is simply discarded + // - when a single clause remains, it is committed + // + // from an implementation perspective, a Disjunctor is an object shared by + // several clauses, that contains a counter keeping track of how many + // clauses remain. when the counter reaches 1, the remaining clause + // becomes committed. + //========================================================================= + + // following the example in MPG + struct Disjunctor: public LocalHandle + { + Disjunctor(); + Disjunctor(Space& home); + Disjunctor(const Disjunctor& d); + int get() const; + void incr(); + void decr(); + void dispose(Space& home); + }; + + //========================================================================= + // a Clause encapsulates the speculative execution of a set of propagators. + // Therefore, these propagators must be posted in a separate (sub)space. + // However they normally want to constrain variables of the original home + // space: for each such variable X, a variable Y local to the subspace must + // be created and used instead, and a forwarder must be created from X to + // Y. A Clause is then a Propagator that subscribes to the Xs. Whenever a + // X changes, the domains of the Xs are forwarded into the Ys and + // constraint propagation is run in the subspace. When a clause is + // committed, after propagation, the domains of Ys are forwarded back into + // the Xs. + //========================================================================= + + // TODO: copy (difficulty is forwarder list) + + class SubSpace; + + class Clause: public Propagator { + Disjunctor disj; + SubSpace*const subhome; + public: + Clause(Space& home_, Disjunctor disj_); + Clause(Space& home, bool share, Clause& c); + virtual Propagator* copy(Space& home, bool share); + virtual size_t dispose(Space& home); + virtual PropCost cost(const Space&, const ModEventDelta&) const; + virtual ExecStatus propagate(Space& home, const ModEventDelta&); + // user API + operator GenericSpace&(); + operator Space&(); + operator Home(); + GenericSpace* generic_space() const; + Space* space() const; + void forward(Space& home, IntVar outer, IntVar inner); + void forward(Space& home, BoolVar outer, BoolVar inner); + void forward(Space& home, SetVar outer, SetVar inner); + protected: + ExecStatus forward_in(); + ExecStatus forward_out(Space& outer_home); + bool committed() const; + }; + + //========================================================================= + // a SubSpace is the Space associated with a Clause. It also contains the + // forwarder linked-list because we want it to manage the memory for that + // list. + //========================================================================= + + class BasicForwarder; + using Int::IntView; + using Int::BoolView; + using Set::SetView; + + class SubSpace: public GenericSpace + { + private: + Space* homeDuringCloning; + // linked-list of pairs of a variable in the parent space and a + // corresponding variable in the subspace + BasicForwarder* forwarder; + // auxiliary methods for adding an entry to the forwarder list + void forward(IntView outer, IntView inner); + void forward(BoolView outer, BoolView inner); + void forward(SetView outer, SetView inner); + // for forwarding domains into and out of the subhome + ExecStatus forward_in(); + ExecStatus forward_out(Space&); + // for cancelling subscriptions + void cancel(Space& home, Clause&); + // allow Clause to use this private API + friend class Clause; + public: + SubSpace(); + SubSpace(bool share, SubSpace& s); + virtual Space* copy(bool share); + SubSpace* copy(Space& home, bool share); + }; +}} + +namespace Gecode +{ + using Disjunctor_::Disjunctor; + + class Clause + { + generic_gecode::GenericSpace& _home; + Disjunctor_::Clause* _clause; + public: + Clause(generic_gecode::GenericSpace& home, Disjunctor disj); + operator generic_gecode::GenericSpace&(); + operator Space&(); + operator Home(); + generic_gecode::GenericSpace* generic_space(); + generic_gecode::GenericSpace* generic_parent(); + Space* space(); + void forward(IntVar outer, IntVar inner); + void forward(BoolVar outer, BoolVar inner); + void forward(SetVar outer, SetVar inner); + }; +} + +#endif diff --git a/packages/gecode/disjunctor.icc b/packages/gecode/disjunctor.icc new file mode 100644 index 000000000..3e1d41285 --- /dev/null +++ b/packages/gecode/disjunctor.icc @@ -0,0 +1,380 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= +#include "disjunctor.hh" + +namespace Gecode { namespace Disjunctor_ { + + //========================================================================= + // Disjunctor (following example in MPG) + //========================================================================= + + struct DisjunctorObject: public LocalObject + { + int n; + DisjunctorObject(Space& home) : LocalObject(home), n(0) {} + DisjunctorObject(Space& home, bool share, DisjunctorObject& d) + : LocalObject(home, share, d), n(d.n) {} + virtual LocalObject* copy(Space& home, bool share) + { return new (home) DisjunctorObject(home, share, *this); } + virtual size_t dispose(Space&) { return sizeof(*this); } + }; + + Disjunctor::Disjunctor(): LocalHandle() {} + Disjunctor::Disjunctor(Space& home) + : LocalHandle(new (home) DisjunctorObject(home)) {} + Disjunctor::Disjunctor(const Disjunctor& d): LocalHandle(d) {} + int Disjunctor::get() const { return static_cast(object())->n; } + void Disjunctor::incr() { static_cast(object())->n += 1; } + void Disjunctor::decr() { static_cast(object())->n -= 1; } + void Disjunctor::dispose(Space& home) + { static_cast(object())->dispose(home); } + + //========================================================================= + // Forwarder + // used to forward the domain of a view V1 into a view V2 located in a + // subspace (the subspace of a speculative clause). V2 represents V1 in + // that space. + // + // BasicForwarder + // base class of all Forwarders. It declares the virtual functions + // that must be implemented to do the actual work, and contains the pointer + // implementing the singly-linked list of Forwarders associated with each + // clause. It also redefines new and delete to manage memory in the + // subspace. + //========================================================================= + + struct BasicForwarder + { + BasicForwarder* next; + + BasicForwarder() : next(NULL) {} + + // forward V1's domain into V2. This is used each time the Clause (as a + // a propagator) is woken to perform propagation. + + virtual ExecStatus forward_in(Space& inner_home) = 0; + + // forward V2's domain into V1. This is used after propagation in the + // case where the Clause has been committed to (because it is the last + // one remaining). + + virtual void forward_out(Space& outer_home) = 0; + + // needed by delete to know how much to free + virtual size_t size() const = 0; + + // usage: new (home) FRWRDR(...); + // to allocate the instance of FRWRDR on home's heap + + static void* operator new(size_t n, Space& home) + { return home.ralloc(n); } + + // usage: delete (home) PTR; + // to free the instance pointed to by PTR from home's heap + + static void operator delete(void* ptr, Space& home) + { home.rfree(ptr, ((BasicForwarder*)ptr)->size()); } + + virtual BasicForwarder* + copy(Space& outer_home, Space& inner_home, bool share) = 0; + + virtual void cancel(Space& home, Clause&) = 0; + }; + + // Forwarder parametrized by View + + template + struct Forwarder: public BasicForwarder + { + View outer; + View inner; + Forwarder(View v1, View v2): outer(v1), inner(v2) {} + Forwarder() {} + virtual ExecStatus forward_in(Space& home); + virtual void forward_out(Space& home); + virtual size_t size() const { return sizeof(*this); } + virtual BasicForwarder* copy(Space& outer_home, Space& inner_home, bool share) + { + Forwarder* fwd = new (inner_home) Forwarder(); + fwd->outer.update(outer_home, share, outer); + fwd->inner.update(inner_home, share, inner); + return fwd; + } + virtual void cancel(Space& home, Clause& c); + }; + + // instances of Forwarder that we actually use + + typedef Forwarder IntForwarder; + typedef Forwarder BoolForwarder; + typedef Forwarder SetForwarder; + + //========================================================================= + // IntForwarder + //========================================================================= + + template <> + ExecStatus IntForwarder::forward_in(Space& home) // inner home + { + Int::ViewRanges r(outer); + GECODE_ME_CHECK(inner.inter_r(home,r)); + return ES_OK; + } + + template <> + void IntForwarder::forward_out(Space& home) // outer home + { + // it is guaranteed by design that after successful propagation the + // domain of the inner variable is a non-empty narrowing of the domain of + // the outer variable. therefore, we can simply replace the domain of + // the outer variable with the domain of the inner variable. + Int::ViewRanges r(inner); + outer.narrow_r(home, r, false); + } + + template <> + void IntForwarder::cancel(Space& home, Clause& c) + { outer.cancel(home, c, Int::PC_INT_DOM); } + + //========================================================================= + // BoolForwarder + //========================================================================= + + template <> + ExecStatus BoolForwarder::forward_in(Space& home) + { + Int::ViewRanges r(outer); + GECODE_ME_CHECK(inner.inter_r(home,r)); + return ES_OK; + } + + template <> + void BoolForwarder::forward_out(Space& home) + { + Int::ViewRanges r(inner); + outer.narrow_r(home, r, false); + } + + template <> + void BoolForwarder::cancel(Space& home, Clause& c) + { outer.cancel(home, c, Int::PC_INT_DOM); } + + //========================================================================= + // SetForwarder + //========================================================================= + + template <> + ExecStatus SetForwarder::forward_in(Space& home) + { + Set::GlbRanges gr(outer); + GECODE_ME_CHECK(inner.includeI(home,gr)); + Set::LubRanges lr(outer); + GECODE_ME_CHECK(inner.intersectI(home,lr)); + GECODE_ME_CHECK(inner.cardMin(home, outer.cardMin())); + GECODE_ME_CHECK(inner.cardMax(home, outer.cardMax())); + return ES_OK; + } + + template <> + void SetForwarder::forward_out(Space& home) + { + Set::GlbRanges gr(inner); + outer.includeI(home, gr); + Set::LubRanges lr(inner); + outer.intersectI(home, lr); + outer.cardMin(home, inner.cardMin()); + outer.cardMax(home, inner.cardMax()); + } + + template <> + void SetForwarder::cancel(Space& home, Clause& c) + { outer.cancel(home, c, Set::PC_SET_ANY); } + + //========================================================================= + // SubSpace + //========================================================================= + + void SubSpace::forward(IntView outer, IntView inner) + { + BasicForwarder* fwd = new (*this) IntForwarder(outer, inner); + fwd->next = forwarder; + forwarder = fwd; + } + + void SubSpace::forward(BoolView outer, BoolView inner) + { + BasicForwarder* fwd = new (*this) BoolForwarder(outer, inner); + fwd->next = forwarder; + forwarder = fwd; + } + + void SubSpace::forward(SetView outer, SetView inner) + { + BasicForwarder* fwd = new (*this) SetForwarder(outer, inner); + fwd->next = forwarder; + forwarder = fwd; + } + + ExecStatus SubSpace::forward_in() + { + for (BasicForwarder* p=forwarder; p!=NULL; p=p->next) + GECODE_ES_CHECK(p->forward_in(*this)); + return ES_OK; + } + + ExecStatus SubSpace::forward_out(Space& home) // outer home + { + for (BasicForwarder* p=forwarder; p!=NULL; p=p->next) + p->forward_out(home); + return ES_OK; + } + + SubSpace::SubSpace(): GenericSpace(), forwarder(NULL) {} + + SubSpace::SubSpace(bool share, SubSpace& s) + : GenericSpace(share, s), forwarder(NULL) + { + BasicForwarder** prev = &forwarder; + for (BasicForwarder* p=s.forwarder; p!=NULL; p=p->next) + { + BasicForwarder* fwd = p->copy(*s.homeDuringCloning, *this, share); + *prev = fwd; + prev = &fwd->next; + } + } + + Space* SubSpace::copy(bool share) + { return new SubSpace(share,*this); } + + SubSpace* SubSpace::copy(Space& home, bool share) + { homeDuringCloning = &home; return static_cast(clone(share)); } + + void SubSpace::cancel(Space& home, Clause& c) + { + for (BasicForwarder*p = forwarder; p!=NULL; p=p->next) + p->cancel(home, c); + } + + //========================================================================= + // Clause + //========================================================================= + + Clause::operator GenericSpace&() { return *subhome; } + Clause::operator Space&() { return *subhome; } + Clause::operator Home() { return *subhome; } + + GenericSpace* Clause::generic_space() const { return subhome; } + Space* Clause::space() const { return subhome; } + + Clause::Clause(Space& home_, Disjunctor disj_) + : Propagator(home_), disj(disj_), subhome(new SubSpace()) + { + disj.incr(); + } + + Clause::Clause(Space& home, bool share, Clause& c) + : Propagator(home, share, c), subhome(c.subhome->copy(home, share)) + { + disj.update(home, share, c.disj); + } + + Propagator* Clause::copy(Space& home, bool share) + { return new (home) Clause(home, share, *this); } + + void Clause::forward(Space& home, IntVar outer, IntVar inner) + { + IntView oview(outer); + IntView iview(inner); + subhome->forward(oview, iview); + oview.subscribe(home, *this, Int::PC_INT_DOM); + } + + void Clause::forward(Space& home, BoolVar outer, BoolVar inner) + { + BoolView oview(outer); + BoolView iview(inner); + subhome->forward(oview, iview); + oview.subscribe(home, *this, Int::PC_INT_DOM); + } + + void Clause::forward(Space& home, SetVar outer, SetVar inner) + { + SetView oview(outer); + SetView iview(inner); + subhome->forward(oview, iview); + oview.subscribe(home, *this, Set::PC_SET_ANY); + } + + ExecStatus Clause::forward_in() + { return subhome->forward_in(); } + + ExecStatus Clause::forward_out(Space& home) // outer home + { return subhome->forward_out(home); } + + inline bool Clause::committed() const { return disj.get() == 1; } + + ExecStatus Clause::propagate(Space& home, const ModEventDelta&) + { + if (forward_in() == ES_FAILED || + subhome->status() == SS_FAILED ) + { + if (committed()) return ES_FAILED; + disj.decr(); + return home.ES_SUBSUMED(*this); + } + if (committed()) forward_out(home); + // maybe do something clever about subsumption later + return ES_FIX; + } + + size_t Clause::dispose(Space& home) + { + subhome->cancel(home, *this); + delete subhome; + // the memory for the disj's LocalObject is not recovered + (void) Propagator::dispose(home); + return sizeof(*this); + } + + PropCost Clause::cost(const Space&, const ModEventDelta&) const + { + // consider a clause to be crazy expensive + return PropCost::crazy(PropCost::HI,10); + } +} + + //=========================================================================== + // Clause (user API) + //=========================================================================== + + Clause::Clause(generic_gecode::GenericSpace& home, Disjunctor disj) + : _home(home), _clause(new (home) Disjunctor_::Clause(home, disj)) {} + Clause::operator generic_gecode::GenericSpace&() { return *_clause; } + Clause::operator Space&() { return *_clause; } + Clause::operator Home() { return *_clause; } + generic_gecode::GenericSpace* Clause::generic_space() { return _clause->generic_space(); } + generic_gecode::GenericSpace* Clause::generic_parent() { return &_home; } + Space* Clause::space() { return _clause->space(); } + void Clause::forward(IntVar outer, IntVar inner) + { _clause->forward(_home, outer, inner); } + void Clause::forward(BoolVar outer, BoolVar inner) + { _clause->forward(_home, outer, inner); } + void Clause::forward(SetVar outer, SetVar inner) + { _clause->forward(_home, outer, inner); } + +} diff --git a/packages/gecode/disjunctor1.yap b/packages/gecode/disjunctor1.yap new file mode 100644 index 000000000..4c8eae91f --- /dev/null +++ b/packages/gecode/disjunctor1.yap @@ -0,0 +1,37 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +:- use_module(library(gecode)). + +disjunctor1(X_,Y_) :- + Space := space, + [X,Y] := intvars(Space,2,0,3), + D := disjunctor(Space), + C1 := clause(D), + [X1,Y1] := intvars(C1,2,0,3), + C1 += rel(X1,'IRT_EQ',1), + C1 += rel(Y1,'IRT_EQ',1), + C1 += forward([X,Y],[X1,Y1]), + C2 := clause(D), + [X2,Y2] := intvars(C2,2,0,3), + C2 += rel(X2,'IRT_EQ',2), + C2 += rel(Y2,'IRT_EQ',2), + C2 += forward([X,Y],[X2,Y2]), + Space += branch([X,Y],'INT_VAR_SIZE_MIN','INT_VAL_MIN'), + SolSpace := search(Space), + [X_,Y_] := val(SolSpace,[X,Y]). diff --git a/packages/gecode/disjunctor2.yap b/packages/gecode/disjunctor2.yap new file mode 100644 index 000000000..bfbbdc13b --- /dev/null +++ b/packages/gecode/disjunctor2.yap @@ -0,0 +1,37 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +:- use_module(library(gecode)). + +disjunctor2(X_,Y_) :- + Space := space, + [X,Y] := intvars(Space,2,0,3), + D := disjunctor(Space), + C1 := clause(D), + [X1,Y1] := intvars(C1,2,0,3), + C1 += forward([X,Y],[X1,Y1]), + C1 += rel(X1,'IRT_EQ',0), + C1 += rel(Y1,'IRT_EQ',0), + C2 := clause(D), + [X2,Y2] := intvars(C2,2,0,3), + C2 += forward([X,Y],[X2,Y2]), + Z2 := intvar(C2,1,2), + C2 += linear([-1,1,1],[X2,Y2,Z2],'IRT_EQ',0), + Space += branch([X,Y],'INT_VAR_SIZE_MIN','INT_VAL_MIN'), + SolSpace := search(Space), + [X_,Y_] := val(SolSpace,[X,Y]). diff --git a/packages/gecode/examples/photo.yap b/packages/gecode/examples/photo.yap new file mode 100644 index 000000000..da33819b9 --- /dev/null +++ b/packages/gecode/examples/photo.yap @@ -0,0 +1,80 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +:- use_module(library(gecode)). +:- use_module(library(maplist)). + +% 5 people want to have a photograph together, but they have preferences. +photo(Ex, Solution,Amount) :- + db(Ex, People, Preferences), + Space := space, + length(People, Len), + Len0 is Len-1, + People := intvars(Space,Len,0,Len0), + Space += distinct(People), + % Bools are the satisfied constraints + maplist(preferences(Space, Len), Preferences, Bools), + length(Preferences, PLen), + Sum := intvar(Space,0,PLen), + Space += linear(Bools,'IRT_EQ',Sum), + % add all satisfied constraints + Space += maximize(Sum), + Space += branch(People,'INT_VAR_SIZE_MIN','INT_VAL_MIN'), + SolSpace := search(Space), + Solution := val(SolSpace,People), + Amount := val(SolSpace,Sum). + +%reification, use with care +preferences(Space, Len, X-Y, B) :- + NLen is -Len, + I0 := intvar(Space, NLen, Len), + I := intvar(Space, 0, Len), + B := boolvar(Space), + Space += reify(B, 'RM_EQV', R), + Space += linear([1,-1],[X,Y],'IRT_EQ', I0), + Space += abs(I0, I), + Space += rel(I, 'IRT_EQ', 1, R). + + +db(s,[Alice,Bob,Carl,Deb,Evan], [Alice-Carl, + Carl-Deb, + Deb-Alice, + Evan-Alice, + Bob-Evan, + Carl-Evan, + Deb-Evan, + Evan-Bob]). + +db(l,[Betty,Chris,Donald,Fred,Gary,Mary,Paul,Peter,Susan], + [Betty-Donald, + Betty-Gary, + Betty-Peter, + Chris-Gary, + Chris-Susan, + Donald-Fred, + Donald-Gary, + Fred-Betty, + Fred-Gary, + Gary-Mary, + Gary-Betty, + Mary-Betty, + Mary-Susan, + Paul-Donald, + Paul-Peter, + Peter-Susan, + Peter-Paul]). diff --git a/packages/gecode/examples/queens.yap b/packages/gecode/examples/queens.yap new file mode 100644 index 000000000..3167babbf --- /dev/null +++ b/packages/gecode/examples/queens.yap @@ -0,0 +1,67 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +:- use_module(library(gecode)). +:- use_module(library(maplist)). + +% use alldiff constraints +queens(N, Solution) :- + Space := space, + length(Queens, N), + Queens := intvars(Space,N,1,N), + Space += distinct(Queens), + foldl(inc, Queens, Inc, 0, _), + foldl(dec, Queens, Dec, 0, _), + Space += distinct(Inc,Queens), + Space += distinct(Dec,Queens), + Space += branch(Queens, 'INT_VAR_SIZE_MIN', 'INT_VAL_MIN'), + SolSpace := search(Space), + Solution := val(SolSpace,Queens). + +inc(_, I0, I0, I) :- + I is I0+1. + +dec(_, I0, I0, I) :- + I is I0-1. + +% +% Using gecode linear constraints for diagonals. +% +lqueens(N, Solution) :- + Space := space, + length(Queens, N), + Queens := intvars(Space,N,1,N), + Space += distinct(Queens), + lconstrain( Queens, Space, 0), + Space += branch(Queens, 'INT_VAR_SIZE_MIN', 'INT_VAL_MIN'), + SolSpace := search(Space), + Solution := val(SolSpace,Queens). + +lconstrain([], _, _). +lconstrain( [Q|Queens], Space, I0) :- + I is I0+1, + foldl(constrain(Q, I0, Space), Queens, I, _), + lconstrain( Queens, Space, I). + +constrain(Q, I, Space, R, J, J1) :- + % Q+I != R+J, Q-I != R-J <=> Q-R != J-I, Q-R != I-J, + J1 is J+1, + Sum is I-J, + Diff is J-I, + Space += linear([1,-1], [Q,R], 'IRT_NQ', Diff), + Space += linear([1,-1], [Q,R], 'IRT_NQ', Sum). \ No newline at end of file diff --git a/packages/gecode/examples/send_more_money.yap b/packages/gecode/examples/send_more_money.yap new file mode 100644 index 000000000..cf4d298be --- /dev/null +++ b/packages/gecode/examples/send_more_money.yap @@ -0,0 +1,41 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +:- use_module(library(gecode)). + +% S E N D +% + M O R E +% --------- +% M O N E Y +send_more_money(Solution) :- + Space := space, + Letters := intvars(Space,8,0,9), + [S,E,N,D,M,O,R,Y] = Letters, + Space += rel(M,'IRT_NQ',0), + Space += rel(S,'IRT_NQ',0), + Space += distinct(Letters), + C = [1000, 100, 10, 1, + 1000, 100, 10, 1, + -10000, -1000, -100, -10, -1], + X = [S,E,N,D, + M,O,R,E, + M,O,N,E,Y], + Space += linear(C, X, 'IRT_EQ', 0), + Space += branch(Letters, 'INT_VAR_SIZE_MIN', 'INT_VAL_MIN'), + SolSpace := search(Space), + Solution := val(SolSpace,Letters). diff --git a/packages/gecode/examples/send_most_money.yap b/packages/gecode/examples/send_most_money.yap new file mode 100644 index 000000000..ad37eec96 --- /dev/null +++ b/packages/gecode/examples/send_most_money.yap @@ -0,0 +1,45 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +:- use_module(library(gecode)). + +% S E N D +% + M O S T +% --------- +% M O N E Y +send_most_money(Solution,Amount) :- + Space := space, + Letters := intvars(Space,8,0,9), + [S,E,N,D,M,O,T,Y] = Letters, + Space += rel(M,'IRT_NQ',0), + Space += rel(S,'IRT_NQ',0), + Space += distinct(Letters), + C = [1000, 100, 10, 1, + 1000, 100, 10, 1, + -10000, -1000, -100, -10, -1], + X = [S,E,N,D, + M,O,S,T, + M,O,N,E,Y], + Space += linear(C, X, 'IRT_EQ', 0), + Money := intvar(Space,0,99999), + Space += linear([10000,1000,100,10,1],[M,O,N,E,Y],'IRT_EQ',Money), + Space += maximize(Money), + Space += branch(Letters,'INT_VAR_SIZE_MIN','INT_VAL_MIN'), + SolSpace := search(Space), + Solution := val(SolSpace,Letters), + Amount := val(SolSpace,Money). diff --git a/packages/gecode/gecode3-common.icc b/packages/gecode/gecode3-common.icc new file mode 100644 index 000000000..a0ce80175 --- /dev/null +++ b/packages/gecode/gecode3-common.icc @@ -0,0 +1,358 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +#ifndef GECODE_COMMON +#define GECODE_COMMON + +#include "gecode/int.hh" +#include "gecode/set.hh" +#include "gecode/search.hh" +#include + +namespace generic_gecode +{ + using namespace std; + using namespace Gecode; + + // description of the optimization criterion + struct Optimizing + { + enum What { OPT_NONE, OPT_INT, OPT_RATIO }; + enum How { OPT_MIN, OPT_MAX }; + int num; + int den; + What what; + How how; + Optimizing(): num(-1), den(-1), what(OPT_NONE), how(OPT_MAX) {} + Optimizing(Optimizing& o) + : num(o.num), den(o.den), what(o.what), how(o.how) {} + void check_ok() const + { if (what!=OPT_NONE) + throw Exception("gecode-python","too many optimization criteria"); } + void maximize(int i) + { check_ok(); what = OPT_INT; how = OPT_MAX; num = i; }; + void maximize(int i,int j) + { check_ok(); what = OPT_RATIO; how = OPT_MAX; num = i; den = j; }; + void minimize(int i) + { check_ok(); what = OPT_INT; how = OPT_MIN; num = i; }; + void minimize(int i,int j) + { check_ok(); what = OPT_RATIO; how = OPT_MIN; num = i; den = j; }; + }; + + struct GenericSpace; + + struct GenericEngine + { + virtual GenericSpace* next(void)=0; + virtual ~GenericEngine() {}; + }; + + struct GenericDFS: GenericEngine + { + DFS engine; + GenericDFS(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} + virtual GenericSpace* next(void) { return engine.next(); } + }; + + struct GenericBAB: GenericEngine + { + BAB engine; + GenericBAB(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} + virtual GenericSpace* next(void) { return engine.next(); } + }; + + struct GenericRestart: GenericEngine + { + Restart engine; + GenericRestart(GenericSpace* s,Search::Options& opt): engine(s,opt) {} + virtual GenericSpace* next(void) { return engine.next(); } + }; + + struct LoadingDock + { + vector ivars; + vector bvars; + vector svars; + vector ikeep; + vector bkeep; + vector skeep; + + bool keeping_some() const + { + return (ikeep.size() != 0) + || (bkeep.size() != 0) + || (skeep.size() != 0); + } + + IntVar get_ivar(int i) const { return ivars[i]; } + BoolVar get_bvar(int i) const { return bvars[i]; } + SetVar get_svar(int i) const { return svars[i]; } + + int enter_ivar(const IntVar& v) + { ivars.push_back(v); return static_cast(ivars.size()-1); } + + int enter_bvar(const BoolVar& v) + { bvars.push_back(v); return static_cast(bvars.size()-1); } + + int enter_svar(const SetVar& v) + { svars.push_back(v); return static_cast(svars.size()-1); } + + int keep_ivar(int i) { ikeep.push_back(i); return static_cast(ikeep.size()-1); } + int keep_bvar(int i) { bkeep.push_back(i); return static_cast(bkeep.size()-1); } + int keep_svar(int i) { skeep.push_back(i); return static_cast(skeep.size()-1); } + + void freeze(Space& home, + IntVarArray& iarr, BoolVarArray& barr, SetVarArray& sarr, + int& num, int& den) + { + if (keeping_some()) + { + // make sure that optimization vars (if any) are kept + if (num != -1) + { + const int _num(num); + const int _den(den); + int n = static_cast(ikeep.size()); + bool num_found(false); + bool den_found(false); + for (;n--;) + { + const int idx(ikeep[n]); + if (idx==_num) + { num_found=true; if (den_found) break; } + if (idx==_den) + { den_found=true; if (num_found) break; } + } + if (!num_found) + { ikeep.push_back(_num); + num=static_cast(ikeep.size()-1); } + if (_den != -1 && !den_found) + { ikeep.push_back(_den); + den=static_cast(ikeep.size()-1); } + } + { int n = static_cast(ikeep.size()); + iarr = IntVarArray(home, n); + for (;n--;) iarr[n]=ivars[ikeep[n]]; } + { int n = static_cast(bkeep.size()); + barr = BoolVarArray(home, n); + for (;n--;) barr[n]=bvars[bkeep[n]]; } + { int n = static_cast(skeep.size()); + sarr = SetVarArray(home, n); + for (;n--;) sarr[n]=svars[skeep[n]]; } + } + else + { + { int n = static_cast(ivars.size()); + iarr = IntVarArray(home, n); + for (;n--;) iarr[n]=ivars[n]; } + { int n = static_cast(bvars.size()); + barr = BoolVarArray(home, n); + for (;n--;) barr[n]=bvars[n]; } + { int n = static_cast(svars.size()); + sarr = SetVarArray(home, n); + for (;n--;) sarr[n]=svars[n]; } + } + } + }; + + struct GenericSpace: Space + { + Optimizing optim; + IntVarArray ivars; + BoolVarArray bvars; + SetVarArray svars; + LoadingDock* dock; + bool keeping_some; // iff only SOME of the vars are kept + + Space* space() { return this; } + + GenericSpace(bool share, GenericSpace& s) + : Space(share, s), optim(s.optim), dock(NULL), keeping_some(s.keeping_some) + { + ivars.update(*this, share, s.ivars); + bvars.update(*this, share, s.bvars); + svars.update(*this, share, s.svars); + } + + Space* copy(bool share) + { freeze(); return new GenericSpace(share, *this); } + + GenericSpace() : dock(new LoadingDock()), keeping_some(false) {} + ~GenericSpace() { delete dock; } + + // throw some C++ exception on behalf of glue code + void kaboom(const char* s) + { throw Exception("gecode-python", s); } + int ikaboom(const char* s) + { kaboom(s); return 0; } + + // freeze the space before handing it off to a search engine + void freeze() + { + if (dock) + { + keeping_some = dock->keeping_some(); + dock->freeze(*this, ivars, bvars, svars, optim.num, optim.den); + delete dock; + dock = NULL; + } + } + + IntVar get_ivar(int i) const { return (dock)?dock->get_ivar(i):ivars[i]; } + BoolVar get_bvar(int i) const { return (dock)?dock->get_bvar(i):bvars[i]; } + SetVar get_svar(int i) const { return (dock)?dock->get_svar(i):svars[i]; } + + int keep_ivar(int i) + { + if (dock) return dock->keep_ivar(i); + else return ikaboom("too late to keep"); + } + + int keep_bvar(int i) + { + if (dock) return dock->keep_bvar(i); + else return ikaboom("too late to keep"); + } + + int keep_svar(int i) + { + if (dock) return dock->keep_svar(i); + else return ikaboom("too late to keep"); + } + + bool frozen() const { return dock==NULL; } + bool has_keepers() const { return keeping_some; } + // when frozen and has_keepers: which is just has_keepers actually + bool use_keep_index() const { return has_keepers(); } + + GenericEngine* new_engine(bool restart, Search::Options& opt) + { + freeze(); + return (optim.what == Optimizing::OPT_NONE) + ? static_cast(new GenericDFS(this,opt)) + : (restart + ? static_cast(new GenericRestart(this,opt)) + : static_cast(new GenericBAB(this,opt))); + } + + int _new_ivar(IntVar& v) + { + if (dock) return dock->enter_ivar(v); + else return ikaboom("too late to create vars"); + } + + int new_ivar(int lo, int hi) + { + IntVar v(*this, lo, hi); + return _new_ivar(v); + } + + int new_ivar(IntSet& s) + { + IntVar v(*this, s); + return _new_ivar(v); + } + + int _new_bvar(BoolVar& v) + { + if (dock) return dock->enter_bvar(v); + else return ikaboom("too late to create vars"); + } + + int new_bvar() + { + BoolVar v(*this, 0, 1); + return _new_bvar(v); + } + + int _new_svar(SetVar& v) + { + if (dock) return dock->enter_svar(v); + else return ikaboom("too late to create vars"); + } + + int new_svar(int glbMin, int glbMax, int lubMin, int lubMax, + unsigned int cardMin=0, + unsigned int cardMax=Set::Limits::card) + { + SetVar v(*this, glbMin, glbMax, lubMin, lubMax, cardMin, cardMax); + return _new_svar(v); + } + + int new_svar(IntSet glb, int lubMin, int lubMax, + unsigned int cardMin=0, + unsigned int cardMax=Set::Limits::card) + { + SetVar v(*this, glb, lubMin, lubMax, cardMin, cardMax); + return _new_svar(v); + } + + int new_svar(int glbMin, int glbMax, IntSet lub, + unsigned int cardMin=0, + unsigned int cardMax=Set::Limits::card) + { + SetVar v(*this, glbMin, glbMax, lub, cardMin, cardMax); + return _new_svar(v); + } + + int new_svar(IntSet glb, IntSet lub, + unsigned int cardMin=0, + unsigned int cardMax=Set::Limits::card) + { + SetVar v(*this, glb, lub, cardMin, cardMax); + return _new_svar(v); + } + + void minimize(int i) { optim.minimize(i); } + void minimize(int i, int j) { optim.minimize(i,j); } + void maximize(int i) { optim.maximize(i); } + void maximize(int i, int j) { optim.maximize(i,j); } + + virtual void constrain(const Space& s) + { + const GenericSpace& sol = static_cast(s); + switch (optim.what) + { + case Optimizing::OPT_NONE: + break; + case Optimizing::OPT_INT: + rel(*this, ivars[optim.num], + ((optim.how==Optimizing::OPT_MIN) ? IRT_LE : IRT_GR), + sol.ivars[optim.num].val()); + break; + case Optimizing::OPT_RATIO: + { + IntArgs c(2, sol.ivars[optim.den].val(), + - sol.ivars[optim.num].val()); + IntVarArgs v(2); + v[0] = ivars[optim.num]; + v[1] = ivars[optim.den]; + linear(*this, c, v, + ((optim.how==Optimizing::OPT_MIN) ? IRT_LE : IRT_GR), 0); + break; + } + } + } + }; +} + +#ifdef DISJUNCTOR +#include "disjunctor.icc" +#endif + +#endif diff --git a/packages/gecode/gecode3_yap.cc b/packages/gecode/gecode3_yap.cc new file mode 100644 index 000000000..9cd3c67a8 --- /dev/null +++ b/packages/gecode/gecode3_yap.cc @@ -0,0 +1,1183 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +#include "gecode3-common.icc" +#include +using namespace std; +using namespace generic_gecode; +using namespace Gecode; + +extern "C" +{ +#include "config.h" +} + +namespace generic_gecode +{ +#ifndef HAVE_DYNARRAY + template struct DynArray + { + T* _array; + DynArray(int n): _array(new T[n]) {} + ~DynArray() { delete[] _array; } + T& operator[](int i) { return _array[i]; } + }; +#define DYNARRAY(T,A,N) DynArray A(N) +#else +#define DYNARRAY(T,A,N) T A[N] +#endif + +#ifndef HAVE_DYNARRAY + struct SpecArray + { + int (*_array)[2]; + SpecArray(int n): _array((int (*)[2]) new int[n*2]) {} + ~SpecArray() { delete[] _array; } + int& operator()(int i,int j) { return _array[i][j]; } + }; +#define SPECARRAY(A,N) SpecArray A(N) +#define SPECARRAYELEM(A,I,J) A(I,J) +#define SPECARRAYDEREF(A) A._array +#else +#define SPECARRAY(A,N) int A[N][2] +#define SPECARRAYELEM(A,I,J) A[I][J] +#define SPECARRAYDEREF(A) A +#endif +} + +extern "C" +{ +#include "SWI-Stream.h" +#include "YapInterface.h" + + static YAP_opaque_tag_t gecode_space_tag; + static YAP_opaque_handler_t gecode_space_handler; + + static int gecode_space_fail_handler(void* p) + { + delete *(GenericSpace**)p; + return TRUE; + } + + static int + gecode_space_write_handler + (void *stream_, YAP_opaque_tag_t type, void *p, int flags) + { + IOSTREAM* stream = (IOSTREAM*) stream_; + Sfprintf(stream,"", p); + return TRUE; + } + + static YAP_Term gecode_term_from_space(GenericSpace* s) + { + YAP_Term term = + YAP_NewOpaqueObject(gecode_space_tag, sizeof(GenericSpace*)); + GenericSpace** ptr = + (GenericSpace**) YAP_OpaqueObjectFromTerm(term); + *ptr = s; + return term; + } + + static int gecode_new_space(void) + { + YAP_Term term = gecode_term_from_space(new GenericSpace); + return YAP_Unify(YAP_ARG1, term); + } + +#ifndef DISJUNCTOR + static inline GenericSpace* + gecode_Space_from_term(YAP_Term t) + { + return * (GenericSpace**) YAP_OpaqueObjectFromTerm(t); + } +#else + struct YapDisjunctor + { + GenericSpace* home; + Disjunctor disj; + YapDisjunctor(GenericSpace* home_) + : home(home_), disj(*home_) {} + }; + + static YAP_opaque_tag_t gecode_disjunctor_tag; + static YAP_opaque_handler_t gecode_disjunctor_handler; + static YAP_opaque_tag_t gecode_disjunctor_clause_tag; + static YAP_opaque_handler_t gecode_disjunctor_clause_handler; + + static inline Disjunctor& + gecode_Disjunctor_from_term(YAP_Term t) + { + return ((YapDisjunctor*) YAP_OpaqueObjectFromTerm(t))->disj; + } + + static inline YapDisjunctor& + gecode_YapDisjunctor_from_term(YAP_Term t) + { + return * (YapDisjunctor*) YAP_OpaqueObjectFromTerm(t); + } + + static inline Clause& + gecode_Clause_from_term(YAP_Term t) + { + return * (Clause*) YAP_OpaqueObjectFromTerm(t); + } + + static inline GenericSpace* + gecode_Space_from_term(YAP_Term t) + { + if (YAP_IsOpaqueObjectTerm(t, gecode_disjunctor_clause_tag)) + { + Clause& c = gecode_Clause_from_term(t); + return & (GenericSpace&) c; + } + return * (GenericSpace**) YAP_OpaqueObjectFromTerm(t); + } +#endif + + static YAP_opaque_tag_t gecode_engine_tag; + static YAP_opaque_handler_t gecode_engine_handler; + + static int gecode_new_engine(void) + { + YAP_Term arg1 = YAP_ARG1; + YAP_Term arg2 = YAP_ARG2; + YAP_Term arg3 = YAP_ARG3; + bool restart = YAP_IntOfTerm(YAP_ArgOfTerm(1, arg3)); + double threads = YAP_FloatOfTerm(YAP_ArgOfTerm(2, arg3)); + unsigned int c_d = YAP_IntOfTerm(YAP_ArgOfTerm(3, arg3)); + unsigned int a_d = YAP_IntOfTerm(YAP_ArgOfTerm(4, arg3)); + Search::Options opt; + opt.threads = threads; + opt.c_d = c_d; + opt.a_d = a_d; + GenericSpace* space = gecode_Space_from_term(arg1); + GenericEngine* engine = space->new_engine(restart,opt); + YAP_Term y_engine = + YAP_NewOpaqueObject(gecode_engine_tag, sizeof(GenericEngine*)); + GenericEngine** ptr = + (GenericEngine**) YAP_OpaqueObjectFromTerm(y_engine); + *ptr = engine; + return YAP_Unify(arg2, y_engine); + } + + static inline GenericEngine* + gecode_engine_from_term(YAP_Term t) + { + return * (GenericEngine**) YAP_OpaqueObjectFromTerm(t); + } + + static int gecode_engine_fail_handler(void* p) + { + delete *(GenericEngine**)p; + return TRUE; + } + + static int + gecode_engine_write_handler + (void *stream_, YAP_opaque_tag_t type, void *p, int flags) + { + IOSTREAM* stream = (IOSTREAM*) stream_; + Sfprintf(stream,"", p); + return TRUE; + } + + static int gecode_engine_search(void) + { + GenericEngine* engine = gecode_engine_from_term(YAP_ARG1); + GenericSpace* space = engine->next(); + if (space) + { + YAP_Term term = gecode_term_from_space(space); + return YAP_Unify(YAP_ARG2, term); + } + else YAP_cut_fail(); + } + +#ifdef DISJUNCTOR + static int gecode_new_disjunctor(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + YAP_Term term = + YAP_NewOpaqueObject(gecode_disjunctor_tag, sizeof(YapDisjunctor)); + new (YAP_OpaqueObjectFromTerm(term)) YapDisjunctor(space); + return YAP_Unify(result, term); + } + + static int + gecode_disjunctor_write_handler + (void *stream_, YAP_opaque_tag_t type, void *p, int flags) + { + IOSTREAM* stream = (IOSTREAM*) stream_; + Sfprintf(stream,"", p); + return TRUE; + } + + static int gecode_new_clause(void) + { + YAP_Term result = YAP_ARG1; + YapDisjunctor& disj = gecode_YapDisjunctor_from_term(YAP_ARG2); + YAP_Term term = + YAP_NewOpaqueObject(gecode_disjunctor_clause_tag, sizeof(Clause)); + new (YAP_OpaqueObjectFromTerm(term)) Clause(*disj.home,disj.disj); + return YAP_Unify(result, term); + } + + static int + gecode_clause_write_handler + (void *stream_, YAP_opaque_tag_t type, void *p, int flags) + { + IOSTREAM* stream = (IOSTREAM*) stream_; + Sfprintf(stream,"", p); + return TRUE; + } + + static IntVar gecode_IntVar_from_term(GenericSpace*,YAP_Term); + static BoolVar gecode_BoolVar_from_term(GenericSpace*,YAP_Term); + static SetVar gecode_SetVar_from_term(GenericSpace*,YAP_Term); + + static int gecode_clause_intvar_forward(void) + { + Clause& clause = gecode_Clause_from_term(YAP_ARG1); + GenericSpace* outer = clause.generic_parent(); + GenericSpace* inner = clause.generic_space(); + IntVar outer_var = gecode_IntVar_from_term(outer, YAP_ARG2); + IntVar inner_var = gecode_IntVar_from_term(inner, YAP_ARG3); + clause.forward(outer_var,inner_var); + return TRUE; + } + + static int gecode_clause_boolvar_forward(void) + { + Clause& clause = gecode_Clause_from_term(YAP_ARG1); + GenericSpace* outer = clause.generic_parent(); + GenericSpace* inner = clause.generic_space(); + BoolVar outer_var = gecode_BoolVar_from_term(outer, YAP_ARG2); + BoolVar inner_var = gecode_BoolVar_from_term(inner, YAP_ARG3); + clause.forward(outer_var,inner_var); + return TRUE; + } + + static int gecode_clause_setvar_forward(void) + { + Clause& clause = gecode_Clause_from_term(YAP_ARG1); + GenericSpace* outer = clause.generic_parent(); + GenericSpace* inner = clause.generic_space(); + SetVar outer_var = gecode_SetVar_from_term(outer, YAP_ARG2); + SetVar inner_var = gecode_SetVar_from_term(inner, YAP_ARG3); + clause.forward(outer_var,inner_var); + return TRUE; + } +#endif + + static int gecode_new_intvar_from_bounds(void) + { + YAP_Term ivar = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int lo = YAP_IntOfTerm(YAP_ARG3); + int hi = YAP_IntOfTerm(YAP_ARG4); + int i = space->new_ivar(lo, hi); + YAP_Term y_i = YAP_MkIntTerm(i); + return YAP_Unify(ivar, y_i); + } + + static int + gecode_list_length(YAP_Term l) + { + int n = 0; + while (YAP_IsPairTerm(l)) + { + n += 1; + l = YAP_TailOfTerm(l); + } + return n; + } + + static IntSet + gecode_IntSet_from_term(YAP_Term specs) + { + int n = gecode_list_length(specs); + SPECARRAY(r,n); + int i = 0; + while (YAP_IsPairTerm(specs)) + { + YAP_Term head = YAP_HeadOfTerm(specs); + specs = YAP_TailOfTerm(specs); + SPECARRAYELEM(r,i,0) = YAP_IntOfTerm(YAP_ArgOfTerm(1, head)); + SPECARRAYELEM(r,i,1) = YAP_IntOfTerm(YAP_ArgOfTerm(2, head)); + i += 1; + } + return IntSet(SPECARRAYDEREF(r), n); + } + + static int gecode_new_intvar_from_intset(void) + { + YAP_Term ivar = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + YAP_Term specs = YAP_ARG3; + IntSet iset = gecode_IntSet_from_term(specs); + int i = space->new_ivar(iset); + return YAP_Unify(ivar, YAP_MkIntTerm(i)); + } + + static int gecode_new_boolvar(void) + { + YAP_Term bvar = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int i = space->new_bvar(); + return YAP_Unify(bvar, YAP_MkIntTerm(i)); + } + + static int gecode_new_setvar_1(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + int LubMin = YAP_IntOfTerm(YAP_ARG5); + int LubMax = YAP_IntOfTerm(YAP_ARG6); + int CardMin= YAP_IntOfTerm(YAP_ARG7); + int CardMax= YAP_IntOfTerm(YAP_ARG8); + int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_2(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + int LubMin = YAP_IntOfTerm(YAP_ARG5); + int LubMax = YAP_IntOfTerm(YAP_ARG6); + int CardMin= YAP_IntOfTerm(YAP_ARG7); + int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax,CardMin); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_3(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + int LubMin = YAP_IntOfTerm(YAP_ARG5); + int LubMax = YAP_IntOfTerm(YAP_ARG6); + int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_4(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + int LubMin = YAP_IntOfTerm(YAP_ARG4); + int LubMax = YAP_IntOfTerm(YAP_ARG5); + int CardMin = YAP_IntOfTerm(YAP_ARG6); + int CardMax = YAP_IntOfTerm(YAP_ARG7); + int idx = space->new_svar(Glb,LubMin,LubMax,CardMin,CardMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_5(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + int LubMin = YAP_IntOfTerm(YAP_ARG4); + int LubMax = YAP_IntOfTerm(YAP_ARG5); + int CardMin = YAP_IntOfTerm(YAP_ARG6); + int idx = space->new_svar(Glb,LubMin,LubMax,CardMin); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_6(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + int LubMin = YAP_IntOfTerm(YAP_ARG4); + int LubMax = YAP_IntOfTerm(YAP_ARG5); + int idx = space->new_svar(Glb,LubMin,LubMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_7(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); + int CardMin = YAP_IntOfTerm(YAP_ARG6); + int CardMax = YAP_IntOfTerm(YAP_ARG7); + int idx = space->new_svar(GlbMin,GlbMax,Lub,CardMin,CardMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_8(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); + int CardMin = YAP_IntOfTerm(YAP_ARG6); + int idx = space->new_svar(GlbMin,GlbMax,Lub,CardMin); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_9(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + int GlbMin = YAP_IntOfTerm(YAP_ARG3); + int GlbMax = YAP_IntOfTerm(YAP_ARG4); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); + int idx = space->new_svar(GlbMin,GlbMax,Lub); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_10(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); + int CardMin = YAP_IntOfTerm(YAP_ARG5); + int CardMax = YAP_IntOfTerm(YAP_ARG6); + int idx = space->new_svar(Glb,Lub,CardMin,CardMax); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_11(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); + int CardMin = YAP_IntOfTerm(YAP_ARG5); + int idx = space->new_svar(Glb,Lub,CardMin); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_new_setvar_12(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); + IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); + int idx = space->new_svar(Glb,Lub); + return YAP_Unify(result, YAP_MkIntTerm(idx)); + } + + static int gecode_space_minimize(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int i = YAP_IntOfTerm(YAP_ARG2); + space->minimize(i); + return TRUE; + } + + static int gecode_space_maximize(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int i = YAP_IntOfTerm(YAP_ARG2); + space->maximize(i); + return TRUE; + } + + static int gecode_space_minimize_ratio(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int i = YAP_IntOfTerm(YAP_ARG2); + int j = YAP_IntOfTerm(YAP_ARG3); + space->minimize(i,j); + return TRUE; + } + + static int gecode_space_maximize_ratio(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + int i = YAP_IntOfTerm(YAP_ARG2); + int j = YAP_IntOfTerm(YAP_ARG3); + space->maximize(i,j); + return TRUE; + } + + static IntVar + gecode_IntVar_from_term(GenericSpace* space, YAP_Term x) + { + int i = YAP_IntOfTerm(x); + return space->get_ivar(i); + } + + static BoolVar + gecode_BoolVar_from_term(GenericSpace* space, YAP_Term x) + { + int i = YAP_IntOfTerm(x); + return space->get_bvar(i); + } + + static SetVar + gecode_SetVar_from_term(GenericSpace* space, YAP_Term x) + { + int i = YAP_IntOfTerm(x); + return space->get_svar(i); + } + + static IntVarArgs + gecode_IntVarArgs_from_term(GenericSpace* space, YAP_Term l) + { + int n = gecode_list_length(l); + IntVarArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); + v[i] = space->get_ivar(idx); + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static BoolVarArgs + gecode_BoolVarArgs_from_term(GenericSpace* space, YAP_Term l) + { + int n = gecode_list_length(l); + BoolVarArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); + v[i] = space->get_bvar(idx); + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static SetVarArgs + gecode_SetVarArgs_from_term(GenericSpace* space, YAP_Term l) + { + int n = gecode_list_length(l); + SetVarArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); + v[i] = space->get_svar(idx); + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static IntArgs + gecode_IntArgs_from_term(YAP_Term l) + { + int n = gecode_list_length(l); + IntArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); + v[i] = idx; + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static IntSetArgs + gecode_IntSetArgs_from_term(YAP_Term l) + { + int n = gecode_list_length(l); + IntSetArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + IntSet s = gecode_IntSet_from_term(YAP_HeadOfTerm(l)); + v[i] = s; + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static TaskType gecode_TaskType_from_term(YAP_Term); + + static TaskTypeArgs + gecode_TaskTypeArgs_from_term(YAP_Term l) + { + int n = gecode_list_length(l); + TaskTypeArgs v(n); + int i = 0; + while (YAP_IsPairTerm(l)) + { + TaskType tt = gecode_TaskType_from_term(YAP_HeadOfTerm(l)); + v[i] = tt; + l = YAP_TailOfTerm(l); + i += 1; + } + return v; + } + + static YAP_Term gecode_TRUE; + static YAP_Term gecode_FALSE; + + static bool + gecode_bool_from_term(YAP_Term X) + { + if (X==gecode_TRUE) return true; + if (X==gecode_FALSE) return false; + cerr << "this should never happen" << endl; exit(1); + } + + static int gecode_space_use_keep_index(void) + { + YAP_Term arg1 = YAP_ARG1; + YAP_Term arg2 = YAP_ARG2; + GenericSpace* space = gecode_Space_from_term(arg1); + return YAP_Unify(arg2,(space->use_keep_index() + ?gecode_TRUE:gecode_FALSE)); + } + + static int gecode_intvar_keep(void) + { + YAP_Term arg1 = YAP_ARG1; + YAP_Term arg2 = YAP_ARG2; + YAP_Term arg3 = YAP_ARG3; + GenericSpace* space = gecode_Space_from_term(arg1); + int idx = YAP_IntOfTerm(arg2); + int kidx = space->keep_ivar(idx); + return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); + } + + static int gecode_boolvar_keep(void) + { + YAP_Term arg1 = YAP_ARG1; + YAP_Term arg2 = YAP_ARG2; + YAP_Term arg3 = YAP_ARG3; + GenericSpace* space = gecode_Space_from_term(arg1); + int idx = YAP_IntOfTerm(arg2); + int kidx = space->keep_bvar(idx); + return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); + } + + static int gecode_setvar_keep(void) + { + YAP_Term arg1 = YAP_ARG1; + YAP_Term arg2 = YAP_ARG2; + YAP_Term arg3 = YAP_ARG3; + GenericSpace* space = gecode_Space_from_term(arg1); + int idx = YAP_IntOfTerm(arg2); + int kidx = space->keep_svar(idx); + return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); + } + + // INFO ON INTVARS + static int gecode_intvar_assigned(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG2); + return (x.assigned()) ? TRUE : FALSE; + } + + static int gecode_intvar_min(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.min())); + } + + static int gecode_intvar_max(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.max())); + } + + static int gecode_intvar_med(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.med())); + } + + static int gecode_intvar_val(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.val())); + } + + static int gecode_intvar_size(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.size())); + } + + static int gecode_intvar_width(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.width())); + } + + static int gecode_intvar_regret_min(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.regret_min())); + } + + static int gecode_intvar_regret_max(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.regret_max())); + } + + static YAP_Functor gecode_COMMA2; + + static int gecode_intvar_ranges(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + int n = 0; + { IntVarRanges it(x); while (it()) { ++n; ++it; } } + DYNARRAY(int,min,n); + DYNARRAY(int,max,n); + { IntVarRanges it(x); int i=0; + while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } + YAP_Term lst = YAP_TermNil(); + for (;n--;) + { + YAP_Term args[2]; + args[0] = YAP_MkIntTerm(min[n]); + args[1] = YAP_MkIntTerm(max[n]); + YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); + lst = YAP_MkPairTerm(range,lst); + } + return YAP_Unify(result,lst); + } + + static int gecode_intvar_values(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); + int n = x.size(); + DYNARRAY(int,a,n); + { IntVarValues it(x); int i=0; + while (it()) { a[i]=it.val(); ++it; ++i; } } + YAP_Term lst = YAP_TermNil(); + for (;n--;) + { + lst = YAP_MkPairTerm(YAP_MkIntTerm(a[n]),lst); + } + return YAP_Unify(result,lst); + } + + // INFO ON BOOLVARS + static int gecode_boolvar_assigned(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG2); + return (x.assigned()) ? TRUE : FALSE; + } + + static int gecode_boolvar_min(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.min())); + } + + static int gecode_boolvar_max(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.max())); + } + + static int gecode_boolvar_med(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.med())); + } + + static int gecode_boolvar_val(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.val())); + } + + static int gecode_boolvar_size(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.size())); + } + + static int gecode_boolvar_width(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.width())); + } + + static int gecode_boolvar_regret_min(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.regret_min())); + } + + static int gecode_boolvar_regret_max(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.regret_max())); + } + + // INFO ON SETVARS + static int gecode_setvar_assigned(void) + { + GenericSpace* space = gecode_Space_from_term(YAP_ARG1); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG2); + return (x.assigned()) ? TRUE : FALSE; + } + + static int gecode_setvar_glbSize(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.glbSize())); + } + + static int gecode_setvar_lubSize(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.lubSize())); + } + + static int gecode_setvar_unknownSize(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.unknownSize())); + } + + static int gecode_setvar_cardMin(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.cardMin())); + } + + static int gecode_setvar_cardMax(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.cardMax())); + } + + static int gecode_setvar_lubMin(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.lubMin())); + } + + static int gecode_setvar_lubMax(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.lubMax())); + } + + static int gecode_setvar_glbMin(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.glbMin())); + } + + static int gecode_setvar_glbMax(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + return YAP_Unify(result, YAP_MkIntTerm(x.glbMax())); + } + + static int gecode_setvar_glb_ranges(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + int n = 0; + { SetVarGlbRanges it(x); while (it()) { ++n; ++it; } } + DYNARRAY(int,min,n); + DYNARRAY(int,max,n); + { SetVarGlbRanges it(x); int i=0; + while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } + YAP_Term lst = YAP_TermNil(); + for (;n--;) + { + YAP_Term args[2]; + args[0] = YAP_MkIntTerm(min[n]); + args[1] = YAP_MkIntTerm(max[n]); + YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); + lst = YAP_MkPairTerm(range,lst); + } + return YAP_Unify(result,lst); + } + + static int gecode_setvar_lub_ranges(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + int n = 0; + { SetVarLubRanges it(x); while (it()) { ++n; ++it; } } + DYNARRAY(int,min,n); + DYNARRAY(int,max,n); + { SetVarLubRanges it(x); int i=0; + while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } + YAP_Term lst = YAP_TermNil(); + for (;n--;) + { + YAP_Term args[2]; + args[0] = YAP_MkIntTerm(min[n]); + args[1] = YAP_MkIntTerm(max[n]); + YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); + lst = YAP_MkPairTerm(range,lst); + } + return YAP_Unify(result,lst); + } + + static int gecode_setvar_unknown_ranges(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + int n = 0; + { SetVarUnknownRanges it(x); while (it()) { ++n; ++it; } } + DYNARRAY(int,min,n); + DYNARRAY(int,max,n); + { SetVarUnknownRanges it(x); int i=0; + while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } + YAP_Term lst = YAP_TermNil(); + for (;n--;) + { + YAP_Term args[2]; + args[0] = YAP_MkIntTerm(min[n]); + args[1] = YAP_MkIntTerm(max[n]); + YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); + lst = YAP_MkPairTerm(range,lst); + } + return YAP_Unify(result,lst); + } + + static int gecode_setvar_glb_values(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + DYNARRAY(YAP_Term,elems,x.glbSize()); + SetVarGlbValues it(x); + int n = 0; + while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } + YAP_Term lst = YAP_TermNil(); + for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); + return YAP_Unify(result,lst); + } + + static int gecode_setvar_lub_values(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + DYNARRAY(YAP_Term,elems,x.lubSize()); + SetVarLubValues it(x); + int n = 0; + while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } + YAP_Term lst = YAP_TermNil(); + for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); + return YAP_Unify(result,lst); + } + + static int gecode_setvar_unknown_values(void) + { + YAP_Term result = YAP_ARG1; + GenericSpace* space = gecode_Space_from_term(YAP_ARG2); + SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); + DYNARRAY(YAP_Term,elems,x.unknownSize()); + SetVarUnknownValues it(x); + int n = 0; + while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } + YAP_Term lst = YAP_TermNil(); + for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); + return YAP_Unify(result,lst); + } + +#define gecode_int_from_term YAP_IntOfTerm + +#include "gecode_yap_cc_forward_auto_generated.icc" +#include "gecode_yap_cc_impl_auto_generated.icc" + + void gecode_init(void) + { + { YAP_Atom X= YAP_LookupAtom("true"); + gecode_TRUE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom("false"); + gecode_FALSE = YAP_MkAtomTerm(X); + YAP_AtomGetHold(X); } + { YAP_Atom X= YAP_LookupAtom(","); + YAP_AtomGetHold(X); + gecode_COMMA2 = YAP_MkFunctor(X,2); } +#include "gecode_yap_cc_init_auto_generated.icc" + // opaque spaces + gecode_space_handler.fail_handler = gecode_space_fail_handler; + gecode_space_handler.write_handler = gecode_space_write_handler; + gecode_space_tag = YAP_NewOpaqueType(&gecode_space_handler); + YAP_UserCPredicate("gecode_new_space", gecode_new_space, 1); + // opaque engines + gecode_engine_handler.fail_handler = gecode_engine_fail_handler; + gecode_engine_handler.write_handler = gecode_engine_write_handler; + gecode_engine_tag = YAP_NewOpaqueType(&gecode_engine_handler); + YAP_UserCPredicate("gecode_new_engine", gecode_new_engine, 3); +#ifdef DISJUNCTOR + // opaque disjunctors and clauses + gecode_disjunctor_handler.write_handler = gecode_disjunctor_write_handler; + gecode_disjunctor_tag = YAP_NewOpaqueType(&gecode_disjunctor_handler); + gecode_disjunctor_clause_handler.write_handler = gecode_clause_write_handler; + gecode_disjunctor_clause_tag = + YAP_NewOpaqueType(&gecode_disjunctor_clause_handler); + YAP_UserCPredicate("gecode_new_disjunctor", gecode_new_disjunctor, 2); + YAP_UserCPredicate("gecode_new_clause", gecode_new_clause, 2); + YAP_UserCPredicate("gecode_clause_intvar_forward", gecode_clause_intvar_forward, 3); + YAP_UserCPredicate("gecode_clause_boolvar_forward", gecode_clause_boolvar_forward, 3); + YAP_UserCPredicate("gecode_clause_setvar_forward", gecode_clause_setvar_forward, 3); +#endif + // backtracking search using an engine + YAP_UserBackCutCPredicate("gecode_engine_search", + gecode_engine_search, gecode_engine_search, + NULL, 2, 0); + // creating variables + YAP_UserCPredicate("gecode_new_intvar_from_bounds", + gecode_new_intvar_from_bounds, 4); + YAP_UserCPredicate("gecode_new_intvar_from_intset", + gecode_new_intvar_from_intset, 3); + YAP_UserCPredicate("gecode_new_boolvar", gecode_new_boolvar, 2); + YAP_UserCPredicate("gecode_new_setvar_1", gecode_new_setvar_1, 8); + YAP_UserCPredicate("gecode_new_setvar_2", gecode_new_setvar_2, 7); + YAP_UserCPredicate("gecode_new_setvar_3", gecode_new_setvar_3, 6); + YAP_UserCPredicate("gecode_new_setvar_4", gecode_new_setvar_4, 7); + YAP_UserCPredicate("gecode_new_setvar_5", gecode_new_setvar_5, 6); + YAP_UserCPredicate("gecode_new_setvar_6", gecode_new_setvar_6, 5); + YAP_UserCPredicate("gecode_new_setvar_7", gecode_new_setvar_7, 7); + YAP_UserCPredicate("gecode_new_setvar_8", gecode_new_setvar_8, 6); + YAP_UserCPredicate("gecode_new_setvar_9", gecode_new_setvar_9, 5); + YAP_UserCPredicate("gecode_new_setvar_10", gecode_new_setvar_10, 6); + YAP_UserCPredicate("gecode_new_setvar_11", gecode_new_setvar_11, 5); + YAP_UserCPredicate("gecode_new_setvar_12", gecode_new_setvar_12, 4); + YAP_UserCPredicate("gecode_space_minimize", gecode_space_minimize, 2); + YAP_UserCPredicate("gecode_space_maximize", gecode_space_maximize, 2); + YAP_UserCPredicate("gecode_space_minimize_ratio", gecode_space_minimize_ratio, 3); + YAP_UserCPredicate("gecode_space_maximize_ratio", gecode_space_maximize_ratio, 3); + // INFO ON INTVARS + YAP_UserCPredicate("gecode_intvar_assigned", gecode_intvar_assigned, 2); + YAP_UserCPredicate("gecode_intvar_min", gecode_intvar_min, 3); + YAP_UserCPredicate("gecode_intvar_max", gecode_intvar_max, 3); + YAP_UserCPredicate("gecode_intvar_med", gecode_intvar_med, 3); + YAP_UserCPredicate("gecode_intvar_val", gecode_intvar_val, 3); + YAP_UserCPredicate("gecode_intvar_size", gecode_intvar_size, 3); + YAP_UserCPredicate("gecode_intvar_width", gecode_intvar_width, 3); + YAP_UserCPredicate("gecode_intvar_regret_min", gecode_intvar_regret_min, 3); + YAP_UserCPredicate("gecode_intvar_regret_max", gecode_intvar_regret_max, 3); + YAP_UserCPredicate("gecode_intvar_ranges", gecode_intvar_ranges, 3); + YAP_UserCPredicate("gecode_intvar_values", gecode_intvar_values, 3); + // INFO ON BOOLVARS + YAP_UserCPredicate("gecode_boolvar_assigned", gecode_boolvar_assigned, 2); + YAP_UserCPredicate("gecode_boolvar_min", gecode_boolvar_min, 3); + YAP_UserCPredicate("gecode_boolvar_max", gecode_boolvar_max, 3); + YAP_UserCPredicate("gecode_boolvar_med", gecode_boolvar_med, 3); + YAP_UserCPredicate("gecode_boolvar_val", gecode_boolvar_val, 3); + YAP_UserCPredicate("gecode_boolvar_size", gecode_boolvar_size, 3); + YAP_UserCPredicate("gecode_boolvar_width", gecode_boolvar_width, 3); + YAP_UserCPredicate("gecode_boolvar_regret_min", gecode_boolvar_regret_min, 3); + YAP_UserCPredicate("gecode_boolvar_regret_max", gecode_boolvar_regret_max, 3); + // INFO ON SETVARS + YAP_UserCPredicate("gecode_setvar_assigned", gecode_setvar_assigned, 2); + YAP_UserCPredicate("gecode_setvar_glbSize", gecode_setvar_glbSize, 3); + YAP_UserCPredicate("gecode_setvar_lubSize", gecode_setvar_lubSize, 3); + YAP_UserCPredicate("gecode_setvar_unknownSize", gecode_setvar_unknownSize, 3); + YAP_UserCPredicate("gecode_setvar_cardMin", gecode_setvar_cardMin, 3); + YAP_UserCPredicate("gecode_setvar_cardMax", gecode_setvar_cardMax, 3); + YAP_UserCPredicate("gecode_setvar_lubMin", gecode_setvar_lubMin, 3); + YAP_UserCPredicate("gecode_setvar_lubMax", gecode_setvar_lubMax, 3); + YAP_UserCPredicate("gecode_setvar_glbMin", gecode_setvar_glbMin, 3); + YAP_UserCPredicate("gecode_setvar_glbMax", gecode_setvar_glbMax, 3); + YAP_UserCPredicate("gecode_setvar_glb_ranges", gecode_setvar_glb_ranges, 3); + YAP_UserCPredicate("gecode_setvar_lub_ranges", gecode_setvar_lub_ranges, 3); + YAP_UserCPredicate("gecode_setvar_unknown_ranges", gecode_setvar_unknown_ranges, 3); + YAP_UserCPredicate("gecode_setvar_glb_values", gecode_setvar_glb_values, 3); + YAP_UserCPredicate("gecode_setvar_lub_values", gecode_setvar_lub_values, 3); + YAP_UserCPredicate("gecode_setvar_unknown_values", gecode_setvar_unknown_values, 3); + YAP_UserCPredicate("gecode_space_use_keep_index", gecode_space_use_keep_index, 2); + YAP_UserCPredicate("gecode_intvar_keep", gecode_intvar_keep, 3); + YAP_UserCPredicate("gecode_boolvar_keep", gecode_boolvar_keep, 3); + YAP_UserCPredicate("gecode_setvar_keep", gecode_setvar_keep, 3); + } +} diff --git a/packages/gecode/gecode3_yap_hand_written.yap b/packages/gecode/gecode3_yap_hand_written.yap new file mode 100644 index 000000000..44316aca3 --- /dev/null +++ b/packages/gecode/gecode3_yap_hand_written.yap @@ -0,0 +1,848 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +:- module(gecode, [(:=)/2, op(500, xfx, ':='), + (+=)/2, op(500, xfx, '+=')]). + +:- op(500, xfx, ':='). +:- op(500, xfx, '+='). +:- load_foreign_files([gecode_yap],[],gecode_init). + +is_int(X,Y) :- integer(X), Y=X. +is_int(X) :- integer(X). + +is_bool_(true,true). +is_bool_(false,false). +is_bool(X,Y) :- nonvar(X), Y=X. +is_bool(X) :- is_bool(X,_). + +is_IntVar_('IntVar'(I,K),N) :- + integer(I), + integer(K), + nb_getval(gecode_space_use_keep_index,B), + (B=true -> N=K ; N=I). +is_BoolVar_('BoolVar'(I,K),N) :- + integer(I), + integer(K), + nb_getval(gecode_space_use_keep_index,B), + (B=true -> N=K ; N=I). +is_SetVar_('SetVar'(I,K),N) :- + integer(I), + integer(K), + nb_getval(gecode_space_use_keep_index,B), + (B=true -> N=K ; N=I). + +is_IntVar(X,I) :- nonvar(X), is_IntVar_(X,I). +is_BoolVar(X,I) :- nonvar(X), is_BoolVar_(X,I). +is_SetVar(X,I) :- nonvar(X), is_SetVar_(X,I). + +is_IntVar(X) :- is_IntVar(X,_). +is_BoolVar(X) :- is_BoolVar(X,_). +is_SetVar(X) :- is_SetVar(X,_). + +is_IntVarArgs_([],[]). +is_IntVarArgs_([H|T],[H2|T2]) :- is_IntVar(H,H2), is_IntVarArgs(T,T2). +is_IntVarArgs(X,Y) :- nonvar(X), is_IntVarArgs_(X,Y). +is_IntVarArgs(X) :- \+ \+ is_IntVarArgs(X,_). + +is_BoolVarArgs_([],[]). +is_BoolVarArgs_([H|T],[H2|T2]) :- is_BoolVar(H,H2), is_BoolVarArgs(T,T2). +is_BoolVarArgs(X,Y) :- nonvar(X), is_BoolVarArgs_(X,Y). +is_BoolVarArgs(X) :- \+ \+ is_BoolVarArgs(X,_). + +is_SetVarArgs_([],[]). +is_SetVarArgs_([H|T],[H2|T2]) :- is_SetVar(H,H2), is_SetVarArgs(T,T2). +is_SetVarArgs(X,Y) :- nonvar(X), is_SetVarArgs_(X,Y). +is_SetVarArgs(X) :- \+ \+ is_SetVarArgs(X,_). + +is_IntArgs_([],[]). +is_IntArgs_([H|T],[H|T2]) :- integer(H), is_IntArgs(T,T2). +is_IntArgs(X,Y) :- nonvar(X), is_IntArgs_(X,Y). +is_IntArgs(X) :- \+ \+ is_IntArgs(X,_). + +is_IntSharedArray(X) :- is_IntArgs(X). +is_IntSharedArray(X,Y) :- is_IntArgs(X,Y). + +is_TaskTypeArgs_([],[]). +is_TaskTypeArgs_([H|T],[H2|T2]) :- is_TaskType(H,H2), is_TaskTypeArgs(T,T2). +is_TaskTypeArgs(X,Y) :- nonvar(X), is_TaskTypeArgs_(X,Y). +is_TaskTypeArgs(X) :- \+ \+ is_TaskTypeArgs(X,_). + +is_IntSet_('IntSet'(L),L). +is_IntSet(X,Y) :- nonvar(X), is_IntSet_(X,Y). +is_IntSet(X) :- is_IntSet(X,_). + +is_IntSetArgs_([],[]). +is_IntSetArgs_([H|T],[H2|T2]) :- is_IntSet(H,H2), is_IntSetArgs(T,T2). +is_IntSetArgs(X,Y) :- nonvar(X), is_IntSetArgs_(X,Y). +is_IntSetArgs(X) :- \+ \+ is_IntSetArgs(X,_). + +new_intset(X,I,J) :- intset(X,I,J). +new_intset(X,L) :- intset(X,L). + +intset(X, I, J) :- + integer(I), + integer(J), + X='IntSet'([(I,J)]). +intset(X, L) :- + is_list_of_intset_specs(L,L2), + X='IntSet'(L2). + +is_list_of_intset_specs(X,Y) :- + nonvar(X), is_list_of_intset_specs_(X,Y). +is_list_of_intset_specs_([],[]). +is_list_of_intset_specs_([H|T],[H2|T2]) :- + is_intset_spec(H,H2), + is_list_of_intset_specs(T,T2). + +is_intset_spec(X,Y) :- nonvar(X), is_intset_spec_(X,Y). +is_intset_spec_((I,J),(I,J)) :- !, integer(I), integer(J). +is_intset_spec_(I,(I,I)) :- integer(I). + +assert_var(X,Y) :- + var(X) -> X=Y; throw(gecode_error(expected(var))). +assert_is_int(X,Y) :- + integer(X) -> X=Y ; throw(gecode_error(expected(int))). +assert_is_Space(X,Y) :- + is_Space(X,Y) -> true ; throw(gecode_error(expected(space))). +assert_is_IntSet(X,Y) :- + is_IntSet(X,Y) -> true ; throw(gecode_error(expected(intset))). +assert_is_IntVar(X,Y) :- + is_IntVar(X,Y) -> true ; throw(gecode_error(expected(intvar))). +assert_is_BoolVar(X,Y) :- + is_BoolVar(X,Y) -> true ; throw(gecode_error(expected(boolvar))). +assert_is_SetVar(X,Y) :- + is_SetVar(X,Y) -> true ; throw(gecode_error(expected(setvar))). +assert_is_IntArgs(X,Y) :- + is_IntArgs(X,Y) -> true ; throw(gecode_error(expected(intargs))). +assert_is_IntVarArgs(X,Y) :- + is_IntVarArgs(X,Y) -> true ; throw(gecode_error(expected(intvarargs))). +assert_is_BoolVarArgs(X,Y) :- + is_BoolVarArgs(X,Y) -> true ; throw(gecode_error(expected(boolvarargs))). +assert_is_SetVarArgs(X,Y) :- + is_SetVarArgs(X,Y) -> true ; throw(gecode_error(expected(setvarargs))). + +assert_var(X) :- assert_var(X,_). +assert_is_int(X) :- assert_is_int(X,_). +assert_is_Space(X) :- assert_is_Space(X,_). +assert_is_IntSet(X) :- assert_is_IntSet(X,_). +assert_is_IntVar(X) :- assert_is_IntVar(X,_). +assert_is_BoolVar(X) :- assert_is_BoolVar(X,_). +assert_is_SetVar(X) :- assert_is_SetVar(X,_). +assert_is_IntArgs(X) :- assert_is_IntArgs(X,_). +assert_is_IntVarArgs(X) :- assert_is_IntVarArgs(X,_). +assert_is_BoolVarArgs(X) :- assert_is_BoolVarArgs(X,_). +assert_is_SetVarArgs(X) :- assert_is_SetVarArgs(X,_). + +new_space(Space) :- + assert_var(Space), + gecode_new_space(Space_), + Space='Space'(Space_). + +%% checking that an argument is a space sets a global variable +%% indicating whether variables need to be translated to their +%% original index or to their "keep" index. +%% +%% these bindings are going to take advantage of the fact that, +%% when a space is involved, it is checked first, thus setting +%% this global variable. subsequent accesses to variables are +%% then correctly translated. + +is_Space_('Space'(X),X) :- + gecode_space_use_keep_index(X,B), + nb_setval(gecode_space_use_keep_index,B). +is_Space(X,Y) :- nonvar(X), is_Space_(X,Y). +is_Space(X) :- is_Space(X,_). + +%% AUTOGENERATE ALL VARIANTS LATER! + +new_intvars([], Space, Lo, Hi). +new_intvars([IVar|IVars], Space, Lo, Hi) :- + new_intvar(IVar, Space, Lo, Hi), + new_intvars(IVars, Space, Lo, Hi). + +new_intvars([], Space, IntSet). +new_intvars([IVar|IVars], Space, IntSet) :- + new_intvar(IVar, Space, IntSet), + new_intvars(IVars, Space, IntSet). + +new_boolvars([], Space). +new_boolvars([BVar|BVars], Space) :- + new_boolvar(BVar, Space), + new_boolvars(BVars, Space). + +new_setvars([], Space, X1, X2, X3, X4, X5, X6). +new_setvars([SVar|SVars], Space, X1, X2, X3, X4, X5, X6) :- + new_setvar(SVar, Space, X1, X2, X3, X4, X5, X6), + new_setvars(SVars, Space, X1, X2, X3, X4, X5, X6). + +new_setvars([], Space, X1, X2, X3, X4, X5). +new_setvars([SVar|SVars], Space, X1, X2, X3, X4, X5) :- + new_setvar(SVar, Space, X1, X2, X3, X4, X5), + new_setvars(SVars, Space, X1, X2, X3, X4, X5). + +new_setvars([], Space, X1, X2, X3, X4). +new_setvars([SVar|SVars], Space, X1, X2, X3, X4) :- + new_setvar(SVar, Space, X1, X2, X3, X4), + new_setvars(SVars, Space, X1, X2, X3, X4). + +new_setvars([], Space, X1, X2, X3). +new_setvars([SVar|SVars], Space, X1, X2, X3) :- + new_setvar(SVar, Space, X1, X2, X3), + new_setvars(SVars, Space, X1, X2, X3). + +new_setvars([], Space, X1, X2). +new_setvars([SVar|SVars], Space, X1, X2) :- + new_setvar(SVar, Space, X1, X2), + new_setvars(SVars, Space, X1, X2). + +%% AUTOGENERATE LATER + +assert_integer(X) :- assert_is_int(X). + +new_intvar(IVar, Space, Lo, Hi) :- !, + assert_var(IVar), + assert_is_Space_or_Clause(Space,Space_), + assert_integer(Lo), + assert_integer(Hi), + gecode_new_intvar_from_bounds(Idx,Space_,Lo,Hi), + IVar='IntVar'(Idx,-1). +new_intvar(IVar, Space, IntSet) :- !, + assert_var(IVar), + assert_is_Space_or_Clause(Space,Space_), + assert_is_IntSet(IntSet, L), + gecode_new_intvar_from_intset(Idx,Space_,L), + IVar='IntVar'(Idx,-1). + +new_boolvar(BVar, Space) :- !, + assert_var(BVar), + assert_is_Space_or_Clause(Space,Space_), + gecode_new_boolvar(Idx,Space_), + BVar='BoolVar'(Idx,-1). + +%% (GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax) 6 new_setvar_1 +%% (GlbMin,GlbMax,LubMin,LubMax,CardMin) 5 new_setvar_2 +%% (GlbMin,GlbMax,LubMin,LubMax) 4 new_setvar_3 +%% (Glb,LubMin,LubMax,CardMin,CardMax) 5 new_setvar_4 +%% (Glb,LubMin,LubMax,CardMin) 4 new_setvar_5 +%% (Glb,LubMin,LubMax) 3 new_setvar_6 +%% (GlbMin,GlbMax,Lub,CardMin,CardMax) 5 new_setvar_7 +%% (GlbMin,GlbMax,Lub,CardMin) 4 new_setvar_8 +%% (GlbMin,GlbMax,Lub) 3 new_setvar_9 +%% (Glb,Lub,CardMin,CardMax) 4 new_setvar_10 +%% (Glb,Lub,CardMin) 3 new_setvar_11 +%% (Glb,Lub) 2 new_setvar_12 + +%% 6 arguments +%% (GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax) 6 new_setvar_1 +new_setvar(SVar, Space, GlbMin, GlbMax, LubMin, LubMax, CardMin, CardMax) :- + assert_var(SVar), + assert_is_Space_or_Clause(Space,Space_), + assert_integer(GlbMin), + assert_integer(GlbMax), + assert_integer(LubMin), + assert_integer(LubMax), + assert_integer(CardMin), + assert_integer(CardMax), + gecode_new_setvar(Idx, Space_, GlbMin, GlbMax, LubMib, LubMax, CardMin, CardMax), + SVar='SetVar'(Idx,-1). + +%% 5 arguments +%% (GlbMin,GlbMax,LubMin,LubMax,CardMin) 5 new_setvar_2 +%% (Glb,LubMin,LubMax,CardMin,CardMax) 5 new_setvar_4 +%% (GlbMin,GlbMax,Lub,CardMin,CardMax) 5 new_setvar_7 +new_setvar(SVar, Space, X1, X2, X3, X4, X5) :- + assert_var(SVar), + assert_is_Space_or_Clause(Space,Space_), + (integer(X1) + -> + assert_integer(X2), + assert_integer(X4), + assert_integer(X5), + (is_IntSet(X3,X3_) + -> gecode_new_setvar_7(Idx,Space_,X1,X2,X3_,X4,X5) + ; gecode_new_setvar_2(Idx,Space_,X1,X2,X3,X4,X5)) + ; + assert_is_IntSet(X1,X1_), + assert_integer(X2), + assert_integer(X3), + assert_integer(X4), + assert_integer(X5), + gecode_new_setvar_4(Idx,Space_,X1_,X2,X3,X4,X5)), + SVar='SetVar'(Idx,-1). + +%% 4 arguments +%% (GlbMin,GlbMax,LubMin,LubMax) 4 new_setvar_3 +%% (Glb,LubMin,LubMax,CardMin) 4 new_setvar_5 +%% (GlbMin,GlbMax,Lub,CardMin) 4 new_setvar_8 +%% (Glb,Lub,CardMin,CardMax) 4 new_setvar_10 +new_setvar(SVar,Space,X1,X2,X3,X4) :- + assert_var(SVar), + assert_is_Space_or_Clause(Space,Space_), + assert_integer(X4), + (is_IntSet(X1,X1_) + -> (is_IntSet(X2,X2_) + -> + assert_integer(X3), + gecode_new_setvar_10(Idx,Space_,X1_,X2_,X3,X4) + ; + assert_integer(X2), + assert_integer(X3), + gecode_new_setvar_5(Idx,Space_,X1_,X2,X3,X4)) + ; + assert_integer(X1), + assert_integer(X2), + (is_IntSet(X3,X3_) + -> + gecode_new_setvar_8(Idx,Space_,X1,X2,X3_,X4) + ; + assert_integer(X3), + gecode_new_setvar_3(Idx,Space_,X1,X2,X3,X4))), + SVar='SetVar'(Idx,-1). + +%% 3 arguments +%% (Glb,LubMin,LubMax) 3 new_setvar_6 +%% (GlbMin,GlbMax,Lub) 3 new_setvar_9 +%% (Glb,Lub,CardMin) 3 new_setvar_11 +new_setvar(SVar,Space,X1,X2,X3) :- + assert_var(SVar), + assert_is_Space_or_Clause(Space,Space_), + (is_IntSet(X1,X1_) + -> (is_IntSet(X2,X2_) + -> + assert_integer(X3), + gecode_new_setvar_11(Idx,Space_,X1_,X2_,X3) + ; + assert_integer(X2), + assert_integer(X3), + gecode_new_setvar_6(Idx,Space_,X1_,X2,X3)) + ; + assert_integer(X1), + assert_integer(X2), + assert_is_IntSet(X3,X3_), + gecode_new_setvar_9(Idx,Space_,X1,X2,X3_)), + SVar='SetVar'(Idx,-1). + +%% 2 arguments +%% (Glb,Lub) 2 new_setvar_12 +new_setvar(SVar,Space,X1,X2) :- + assert_var(SVar), + assert_is_Space_or_Clause(Space,Space_), + assert_is_IntSet(X1,X1_), + assert_is_IntSet(X2,X2_), + gecode_new_setvar_12(Idx,Space_,X1_,X2_), + SVar='SetVar'(Idx,-1). + +minimize(Space,IVar) :- + assert_is_Space(Space,Space_), + assert_is_IntVar(IVar,IVar_), + gecode_space_minimize(Space_,IVar_). +maximize(Space,IVar) :- + assert_is_Space(Space,Space_), + assert_is_IntVar(IVar,IVar_), + gecode_space_maximize(Space_,IVar_). +minimize(Space,IVar1,IVar2) :- + assert_is_Space(Space,Space_), + assert_is_IntVar(IVar1,IVar1_), + assert_is_IntVar(IVar2,IVar2_), + gecode_space_minimize_ratio(Space_,IVar1_,IVar2_). +maximize(Space,IVar1,IVar2) :- + assert_is_Space(Space,Space_), + assert_is_IntVar(IVar1,IVar1_), + assert_is_IntVar(IVar2,IVar2_), + gecode_space_maximize_ratio(Space_,IVar1_,IVar2_). + +gecode_search_options_init(search_options(0,1.0,8,2)). +gecode_search_options_offset(restart,1). +gecode_search_options_offset(threads,2). +gecode_search_options_offset(c_d ,3). +gecode_search_options_offset(a_d ,4). + +gecode_search_option_set(O,V,R) :- + gecode_search_options_offset(O,I), + setarg(I,R,V). + +gecode_search_options_from_alist(L,R) :- + gecode_search_options_init(R), + gecode_search_options_process_alist(L,R). + +gecode_search_options_process_alist([],R). +gecode_search_options_process_alist([H|T],R) :- !, + gecode_search_options_process1(H,R), + gecode_search_options_process_alist(T,R). + +gecode_search_options_process1(restart,R) :- !, + gecode_search_option_set(restart,1,R). +gecode_search_options_process1(threads=N,R) :- !, + (integer(N) -> V is float(N) + ; (float(N) -> V=N + ; throw(bad_search_option_value(threads=N)))), + gecode_search_option_set(threads,V,R). +gecode_search_options_process1(c_d=N,R) :- !, + (integer(N) -> V=N + ; throw(bad_search_option_value(c_d=N))), + gecode_search_option_set(c_d,V,R). +gecode_search_options_process1(a_d=N,R) :- !, + (integer(N) -> V=N + ; throw(bad_search_option_value(a_d=N))), + gecode_search_option_set(a_d,V,R). +gecode_search_options_process1(O,_) :- + throw(gecode_error(unrecognized_search_option(O))). + +search(Space, Solution) :- + search(Space, Solution, []). + +search(Space, Solution, Alist) :- + assert_is_Space(Space,Space_), + assert_var(Solution), + gecode_search_options_from_alist(Alist,O), + gecode_new_engine(Space_,Engine_,O), + gecode_engine_search(Engine_,Solution_), + Solution='Space'(Solution_). + + +%% INSPECTING VARIABLES + +get_for_vars([],Space,[],F). +get_for_vars([V|Vs],Space,[V2|V2s],F) :- + call_with_args(F,V,Space,V2), + get_for_vars(Vs,Space,V2s,F). + +get_assigned(Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_assigned(Space_,Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_assigned(Space_,Var_) + ; is_SetVar(Var,Var_) + -> gecode_setvar_assigned(Space_,Var_) + ; throw(gecode_error(expected(variable)))). + +get_min(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_min(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_min(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_min)). + +get_max(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_max(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_max(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_max)). + +get_med(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_med(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_med(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_med)). + +get_val(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_val(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_val(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_val)). + +get_size(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_size(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_size(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_size)). + +get_width(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_width(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_width(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_width)). + +get_regret_min(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_regret_min(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_regret_min(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_regret_min)). + +get_regret_max(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_regret_max(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_regret_max(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_regret_max)). + +get_glbSize(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_glbSize(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_glbSize)). + +get_lubSize(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_lubSize(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_lubSize)). + +get_unknownSize(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_unknownSize(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_unknownSize)). + +get_cardMin(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_cardMin(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_cardMin)). + +get_cardMax(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_cardMax(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_cardMax)). + +get_lubMin(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_lubMin(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_lubMin)). + +get_lubMax(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_lubMax(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_lubMax)). + +get_glbMin(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_glbMin(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_glbMin)). + +get_glbMax(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_glbMax(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_glbMax)). + +get_glb_ranges(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_glb_ranges(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_glb_ranges)). + +get_lub_ranges(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_lub_ranges(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_lub_ranges)). + +get_unknown_ranges(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_unknown_ranges(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_unknown_ranges)). + +get_glb_values(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_glb_values(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_glb_values)). + +get_lub_values(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_lub_values(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_lub_values)). + +get_unknown_values(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_unknown_values(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_unknown_values)). + +get_ranges(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_ranges(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_ranges)). + +get_values(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_values(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_values)). + +new_disjunctor(X, Space) :- + assert_is_Space(Space,Space_), + gecode_new_disjunctor(D,Space_), + X='Disjunctor'(D). + +is_Disjunctor_('Disjunctor'(D),D). +is_Disjunctor(X,Y) :- nonvar(X), is_Disjunctor_(X,Y). +is_Disjunctor(X) :- is_Disjunctor(X,_). + +assert_is_Disjunctor(X,Y) :- + is_Disjunctor(X,Y) -> true ; throw(gecode_error(expected(disjunctor))). + +new_clause(X, Disj) :- + assert_is_Disjunctor(Disj,Disj_), + gecode_new_clause(C, Disj_), + X='Clause'(C). + +is_Clause_('Clause'(C),C) :- + gecode_space_use_keep_index(C,B), + nb_setval(gecode_space_use_keep_index,B). +is_Clause(X,Y) :- nonvar(X), is_Clause_(X,Y). +is_Clause(X) :- is_Clause(X,_). + +assert_is_Clause(X,Y) :- + is_Clause(X,Y) -> true ; throw(gecode_error(expected(clause))). + +is_Space_or_Clause(X,Y) :- + (is_Space(X,Y);is_Clause(X,Y)), !. +assert_is_Space_or_Clause(X,Y) :- + is_Space_or_Clause(X,Y) -> true + ; throw(gecode_error(expected(space,clause))). + +new_forward(Clause, X, Y) :- + assert_is_Clause(Clause, Clause_), + (is_IntVar(X,X_) + -> (is_IntVar(Y,Y_) + -> gecode_clause_intvar_forward(Clause_,X_,Y_) + ; throw(gecode_error(forward))) + ; (is_BoolVar(X,X_) + -> (is_BoolVar(Y,Y_) + -> gecode_clause_boolvar_forward(Clause_,X_,Y_) + ; throw(gecode_error(forward))) + ; (is_SetVar(X,X_) + -> (is_SetVar(Y,Y_) + -> gecode_clause_setvar_forward(Clause_,X_,Y_) + ; throw(gecode_error(forward))) + ; (X=[] + -> Y=[] + ;(X=[H1|T1],Y=[H2|T2]) + -> (new_forward(Clause,H1,H2), + new_forward(Clause,T1,T2)) + ; throw(gecode_error(forward)))))). + +new_intvars_(L,Space,N,I,J) :- length(L,N), new_intvars(L,Space,I,J). +new_intvars_(L,Space,N,IntSet) :- length(L,N), new_intvars(L,Space,IntSet). +new_boolvars_(L,Space,N) :- length(L,N), new_boolvars(L,Space). +new_setvars_(L,Space,N,X1,X2,X3,X4,X5,X6) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4,X5,X6). +new_setvars_(L,Space,N,X1,X2,X3,X4,X5) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4,X5). +new_setvars_(L,Space,N,X1,X2,X3,X4) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4). +new_setvars_(L,Space,N,X1,X2,X3) :- length(L,N), new_setvars(L,Space,X1,X2,X3). +new_setvars_(L,Space,N,X1,X2) :- length(L,N), new_setvars(L,Space,X1,X2). + +keep_(Space, Var) :- + (Var = 'IntVar'(I,J) + -> (J = -1 -> (gecode_intvar_keep(Space,I,K),setarg(2,Var,K)) + ; throw(gecode_error(variable_already_kept(Var)))) + ; (Var = 'BoolVar'(I,J) + -> (J = -1 -> (gecode_boolvar_keep(Space,I,K),setarg(2,Var,K)) + ; throw(gecode_error(variable_already_kept(Var)))) + ; (Var = 'SetVar'(I,J) + -> (J = -1 -> (gecode_setvar_keep(Space,I,K),setarg(2,Var,K)) + ; throw(gecode_error(variable_already_kept(Var)))) + ; keep_list_(Space,Var)))). + +keep_list_(Space, []) :- !. +keep_list_(Space, [H|T]) :- !, + keep_(Space,H), keep_list_(Space,T). +keep_list_(_, X) :- + throw(gecode_error(not_a_variable(X))). + +%% more concise interface: +(X := Y) :- var(Y), !, throw(gecode_error((X := Y))). +(X := intset(I,J)) :- !, new_intset(X,I,J). +(X := intset(L)) :- !, new_intset(X,L). +(X := space) :- !, new_space(X). +(X := intvar(Space,I,J)) :- !, new_intvar(X,Space,I,J). +(X := intvar(Space,IntSet)) :- !, new_intvar(X,Space,IntSet). +(X := boolvar(Space)) :- !, new_boolvar(X,Space). +(X := setvar(Space,X1,X2,X3,X4,X5,X6)) :- !, new_setvar(X,Space,X1,X2,X3,X4,X5,X6). +(X := setvar(Space,X1,X2,X3,X4,X5)) :- !, new_setvar(X,Space,X1,X2,X3,X4,X5). +(X := setvar(Space,X1,X2,X3,X4)) :- !, new_setvar(X,Space,X1,X2,X3,X4). +(X := setvar(Space,X1,X2,X3)) :- !, new_setvar(X,Space,X1,X2,X3). +(X := setvar(Space,X1,X2)) :- !, new_setvar(X,Space,X1,X2). +(X := intvars(Space,N,I,J)) :- !, new_intvars_(X,Space,N,I,J). +(X := intvars(Space,N,IntSet)) :- !, new_intvars_(X,Space,N,IntSet). +(X := boolvars(Space,N)) :- !, new_boolvars_(X,Space,N). +(X := setvars(Space,N,X1,X2,X3,X4,X5,X6)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4,X5,X6). +(X := setvars(Space,N,X1,X2,X3,X4,X5)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4,X5). +(X := setvars(Space,N,X1,X2,X3,X4)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4). +(X := setvars(Space,N,X1,X2,X3)) :- !, new_setvars_(X,Space,N,X1,X2,X3). +(X := setvars(Space,N,X1,X2)) :- !, new_setvars_(X,Space,N,X1,X2). + +(X := min(Space,Var)) :- !, get_min(X,Space,Var). +(X := max(Space,Var)) :- !, get_max(X,Space,Var). +(X := med(Space,Var)) :- !, get_med(X,Space,Var). +(X := val(Space,Var)) :- !, get_val(X,Space,Var). +(X := size(Space,Var)) :- !, get_size(X,Space,Var). +(X := width(Space,Var)) :- !, get_width(X,Space,Var). +(X := regret_min(Space,Var)) :- !, get_regret_min(X,Space,Var). +(X := regret_max(Space,Var)) :- !, get_regret_max(X,Space,Var). +(X := ranges(Space,Var)) :- !, get_ranges(X,Space,Var). +(X := values(Space,Var)) :- !, get_values(X,Space,Var). + +(X := glbSize(Space,Var)) :- !, get_glbSize(X,Space,Var). +(X := lubSize(Space,Var)) :- !, get_lubSize(X,Space,Var). +(X := unknownSize(Space,Var)) :- !, get_unknownSize(X,Space,Var). +(X := cardMin(Space,Var)) :- !, get_cardMin(X,Space,Var). +(X := cardMax(Space,Var)) :- !, get_cardMax(X,Space,Var). +(X := lubMin(Space,Var)) :- !, get_lubMin(X,Space,Var). +(X := lubMax(Space,Var)) :- !, get_lubMax(X,Space,Var). +(X := glbMin(Space,Var)) :- !, get_glbMin(X,Space,Var). +(X := glbMax(Space,Var)) :- !, get_glbMax(X,Space,Var). +(X := glb_ranges(Space,Var)) :- !, get_glb_ranges(X,Space,Var). +(X := lub_ranges(Space,Var)) :- !, get_lub_ranges(X,Space,Var). +(X := unknown_ranges(Space,Var)) :- !, get_unknown_ranges(X,Space,Var). +(X := glb_values(Space,Var)) :- !, get_glb_values(X,Space,Var). +(X := lub_values(Space,Var)) :- !, get_lub_values(X,Space,Var). +(X := unknown_values(Space,Var)) :- !, get_unknown_values(X,Space,Var). + +(X := disjunctor(Space)) :- !, new_disjunctor(X,Space). +(X := clause(Disj)) :- !, new_clause(X,Disj). + +(X := search(Y)) :- !, search(Y,X). +(X := search(Y,L)) :- !, search(Y,X,L). + +% these should be autogenerated: +(C += forward(X,Y)) :- !, new_forward(C,X,Y). +(Space += abs(X1,X2)) :- !, abs(Space,X1,X2). +(Space += abs(X1,X2,X3)) :- !, abs(Space,X1,X2,X3). +(Space += assign(X1,X2)) :- !, assign(Space,X1,X2). +(Space += atmostOne(X1,X2)) :- !, atmostOne(Space,X1,X2). +(Space += binpacking(X1,X2,X3)) :- !, binpacking(Space,X1,X2,X3). +(Space += binpacking(X1,X2,X3,X4)) :- !, binpacking(Space,X1,X2,X3,X4). +(Space += branch(X1,X2)) :- !, branch(Space,X1,X2). +(Space += branch(X1,X2,X3)) :- !, branch(Space,X1,X2,X3). +(Space += cardinality(X1,X2)) :- !, cardinality(Space,X1,X2). +(Space += cardinality(X1,X2,X3)) :- !, cardinality(Space,X1,X2,X3). +(Space += channel(X1,X2)) :- !, channel(Space,X1,X2). +(Space += channel(X1,X2,X3)) :- !, channel(Space,X1,X2,X3). +(Space += channel(X1,X2,X3,X4)) :- !, channel(Space,X1,X2,X3,X4). +(Space += channel(X1,X2,X3,X4,X5)) :- !, channel(Space,X1,X2,X3,X4,X5). +(Space += channelSorted(X1,X2)) :- !, channelSorted(Space,X1,X2). +(Space += circuit(X1)) :- !, circuit(Space,X1). +(Space += circuit(X1,X2)) :- !, circuit(Space,X1,X2). +(Space += circuit(X1,X2,X3)) :- !, circuit(Space,X1,X2,X3). +(Space += circuit(X1,X2,X3,X4)) :- !, circuit(Space,X1,X2,X3,X4). +(Space += circuit(X1,X2,X3,X4,X5)) :- !, circuit(Space,X1,X2,X3,X4,X5). +(Space += circuit(X1,X2,X3,X4,X5,X6)) :- !, circuit(Space,X1,X2,X3,X4,X5,X6). +(Space += clause(X1,X2,X3,X4)) :- !, clause(Space,X1,X2,X3,X4). +(Space += clause(X1,X2,X3,X4,X5)) :- !, clause(Space,X1,X2,X3,X4,X5). +(Space += convex(X1)) :- !, convex(Space,X1). +(Space += convex(X1,X2)) :- !, convex(Space,X1,X2). +(Space += count(X1,X2)) :- !, count(Space,X1,X2). +(Space += count(X1,X2,X3)) :- !, count(Space,X1,X2,X3). +(Space += count(X1,X2,X3,X4)) :- !, count(Space,X1,X2,X3,X4). +(Space += count(X1,X2,X3,X4,X5)) :- !, count(Space,X1,X2,X3,X4,X5). +(Space += cumulative(X1,X2,X3,X4)) :- !, cumulative(Space,X1,X2,X3,X4). +(Space += cumulative(X1,X2,X3,X4,X5)) :- !, cumulative(Space,X1,X2,X3,X4,X5). +(Space += cumulative(X1,X2,X3,X4,X5,X6)) :- !, cumulative(Space,X1,X2,X3,X4,X5,X6). +(Space += cumulative(X1,X2,X3,X4,X5,X6,X7)) :- !, cumulative(Space,X1,X2,X3,X4,X5,X6,X7). +(Space += cumulatives(X1,X2,X3,X4,X5,X6,X7)) :- !, cumulatives(Space,X1,X2,X3,X4,X5,X6,X7). +(Space += cumulatives(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, cumulatives(Space,X1,X2,X3,X4,X5,X6,X7,X8). +(Space += distinct(X1)) :- !, distinct(Space,X1). +(Space += distinct(X1,X2)) :- !, distinct(Space,X1,X2). +(Space += distinct(X1,X2,X3)) :- !, distinct(Space,X1,X2,X3). +(Space += div(X1,X2,X3)) :- !, div(Space,X1,X2,X3). +(Space += div(X1,X2,X3,X4)) :- !, div(Space,X1,X2,X3,X4). +(Space += divmod(X1,X2,X3,X4)) :- !, divmod(Space,X1,X2,X3,X4). +(Space += divmod(X1,X2,X3,X4,X5)) :- !, divmod(Space,X1,X2,X3,X4,X5). +(Space += dom(X1,X2)) :- !, dom(Space,X1,X2). +(Space += dom(X1,X2,X3)) :- !, dom(Space,X1,X2,X3). +(Space += dom(X1,X2,X3,X4)) :- !, dom(Space,X1,X2,X3,X4). +(Space += dom(X1,X2,X3,X4,X5)) :- !, dom(Space,X1,X2,X3,X4,X5). +(Space += element(X1,X2,X3)) :- !, element(Space,X1,X2,X3). +(Space += element(X1,X2,X3,X4)) :- !, element(Space,X1,X2,X3,X4). +(Space += element(X1,X2,X3,X4,X5)) :- !, element(Space,X1,X2,X3,X4,X5). +(Space += element(X1,X2,X3,X4,X5,X6)) :- !, element(Space,X1,X2,X3,X4,X5,X6). +(Space += element(X1,X2,X3,X4,X5,X6,X7)) :- !, element(Space,X1,X2,X3,X4,X5,X6,X7). +(Space += linear(X1,X2,X3)) :- !, linear(Space,X1,X2,X3). +(Space += linear(X1,X2,X3,X4)) :- !, linear(Space,X1,X2,X3,X4). +(Space += linear(X1,X2,X3,X4,X5)) :- !, linear(Space,X1,X2,X3,X4,X5). +(Space += linear(X1,X2,X3,X4,X5,X6)) :- !, linear(Space,X1,X2,X3,X4,X5,X6). +(Space += max(X1,X2)) :- !, max(Space,X1,X2). +(Space += max(X1,X2,X3)) :- !, max(Space,X1,X2,X3). +(Space += max(X1,X2,X3,X4)) :- !, max(Space,X1,X2,X3,X4). +(Space += min(X1,X2)) :- !, min(Space,X1,X2). +(Space += min(X1,X2,X3)) :- !, min(Space,X1,X2,X3). +(Space += min(X1,X2,X3,X4)) :- !, min(Space,X1,X2,X3,X4). +(Space += mod(X1,X2,X3)) :- !, mod(Space,X1,X2,X3). +(Space += mod(X1,X2,X3,X4)) :- !, mod(Space,X1,X2,X3,X4). +(Space += mult(X1,X2,X3)) :- !, mult(Space,X1,X2,X3). +(Space += mult(X1,X2,X3,X4)) :- !, mult(Space,X1,X2,X3,X4). +(Space += nooverlap(X1,X2,X3,X4)) :- !, nooverlap(Space,X1,X2,X3,X4). +(Space += nooverlap(X1,X2,X3,X4,X5)) :- !, nooverlap(Space,X1,X2,X3,X4,X5). +(Space += nooverlap(X1,X2,X3,X4,X5,X6)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6). +(Space += nooverlap(X1,X2,X3,X4,X5,X6,X7)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6,X7). +(Space += nooverlap(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6,X7,X8). +(Space += notMax(X1,X2)) :- !, notMax(Space,X1,X2). +(Space += notMin(X1,X2)) :- !, notMin(Space,X1,X2). +(Space += path(X1,X2,X3)) :- !, path(Space,X1,X2,X3). +(Space += path(X1,X2,X3,X4)) :- !, path(Space,X1,X2,X3,X4). +(Space += path(X1,X2,X3,X4,X5)) :- !, path(Space,X1,X2,X3,X4,X5). +(Space += path(X1,X2,X3,X4,X5,X6)) :- !, path(Space,X1,X2,X3,X4,X5,X6). +(Space += path(X1,X2,X3,X4,X5,X6,X7)) :- !, path(Space,X1,X2,X3,X4,X5,X6,X7). +(Space += path(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, path(Space,X1,X2,X3,X4,X5,X6,X7,X8). +(Space += precede(X1,X2)) :- !, precede(Space,X1,X2). +(Space += precede(X1,X2,X3)) :- !, precede(Space,X1,X2,X3). +(Space += precede(X1,X2,X3,X4)) :- !, precede(Space,X1,X2,X3,X4). +(Space += rel(X1,X2)) :- !, rel(Space,X1,X2). +(Space += rel(X1,X2,X3)) :- !, rel(Space,X1,X2,X3). +(Space += rel(X1,X2,X3,X4)) :- !, rel(Space,X1,X2,X3,X4). +(Space += rel(X1,X2,X3,X4,X5)) :- !, rel(Space,X1,X2,X3,X4,X5). +(Space += sequence(X1)) :- !, sequence(Space,X1). +(Space += sequence(X1,X2)) :- !, sequence(Space,X1,X2). +(Space += sequence(X1,X2,X3,X4,X5)) :- !, sequence(Space,X1,X2,X3,X4,X5). +(Space += sequence(X1,X2,X3,X4,X5,X6)) :- !, sequence(Space,X1,X2,X3,X4,X5,X6). +(Space += sorted(X1,X2)) :- !, sorted(Space,X1,X2). +(Space += sorted(X1,X2,X3)) :- !, sorted(Space,X1,X2,X3). +(Space += sorted(X1,X2,X3,X4)) :- !, sorted(Space,X1,X2,X3,X4). +(Space += sqr(X0,X1,X2,X3)) :- !, sqr(Space,X0,X1,X2,X3). +(Space += sqr(X1,X2)) :- !, sqr(Space,X1,X2). +(Space += sqrt(X1,X2)) :- !, sqrt(Space,X1,X2). +(Space += sqrt(X1,X2,X3)) :- !, sqrt(Space,X1,X2,X3). +(Space += unary(X1,X2)) :- !, unary(Space,X1,X2). +(Space += unary(X1,X2,X3)) :- !, unary(Space,X1,X2,X3). +(Space += unary(X1,X2,X3,X4)) :- !, unary(Space,X1,X2,X3,X4). +(Space += unary(X1,X2,X3,X4,X5)) :- !, unary(Space,X1,X2,X3,X4,X5). +(Space += unshare(X1)) :- !, unshare(Space,X1). +(Space += unshare(X1,X2)) :- !, unshare(Space,X1,X2). +(Space += weights(X1,X2,X3,X4)) :- !; weights(Space,X1,X2,X3,X4). + +(Space += minimize(X)) :- !, minimize(Space,X). +(Space += maximize(X)) :- !, maximize(Space,X). +(Space += minimize(X,Y)) :- !, minimize(Space,X,Y). +(Space += maximize(X,Y)) :- !, maximize(Space,X,Y). + +(Space += keep(X)) :- !, keep_(Space,X). diff --git a/packages/gecode/gecode4-common.icc b/packages/gecode/gecode4-common.icc new file mode 100644 index 000000000..678a61957 --- /dev/null +++ b/packages/gecode/gecode4-common.icc @@ -0,0 +1,413 @@ +// -*- c++ -*- +//============================================================================= +// Copyright (C) 2011 by Denys Duchier +// +// This program is free software: you can redistribute it and/or modify it +// under the terms of the GNU Lesser General Public License as published by the +// Free Software Foundation, either version 3 of the License, or (at your +// option) any later version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +// more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +//============================================================================= + +#ifndef GECODE_COMMON +#define GECODE_COMMON + +#include "gecode/driver.hh" +#include "gecode/int.hh" +#include "gecode/set.hh" +#include "gecode/search.hh" +#include + +namespace generic_gecode +{ + using namespace std; + using namespace Gecode; + + // description of the optimization criterion + struct Optimizing + { + enum What { OPT_NONE, OPT_INT, OPT_RATIO }; + enum How { OPT_MIN, OPT_MAX }; + int num; + int den; + What what; + How how; + Optimizing(): num(-1), den(-1), what(OPT_NONE), how(OPT_MAX) {} + Optimizing(Optimizing& o) + : num(o.num), den(o.den), what(o.what), how(o.how) {} + void check_ok() const + { if (what!=OPT_NONE) + throw Exception("gecode-python","too many optimization criteria"); } + void maximize(int i) + { check_ok(); what = OPT_INT; how = OPT_MAX; num = i; }; + void maximize(int i,int j) + { check_ok(); what = OPT_RATIO; how = OPT_MAX; num = i; den = j; }; + void minimize(int i) + { check_ok(); what = OPT_INT; how = OPT_MIN; num = i; }; + void minimize(int i,int j) + { check_ok(); what = OPT_RATIO; how = OPT_MIN; num = i; den = j; }; + }; + + struct GenericSpace; + + struct GenericEngine + { + virtual GenericSpace* next(void)=0; + virtual ~GenericEngine() {}; + }; + + struct GenericDFS: GenericEngine + { + DFS engine; + GenericDFS(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} + virtual GenericSpace* next(void) { return engine.next(); } + }; + + struct GenericRestartDFS: GenericEngine + { + RBS engine; + GenericRestartDFS(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} + virtual GenericSpace* next(void) { return engine.next(); } + }; + + struct GenericBAB: GenericEngine + { + BAB engine; + GenericBAB(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} + virtual GenericSpace* next(void) { return engine.next(); } + }; + + struct GenericRestartBAB: GenericEngine + { + RBS engine; + GenericRestartBAB(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} + virtual GenericSpace* next(void) { return engine.next(); } + }; + +#ifdef OLD + struct GenericRestart: GenericEngine + { + Restart engine; + GenericRestart(GenericSpace* s,Search::Options& opt): engine(s,opt) {} + virtual GenericSpace* next(void) { return engine.next(); } + }; +#endif + + struct LoadingDock + { + vector ivars; + vector bvars; + vector fvars; + vector svars; + vector ikeep; + vector bkeep; + vector fkeep; + vector skeep; + + bool keeping_some() const + { + return (ikeep.size() != 0) + || (bkeep.size() != 0) + || (fkeep.size() != 0) + || (skeep.size() != 0); + } + + IntVar get_ivar(int i) const { return ivars[i]; } + BoolVar get_bvar(int i) const { return bvars[i]; } + FloatVar get_fvar(int i) const { return fvars[i]; } + SetVar get_svar(int i) const { return svars[i]; } + + int enter_ivar(const IntVar& v) + { ivars.push_back(v); return static_cast(ivars.size()-1); } + + int enter_bvar(const BoolVar& v) + { bvars.push_back(v); return static_cast(bvars.size()-1); } + + int enter_fvar(const FloatVar& v) + { fvars.push_back(v); return static_cast(fvars.size()-1); } + + int enter_svar(const SetVar& v) + { svars.push_back(v); return static_cast(svars.size()-1); } + + int keep_ivar(int i) { ikeep.push_back(i); return static_cast(ikeep.size()-1); } + int keep_bvar(int i) { bkeep.push_back(i); return static_cast(bkeep.size()-1); } + int keep_fvar(int i) { fkeep.push_back(i); return static_cast(fkeep.size()-1); } + int keep_svar(int i) { skeep.push_back(i); return static_cast(skeep.size()-1); } + + void freeze(Space& home, + IntVarArray& iarr, BoolVarArray& barr, SetVarArray& sarr, FloatVarArray& farr, + int& num, int& den) + { + if (keeping_some()) + { + // make sure that optimization vars (if any) are kept + if (num != -1) + { + const int _num(num); + const int _den(den); + int n = static_cast(ikeep.size()); + bool num_found(false); + bool den_found(false); + for (;n--;) + { + const int idx(ikeep[n]); + if (idx==_num) + { num_found=true; if (den_found) break; } + if (idx==_den) + { den_found=true; if (num_found) break; } + } + if (!num_found) + { ikeep.push_back(_num); + num=static_cast(ikeep.size()-1); } + if (_den != -1 && !den_found) + { ikeep.push_back(_den); + den=static_cast(ikeep.size()-1); } + } + { int n = static_cast(ikeep.size()); + iarr = IntVarArray(home, n); + for (;n--;) iarr[n]=ivars[ikeep[n]]; } + { int n = static_cast(bkeep.size()); + barr = BoolVarArray(home, n); + for (;n--;) barr[n]=bvars[bkeep[n]]; } + { int n = static_cast(skeep.size()); + sarr = SetVarArray(home, n); + for (;n--;) sarr[n]=svars[skeep[n]]; } + { int n = static_cast(fkeep.size()); + farr = FloatVarArray(home, n); + for (;n--;) farr[n]=fvars[skeep[n]]; } + } + else + { + { int n = static_cast(ivars.size()); + iarr = IntVarArray(home, n); + for (;n--;) iarr[n]=ivars[n]; } + { int n = static_cast(bvars.size()); + barr = BoolVarArray(home, n); + for (;n--;) barr[n]=bvars[n]; } + { int n = static_cast(svars.size()); + sarr = SetVarArray(home, n); + for (;n--;) sarr[n]=svars[n]; } + { int n = static_cast(fvars.size()); + farr = FloatVarArray(home, n); + for (;n--;) farr[n]=fvars[n]; } + } + } + }; + + struct GenericSpace: Space + { + Optimizing optim; + IntVarArray ivars; + BoolVarArray bvars; + FloatVarArray fvars; + SetVarArray svars; + LoadingDock* dock; + bool keeping_some; // iff only SOME of the vars are kept + + Space* space() { return this; } + + GenericSpace(bool share, GenericSpace& s) + : Space(share, s), optim(s.optim), dock(NULL), keeping_some(s.keeping_some) + { + ivars.update(*this, share, s.ivars); + bvars.update(*this, share, s.bvars); + svars.update(*this, share, s.svars); + fvars.update(*this, share, s.fvars); + } + + Space* copy(bool share) + { freeze(); return new GenericSpace(share, *this); } + + GenericSpace() : dock(new LoadingDock()), keeping_some(false) {} + ~GenericSpace() { delete dock; } + + // throw some C++ exception on behalf of glue code + void kaboom(const char* s) + { throw Exception("gecode-python", s); } + int ikaboom(const char* s) + { kaboom(s); return 0; } + + // freeze the space before handing it off to a search engine + void freeze() + { + if (dock) + { + keeping_some = dock->keeping_some(); + dock->freeze(*this, ivars, bvars, svars, fvars, optim.num, optim.den); + delete dock; + dock = NULL; + } + } + + IntVar get_ivar(int i) const { return (dock)?dock->get_ivar(i):ivars[i]; } + BoolVar get_bvar(int i) const { return (dock)?dock->get_bvar(i):bvars[i]; } + SetVar get_svar(int i) const { return (dock)?dock->get_svar(i):svars[i]; } + FloatVar get_fvar(int i) const { return (dock)?dock->get_fvar(i):fvars[i]; } + + int keep_ivar(int i) + { + if (dock) return dock->keep_ivar(i); + else return ikaboom("too late to keep"); + } + + int keep_bvar(int i) + { + if (dock) return dock->keep_bvar(i); + else return ikaboom("too late to keep"); + } + + int keep_svar(int i) + { + if (dock) return dock->keep_svar(i); + else return ikaboom("too late to keep"); + } + + int keep_fvar(int i) + { + if (dock) return dock->keep_fvar(i); + else return ikaboom("too late to keep"); + } + + bool frozen() const { return dock==NULL; } + bool has_keepers() const { return keeping_some; } + // when frozen and has_keepers: which is just has_keepers actually + bool use_keep_index() const { return has_keepers(); } + + GenericEngine* new_engine(bool restart, Search::Options& opt) + { + freeze(); + return (optim.what == Optimizing::OPT_NONE) + ? ( restart + ? static_cast(new GenericRestartDFS(this,opt)) + : static_cast(new GenericDFS(this,opt)) ) + : (restart + ? static_cast(new GenericRestartBAB(this,opt)) + : + static_cast(new GenericBAB(this,opt)) ); + } + + int _new_ivar(IntVar& v) + { + if (dock) return dock->enter_ivar(v); + else return ikaboom("too late to create vars"); + } + + int new_ivar(int lo, int hi) + { + IntVar v(*this, lo, hi); + return _new_ivar(v); + } + + int new_ivar(IntSet& s) + { + IntVar v(*this, s); + return _new_ivar(v); + } + + int _new_fvar(FloatVar& v) + { + if (dock) return dock->enter_fvar(v); + else return ikaboom("too late to create vars"); + } + + int new_fvar(double lo, double hi) + { + FloatVar v(*this, lo, hi); + return _new_fvar(v); + } + + int _new_bvar(BoolVar& v) + { + if (dock) return dock->enter_bvar(v); + else return ikaboom("too late to create vars"); + } + + int new_bvar() + { + BoolVar v(*this, 0, 1); + return _new_bvar(v); + } + + int _new_svar(SetVar& v) + { + if (dock) return dock->enter_svar(v); + else return ikaboom("too late to create vars"); + } + + int new_svar(int glbMin, int glbMax, int lubMin, int lubMax, + unsigned int cardMin=0, + unsigned int cardMax=Set::Limits::card) + { + SetVar v(*this, glbMin, glbMax, lubMin, lubMax, cardMin, cardMax); + return _new_svar(v); + } + + int new_svar(IntSet glb, int lubMin, int lubMax, + unsigned int cardMin=0, + unsigned int cardMax=Set::Limits::card) + { + SetVar v(*this, glb, lubMin, lubMax, cardMin, cardMax); + return _new_svar(v); + } + + int new_svar(int glbMin, int glbMax, IntSet lub, + unsigned int cardMin=0, + unsigned int cardMax=Set::Limits::card) + { + SetVar v(*this, glbMin, glbMax, lub, cardMin, cardMax); + return _new_svar(v); + } + + int new_svar(IntSet glb, IntSet lub, + unsigned int cardMin=0, + unsigned int cardMax=Set::Limits::card) + { + SetVar v(*this, glb, lub, cardMin, cardMax); + return _new_svar(v); + } + + void minimize(int i) { optim.minimize(i); } + void minimize(int i, int j) { optim.minimize(i,j); } + void maximize(int i) { optim.maximize(i); } + void maximize(int i, int j) { optim.maximize(i,j); } + + virtual void constrain(const Space& s) + { + const GenericSpace& sol = static_cast(s); + switch (optim.what) + { + case Optimizing::OPT_NONE: + break; + case Optimizing::OPT_INT: + rel(*this, ivars[optim.num], + ((optim.how==Optimizing::OPT_MIN) ? IRT_LE : IRT_GR), + sol.ivars[optim.num].val()); + break; + case Optimizing::OPT_RATIO: + { + IntArgs c(2, sol.ivars[optim.den].val(), + - sol.ivars[optim.num].val()); + IntVarArgs v(2); + v[0] = ivars[optim.num]; + v[1] = ivars[optim.den]; + linear(*this, c, v, + ((optim.how==Optimizing::OPT_MIN) ? IRT_LE : IRT_GR), 0); + break; + } + } + } + }; +} + +#ifdef DISJUNCTOR +#include "disjunctor.icc" +#endif + +#endif diff --git a/packages/gecode/gecode4_yap_hand_written.yap b/packages/gecode/gecode4_yap_hand_written.yap new file mode 100644 index 000000000..2db8d68c9 --- /dev/null +++ b/packages/gecode/gecode4_yap_hand_written.yap @@ -0,0 +1,1094 @@ +%% -*- prolog -*- +%%============================================================================= +%% Copyright (C) 2011 by Denys Duchier +%% +%% This program is free software: you can redistribute it and/or modify it +%% under the terms of the GNU Lesser General Public License as published by the +%% Free Software Foundation, either version 3 of the License, or (at your +%% option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but WITHOUT +%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +%% more details. +%% +%% You should have received a copy of the GNU Lesser General Public License +%% along with this program. If not, see . +%%============================================================================= + +:- module(gecode, [(:=)/2, op(500, xfx, ':='), + (+=)/2, op(500, xfx, '+=')]). + +:- use_module(library(debug)). + +:- op(500, xfx, ':='). +:- op(500, xfx, '+='). +:- load_foreign_files([gecode_yap],[],gecode_init). + +is_int(X,Y) :- integer(X), Y=X. +is_int(X) :- integer(X). + +is_bool_(true,true). +is_bool_(false,false). +is_bool(X,Y) :- nonvar(X), Y=X. +is_bool(X) :- is_bool(X,_). + +is_IntVar_('IntVar'(I,K),N) :- + integer(I), + integer(K), + nb_getval(gecode_space_use_keep_index,B), + (B=true -> N=K ; N=I). +is_FloatVar_('FloatVar'(I,K),N) :- + integer(I), + integer(K), + nb_getval(gecode_space_use_keep_index,B), + (B=true -> N=K ; N=I). +is_BoolVar_('BoolVar'(I,K),N) :- + integer(I), + integer(K), + nb_getval(gecode_space_use_keep_index,B), + (B=true -> N=K ; N=I). +is_SetVar_('SetVar'(I,K),N) :- + integer(I), + integer(K), + nb_getval(gecode_space_use_keep_index,B), + (B=true -> N=K ; N=I). + +is_IntVar(X,I) :- nonvar(X), is_IntVar_(X,I). +is_BoolVar(X,I) :- nonvar(X), is_BoolVar_(X,I). +is_FloatVar(X,I) :- nonvar(X), is_FloatVar_(X,I). +is_SetVar(X,I) :- nonvar(X), is_SetVar_(X,I). + +is_IntVar(X) :- is_IntVar(X,_). +is_BoolVar(X) :- is_BoolVar(X,_). +is_FloatVar(X) :- is_FloatVar(X,_). +is_SetVar(X) :- is_SetVar(X,_). + +is_IntVarArgs_([],[]). +is_IntVarArgs_([H|T],[H2|T2]) :- is_IntVar(H,H2), is_IntVarArgs(T,T2). +is_IntVarArgs(X,Y) :- nonvar(X), is_IntVarArgs_(X,Y). +is_IntVarArgs(X) :- \+ \+ is_IntVarArgs(X,_). + +is_BoolVarArgs_([],[]). +is_BoolVarArgs_([H|T],[H2|T2]) :- is_BoolVar(H,H2), is_BoolVarArgs(T,T2). +is_BoolVarArgs(X,Y) :- nonvar(X), is_BoolVarArgs_(X,Y). +is_BoolVarArgs(X) :- \+ \+ is_BoolVarArgs(X,_). + +is_FloatVarArgs_([],[]). +is_FloatVarArgs_([H|T],[H2|T2]) :- is_FloatVar(H,H2), is_FloatVarArgs(T,T2). +is_FloatVarArgs(X,Y) :- nonvar(X), is_FloatVarArgs_(X,Y). +is_FloatVarArgs(X) :- \+ \+ is_FloatVarArgs(X,_). + +is_FloatValArgs_([],[]). +is_FloatValArgs_([H|T],[H2|T2]) :- is_FloatVar(H,H2), is_FloatValArgs(T,T2). +is_FloatValArgs(X,Y) :- nonvar(X), is_FloatValArgs_(X,Y). +is_FloatValArgs(X) :- \+ \+ is_FloatValArgs(X,_). + +is_SetVarArgs_([],[]). +is_SetVarArgs_([H|T],[H2|T2]) :- is_SetVar(H,H2), is_SetVarArgs(T,T2). +is_SetVarArgs(X,Y) :- nonvar(X), is_SetVarArgs_(X,Y). +is_SetVarArgs(X) :- \+ \+ is_SetVarArgs(X,_). + +is_IntArgs_([],[]). +is_IntArgs_([H|T],[H|T2]) :- integer(H), is_IntArgs(T,T2). +is_IntArgs(X,Y) :- nonvar(X), is_IntArgs_(X,Y). +is_IntArgs(X) :- \+ \+ is_IntArgs(X,_). + +is_IntSharedArray(X) :- is_IntArgs(X). +is_IntSharedArray(X,Y) :- is_IntArgs(X,Y). + +is_TaskTypeArgs_([],[]). +is_TaskTypeArgs_([H|T],[H2|T2]) :- is_TaskType(H,H2), is_TaskTypeArgs(T,T2). +is_TaskTypeArgs(X,Y) :- nonvar(X), is_TaskTypeArgs_(X,Y). +is_TaskTypeArgs(X) :- \+ \+ is_TaskTypeArgs(X,_). + +is_IntSet_('IntSet'(L),L). +is_IntSet(X,Y) :- nonvar(X), is_IntSet_(X,Y). +is_IntSet(X) :- is_IntSet(X,_). + +is_IntSetArgs_([],[]). +is_IntSetArgs_([H|T],[H2|T2]) :- is_IntSet(H,H2), is_IntSetArgs(T,T2). +is_IntSetArgs(X,Y) :- nonvar(X), is_IntSetArgs_(X,Y). +is_IntSetArgs(X) :- \+ \+ is_IntSetArgs(X,_). + +is_TupleSet_('TupleSet'(TS),TS). +is_TupleSet(X,Y) :- nonvar(X), is_TupleSet_(X,Y). +is_TupleSet(X) :- is_TupleSet(X,_). + +is_DFA_('DFA'(TS),TS). +is_DFA(X,Y) :- nonvar(X), is_DFA_(X,Y). +is_DFA(X) :- is_DFA(X,_). + +new_intset(X,I,J) :- intset(X,I,J). +new_intset(X,L) :- intset(X,L). + +intset(X, I, J) :- + integer(I), + integer(J), + X='IntSet'([(I,J)]). +intset(X, L) :- + is_list_of_intset_specs(L,L2), + X='IntSet'(L2). + +is_list_of_intset_specs(X,Y) :- + nonvar(X), is_list_of_intset_specs_(X,Y). +is_list_of_intset_specs_([],[]). +is_list_of_intset_specs_([H|T],[H2|T2]) :- + is_intset_spec(H,H2), + is_list_of_intset_specs(T,T2). + +is_intset_spec(X,Y) :- nonvar(X), is_intset_spec_(X,Y). +is_intset_spec_((I,J),(I,J)) :- !, integer(I), integer(J). +is_intset_spec_(I,(I,I)) :- integer(I). + +assert_var(X,Y) :- + var(X) -> X=Y; throw(gecode_error(expected(var))). +assert_is_int(X,Y) :- + integer(X) -> X=Y ; throw(gecode_error(expected(int))). +assert_is_float(X,Y) :- + float(X) -> X=Y ; throw(gecode_error(expected(int))). +assert_is_Space(X,Y) :- + is_Space(X,Y) -> true ; throw(gecode_error(expected(space))). +assert_is_IntSet(X,Y) :- + is_IntSet(X,Y) -> true ; throw(gecode_error(expected(intset))). +assert_is_TupleSet(X,Y) :- + is_TupleSet(X,Y) -> true ; throw(gecode_error(expected(tupleset))). +assert_is_DFA(X,Y) :- + is_DFA(X,Y) -> true ; throw(gecode_error(expected(dfa))). +assert_is_IntVar(X,Y) :- + is_IntVar(X,Y) -> true ; throw(gecode_error(expected(intvar))). +assert_is_BoolVar(X,Y) :- + is_BoolVar(X,Y) -> true ; throw(gecode_error(expected(boolvar))). +assert_is_FloatVar(X,Y) :- + is_FloatVar(X,Y) -> true ; throw(gecode_error(expected(floatvar))). +assert_is_SetVar(X,Y) :- + is_SetVar(X,Y) -> true ; throw(gecode_error(expected(setvar))). +assert_is_IntArgs(X,Y) :- + is_IntArgs(X,Y) -> true ; throw(gecode_error(expected(intargs))). +assert_is_IntVarArgs(X,Y) :- + is_IntVarArgs(X,Y) -> true ; throw(gecode_error(expected(intvarargs))). +assert_is_BoolVarArgs(X,Y) :- + is_BoolVarArgs(X,Y) -> true ; throw(gecode_error(expected(boolvarargs))). +assert_is_FloatVarArgs(X,Y) :- + is_FloatVarArgs(X,Y) -> true ; throw(gecode_error(expected(floatvarargs))). +assert_is_FloatValArgs(X,Y) :- + is_FloatValArgs(X,Y) -> true ; throw(gecode_error(expected(floatvarargs))). +assert_is_SetVarArgs(X,Y) :- + is_SetVarArgs(X,Y) -> true ; throw(gecode_error(expected(setvarargs))). +assert_is_ReifyMode(X,Y) :- + is_ReifyMode(X,Y) -> true ; throw(gecode_error(expected(reifymode))). + +assert_var(X) :- assert_var(X,_). +assert_is_int(X) :- assert_is_int(X,_). +assert_is_float(X) :- assert_is_float(X,_). +assert_is_Space(X) :- assert_is_Space(X,_). +assert_is_IntSet(X) :- assert_is_IntSet(X,_). +assert_is_IntVar(X) :- assert_is_IntVar(X,_). +assert_is_BoolVar(X) :- assert_is_BoolVar(X,_). +assert_is_FloatVar(X) :- assert_is_FloatVar(X,_). +assert_is_SetVar(X) :- assert_is_SetVar(X,_). +assert_is_IntArgs(X) :- assert_is_IntArgs(X,_). +assert_is_IntVarArgs(X) :- assert_is_IntVarArgs(X,_). +assert_is_BoolVarArgs(X) :- assert_is_BoolVarArgs(X,_). +assert_is_FloatVarArgs(X) :- assert_is_FloatVarArgs(X,_). +assert_is_FloatValArgs(X) :- assert_is_FloatValArgs(X,_). +assert_is_SetVarArgs(X) :- assert_is_SetVarArgs(X,_). + +%% Var and Val Branching changed in Gecode 4 to be done as a set of functions, +%% not as an enum. + +is_IntVarBranch_('INT_VAR_NONE'). +is_IntVarBranch_('INT_VAR_RND'(_)). +is_IntVarBranch_('INT_VAR_MERIT_MIN'(_)). +is_IntVarBranch_('INT_VAR_MERIT_MAX'(_)). +is_IntVarBranch_('INT_VAR_DEGREE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_MIN'(_)). +is_IntVarBranch_('INT_VAR_AFC_MAX'(_)). +is_IntVarBranch_('INT_VAR_ACTIVITY_MIN'(_)). +is_IntVarBranch_('INT_VAR_ACTIVITY_MAX'(_)). +is_IntVarBranch_('INT_VAR_MIN_MIN'). +is_IntVarBranch_('INT_VAR_MIN_MAX'). +is_IntVarBranch_('INT_VAR_MAX_MIN'). +is_IntVarBranch_('INT_VAR_MAX_MAX'). +is_IntVarBranch_('INT_VAR_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_DEGREE_SIZE_MIN'). +is_IntVarBranch_('INT_VAR_DEGREE_SIZE_MAX'). +is_IntVarBranch_('INT_VAR_AFC_SIZE_MIN'(_)). +is_IntVarBranch_('INT_VAR_AFC_SIZE_MAX'(_)). +is_IntVarBranch_('INT_VAR_ACTIVITY_SIZE_MIN'(_)). +is_IntVarBranch_('INT_VAR_ACTIVITY_SIZE_MAX'(_)). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). +is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). + +is_IntVarBranch_(X, X) :- + is_IntVarBranch_(X). + +is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). +is_IntVarBranch(X) :- is_IntVarBranch(X,_). + +is_SetVarBranch_('SET_VAR_NONE'). +is_SetVarBranch_('SET_VAR_RND'(_)). +is_SetVarBranch_('SET_VAR_MERIT_MIN'(_)). +is_SetVarBranch_('SET_VAR_MERIT_MAX'(_)). +is_SetVarBranch_('SET_VAR_DEGREE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_MIN'(_)). +is_SetVarBranch_('SET_VAR_AFC_MAX'(_)). +is_SetVarBranch_('SET_VAR_ACTIVITY_MIN'(_)). +is_SetVarBranch_('SET_VAR_ACTIVITY_MAX'(_)). +is_SetVarBranch_('SET_VAR_MIN_MIN'). +is_SetVarBranch_('SET_VAR_MIN_MAX'). +is_SetVarBranch_('SET_VAR_MAX_MIN'). +is_SetVarBranch_('SET_VAR_MAX_MAX'). +is_SetVarBranch_('SET_VAR_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_DEGREE_SIZE_MIN'). +is_SetVarBranch_('SET_VAR_DEGREE_SIZE_MAX'). +is_SetVarBranch_('SET_VAR_AFC_SIZE_MIN'(_)). +is_SetVarBranch_('SET_VAR_AFC_SIZE_MAX'(_)). +is_SetVarBranch_('SET_VAR_ACTIVITY_SIZE_MIN'(_)). +is_SetVarBranch_('SET_VAR_ACTIVITY_SIZE_MAX'(_)). + +is_SetVarBranch_(X, X) :- + is_SetVarBranch_(X). + +is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). +is_SetVarBranch(X) :- is_SetVarBranch(X,_). + +is_FloatVarBranch_('FLOAT_VAR_NONE'). +is_FloatVarBranch_('FLOAT_VAR_RND'(_)). +is_FloatVarBranch_('FLOAT_VAR_MERIT_MIN'(_)). +is_FloatVarBranch_('FLOAT_VAR_MERIT_MAX'(_)). +is_FloatVarBranch_('FLOAT_VAR_DEGREE_MIN'). +is_FloatVarBranch_('FLOAT_VAR_DEGREE_MAX'). +is_FloatVarBranch_('FLOAT_VAR_AFC_MIN'(_)). +is_FloatVarBranch_('FLOAT_VAR_AFC_MAX'(_)). +is_FloatVarBranch_('FLOAT_VAR_ACTIVITY_MIN'(_)). +is_FloatVarBranch_('FLOAT_VAR_ACTIVITY_MAX'(_)). +is_FloatVarBranch_('FLOAT_VAR_MIN_MIN'). +is_FloatVarBranch_('FLOAT_VAR_MIN_MAX'). +is_FloatVarBranch_('FLOAT_VAR_MAX_MIN'). +is_FloatVarBranch_('FLOAT_VAR_MAX_MAX'). +is_FloatVarBranch_('FLOAT_VAR_SIZE_MIN'). +is_FloatVarBranch_('FLOAT_VAR_SIZE_MAX'). +is_FloatVarBranch_('FLOAT_VAR_DEGREE_SIZE_MIN'). +is_FloatVarBranch_('FLOAT_VAR_DEGREE_SIZE_MAX'). +is_FloatVarBranch_('FLOAT_VAR_AFC_SIZE_MIN'(_)). +is_FloatVarBranch_('FLOAT_VAR_AFC_SIZE_MAX'(_)). +is_FloatVarBranch_('FLOAT_VAR_ACTIVITY_SIZE_MIN'(_)). +is_FloatVarBranch_('FLOAT_VAR_ACTIVITY_SIZE_MAX'(_)). + +is_FloatVarBranch_(X, X) :- + is_FloatVarBranch_(X). + +is_FloatVarBranch(X,Y) :- nonvar(X), is_FloatVarBranch_(X,Y). +is_FloatVarBranch(X) :- is_FloatVarBranch(X,_). + +is_IntValBranch_('INT_VAL_RND'(_)). +is_IntValBranch_('INT_VAL'(_,_)). +is_IntValBranch_('INT_VAL_MIN'). +is_IntValBranch_('INT_VAL_MED'). +is_IntValBranch_('INT_VAL_MAX'). +is_IntValBranch_('INT_VAL_SPLIT_MIN'). +is_IntValBranch_('INT_VAL_SPLIT_MAX'). +is_IntValBranch_('INT_VAL_RANGE_MIN'). +is_IntValBranch_('INT_VAL_RANGE_MAX'). +is_IntValBranch_('INT_VALUES_MIN'). +is_IntValBranch_('INT_NEAR_MIN'(_)). +is_IntValBranch_('INT_NEAR_MAX'(_)). +is_IntValBranch_('INT_NEAR_INC'(_)). +is_IntValBranch_('INT_NEAR_DEC'(_)). + +is_IntValBranch_(X,X) :- is_IntValBranch_(X). + +is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). +is_IntValBranch(X) :- is_IntValBranch(X,_). + +is_SetValBranch_('SET_VAL_RND_INC'(_)). +is_SetValBranch_('SET_VAL_RND_EXC'(_)). +is_SetValBranch_('SET_VAL'(_,_)). +is_SetValBranch_('SET_VAL_MIN_INC'). +is_SetValBranch_('SET_VAL_MIN_EXC'). +is_SetValBranch_('SET_VAL_MED_INC'). +is_SetValBranch_('SET_VAL_MED_EXC'). +is_SetValBranch_('SET_VAL_MAX_INC'). +is_SetValBranch_('SET_VAL_MAX_EXC'). + +is_SetValBranch_(X,X) :- is_SetValBranch_(X). + +is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). +is_SetValBranch(X) :- is_SetValBranch(X,_). + +is_FloatValBranch_('FLOAT_VAL'(_,_)). +is_FloatValBranch_('FLOAT_VAL_SPLIT_RND'(_)). +is_FloatValBranch_('FLOAT_VAL_SPLIT_MIN'). +is_FloatValBranch_('FLOAT_VAL_SLIT_MAX'). + +is_FloatValBranch_(X,X) :- is_FloatValBranch_(X). + +is_FloatValBranch(X,Y) :- nonvar(X), is_FloatValBranch_(X,Y). +is_FloatValBranch(X) :- is_FloatValBranch(X,_). + + +new_space(Space) :- + assert_var(Space), + gecode_new_space(Space_), + Space='Space'(Space_). + +%% checking that an argument is a space sets a global variable +%% indicating whether variables need to be translated to their +%% original index or to their "keep" index. +%% +%% these bindings are going to take advantage of the fact that, +%% when a space is involved, it is checked first, thus setting +%% this global variable. subsequent accesses to variables are +%% then correctly translated. + +is_Space_('Space'(X),X) :- + gecode_space_use_keep_index(X,B), + nb_setval(gecode_space_use_keep_index,B). +is_Space(X,Y) :- nonvar(X), is_Space_(X,Y). +is_Space(X) :- is_Space(X,_). + +is_Reify_('Reify'(X),X). +is_Reify(X,Y) :- nonvar(X), is_Reify_(X,Y). +is_Reify(X) :- is_Reify(X,_). + +%% AUTOGENERATE ALL VARIANTS LATER! + +new_intvars([], _Space, _Lo, _Hi). +new_intvars([IVar|IVars], Space, Lo, Hi) :- + new_intvar(IVar, Space, Lo, Hi), + new_intvars(IVars, Space, Lo, Hi). + +new_intvars([], _Space, _IntSet). +new_intvars([IVar|IVars], Space, IntSet) :- + new_intvar(IVar, Space, IntSet), + new_intvars(IVars, Space, IntSet). + +new_boolvars([], _Space). +new_boolvars([BVar|BVars], Space) :- + new_boolvar(BVar, Space), + new_boolvars(BVars, Space). + +new_setvars([], _Space, _X1, _X2, _X3, _X4, _X5, _X6). +new_setvars([SVar|SVars], Space, X1, X2, X3, X4, X5, X6) :- + new_setvar(SVar, Space, X1, X2, X3, X4, X5, X6), + new_setvars(SVars, Space, X1, X2, X3, X4, X5, X6). + +new_setvars([], _Space, _X1, _X2, _X3, _X4, _X5). +new_setvars([SVar|SVars], Space, X1, X2, X3, X4, X5) :- + new_setvar(SVar, Space, X1, X2, X3, X4, X5), + new_setvars(SVars, Space, X1, X2, X3, X4, X5). + +new_setvars([], _Space, _X1, _X2, _X3, _X4). +new_setvars([SVar|SVars], Space, X1, X2, X3, X4) :- + new_setvar(SVar, Space, X1, X2, X3, X4), + new_setvars(SVars, Space, X1, X2, X3, X4). + +new_setvars([], _Space, _X1, _X2, _X3). +new_setvars([SVar|SVars], Space, X1, X2, X3) :- + new_setvar(SVar, Space, X1, X2, X3), + new_setvars(SVars, Space, X1, X2, X3). + +new_setvars([], _Space, _X1, _X2). +new_setvars([SVar|SVars], Space, X1, X2) :- + new_setvar(SVar, Space, X1, X2), + new_setvars(SVars, Space, X1, X2). + +%% AUTOGENERATE LATER + +assert_integer(X) :- assert_is_int(X). + +new_intvar(IVar, Space, Lo, Hi) :- !, + assert_var(IVar), + assert_is_Space_or_Clause(Space,Space_), + assert_integer(Lo), + assert_integer(Hi), + gecode_new_intvar_from_bounds(Idx,Space_,Lo,Hi), + IVar='IntVar'(Idx,-1). +new_intvar(IVar, Space, IntSet) :- !, + assert_var(IVar), + assert_is_Space_or_Clause(Space,Space_), + assert_is_IntSet(IntSet, L), + gecode_new_intvar_from_intset(Idx,Space_,L), + IVar='IntVar'(Idx,-1). + +new_floatvar(FVar, Space, Lo, Hi) :- !, + assert_var(FVar), + assert_is_Space_or_Clause(Space,Space_), + assert_float(Lo), + assert_float(Hi), + gecode_new_floatvar_from_bounds(Idx,Space_,Lo,Hi), + FVar='FloatVar'(Idx,-1). + +new_boolvar(BVar, Space) :- !, + assert_var(BVar), + assert_is_Space_or_Clause(Space,Space_), + gecode_new_boolvar(Idx,Space_), + BVar='BoolVar'(Idx,-1). + +%% (GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax) 6 new_setvar_1 +%% (GlbMin,GlbMax,LubMin,LubMax,CardMin) 5 new_setvar_2 +%% (GlbMin,GlbMax,LubMin,LubMax) 4 new_setvar_3 +%% (Glb,LubMin,LubMax,CardMin,CardMax) 5 new_setvar_4 +%% (Glb,LubMin,LubMax,CardMin) 4 new_setvar_5 +%% (Glb,LubMin,LubMax) 3 new_setvar_6 +%% (GlbMin,GlbMax,Lub,CardMin,CardMax) 5 new_setvar_7 +%% (GlbMin,GlbMax,Lub,CardMin) 4 new_setvar_8 +%% (GlbMin,GlbMax,Lub) 3 new_setvar_9 +%% (Glb,Lub,CardMin,CardMax) 4 new_setvar_10 +%% (Glb,Lub,CardMin) 3 new_setvar_11 +%% (Glb,Lub) 2 new_setvar_12 + +%% 6 arguments +%% (GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax) 6 new_setvar_1 +new_setvar(SVar, Space, GlbMin, GlbMax, LubMin, LubMax, CardMin, CardMax) :- + assert_var(SVar), + assert_is_Space_or_Clause(Space,Space_), + assert_integer(GlbMin), + assert_integer(GlbMax), + assert_integer(LubMin), + assert_integer(LubMax), + assert_integer(CardMin), + assert_integer(CardMax), + gecode_new_setvar(Idx, Space_, GlbMin, GlbMax, LubMin, LubMax, CardMin, CardMax), + SVar='SetVar'(Idx,-1). + +%% 5 arguments +%% (GlbMin,GlbMax,LubMin,LubMax,CardMin) 5 new_setvar_2 +%% (Glb,LubMin,LubMax,CardMin,CardMax) 5 new_setvar_4 +%% (GlbMin,GlbMax,Lub,CardMin,CardMax) 5 new_setvar_7 +new_setvar(SVar, Space, X1, X2, X3, X4, X5) :- + assert_var(SVar), + assert_is_Space_or_Clause(Space,Space_), + (integer(X1) + -> + assert_integer(X2), + assert_integer(X4), + assert_integer(X5), + (is_IntSet(X3,X3_) + -> gecode_new_setvar_7(Idx,Space_,X1,X2,X3_,X4,X5) + ; gecode_new_setvar_2(Idx,Space_,X1,X2,X3,X4,X5)) + ; + assert_is_IntSet(X1,X1_), + assert_integer(X2), + assert_integer(X3), + assert_integer(X4), + assert_integer(X5), + gecode_new_setvar_4(Idx,Space_,X1_,X2,X3,X4,X5)), + SVar='SetVar'(Idx,-1). + +%% 4 arguments +%% (GlbMin,GlbMax,LubMin,LubMax) 4 new_setvar_3 +%% (Glb,LubMin,LubMax,CardMin) 4 new_setvar_5 +%% (GlbMin,GlbMax,Lub,CardMin) 4 new_setvar_8 +%% (Glb,Lub,CardMin,CardMax) 4 new_setvar_10 +new_setvar(SVar,Space,X1,X2,X3,X4) :- + assert_var(SVar), + assert_is_Space_or_Clause(Space,Space_), + assert_integer(X4), + (is_IntSet(X1,X1_) + -> (is_IntSet(X2,X2_) + -> + assert_integer(X3), + gecode_new_setvar_10(Idx,Space_,X1_,X2_,X3,X4) + ; + assert_integer(X2), + assert_integer(X3), + gecode_new_setvar_5(Idx,Space_,X1_,X2,X3,X4)) + ; + assert_integer(X1), + assert_integer(X2), + (is_IntSet(X3,X3_) + -> + gecode_new_setvar_8(Idx,Space_,X1,X2,X3_,X4) + ; + assert_integer(X3), + gecode_new_setvar_3(Idx,Space_,X1,X2,X3,X4))), + SVar='SetVar'(Idx,-1). + +%% 3 arguments +%% (Glb,LubMin,LubMax) 3 new_setvar_6 +%% (GlbMin,GlbMax,Lub) 3 new_setvar_9 +%% (Glb,Lub,CardMin) 3 new_setvar_11 +new_setvar(SVar,Space,X1,X2,X3) :- + assert_var(SVar), + assert_is_Space_or_Clause(Space,Space_), + (is_IntSet(X1,X1_) + -> (is_IntSet(X2,X2_) + -> + assert_integer(X3), + gecode_new_setvar_11(Idx,Space_,X1_,X2_,X3) + ; + assert_integer(X2), + assert_integer(X3), + gecode_new_setvar_6(Idx,Space_,X1_,X2,X3)) + ; + assert_integer(X1), + assert_integer(X2), + assert_is_IntSet(X3,X3_), + gecode_new_setvar_9(Idx,Space_,X1,X2,X3_)), + SVar='SetVar'(Idx,-1). + +%% 2 arguments +%% (Glb,Lub) 2 new_setvar_12 +new_setvar(SVar,Space,X1,X2) :- + assert_var(SVar), + assert_is_Space_or_Clause(Space,Space_), + assert_is_IntSet(X1,X1_), + assert_is_IntSet(X2,X2_), + gecode_new_setvar_12(Idx,Space_,X1_,X2_), + SVar='SetVar'(Idx,-1). + +new_tupleset( TupleSet, List ) :- + gecode_new_tupleset(List, TupleSet_), + TupleSet = 'TupleSet'(TupleSet_). + +new_dfa( DFA, S0, List, Finals ) :- + gecode_new_dfa(DFA_, S0, List, Finals), + DFA = 'DFA'(DFA_). + + +minimize(Space,IVar) :- + assert_is_Space(Space,Space_), + assert_is_IntVar(IVar,IVar_), + gecode_space_minimize(Space_,IVar_). +maximize(Space,IVar) :- + assert_is_Space(Space,Space_), + assert_is_IntVar(IVar,IVar_), + gecode_space_maximize(Space_,IVar_). +minimize(Space,IVar1,IVar2) :- + assert_is_Space(Space,Space_), + assert_is_IntVar(IVar1,IVar1_), + assert_is_IntVar(IVar2,IVar2_), + gecode_space_minimize_ratio(Space_,IVar1_,IVar2_). +maximize(Space,IVar1,IVar2) :- + assert_is_Space(Space,Space_), + assert_is_IntVar(IVar1,IVar1_), + assert_is_IntVar(IVar2,IVar2_), + gecode_space_maximize_ratio(Space_,IVar1_,IVar2_). + +reify(Space,BVar,Mode,R) :- + assert_is_Space(Space,Space_), + assert_is_BoolVar(BVar,BVar_), + assert_is_ReifyMode(Mode,Mode_), + assert_var(R), + gecode_new_reify(Space_,BVar_,Mode_,R_), + R = 'Reify'(R_). + +gecode_search_options_init(search_options(0,1.0,8,2,'RM_NONE',0,1,0)). +gecode_search_options_offset(restart,1). +gecode_search_options_offset(threads,2). +gecode_search_options_offset(c_d ,3). +gecode_search_options_offset(a_d ,4). +gecode_search_options_offset(cutoff, 5). +gecode_search_options_offset(nogoods_limit, 6). +gecode_search_options_offset(clone, 7). +gecode_search_options_offset(stop, 8). % unimplemented + +gecode_search_option_set(O,V,R) :- + gecode_search_options_offset(O,I), + setarg(I,R,V). + +gecode_search_options_from_alist(L,R) :- + gecode_search_options_init(R), + gecode_search_options_process_alist(L,R). + +gecode_search_options_process_alist([], _R). +gecode_search_options_process_alist([H|T], R) :- !, + gecode_search_options_process1(H, R), + gecode_search_options_process_alist(T, R). + +gecode_search_options_process1(restart,R) :- !, + gecode_search_option_set(restart,1,R). +gecode_search_options_process1(threads=N,R) :- !, + (integer(N) -> V is float(N) + ; (float(N) -> V=N + ; throw(bad_search_option_value(threads=N)))), + gecode_search_option_set(threads,V,R). +gecode_search_options_process1(c_d=N,R) :- !, + (integer(N) -> V=N + ; throw(bad_search_option_value(c_d=N))), + gecode_search_option_set(c_d,V,R). +gecode_search_options_process1(a_d=N,R) :- !, + (integer(N) -> V=N + ; throw(bad_search_option_value(a_d=N))), + gecode_search_option_set(a_d,V,R). +gecode_search_options_process1(cutoff=C,R) :- !, + (is_RestartMode(C,C_) -> V=C_ + ; throw(bad_search_option_value(cutoff=C))), + gecode_search_option_set(cutoff,V,R). +gecode_search_options_process1(nogoods_limit=N,R) :- !, + (integer(N), N >= 0 -> V=N + ; throw(bad_search_option_value(nogoods_limit=N))), + gecode_search_option_set(nogoods_limit,V,R). +gecode_search_options_process1(clone=N,R) :- !, + ((N == 0 ; N == 1)-> V=N + ; throw(bad_search_option_value(clone=N))), + gecode_search_option_set(clone,V,R). +gecode_search_options_process1(O,_) :- + throw(gecode_error(unrecognized_search_option(O))). + +search(Space, Solution) :- + search(Space, Solution, []). + +search(Space, Solution, Alist) :- + assert_is_Space(Space,Space_), + assert_var(Solution), + gecode_search_options_from_alist(Alist,O), + gecode_new_engine(Space_,Engine_,O), + gecode_engine_search(Engine_,Solution_), + Solution='Space'(Solution_). + + +%% INSPECTING VARIABLES + +get_for_vars([],_Space,[],_F). +get_for_vars([V|Vs],Space,[V2|V2s],F) :- + call_with_args(F,V,Space,V2), + get_for_vars(Vs,Space,V2s,F). + +get_assigned(Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_assigned(Space_,Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_assigned(Space_,Var_) + ; is_FloatVar(Var,Var_) + -> gecode_floatvar_assigned(Space_,Var_) + ; is_SetVar(Var,Var_) + -> gecode_setvar_assigned(Space_,Var_) + ; throw(gecode_error(expected(variable)))). + +get_min(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_min(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_min(X, Space_, Var_) + ; is_FloatVar(Var,Var_) + -> gecode_floatvar_min(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_min)). + +get_max(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_max(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_max(X, Space_, Var_) + ; is_FloatVar(Var,Var_) + -> gecode_floatvar_max(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_max)). + +get_med(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_med(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_med(X, Space_, Var_) + ; is_FloatVar(Var,Var_) + -> gecode_floatvar_med(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_med)). + +get_val(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_val(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_val(X, Space_, Var_) + ; is_FloatVar(Var,Var_) + -> gecode_floatvar_val(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_val)). + +get_size(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_size(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_size(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_size)). + +get_width(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_width(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_width(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_width)). + +get_regret_min(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_regret_min(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_regret_min(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_regret_min)). + +get_regret_max(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_regret_max(X, Space_, Var_) + ; is_BoolVar(Var,Var_) + -> gecode_boolvar_regret_max(X, Space_, Var_) + ; get_for_vars(X, Space, Var, gecode:get_regret_max)). + +get_glbSize(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_glbSize(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_glbSize)). + +get_lubSize(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_lubSize(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_lubSize)). + +get_unknownSize(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_unknownSize(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_unknownSize)). + +get_cardMin(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_cardMin(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_cardMin)). + +get_cardMax(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_cardMax(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_cardMax)). + +get_lubMin(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_lubMin(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_lubMin)). + +get_lubMax(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_lubMax(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_lubMax)). + +get_glbMin(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_glbMin(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_glbMin)). + +get_glbMax(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_glbMax(X,Space_,Var_) + ; get_for_vars(X, Space, Var, gecode:get_glbMax)). + +get_glb_ranges(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_glb_ranges(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_glb_ranges)). + +get_lub_ranges(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_lub_ranges(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_lub_ranges)). + +get_unknown_ranges(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_unknown_ranges(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_unknown_ranges)). + +get_glb_values(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_glb_values(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_glb_values)). + +get_lub_values(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_lub_values(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_lub_values)). + +get_unknown_values(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_SetVar(Var,Var_) + -> gecode_setvar_unknown_values(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_unknown_values)). + +get_ranges(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_ranges(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_ranges)). + +get_values(X, Space, Var) :- + assert_is_Space(Space,Space_), + (is_IntVar(Var,Var_) + -> gecode_intvar_values(X,Space_,Var_) + ; get_for_vars(X,Space,Var,gecode:get_values)). + +new_disjunctor(X, Space) :- + assert_is_Space(Space,Space_), + gecode_new_disjunctor(D,Space_), + X='Disjunctor'(D). + +is_Disjunctor_('Disjunctor'(D),D). +is_Disjunctor(X,Y) :- nonvar(X), is_Disjunctor_(X,Y). +is_Disjunctor(X) :- is_Disjunctor(X,_). + +assert_is_Disjunctor(X,Y) :- + is_Disjunctor(X,Y) -> true ; throw(gecode_error(expected(disjunctor))). + +new_clause(X, Disj) :- + assert_is_Disjunctor(Disj,Disj_), + gecode_new_clause(C, Disj_), + X='Clause'(C). + +is_Clause_('Clause'(C),C) :- + gecode_space_use_keep_index(C,B), + nb_setval(gecode_space_use_keep_index,B). +is_Clause(X,Y) :- nonvar(X), is_Clause_(X,Y). +is_Clause(X) :- is_Clause(X,_). + +assert_is_Clause(X,Y) :- + is_Clause(X,Y) -> true ; throw(gecode_error(expected(clause))). + +is_Space_or_Clause(X,Y) :- + (is_Space(X,Y);is_Clause(X,Y)), !. +assert_is_Space_or_Clause(X,Y) :- + is_Space_or_Clause(X,Y) -> true + ; throw(gecode_error(expected(space,clause))). + +new_forward(Clause, X, Y) :- + assert_is_Clause(Clause, Clause_), + (is_IntVar(X,X_) + -> (is_IntVar(Y,Y_) + -> gecode_clause_intvar_forward(Clause_,X_,Y_) + ; throw(gecode_error(forward))) + ; (is_BoolVar(X,X_) + -> (is_BoolVar(Y,Y_) + -> gecode_clause_boolvar_forward(Clause_,X_,Y_) + ; throw(gecode_error(forward))) + ; (is_SetVar(X,X_) + -> (is_SetVar(Y,Y_) + -> gecode_clause_setvar_forward(Clause_,X_,Y_) + ; throw(gecode_error(forward))) + ; (X=[] + -> Y=[] + ;(X=[H1|T1],Y=[H2|T2]) + -> (new_forward(Clause,H1,H2), + new_forward(Clause,T1,T2)) + ; throw(gecode_error(forward)))))). + +new_intvars_(L,Space,N,I,J) :- length(L,N), new_intvars(L,Space,I,J). +new_intvars_(L,Space,N,IntSet) :- length(L,N), new_intvars(L,Space,IntSet). +new_boolvars_(L,Space,N) :- length(L,N), new_boolvars(L,Space). +new_setvars_(L,Space,N,X1,X2,X3,X4,X5,X6) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4,X5,X6). +new_setvars_(L,Space,N,X1,X2,X3,X4,X5) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4,X5). +new_setvars_(L,Space,N,X1,X2,X3,X4) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4). +new_setvars_(L,Space,N,X1,X2,X3) :- length(L,N), new_setvars(L,Space,X1,X2,X3). +new_setvars_(L,Space,N,X1,X2) :- length(L,N), new_setvars(L,Space,X1,X2). + +keep_(Space, Var) :- + (Var = 'IntVar'(I,J) + -> (J = -1 -> (gecode_intvar_keep(Space,I,K),setarg(2,Var,K)) + ; throw(gecode_error(variable_already_kept(Var)))) + ; (Var = 'BoolVar'(I,J) + -> (J = -1 -> (gecode_boolvar_keep(Space,I,K),setarg(2,Var,K)) + ; throw(gecode_error(variable_already_kept(Var)))) + ; (Var = 'SetVar'(I,J) + -> (J = -1 -> (gecode_setvar_keep(Space,I,K),setarg(2,Var,K)) + ; throw(gecode_error(variable_already_kept(Var)))) + ; keep_list_(Space,Var)))). + +keep_list_(_Space, []) :- !. +keep_list_(Space, [H|T]) :- !, + keep_(Space,H), keep_list_(Space,T). +keep_list_(_, X) :- + throw(gecode_error(not_a_variable(X))). + +%% more concise interface: +(X := Y) :- var(Y), !, throw(gecode_error((X := Y))). +(X := intset(I,J)) :- !, new_intset(X,I,J). +(X := intset(L)) :- !, new_intset(X,L). +(X := space) :- !, new_space(X). +(X := intvar(Space,I,J)) :- !, new_intvar(X,Space,I,J). +(X := intvar(Space,IntSet)) :- !, new_intvar(X,Space,IntSet). +(X := boolvar(Space)) :- !, new_boolvar(X,Space). +(X := setvar(Space,X1,X2,X3,X4,X5,X6)) :- !, new_setvar(X,Space,X1,X2,X3,X4,X5,X6). +(X := setvar(Space,X1,X2,X3,X4,X5)) :- !, new_setvar(X,Space,X1,X2,X3,X4,X5). +(X := setvar(Space,X1,X2,X3,X4)) :- !, new_setvar(X,Space,X1,X2,X3,X4). +(X := setvar(Space,X1,X2,X3)) :- !, new_setvar(X,Space,X1,X2,X3). +(X := setvar(Space,X1,X2)) :- !, new_setvar(X,Space,X1,X2). +(X := intvars(Space,N,I,J)) :- !, new_intvars_(X,Space,N,I,J). +(X := intvars(Space,N,IntSet)) :- !, new_intvars_(X,Space,N,IntSet). +(X := boolvars(Space,N)) :- !, new_boolvars_(X,Space,N). +(X := setvars(Space,N,X1,X2,X3,X4,X5,X6)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4,X5,X6). +(X := setvars(Space,N,X1,X2,X3,X4,X5)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4,X5). +(X := setvars(Space,N,X1,X2,X3,X4)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4). +(X := setvars(Space,N,X1,X2,X3)) :- !, new_setvars_(X,Space,N,X1,X2,X3). +(X := setvars(Space,N,X1,X2)) :- !, new_setvars_(X,Space,N,X1,X2). +(X := tupleset(Set)) :- !, new_tupleset(X, Set). +(X := dfa(S0, Transitions, Finals)) :- !, new_dfa(X, S0, Transitions, Finals). + +(X := min(Space,Var)) :- !, get_min(X,Space,Var). +(X := max(Space,Var)) :- !, get_max(X,Space,Var). +(X := med(Space,Var)) :- !, get_med(X,Space,Var). +(X := val(Space,Var)) :- !, get_val(X,Space,Var). +(X := size(Space,Var)) :- !, get_size(X,Space,Var). +(X := width(Space,Var)) :- !, get_width(X,Space,Var). +(X := regret_min(Space,Var)) :- !, get_regret_min(X,Space,Var). +(X := regret_max(Space,Var)) :- !, get_regret_max(X,Space,Var). +(X := ranges(Space,Var)) :- !, get_ranges(X,Space,Var). +(X := values(Space,Var)) :- !, get_values(X,Space,Var). + +(X := glbSize(Space,Var)) :- !, get_glbSize(X,Space,Var). +(X := lubSize(Space,Var)) :- !, get_lubSize(X,Space,Var). +(X := unknownSize(Space,Var)) :- !, get_unknownSize(X,Space,Var). +(X := cardMin(Space,Var)) :- !, get_cardMin(X,Space,Var). +(X := cardMax(Space,Var)) :- !, get_cardMax(X,Space,Var). +(X := lubMin(Space,Var)) :- !, get_lubMin(X,Space,Var). +(X := lubMax(Space,Var)) :- !, get_lubMax(X,Space,Var). +(X := glbMin(Space,Var)) :- !, get_glbMin(X,Space,Var). +(X := glbMax(Space,Var)) :- !, get_glbMax(X,Space,Var). +(X := glb_ranges(Space,Var)) :- !, get_glb_ranges(X,Space,Var). +(X := lub_ranges(Space,Var)) :- !, get_lub_ranges(X,Space,Var). +(X := unknown_ranges(Space,Var)) :- !, get_unknown_ranges(X,Space,Var). +(X := glb_values(Space,Var)) :- !, get_glb_values(X,Space,Var). +(X := lub_values(Space,Var)) :- !, get_lub_values(X,Space,Var). +(X := unknown_values(Space,Var)) :- !, get_unknown_values(X,Space,Var). + +(X := disjunctor(Space)) :- !, new_disjunctor(X,Space). +(X := clause(Disj)) :- !, new_clause(X,Disj). + +(X := search(Y)) :- !, search(Y,X). +(X := search(Y,L)) :- !, search(Y,X,L). + +% these should be autogenerated: +(C += forward(X,Y)) :- !, new_forward(C,X,Y). +(Space += abs(X1,X2)) :- !, abs(Space,X1,X2). +(Space += abs(X1,X2,X3)) :- !, abs(Space,X1,X2,X3). +(Space += assign(X1,X2)) :- !, assign(Space,X1,X2). +(Space += atmostOne(X1,X2)) :- !, atmostOne(Space,X1,X2). +(Space += binpacking(X1,X2,X3)) :- !, binpacking(Space,X1,X2,X3). +(Space += binpacking(X1,X2,X3,X4)) :- !, binpacking(Space,X1,X2,X3,X4). +(Space += branch(X1,X2)) :- !, branch(Space,X1,X2). +(Space += branch(X1,X2,X3)) :- !, branch(Space,X1,X2,X3). +(Space += cardinality(X1,X2)) :- !, cardinality(Space,X1,X2). +(Space += cardinality(X1,X2,X3)) :- !, cardinality(Space,X1,X2,X3). +(Space += channel(X1,X2)) :- !, channel(Space,X1,X2). +(Space += channel(X1,X2,X3)) :- !, channel(Space,X1,X2,X3). +(Space += channel(X1,X2,X3,X4)) :- !, channel(Space,X1,X2,X3,X4). +(Space += channel(X1,X2,X3,X4,X5)) :- !, channel(Space,X1,X2,X3,X4,X5). +(Space += channelSorted(X1,X2)) :- !, channelSorted(Space,X1,X2). +(Space += circuit(X1)) :- !, circuit(Space,X1). +(Space += circuit(X1,X2)) :- !, circuit(Space,X1,X2). +(Space += circuit(X1,X2,X3)) :- !, circuit(Space,X1,X2,X3). +(Space += circuit(X1,X2,X3,X4)) :- !, circuit(Space,X1,X2,X3,X4). +(Space += circuit(X1,X2,X3,X4,X5)) :- !, circuit(Space,X1,X2,X3,X4,X5). +(Space += circuit(X1,X2,X3,X4,X5,X6)) :- !, circuit(Space,X1,X2,X3,X4,X5,X6). +(Space += clause(X1,X2,X3,X4)) :- !, clause(Space,X1,X2,X3,X4). +(Space += clause(X1,X2,X3,X4,X5)) :- !, clause(Space,X1,X2,X3,X4,X5). +(Space += convex(X1)) :- !, convex(Space,X1). +(Space += convex(X1,X2)) :- !, convex(Space,X1,X2). +(Space += count(X1,X2)) :- !, count(Space,X1,X2). +(Space += count(X1,X2,X3)) :- !, count(Space,X1,X2,X3). +(Space += count(X1,X2,X3,X4)) :- !, count(Space,X1,X2,X3,X4). +(Space += count(X1,X2,X3,X4,X5)) :- !, count(Space,X1,X2,X3,X4,X5). +(Space += cumulative(X1,X2,X3,X4)) :- !, cumulative(Space,X1,X2,X3,X4). +(Space += cumulative(X1,X2,X3,X4,X5)) :- !, cumulative(Space,X1,X2,X3,X4,X5). +(Space += cumulative(X1,X2,X3,X4,X5,X6)) :- !, cumulative(Space,X1,X2,X3,X4,X5,X6). +(Space += cumulative(X1,X2,X3,X4,X5,X6,X7)) :- !, cumulative(Space,X1,X2,X3,X4,X5,X6,X7). +(Space += cumulatives(X1,X2,X3,X4,X5,X6,X7)) :- !, cumulatives(Space,X1,X2,X3,X4,X5,X6,X7). +(Space += cumulatives(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, cumulatives(Space,X1,X2,X3,X4,X5,X6,X7,X8). +(Space += distinct(X1)) :- !, distinct(Space,X1). +(Space += distinct(X1,X2)) :- !, distinct(Space,X1,X2). +(Space += distinct(X1,X2,X3)) :- !, distinct(Space,X1,X2,X3). +(Space += div(X1,X2,X3)) :- !, div(Space,X1,X2,X3). +(Space += div(X1,X2,X3,X4)) :- !, div(Space,X1,X2,X3,X4). +(Space += divmod(X1,X2,X3,X4)) :- !, divmod(Space,X1,X2,X3,X4). +(Space += divmod(X1,X2,X3,X4,X5)) :- !, divmod(Space,X1,X2,X3,X4,X5). +(Space += dom(X1,X2)) :- !, dom(Space,X1,X2). +(Space += dom(X1,X2,X3)) :- !, dom(Space,X1,X2,X3). +(Space += dom(X1,X2,X3,X4)) :- !, dom(Space,X1,X2,X3,X4). +(Space += dom(X1,X2,X3,X4,X5)) :- !, dom(Space,X1,X2,X3,X4,X5). +(Space += element(X1,X2,X3)) :- !, element(Space,X1,X2,X3). +(Space += element(X1,X2,X3,X4)) :- !, element(Space,X1,X2,X3,X4). +(Space += element(X1,X2,X3,X4,X5)) :- !, element(Space,X1,X2,X3,X4,X5). +(Space += element(X1,X2,X3,X4,X5,X6)) :- !, element(Space,X1,X2,X3,X4,X5,X6). +(Space += element(X1,X2,X3,X4,X5,X6,X7)) :- !, element(Space,X1,X2,X3,X4,X5,X6,X7). +(Space += extensional(X1,X2)) :- !, extensional(Space,X1,X2). +(Space += extensional(X1,X2,X3)) :- !, extensional(Space,X1,X2,X3). +(Space += linear(X1,X2,X3)) :- !, linear(Space,X1,X2,X3). +(Space += linear(X1,X2,X3,X4)) :- !, linear(Space,X1,X2,X3,X4). +(Space += linear(X1,X2,X3,X4,X5)) :- !, linear(Space,X1,X2,X3,X4,X5). +(Space += linear(X1,X2,X3,X4,X5,X6)) :- !, linear(Space,X1,X2,X3,X4,X5,X6). +(Space += max(X1,X2)) :- !, max(Space,X1,X2). +(Space += max(X1,X2,X3)) :- !, max(Space,X1,X2,X3). +(Space += max(X1,X2,X3,X4)) :- !, max(Space,X1,X2,X3,X4). +(Space += min(X1,X2)) :- !, min(Space,X1,X2). +(Space += min(X1,X2,X3)) :- !, min(Space,X1,X2,X3). +(Space += min(X1,X2,X3,X4)) :- !, min(Space,X1,X2,X3,X4). +(Space += mod(X1,X2,X3)) :- !, mod(Space,X1,X2,X3). +(Space += mod(X1,X2,X3,X4)) :- !, mod(Space,X1,X2,X3,X4). +(Space += mult(X1,X2,X3)) :- !, mult(Space,X1,X2,X3). +(Space += mult(X1,X2,X3,X4)) :- !, mult(Space,X1,X2,X3,X4). +(Space += nooverlap(X1,X2,X3,X4)) :- !, nooverlap(Space,X1,X2,X3,X4). +(Space += nooverlap(X1,X2,X3,X4,X5)) :- !, nooverlap(Space,X1,X2,X3,X4,X5). +(Space += nooverlap(X1,X2,X3,X4,X5,X6)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6). +(Space += nooverlap(X1,X2,X3,X4,X5,X6,X7)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6,X7). +(Space += nooverlap(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6,X7,X8). +(Space += notMax(X1,X2)) :- !, notMax(Space,X1,X2). +(Space += notMin(X1,X2)) :- !, notMin(Space,X1,X2). +(Space += path(X1,X2,X3)) :- !, path(Space,X1,X2,X3). +(Space += path(X1,X2,X3,X4)) :- !, path(Space,X1,X2,X3,X4). +(Space += path(X1,X2,X3,X4,X5)) :- !, path(Space,X1,X2,X3,X4,X5). +(Space += path(X1,X2,X3,X4,X5,X6)) :- !, path(Space,X1,X2,X3,X4,X5,X6). +(Space += path(X1,X2,X3,X4,X5,X6,X7)) :- !, path(Space,X1,X2,X3,X4,X5,X6,X7). +(Space += path(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, path(Space,X1,X2,X3,X4,X5,X6,X7,X8). +(Space += precede(X1,X2)) :- !, precede(Space,X1,X2). +(Space += precede(X1,X2,X3)) :- !, precede(Space,X1,X2,X3). +(Space += precede(X1,X2,X3,X4)) :- !, precede(Space,X1,X2,X3,X4). +(Space += reify(X1,X2,X3)) :- !, reify(Space,X1,X2,X3). +(Space += rel(X1,X2)) :- !, rel(Space,X1,X2). +(Space += rel(X1,X2,X3)) :- !, rel(Space,X1,X2,X3). +(Space += rel(X1,X2,X3,X4)) :- !, rel(Space,X1,X2,X3,X4). +(Space += rel(X1,X2,X3,X4,X5)) :- !, rel(Space,X1,X2,X3,X4,X5). +(Space += rel(X1,X2,X3,X4,X5,X6)) :- !, rel(Space,X1,X2,X3,X4,X5,X6). +(Space += sequence(X1)) :- !, sequence(Space,X1). +(Space += sequence(X1,X2)) :- !, sequence(Space,X1,X2). +(Space += sequence(X1,X2,X3,X4,X5)) :- !, sequence(Space,X1,X2,X3,X4,X5). +(Space += sequence(X1,X2,X3,X4,X5,X6)) :- !, sequence(Space,X1,X2,X3,X4,X5,X6). +(Space += sorted(X1,X2)) :- !, sorted(Space,X1,X2). +(Space += sorted(X1,X2,X3)) :- !, sorted(Space,X1,X2,X3). +(Space += sorted(X1,X2,X3,X4)) :- !, sorted(Space,X1,X2,X3,X4). +(Space += sqr(X0,X1,X2,X3)) :- !, sqr(Space,X0,X1,X2,X3). +(Space += sqr(X1,X2)) :- !, sqr(Space,X1,X2). +(Space += sqrt(X1,X2)) :- !, sqrt(Space,X1,X2). +(Space += sqrt(X1,X2,X3)) :- !, sqrt(Space,X1,X2,X3). +(Space += unary(X1,X2)) :- !, unary(Space,X1,X2). +(Space += unary(X1,X2,X3)) :- !, unary(Space,X1,X2,X3). +(Space += unary(X1,X2,X3,X4)) :- !, unary(Space,X1,X2,X3,X4). +(Space += unary(X1,X2,X3,X4,X5)) :- !, unary(Space,X1,X2,X3,X4,X5). +(Space += unshare(X1)) :- !, unshare(Space,X1). +(Space += unshare(X1,X2)) :- !, unshare(Space,X1,X2). +(Space += weights(X1,X2,X3,X4)) :- !; weights(Space,X1,X2,X3,X4). + +(Space += minimize(X)) :- !, minimize(Space,X). +(Space += maximize(X)) :- !, maximize(Space,X). +(Space += minimize(X,Y)) :- !, minimize(Space,X,Y). +(Space += maximize(X,Y)) :- !, maximize(Space,X,Y). + +(Space += keep(X)) :- !, keep_(Space,X). From 1967e0c434e55c5dc89162a3af44737484e627eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Sun, 3 Nov 2013 14:13:08 +0000 Subject: [PATCH 04/30] distributed config file --- packages/cuda/configure.in | 47 +++++++ packages/cuda/lista.cu | 75 +++++++---- packages/cuda/treeb.cu | 4 +- packages/cuda/union2.cu | 266 ++++++++++++++++++++++++++++++++++++- 4 files changed, 358 insertions(+), 34 deletions(-) create mode 100644 packages/cuda/configure.in diff --git a/packages/cuda/configure.in b/packages/cuda/configure.in new file mode 100644 index 000000000..f76424677 --- /dev/null +++ b/packages/cuda/configure.in @@ -0,0 +1,47 @@ +AC_ARG_WITH(cuda, + [ --enable-cuda use minisat interface], + if test "$withval" = yes; then + yap_cv_cuda=/usr + elif test "$withval" = no; then + yap_cv_cuda=no + else + yap_cv_cuda="$withval" + fi, + [yap_cv_cuda=no]) + + +CUDA_LDFLAGS="" +CUDA_CPPFLAGS="" +if test "$yap_cv_cuda" = no +then + ENABLE_CUDA="@# " +else + AC_PATH_PROG(NVCC, [nvcc], [no], [$yap_cv_cuda/bin]) + if test "$yap_cv_cuda" = no + then + ENABLE_CUDA="@# " + else + ENABLE_CUDA="" + case "$target_os" in + *darwin*) + CUDA_LDFLAGS="$LDFLAGS" + CUDA_CPPFLAGS="-arch=sm_20 -Xcompiler -fPIC -O3 " + CUDA_SHLIB_LD="$NVCC -Xcompiler -dynamiclib -L../.. -lYap " + ;; + **) + CUDA_LDFLAGS="$LDFLAGS $LIBS" + CUDA_CPPFLAGS=" -arch=sm_20 -Xcompiler -fPIC -O3 " + CUDA_SHLIB_LD="$NVCC -Xcompiler -export-dynamic" + ;; + esac + fi +fi + +AC_SUBST(ENABLE_CUDA) +AC_SUBST(NVCC) +AC_SUBST(CUDA_SHLIB_LD) +AC_SUBST(CUDA_CPPFLAGS) +AC_SUBST(CUDA_LDFLAGS) + +AC_CONFIG_FILES([packages/cuda/Makefile]) + diff --git a/packages/cuda/lista.cu b/packages/cuda/lista.cu index dde438acc..ca2f3c21e 100644 --- a/packages/cuda/lista.cu +++ b/packages/cuda/lista.cu @@ -926,7 +926,7 @@ int Cuda_Eval(predicate **inpfacts, int ninpf, predicate **inprules, int ninpr, fin = rules.end(); nombres(rul_str, fin); /*preprocessing*/ - movebpreds(rul_str, fin); + //movebpreds(rul_str, fin); referencias(L.begin(), L.end(), rul_str, fin); seleccion(rul_str, fin); selfjoin(rul_str, fin); @@ -984,7 +984,7 @@ int Cuda_Eval(predicate **inpfacts, int ninpf, predicate **inprules, int ninpr, rows1 = cargar(name1, filas1, cols1, isfact1, table1, &dop1, itr); - //cout << "rows1 = " << rows1 << endl; + // cout << "rows1 = " << rows1 << endl; if(rows1 == 0) { @@ -1012,7 +1012,6 @@ int Cuda_Eval(predicate **inpfacts, int ninpf, predicate **inprules, int ninpr, { /*int x, y; - cout << "antes = " << cols1 << " " << rows1 << endl; int *hop1 = (int *)malloc(cols1 * rows1 * sizeof(int)); cudaMemcpy(hop1, dop1, cols1 * rows1 * sizeof(int), cudaMemcpyDeviceToHost); for(x = 0; x < rows1; x++) @@ -1086,6 +1085,27 @@ int Cuda_Eval(predicate **inpfacts, int ninpf, predicate **inprules, int ninpr, num_refs = rul_act->num_rows - 1; for(x = 2; x < num_refs; x++) { + if (rul_act->address_host_table[x] < 0) { + #ifdef TIMER + cudaEvent_t start3, stop3; + cudaEventCreate(&start3); + cudaEventCreate(&stop3); + cudaEventRecord(start3, 0); + #endif + + res_rows = bpreds(res, res_rows, rul_act->projpos[x-2].y, rul_act->builtin, rul_act->num_bpreds, &res); + + #ifdef TIMER + cudaEventRecord(stop3, 0); + cudaEventSynchronize(stop3); + cudaEventElapsedTime(&time, start3, stop3); + cudaEventDestroy(start3); + cudaEventDestroy(stop3); + //cout << "Predicados = " << time << endl; + cuda_stats.pred_time += time; + #endif + continue; + } tipo = rul_act->referencias[x]; if(tipo < 0) { @@ -1108,42 +1128,43 @@ int Cuda_Eval(predicate **inpfacts, int ninpf, predicate **inprules, int ninpr, rows2 = cargar(name2, filas2, cols2, isfact2, table2, &dop2, itr); - //cout << "rows = " << x << " " << rows2 << endl; + //out << "rows = " << x << " " << rows2 << endl; if(rows2 == 0) break; + cout << x << ": join = " << res_rows << "/" << rul_act->projpos[x-2].y << " " << rows2 << "/" << cols2 << endl; res_rows = join(res, dop2, res_rows, rows2, rul_act->projpos[x-2].y, cols2, rul_act, x-1, 0, &res); if(res_rows == 0) break; - //cout << "resrows = " << res_rows << endl; + cout << x << ": resrows before = " << res_rows << " cols = " << rul_act->projpos[x-1].y << endl; + if (x < num_refs-1 && res_rows > 32) { + +#ifdef TIMER + cudaEvent_t start2, stop2; + cudaEventCreate(&start2); + cudaEventCreate(&stop2); + cudaEventRecord(start2, 0); +#endif + + res_rows = unir(res, res_rows, rul_act->projpos[x-1].y); /*Duplicate Elimination*/ +#ifdef TIMER + cudaEventRecord(stop2, 0); + cudaEventSynchronize(stop2); + cudaEventElapsedTime(&time, start2, stop2); + cudaEventDestroy(start2); + cudaEventDestroy(stop2); + //cout << "Union = " << time << endl; + cuda_stats.union_time += time; +#endif + + cout << "resrows after = " << res_rows << endl; + } } if(x == num_refs) { - if(rul_act->num_bpreds.x > 0) /*Built-in predicates*/ - { - #ifdef TIMER - cudaEvent_t start3, stop3; - cudaEventCreate(&start3); - cudaEventCreate(&stop3); - cudaEventRecord(start3, 0); - #endif - - res_rows = bpreds(res, res_rows, rul_act->num_columns, rul_act->builtin, rul_act->num_bpreds, &res); - - #ifdef TIMER - cudaEventRecord(stop3, 0); - cudaEventSynchronize(stop3); - cudaEventElapsedTime(&time, start3, stop3); - cudaEventDestroy(start3); - cudaEventDestroy(stop3); - //cout << "Predicados = " << time << endl; - cuda_stats.pred_time += time; - #endif - } - //cout << "antes de unir = " << res_rows << endl; #ifdef TIMER diff --git a/packages/cuda/treeb.cu b/packages/cuda/treeb.cu index 7cc7176ce..130ec6454 100755 --- a/packages/cuda/treeb.cu +++ b/packages/cuda/treeb.cu @@ -861,11 +861,11 @@ int join(int *p1, int *p2, int rLen, int sLen, int of1, int of2, list: memSizeS = newLen * sizeof(int); reservar(&d_S, memSizeS); -#ifdef DEBUG_MEM +#if DEBUG_MEM cerr << "+ " << d_S << " d_S " << memSizeS << endl; #endif reservar(&posS, memSizeS); -#ifdef DEBUG_MEM +#if DEBUG_MEM cerr << "+ " << posS << " posS " << memSizeS << endl; #endif llenar<<>>(p2, d_S, sLen, of2, wherej[1], temp, posS); diff --git a/packages/cuda/union2.cu b/packages/cuda/union2.cu index dd1b856c1..8bc305fb5 100644 --- a/packages/cuda/union2.cu +++ b/packages/cuda/union2.cu @@ -13,6 +13,26 @@ typedef struct n3 int v[3]; }s3; +typedef struct n4 +{ + int v[4]; +}s4; + +typedef struct n5 +{ + int v[5]; +}s5; + +typedef struct n6 +{ + int v[6]; +}s6; + +typedef struct n7 +{ + int v[7]; +}s7; + struct p2 { __host__ __device__ @@ -77,13 +97,136 @@ struct o3 } }; +struct p4 +{ + __host__ __device__ + bool operator()(const s4 &r1, const s4 &r2) + { + int x; + for(x = 0; x < 4; x++) + { + if(r1.v[x] != r2.v[x]) + return false; + } + return true; + } +}; + +struct o4 +{ + __host__ __device__ + bool operator()(const s4 &r1, const s4 &r2) + { + int x; + for(x = 0; x < 4; x++) + { + if(r1.v[x] > r2.v[x]) + return true; + if(r1.v[x] < r2.v[x]) + return false; + } + return false; + } +}; + +struct p5 +{ + __host__ __device__ + bool operator()(const s5 &r1, const s5 &r2) + { + int x; + for(x = 0; x < 5; x++) + { + if(r1.v[x] != r2.v[x]) + return false; + } + return true; + } +}; + +struct o5 +{ + __host__ __device__ + bool operator()(const s5 &r1, const s5 &r2) + { + int x; + for(x = 0; x < 5; x++) + { + if(r1.v[x] > r2.v[x]) + return true; + if(r1.v[x] < r2.v[x]) + return false; + } + return false; + } +}; + +struct p6 +{ + __host__ __device__ + bool operator()(const s6 &r1, const s6 &r2) + { + int x; + for(x = 0; x < 6; x++) + { + if(r1.v[x] != r2.v[x]) + return false; + } + return true; + } +}; + +struct o6 +{ + __host__ __device__ + bool operator()(const s6 &r1, const s6 &r2) + { + int x; + for(x = 0; x < 6; x++) + { + if(r1.v[x] > r2.v[x]) + return true; + if(r1.v[x] < r2.v[x]) + return false; + } + return false; + } +}; + +struct p7 +{ + __host__ __device__ + bool operator()(const s7 &r1, const s7 &r2) + { + int x; + for(x = 0; x < 7; x++) + { + if(r1.v[x] != r2.v[x]) + return false; + } + return true; + } +}; + +struct o7 +{ + __host__ __device__ + bool operator()(const s7 &r1, const s7 &r2) + { + int x; + for(x = 0; x < 7; x++) + { + if(r1.v[x] > r2.v[x]) + return true; + if(r1.v[x] < r2.v[x]) + return false; + } + return false; + } +}; + int unir(int *res, int rows, int tipo) { - thrust::device_ptr pt, re; - thrust::device_ptr pt2, re2; - thrust::device_ptr pt3, re3; - s2 *t2; - s3 *t3; int flag, nrows; #if TIMER @@ -93,6 +236,8 @@ int unir(int *res, int rows, int tipo) { case 1: { + thrust::device_ptr pt, re; + pt = thrust::device_pointer_cast(res); flag = 0; while(flag != 1) @@ -116,6 +261,8 @@ int unir(int *res, int rows, int tipo) } case 2: { + thrust::device_ptr pt2, re2; + s2 *t2; t2 = (s2*)res; /*int *a, x, y; @@ -169,6 +316,8 @@ int unir(int *res, int rows, int tipo) } case 3: { + thrust::device_ptr pt3, re3; + s3 *t3; t3 = (s3*)res; pt3 = thrust::device_pointer_cast(t3); flag = 0; @@ -191,6 +340,113 @@ int unir(int *res, int rows, int tipo) iVec.shrink_to_fit(); return nrows; } + case 4: + { + thrust::device_ptr pt4, re4; + s4 *t4; + t4 = (s4*)res; + pt4 = thrust::device_pointer_cast(t4); + flag = 0; + while(flag != 1) + { + try + { + thrust::sort(pt4, pt4 + rows, o4()); + re4 = thrust::unique(pt4, pt4 + rows, p4()); + flag = 1; + } + catch(std::bad_alloc &e) + { + limpiar("sort/unique in unir", 0); + } + } + nrows = thrust::distance(pt4, re4); + thrust::device_vector iVec(pt4, pt4 + rows); + iVec.resize(nrows); + iVec.shrink_to_fit(); + return nrows; + } + case 5: + { + thrust::device_ptr pt5, re5; + s5 *t5; + t5 = (s5*)res; + pt5 = thrust::device_pointer_cast(t5); + flag = 0; + while(flag != 1) + { + try + { + thrust::sort(pt5, pt5 + rows, o5()); + re5 = thrust::unique(pt5, pt5 + rows, p5()); + flag = 1; + } + catch(std::bad_alloc &e) + { + limpiar("sort/unique in unir", 0); + } + } + nrows = thrust::distance(pt5, re5); + thrust::device_vector iVec(pt5, pt5 + rows); + iVec.resize(nrows); + iVec.shrink_to_fit(); + return nrows; + } + case 6: + { + thrust::device_ptr pt6, re6; + s6 *t6; + t6 = (s6*)res; + pt6 = thrust::device_pointer_cast(t6); + flag = 0; + while(flag != 1) + { + try + { + thrust::sort(pt6, pt6 + rows, o6()); + re6 = thrust::unique(pt6, pt6 + rows, p6()); + flag = 1; + } + catch(std::bad_alloc &e) + { + limpiar("sort/unique in unir", 0); + } + } + nrows = thrust::distance(pt6, re6); + thrust::device_vector iVec(pt6, pt6 + rows); + iVec.resize(nrows); + iVec.shrink_to_fit(); + return nrows; + } + case 7: + { + thrust::device_ptr pt7, re7; + s7 *t7; + t7 = (s7*)res; + pt7 = thrust::device_pointer_cast(t7); + flag = 0; + while(flag != 1) + { + try + { + thrust::sort(pt7, pt7 + rows, o7()); + re7 = thrust::unique(pt7, pt7 + rows, p7()); + flag = 1; + } + catch(std::bad_alloc &e) + { + limpiar("sort/unique in unir", 0); + } + } + nrows = thrust::distance(pt7, re7); + thrust::device_vector iVec(pt7, pt7 + rows); + iVec.resize(nrows); + iVec.shrink_to_fit(); + return nrows; + } + default: + cerr << "Union: " << tipo << " columns are too many." << endl; + exit(1); } return 0; } From 1ede2112c6e99cf7456156c14b82c3f71b233e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Sun, 3 Nov 2013 23:55:09 +0000 Subject: [PATCH 05/30] distributed configure --- library/gecode/3.6.0/gecode-version.txt | 1 - .../3.6.0/gecode_yap_auto_generated.yap | 2836 --------- .../gecode_yap_cc_forward_auto_generated.icc | 31 - .../gecode_yap_cc_impl_auto_generated.icc | 4051 ------------- .../gecode_yap_cc_init_auto_generated.icc | 662 --- library/gecode/3.7.0/gecode-version.txt | 1 - .../3.7.0/gecode_yap_auto_generated.yap | 2995 ---------- .../gecode_yap_cc_forward_auto_generated.icc | 31 - .../gecode_yap_cc_impl_auto_generated.icc | 4315 -------------- .../gecode_yap_cc_init_auto_generated.icc | 698 --- library/gecode/3.7.1/gecode-version.txt | 1 - .../3.7.1/gecode_yap_auto_generated.yap | 2995 ---------- .../gecode_yap_cc_forward_auto_generated.icc | 31 - .../gecode_yap_cc_impl_auto_generated.icc | 4315 -------------- .../gecode_yap_cc_init_auto_generated.icc | 698 --- library/gecode/3.7.2/gecode-version.txt | 1 - .../3.7.2/gecode_yap_auto_generated.yap | 2995 ---------- .../gecode_yap_cc_forward_auto_generated.icc | 31 - .../gecode_yap_cc_impl_auto_generated.icc | 4315 -------------- .../gecode_yap_cc_init_auto_generated.icc | 698 --- library/gecode/3.7.3/gecode-version.txt | 1 - .../3.7.3/gecode_yap_auto_generated.yap | 2995 ---------- .../gecode_yap_cc_forward_auto_generated.icc | 31 - .../gecode_yap_cc_impl_auto_generated.icc | 4315 -------------- .../gecode_yap_cc_init_auto_generated.icc | 698 --- library/gecode/4.0.0/gecode-version.txt | 1 - .../4.0.0/gecode_yap_auto_generated.yap | 3010 ---------- .../gecode_yap_cc_forward_auto_generated.icc | 32 - .../gecode_yap_cc_impl_auto_generated.icc | 4336 -------------- .../gecode_yap_cc_init_auto_generated.icc | 709 --- library/gecode/4.2.0/gecode-version.txt | 1 - .../4.2.0/gecode_yap_auto_generated.yap | 3516 ----------- .../gecode_yap_cc_forward_auto_generated.icc | 28 - .../gecode_yap_cc_impl_auto_generated.icc | 5232 ----------------- .../gecode_yap_cc_init_auto_generated.icc | 640 -- library/gecode/DOC.txt | 189 - library/gecode/Makefile.in | 78 - library/gecode/Makefile.sav | 34 - library/gecode/README | 12 - library/gecode/clp_examples/3jugs.yap | 129 - library/gecode/clp_examples/photo.yap | 68 - library/gecode/clp_examples/queens.yap | 38 - .../gecode/clp_examples/send_more_money.yap | 34 - .../gecode/clp_examples/send_most_money.yap | 36 - library/gecode/clp_examples/sudoku.yap | 79 - library/gecode/clp_examples/test.yap | Bin 2807 -> 0 bytes library/gecode/clpfd.yap | 1143 ---- library/gecode/dev/Makefile | 5 - library/gecode/dev/code-generator.py | 717 --- library/gecode/dev/extractor/Doxyfile.in | 1716 ------ library/gecode/dev/extractor/Makefile | 36 - library/gecode/dev/extractor/README | 2 - .../gecode/dev/extractor/extract-enums.xsl | 31 - .../dev/extractor/extract-prototypes.xsl | 21 - library/gecode/dev/extractor/gecodedir.hh | 1 - library/gecode/dev/extractor/notice.hh | 3 - library/gecode/dev/extractor/notice.py | 3 - library/gecode/dev/gecode-enums-3.6.0.py | 113 - library/gecode/dev/gecode-enums-3.7.0.py | 113 - library/gecode/dev/gecode-enums-3.7.1.py | 113 - library/gecode/dev/gecode-enums-3.7.2.py | 113 - library/gecode/dev/gecode-enums-3.7.3.py | 113 - library/gecode/dev/gecode-enums-4.0.0.py | 119 - library/gecode/dev/gecode-enums-4.2.0.py | 95 - library/gecode/dev/gecode-prototypes-3.6.0.hh | 209 - library/gecode/dev/gecode-prototypes-3.7.0.hh | 221 - library/gecode/dev/gecode-prototypes-3.7.1.hh | 221 - library/gecode/dev/gecode-prototypes-3.7.2.hh | 221 - library/gecode/dev/gecode-prototypes-3.7.3.hh | 221 - library/gecode/dev/gecode-prototypes-4.0.0.hh | 222 - library/gecode/dev/gecode-prototypes-4.2.0.hh | 280 - library/gecode/disjunctor.hh | 156 - library/gecode/disjunctor.icc | 380 -- library/gecode/disjunctor1.yap | 37 - library/gecode/disjunctor2.yap | 37 - library/gecode/examples/photo.yap | 80 - library/gecode/examples/queens.yap | 67 - library/gecode/examples/send_more_money.yap | 41 - library/gecode/examples/send_most_money.yap | 45 - library/gecode/gecode3-common.icc | 358 -- library/gecode/gecode3_yap.cc | 1183 ---- library/gecode/gecode3_yap_hand_written.yap | 848 --- library/gecode/gecode4-common.icc | 413 -- library/gecode/gecode4_yap.cc | 1979 ------- library/gecode/gecode4_yap_hand_written.yap | 1094 ---- packages/bdd/configure.in | 104 + 86 files changed, 104 insertions(+), 70713 deletions(-) delete mode 100644 library/gecode/3.6.0/gecode-version.txt delete mode 100644 library/gecode/3.6.0/gecode_yap_auto_generated.yap delete mode 100644 library/gecode/3.6.0/gecode_yap_cc_forward_auto_generated.icc delete mode 100644 library/gecode/3.6.0/gecode_yap_cc_impl_auto_generated.icc delete mode 100644 library/gecode/3.6.0/gecode_yap_cc_init_auto_generated.icc delete mode 100644 library/gecode/3.7.0/gecode-version.txt delete mode 100644 library/gecode/3.7.0/gecode_yap_auto_generated.yap delete mode 100644 library/gecode/3.7.0/gecode_yap_cc_forward_auto_generated.icc delete mode 100644 library/gecode/3.7.0/gecode_yap_cc_impl_auto_generated.icc delete mode 100644 library/gecode/3.7.0/gecode_yap_cc_init_auto_generated.icc delete mode 100644 library/gecode/3.7.1/gecode-version.txt delete mode 100644 library/gecode/3.7.1/gecode_yap_auto_generated.yap delete mode 100644 library/gecode/3.7.1/gecode_yap_cc_forward_auto_generated.icc delete mode 100644 library/gecode/3.7.1/gecode_yap_cc_impl_auto_generated.icc delete mode 100644 library/gecode/3.7.1/gecode_yap_cc_init_auto_generated.icc delete mode 100644 library/gecode/3.7.2/gecode-version.txt delete mode 100644 library/gecode/3.7.2/gecode_yap_auto_generated.yap delete mode 100644 library/gecode/3.7.2/gecode_yap_cc_forward_auto_generated.icc delete mode 100644 library/gecode/3.7.2/gecode_yap_cc_impl_auto_generated.icc delete mode 100644 library/gecode/3.7.2/gecode_yap_cc_init_auto_generated.icc delete mode 100644 library/gecode/3.7.3/gecode-version.txt delete mode 100644 library/gecode/3.7.3/gecode_yap_auto_generated.yap delete mode 100644 library/gecode/3.7.3/gecode_yap_cc_forward_auto_generated.icc delete mode 100644 library/gecode/3.7.3/gecode_yap_cc_impl_auto_generated.icc delete mode 100644 library/gecode/3.7.3/gecode_yap_cc_init_auto_generated.icc delete mode 100644 library/gecode/4.0.0/gecode-version.txt delete mode 100644 library/gecode/4.0.0/gecode_yap_auto_generated.yap delete mode 100644 library/gecode/4.0.0/gecode_yap_cc_forward_auto_generated.icc delete mode 100644 library/gecode/4.0.0/gecode_yap_cc_impl_auto_generated.icc delete mode 100644 library/gecode/4.0.0/gecode_yap_cc_init_auto_generated.icc delete mode 100644 library/gecode/4.2.0/gecode-version.txt delete mode 100644 library/gecode/4.2.0/gecode_yap_auto_generated.yap delete mode 100644 library/gecode/4.2.0/gecode_yap_cc_forward_auto_generated.icc delete mode 100644 library/gecode/4.2.0/gecode_yap_cc_impl_auto_generated.icc delete mode 100644 library/gecode/4.2.0/gecode_yap_cc_init_auto_generated.icc delete mode 100644 library/gecode/DOC.txt delete mode 100644 library/gecode/Makefile.in delete mode 100644 library/gecode/Makefile.sav delete mode 100644 library/gecode/README delete mode 100644 library/gecode/clp_examples/3jugs.yap delete mode 100644 library/gecode/clp_examples/photo.yap delete mode 100644 library/gecode/clp_examples/queens.yap delete mode 100644 library/gecode/clp_examples/send_more_money.yap delete mode 100644 library/gecode/clp_examples/send_most_money.yap delete mode 100644 library/gecode/clp_examples/sudoku.yap delete mode 100644 library/gecode/clp_examples/test.yap delete mode 100644 library/gecode/clpfd.yap delete mode 100644 library/gecode/dev/Makefile delete mode 100644 library/gecode/dev/code-generator.py delete mode 100644 library/gecode/dev/extractor/Doxyfile.in delete mode 100644 library/gecode/dev/extractor/Makefile delete mode 100644 library/gecode/dev/extractor/README delete mode 100644 library/gecode/dev/extractor/extract-enums.xsl delete mode 100644 library/gecode/dev/extractor/extract-prototypes.xsl delete mode 100644 library/gecode/dev/extractor/gecodedir.hh delete mode 100644 library/gecode/dev/extractor/notice.hh delete mode 100644 library/gecode/dev/extractor/notice.py delete mode 100644 library/gecode/dev/gecode-enums-3.6.0.py delete mode 100644 library/gecode/dev/gecode-enums-3.7.0.py delete mode 100644 library/gecode/dev/gecode-enums-3.7.1.py delete mode 100644 library/gecode/dev/gecode-enums-3.7.2.py delete mode 100644 library/gecode/dev/gecode-enums-3.7.3.py delete mode 100644 library/gecode/dev/gecode-enums-4.0.0.py delete mode 100644 library/gecode/dev/gecode-enums-4.2.0.py delete mode 100644 library/gecode/dev/gecode-prototypes-3.6.0.hh delete mode 100644 library/gecode/dev/gecode-prototypes-3.7.0.hh delete mode 100644 library/gecode/dev/gecode-prototypes-3.7.1.hh delete mode 100644 library/gecode/dev/gecode-prototypes-3.7.2.hh delete mode 100644 library/gecode/dev/gecode-prototypes-3.7.3.hh delete mode 100644 library/gecode/dev/gecode-prototypes-4.0.0.hh delete mode 100644 library/gecode/dev/gecode-prototypes-4.2.0.hh delete mode 100644 library/gecode/disjunctor.hh delete mode 100644 library/gecode/disjunctor.icc delete mode 100644 library/gecode/disjunctor1.yap delete mode 100644 library/gecode/disjunctor2.yap delete mode 100644 library/gecode/examples/photo.yap delete mode 100644 library/gecode/examples/queens.yap delete mode 100644 library/gecode/examples/send_more_money.yap delete mode 100644 library/gecode/examples/send_most_money.yap delete mode 100644 library/gecode/gecode3-common.icc delete mode 100644 library/gecode/gecode3_yap.cc delete mode 100644 library/gecode/gecode3_yap_hand_written.yap delete mode 100644 library/gecode/gecode4-common.icc delete mode 100644 library/gecode/gecode4_yap.cc delete mode 100644 library/gecode/gecode4_yap_hand_written.yap create mode 100644 packages/bdd/configure.in diff --git a/library/gecode/3.6.0/gecode-version.txt b/library/gecode/3.6.0/gecode-version.txt deleted file mode 100644 index 40c341bdc..000000000 --- a/library/gecode/3.6.0/gecode-version.txt +++ /dev/null @@ -1 +0,0 @@ -3.6.0 diff --git a/library/gecode/3.6.0/gecode_yap_auto_generated.yap b/library/gecode/3.6.0/gecode_yap_auto_generated.yap deleted file mode 100644 index 0b514c66f..000000000 --- a/library/gecode/3.6.0/gecode_yap_auto_generated.yap +++ /dev/null @@ -1,2836 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -is_IntRelType_('IRT_EQ'). -is_IntRelType_('IRT_NQ'). -is_IntRelType_('IRT_LQ'). -is_IntRelType_('IRT_LE'). -is_IntRelType_('IRT_GQ'). -is_IntRelType_('IRT_GR'). - -is_IntRelType_('IRT_EQ','IRT_EQ'). -is_IntRelType_('IRT_NQ','IRT_NQ'). -is_IntRelType_('IRT_LQ','IRT_LQ'). -is_IntRelType_('IRT_LE','IRT_LE'). -is_IntRelType_('IRT_GQ','IRT_GQ'). -is_IntRelType_('IRT_GR','IRT_GR'). - -is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). -is_IntRelType(X) :- is_IntRelType(X,_). - -is_BoolOpType_('BOT_AND'). -is_BoolOpType_('BOT_OR'). -is_BoolOpType_('BOT_IMP'). -is_BoolOpType_('BOT_EQV'). -is_BoolOpType_('BOT_XOR'). - -is_BoolOpType_('BOT_AND','BOT_AND'). -is_BoolOpType_('BOT_OR','BOT_OR'). -is_BoolOpType_('BOT_IMP','BOT_IMP'). -is_BoolOpType_('BOT_EQV','BOT_EQV'). -is_BoolOpType_('BOT_XOR','BOT_XOR'). - -is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). -is_BoolOpType(X) :- is_BoolOpType(X,_). - -is_IntConLevel_('ICL_VAL'). -is_IntConLevel_('ICL_BND'). -is_IntConLevel_('ICL_DOM'). -is_IntConLevel_('ICL_DEF'). - -is_IntConLevel_('ICL_VAL','ICL_VAL'). -is_IntConLevel_('ICL_BND','ICL_BND'). -is_IntConLevel_('ICL_DOM','ICL_DOM'). -is_IntConLevel_('ICL_DEF','ICL_DEF'). - -is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). -is_IntConLevel(X) :- is_IntConLevel(X,_). - -is_TaskType_('TT_FIXP'). -is_TaskType_('TT_FIXS'). -is_TaskType_('TT_FIXE'). - -is_TaskType_('TT_FIXP','TT_FIXP'). -is_TaskType_('TT_FIXS','TT_FIXS'). -is_TaskType_('TT_FIXE','TT_FIXE'). - -is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). -is_TaskType(X) :- is_TaskType(X,_). - -is_ExtensionalPropKind_('EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY'). - -is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). - -is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). -is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). - -is_IntVarBranch_('INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). -is_IntVarBranch(X) :- is_IntVarBranch(X,_). - -is_IntValBranch_('INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX'). - -is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). - -is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). -is_IntValBranch(X) :- is_IntValBranch(X,_). - -is_IntAssign_('INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND'). - -is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). - -is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). -is_IntAssign(X) :- is_IntAssign(X,_). - -is_SetRelType_('SRT_EQ'). -is_SetRelType_('SRT_NQ'). -is_SetRelType_('SRT_SUB'). -is_SetRelType_('SRT_SUP'). -is_SetRelType_('SRT_DISJ'). -is_SetRelType_('SRT_CMPL'). - -is_SetRelType_('SRT_EQ','SRT_EQ'). -is_SetRelType_('SRT_NQ','SRT_NQ'). -is_SetRelType_('SRT_SUB','SRT_SUB'). -is_SetRelType_('SRT_SUP','SRT_SUP'). -is_SetRelType_('SRT_DISJ','SRT_DISJ'). -is_SetRelType_('SRT_CMPL','SRT_CMPL'). - -is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). -is_SetRelType(X) :- is_SetRelType(X,_). - -is_SetOpType_('SOT_UNION'). -is_SetOpType_('SOT_DUNION'). -is_SetOpType_('SOT_INTER'). -is_SetOpType_('SOT_MINUS'). - -is_SetOpType_('SOT_UNION','SOT_UNION'). -is_SetOpType_('SOT_DUNION','SOT_DUNION'). -is_SetOpType_('SOT_INTER','SOT_INTER'). -is_SetOpType_('SOT_MINUS','SOT_MINUS'). - -is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). -is_SetOpType(X) :- is_SetOpType(X,_). - -is_SetVarBranch_('SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). -is_SetVarBranch(X) :- is_SetVarBranch(X,_). - -is_SetValBranch_('SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC'). - -is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). - -is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). -is_SetValBranch(X) :- is_SetValBranch(X,_). - -is_SetAssign_('SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC'). - -is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). - -is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). -is_SetAssign(X) :- is_SetAssign(X,_). - -unary(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_333(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_329(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). - -sqr(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqr_321(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). - -convex(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_convex_51(Y0,Y1,Y2) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). - -nooverlap(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_nooverlap_226(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). - -assign(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_4(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_3(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_5(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_7(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_6(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_8(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). - -element(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_154(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_148(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_146(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_153(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_161(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_164(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_170(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_162(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> gecode_constraint_sequence_314(Y0,Y1) - ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). - -notMax(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMax_232(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). - -unary(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_unary_326(Y0,Y1,Y2) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_circuit_45(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_134(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_133(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_129(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_127(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntSet(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). - -channel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_32(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> gecode_constraint_nooverlap_228(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; (is_IntConLevel(X7,Y7) - -> gecode_constraint_nooverlap_231(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> gecode_constraint_element_150(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_152(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_168(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_BoolVar(X6,Y6) - -> gecode_constraint_element_166(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -max(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_208(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_212(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). - -unshare(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_unshare_338(Y0,Y1) - ; (is_BoolVarArgs(X1,Y1) - -> gecode_constraint_unshare_336(Y0,Y1) - ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). - -path(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_path_244(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_path_243(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). - -mult(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mult_222(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). - -clause(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). - -precede(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_precede_249(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). - -distinct(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_distinct_116(Y0,Y1) - ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). - -mod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mod_221(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). - -cardinality(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_cardinality_18(Y0,Y1,Y2) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). - -atmostOne(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). - -channelSorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_channelSorted_33(Y0,Y1,Y2) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_178(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_182(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). - -circuit(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_circuit_42(Y0,Y1) - ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). - -rel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_264(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_267(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_260(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_263(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_rel_258(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_256(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_275(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_271(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_269(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_297(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_296(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_255(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_253(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). - -min(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_min_216(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_min_215(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_min_219(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). - -cardinality(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). - -count(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_65(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_62(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_59(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_56(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). - -sqrt(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqrt_322(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_101(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -binpacking(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). - -linear(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -abs(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). - -convex(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> gecode_constraint_convex_50(Y0,Y1) - ; throw(gecode_argument_error(convex(X0,X1),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1),arg=1))). - -div(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_div_118(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). - -rel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntSet(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_276(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_265(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_261(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_259(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_257(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_304(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_305(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). - -weights(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_weights_340(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_max_211(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_path_239(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -unary(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_unary_334(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_unary_330(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_unary_324(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_unary_327(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). - -sorted(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_sorted_317(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_34(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). - -dom(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_137(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) - ; (is_IntSet(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_dom_128(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_126(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_125(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_123(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3) - ; (is_IntSet(X3,Y3) - -> gecode_constraint_dom_140(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). - -abs(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_abs_1(Y0,Y1,Y2) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). - -channel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). - -rel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_280(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_272(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_path_242(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). - -branch(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarBranch(X2,Y2) - -> (is_SetValBranch(X3,Y3) - -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). - -mult(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mult_223(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). - -clause(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_clause_46(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). - -precede(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_251(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_248(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_precede_247(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). - -channel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_78(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_75(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -distinct(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_distinct_117(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_distinct_114(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). - -mod(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mod_220(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). - -sqr(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqr_320(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_313(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_311(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_240(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_path_237(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_234(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -divmod(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_divmod_121(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). - -sorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_sorted_318(Y0,Y1,Y2) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_circuit_44(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_circuit_43(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). - -channel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_channel_31(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> gecode_constraint_channel_28(Y0,Y1,Y2) - ; (is_IntVarArgs(X2,Y2) - -> gecode_constraint_channel_26(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_22(Y0,Y1,Y2) - ; (is_SetVar(X2,Y2) - -> gecode_constraint_channel_25(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_20(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_52(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_66(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_68(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_61(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_57(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_70(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_100(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -binpacking(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). - -linear(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_177(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_181(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_184(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> gecode_constraint_nooverlap_230(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_nooverlap_225(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -div(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_div_119(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_max_210(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_max_209(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_max_213(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_241(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> gecode_constraint_path_238(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_235(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -unary(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_332(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_335(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_328(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_331(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_325(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). - -sorted(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_sorted_316(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_sorted_319(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_157(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_151(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_169(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_167(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_159(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_149(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_147(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_174(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_165(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_163(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). - -sequence(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_sequence_315(Y0,Y1,Y2) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -precede(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_250(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_246(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_74(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_77(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). - -distinct(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_distinct_115(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_214(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_218(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). - -sqrt(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqrt_323(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_312(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_310(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). - -unshare(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_339(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_337(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_path_245(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_path_236(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). - -divmod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_divmod_120(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_nooverlap_229(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -cumulative(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_76(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). - -count(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_67(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_69(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). - -notMin(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMin_233(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -branch(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_16(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_12(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetValBranch(X2,Y2) - -> gecode_constraint_branch_17(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). - -dom(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_136(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_130(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_124(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_122(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_176(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_179(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_180(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_183(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_nooverlap_224(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_nooverlap_227(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). - -element(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_175(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). - -rel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_266(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_262(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_274(Y0,Y1,Y2,Y3) - ; (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_rel_270(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_268(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_273(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3) - ; (is_IntVarArgs(X3,Y3) - -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_254(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_252(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_min_217(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). - -count(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_count_64(Y0,Y1,Y2) - ; (is_IntSetArgs(X2,Y2) - -> gecode_constraint_count_58(Y0,Y1,Y2) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). - diff --git a/library/gecode/3.6.0/gecode_yap_cc_forward_auto_generated.icc b/library/gecode/3.6.0/gecode_yap_cc_forward_auto_generated.icc deleted file mode 100644 index 67781a39b..000000000 --- a/library/gecode/3.6.0/gecode_yap_cc_forward_auto_generated.icc +++ /dev/null @@ -1,31 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static IntRelType gecode_IntRelType_from_term(YAP_Term); -static BoolOpType gecode_BoolOpType_from_term(YAP_Term); -static IntConLevel gecode_IntConLevel_from_term(YAP_Term); -static TaskType gecode_TaskType_from_term(YAP_Term); -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); -static IntValBranch gecode_IntValBranch_from_term(YAP_Term); -static IntAssign gecode_IntAssign_from_term(YAP_Term); -static SetRelType gecode_SetRelType_from_term(YAP_Term); -static SetOpType gecode_SetOpType_from_term(YAP_Term); -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); -static SetValBranch gecode_SetValBranch_from_term(YAP_Term); -static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/library/gecode/3.6.0/gecode_yap_cc_impl_auto_generated.icc b/library/gecode/3.6.0/gecode_yap_cc_impl_auto_generated.icc deleted file mode 100644 index f7054e6bc..000000000 --- a/library/gecode/3.6.0/gecode_yap_cc_impl_auto_generated.icc +++ /dev/null @@ -1,4051 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static YAP_Term gecode_IRT_EQ; -static YAP_Term gecode_IRT_NQ; -static YAP_Term gecode_IRT_LQ; -static YAP_Term gecode_IRT_LE; -static YAP_Term gecode_IRT_GQ; -static YAP_Term gecode_IRT_GR; - -static IntRelType gecode_IntRelType_from_term(YAP_Term X) -{ - if (X==gecode_IRT_EQ) return IRT_EQ; - if (X==gecode_IRT_NQ) return IRT_NQ; - if (X==gecode_IRT_LQ) return IRT_LQ; - if (X==gecode_IRT_LE) return IRT_LE; - if (X==gecode_IRT_GQ) return IRT_GQ; - if (X==gecode_IRT_GR) return IRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_BOT_AND; -static YAP_Term gecode_BOT_OR; -static YAP_Term gecode_BOT_IMP; -static YAP_Term gecode_BOT_EQV; -static YAP_Term gecode_BOT_XOR; - -static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) -{ - if (X==gecode_BOT_AND) return BOT_AND; - if (X==gecode_BOT_OR) return BOT_OR; - if (X==gecode_BOT_IMP) return BOT_IMP; - if (X==gecode_BOT_EQV) return BOT_EQV; - if (X==gecode_BOT_XOR) return BOT_XOR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_ICL_VAL; -static YAP_Term gecode_ICL_BND; -static YAP_Term gecode_ICL_DOM; -static YAP_Term gecode_ICL_DEF; - -static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) -{ - if (X==gecode_ICL_VAL) return ICL_VAL; - if (X==gecode_ICL_BND) return ICL_BND; - if (X==gecode_ICL_DOM) return ICL_DOM; - if (X==gecode_ICL_DEF) return ICL_DEF; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_TT_FIXP; -static YAP_Term gecode_TT_FIXS; -static YAP_Term gecode_TT_FIXE; - -static TaskType gecode_TaskType_from_term(YAP_Term X) -{ - if (X==gecode_TT_FIXP) return TT_FIXP; - if (X==gecode_TT_FIXS) return TT_FIXS; - if (X==gecode_TT_FIXE) return TT_FIXE; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_EPK_DEF; -static YAP_Term gecode_EPK_SPEED; -static YAP_Term gecode_EPK_MEMORY; - -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) -{ - if (X==gecode_EPK_DEF) return EPK_DEF; - if (X==gecode_EPK_SPEED) return EPK_SPEED; - if (X==gecode_EPK_MEMORY) return EPK_MEMORY; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAR_NONE; -static YAP_Term gecode_INT_VAR_RND; -static YAP_Term gecode_INT_VAR_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_AFC_MIN; -static YAP_Term gecode_INT_VAR_AFC_MAX; -static YAP_Term gecode_INT_VAR_MIN_MIN; -static YAP_Term gecode_INT_VAR_MIN_MAX; -static YAP_Term gecode_INT_VAR_MAX_MIN; -static YAP_Term gecode_INT_VAR_MAX_MAX; -static YAP_Term gecode_INT_VAR_SIZE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; - -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; - if (X==gecode_INT_VAR_RND) return INT_VAR_RND; - if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; - if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; - if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; - if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; - if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; - if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; - if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; - if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; - if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; - if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; - if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; - if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; - if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; - if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; - if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; - if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; - if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; - if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAL_MIN; -static YAP_Term gecode_INT_VAL_MED; -static YAP_Term gecode_INT_VAL_MAX; -static YAP_Term gecode_INT_VAL_RND; -static YAP_Term gecode_INT_VAL_SPLIT_MIN; -static YAP_Term gecode_INT_VAL_SPLIT_MAX; -static YAP_Term gecode_INT_VAL_RANGE_MIN; -static YAP_Term gecode_INT_VAL_RANGE_MAX; -static YAP_Term gecode_INT_VALUES_MIN; -static YAP_Term gecode_INT_VALUES_MAX; - -static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; - if (X==gecode_INT_VAL_MED) return INT_VAL_MED; - if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; - if (X==gecode_INT_VAL_RND) return INT_VAL_RND; - if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; - if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; - if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; - if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; - if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; - if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_ASSIGN_MIN; -static YAP_Term gecode_INT_ASSIGN_MED; -static YAP_Term gecode_INT_ASSIGN_MAX; -static YAP_Term gecode_INT_ASSIGN_RND; - -static IntAssign gecode_IntAssign_from_term(YAP_Term X) -{ - if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; - if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; - if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; - if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SRT_EQ; -static YAP_Term gecode_SRT_NQ; -static YAP_Term gecode_SRT_SUB; -static YAP_Term gecode_SRT_SUP; -static YAP_Term gecode_SRT_DISJ; -static YAP_Term gecode_SRT_CMPL; - -static SetRelType gecode_SetRelType_from_term(YAP_Term X) -{ - if (X==gecode_SRT_EQ) return SRT_EQ; - if (X==gecode_SRT_NQ) return SRT_NQ; - if (X==gecode_SRT_SUB) return SRT_SUB; - if (X==gecode_SRT_SUP) return SRT_SUP; - if (X==gecode_SRT_DISJ) return SRT_DISJ; - if (X==gecode_SRT_CMPL) return SRT_CMPL; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SOT_UNION; -static YAP_Term gecode_SOT_DUNION; -static YAP_Term gecode_SOT_INTER; -static YAP_Term gecode_SOT_MINUS; - -static SetOpType gecode_SetOpType_from_term(YAP_Term X) -{ - if (X==gecode_SOT_UNION) return SOT_UNION; - if (X==gecode_SOT_DUNION) return SOT_DUNION; - if (X==gecode_SOT_INTER) return SOT_INTER; - if (X==gecode_SOT_MINUS) return SOT_MINUS; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAR_NONE; -static YAP_Term gecode_SET_VAR_RND; -static YAP_Term gecode_SET_VAR_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_AFC_MIN; -static YAP_Term gecode_SET_VAR_AFC_MAX; -static YAP_Term gecode_SET_VAR_MIN_MIN; -static YAP_Term gecode_SET_VAR_MIN_MAX; -static YAP_Term gecode_SET_VAR_MAX_MIN; -static YAP_Term gecode_SET_VAR_MAX_MAX; -static YAP_Term gecode_SET_VAR_SIZE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; - -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; - if (X==gecode_SET_VAR_RND) return SET_VAR_RND; - if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; - if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; - if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; - if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; - if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; - if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; - if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; - if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; - if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; - if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; - if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; - if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; - if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; - if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAL_MIN_INC; -static YAP_Term gecode_SET_VAL_MIN_EXC; -static YAP_Term gecode_SET_VAL_MED_INC; -static YAP_Term gecode_SET_VAL_MED_EXC; -static YAP_Term gecode_SET_VAL_MAX_INC; -static YAP_Term gecode_SET_VAL_MAX_EXC; -static YAP_Term gecode_SET_VAL_RND_INC; -static YAP_Term gecode_SET_VAL_RND_EXC; - -static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; - if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; - if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; - if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; - if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; - if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; - if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; - if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_ASSIGN_MIN_INC; -static YAP_Term gecode_SET_ASSIGN_MIN_EXC; -static YAP_Term gecode_SET_ASSIGN_MED_INC; -static YAP_Term gecode_SET_ASSIGN_MED_EXC; -static YAP_Term gecode_SET_ASSIGN_MAX_INC; -static YAP_Term gecode_SET_ASSIGN_MAX_EXC; -static YAP_Term gecode_SET_ASSIGN_RND_INC; -static YAP_Term gecode_SET_ASSIGN_RND_EXC; - -static SetAssign gecode_SetAssign_from_term(YAP_Term X) -{ - if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; - if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; - if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; - if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; - if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; - if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; - if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; - if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static int gecode_constraint_unary_333(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unary_329(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sqr_321(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqr(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_135(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_dom_145(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_convex_51(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - convex(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_nooverlap_226(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - nooverlap(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_assign_4(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_3(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_5(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_7(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_6(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_8(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_element_154(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_158(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_148(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_146(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_153(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_161(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_164(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_170(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_162(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_314(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - sequence(*space,X2); - return TRUE; -} - -static int gecode_constraint_notMax_232(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMax(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unary_326(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - unary(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_45(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_36(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_134(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_139(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_133(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_129(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_127(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_144(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_143(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_141(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_32(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_27(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_23(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_21(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nooverlap_228(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_nooverlap_231(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_156(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_150(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_152(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_160(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_168(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_166(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_max_208(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_max_212(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_338(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_unshare_336(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_path_244(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_243(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mult_222(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mult(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_clause_49(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_47(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_precede_249(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - precede(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_distinct_116(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - distinct(*space,X2); - return TRUE; -} - -static int gecode_constraint_mod_221(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cardinality_18(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - cardinality(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_atmostOne_9(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - atmostOne(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channelSorted_33(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channelSorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_202(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_206(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_178(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_182(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_42(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - circuit(*space,X2); - return TRUE; -} - -static int gecode_constraint_rel_264(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_267(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_260(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_263(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_258(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_256(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_275(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_271(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_269(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_299(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_297(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_283(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_285(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_279(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_286(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_289(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_290(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_293(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_296(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_307(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_309(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_255(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_253(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_min_216(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_215(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_219(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_cardinality_19(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - cardinality(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_65(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_62(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_60(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_59(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_56(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqrt_322(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqrt(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulatives_113(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_111(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_109(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_107(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_105(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_103(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_101(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_99(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_binpacking_10(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - binpacking(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_193(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_197(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_185(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_189(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_abs_2(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - abs(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_convex_50(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - convex(*space,X2); - return TRUE; -} - -static int gecode_constraint_div_118(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - div(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_287(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_291(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_276(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_277(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_265(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_261(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_259(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_257(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_302(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_303(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_304(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_305(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_weights_340(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - weights(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_211(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - max(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_239(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - path(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_unary_334(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_330(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_324(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_327(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_317(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - sorted(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_40(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_37(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_34(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_138(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_132(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_137(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_128(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_131(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_126(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_125(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_123(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_142(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_140(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_abs_1(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - abs(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_29(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_24(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_280(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_rel_272(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_242(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - path(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_14(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_13(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_15(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mult_223(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mult(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_41(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_38(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_35(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_48(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_clause_46(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_precede_251(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_248(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_247(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_30(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - channel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_82(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_85(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_78(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_81(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_75(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_94(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_97(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_90(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_93(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_87(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_distinct_117(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_distinct_114(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_mod_220(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mod(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqr_320(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqr(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sequence_313(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_sequence_311(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_240(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_237(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_234(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_divmod_121(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - divmod(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sorted_318(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - sorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_44(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_43(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_31(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_28(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_26(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_22(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_25(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_20(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_52(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_54(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_66(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_68(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_61(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_57(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_63(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_70(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_72(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulatives_112(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_110(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_108(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_106(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_104(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_102(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_100(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_98(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_binpacking_11(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - binpacking(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_201(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_205(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_177(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_181(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_192(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_195(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_196(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_199(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_184(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_187(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_188(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_191(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_230(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_nooverlap_225(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_div_119(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - div(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_210(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_209(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_213(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_path_241(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_238(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_235(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_unary_332(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_335(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_328(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_331(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_325(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sorted_316(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_319(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_157(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_151(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_169(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_167(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_155(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_159(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_149(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_147(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_174(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_172(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_165(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_171(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_163(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sequence_315(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - sequence(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_39(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - circuit(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_precede_250(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_precede_246(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_84(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_80(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_74(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_77(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_96(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_92(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_86(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_89(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_distinct_115(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - distinct(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_214(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_min_218(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sqrt_323(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqrt(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_312(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sequence_310(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unshare_339(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_337(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_245(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_path_236(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_divmod_120(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - divmod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_229(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulative_76(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulative_88(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_67(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_69(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_71(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_73(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_53(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_55(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_notMin_233(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMin(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_83(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_79(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_95(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_91(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_branch_16(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_12(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_17(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_136(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_130(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_124(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_122(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_200(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_203(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_204(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_207(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_176(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_179(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_180(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_183(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_194(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_198(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_186(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_190(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_224(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_227(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_175(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_173(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_266(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_262(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_274(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_270(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_268(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_273(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_300(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_298(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_282(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_284(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_278(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_281(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_288(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_292(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_294(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_295(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_301(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_306(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_308(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_254(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_252(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_217(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - min(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_64(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_58(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - diff --git a/library/gecode/3.6.0/gecode_yap_cc_init_auto_generated.icc b/library/gecode/3.6.0/gecode_yap_cc_init_auto_generated.icc deleted file mode 100644 index 964e0ec56..000000000 --- a/library/gecode/3.6.0/gecode_yap_cc_init_auto_generated.icc +++ /dev/null @@ -1,662 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); - gecode_IRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); - gecode_IRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); - gecode_IRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); - gecode_IRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); - gecode_IRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); - gecode_IRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); - gecode_BOT_AND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); - gecode_BOT_OR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); - gecode_BOT_IMP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); - gecode_BOT_EQV = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); - gecode_BOT_XOR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); - gecode_ICL_VAL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); - gecode_ICL_BND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); - gecode_ICL_DOM = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); - gecode_ICL_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); - gecode_TT_FIXP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); - gecode_TT_FIXS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); - gecode_TT_FIXE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); - gecode_EPK_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); - gecode_EPK_SPEED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); - gecode_EPK_MEMORY = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); - gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); - gecode_INT_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); - gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); - gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); - gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); - gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); - gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); - gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); - gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); - gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); - gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); - gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); - gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); - gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); - gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); - gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); - gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); - gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); - gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); - gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); - gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); - gecode_INT_VAL_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); - gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); - gecode_INT_VAL_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); - gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); - gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); - gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); - gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); - gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); - gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); - gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); - gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); - gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); - gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); - gecode_SRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); - gecode_SRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); - gecode_SRT_SUB = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); - gecode_SRT_SUP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); - gecode_SRT_DISJ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); - gecode_SRT_CMPL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); - gecode_SOT_UNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); - gecode_SOT_DUNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); - gecode_SOT_INTER = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); - gecode_SOT_MINUS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); - gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); - gecode_SET_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); - gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); - gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); - gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); - gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); - gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); - gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); - gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); - gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); - gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); - gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); - gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); - gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); - gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); - gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); - gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); - gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); - gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); - gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); - gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); - gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); - gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); - gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); - gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); - gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); - gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); - gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); - gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); - gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); - gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); - gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -YAP_UserCPredicate("gecode_constraint_unary_333", gecode_constraint_unary_333, 6); -YAP_UserCPredicate("gecode_constraint_unary_329", gecode_constraint_unary_329, 6); -YAP_UserCPredicate("gecode_constraint_sqr_321", gecode_constraint_sqr_321, 4); -YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 6); -YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 6); -YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 3); -YAP_UserCPredicate("gecode_constraint_nooverlap_226", gecode_constraint_nooverlap_226, 5); -YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); -YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); -YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); -YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); -YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); -YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); -YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 4); -YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); -YAP_UserCPredicate("gecode_constraint_element_148", gecode_constraint_element_148, 4); -YAP_UserCPredicate("gecode_constraint_element_146", gecode_constraint_element_146, 4); -YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 4); -YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 4); -YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 4); -YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 4); -YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 4); -YAP_UserCPredicate("gecode_constraint_sequence_314", gecode_constraint_sequence_314, 2); -YAP_UserCPredicate("gecode_constraint_notMax_232", gecode_constraint_notMax_232, 3); -YAP_UserCPredicate("gecode_constraint_unary_326", gecode_constraint_unary_326, 3); -YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 4); -YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 4); -YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 5); -YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 5); -YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 5); -YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 5); -YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 5); -YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 5); -YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 5); -YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 5); -YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 4); -YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); -YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); -YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); -YAP_UserCPredicate("gecode_constraint_nooverlap_228", gecode_constraint_nooverlap_228, 8); -YAP_UserCPredicate("gecode_constraint_nooverlap_231", gecode_constraint_nooverlap_231, 8); -YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 7); -YAP_UserCPredicate("gecode_constraint_element_150", gecode_constraint_element_150, 7); -YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 7); -YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 7); -YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 7); -YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 7); -YAP_UserCPredicate("gecode_constraint_max_208", gecode_constraint_max_208, 3); -YAP_UserCPredicate("gecode_constraint_max_212", gecode_constraint_max_212, 3); -YAP_UserCPredicate("gecode_constraint_unshare_338", gecode_constraint_unshare_338, 2); -YAP_UserCPredicate("gecode_constraint_unshare_336", gecode_constraint_unshare_336, 2); -YAP_UserCPredicate("gecode_constraint_path_244", gecode_constraint_path_244, 5); -YAP_UserCPredicate("gecode_constraint_path_243", gecode_constraint_path_243, 5); -YAP_UserCPredicate("gecode_constraint_mult_222", gecode_constraint_mult_222, 4); -YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 6); -YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 6); -YAP_UserCPredicate("gecode_constraint_precede_249", gecode_constraint_precede_249, 5); -YAP_UserCPredicate("gecode_constraint_distinct_116", gecode_constraint_distinct_116, 2); -YAP_UserCPredicate("gecode_constraint_mod_221", gecode_constraint_mod_221, 5); -YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); -YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); -YAP_UserCPredicate("gecode_constraint_channelSorted_33", gecode_constraint_channelSorted_33, 3); -YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 4); -YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 4); -YAP_UserCPredicate("gecode_constraint_linear_178", gecode_constraint_linear_178, 4); -YAP_UserCPredicate("gecode_constraint_linear_182", gecode_constraint_linear_182, 4); -YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 2); -YAP_UserCPredicate("gecode_constraint_rel_264", gecode_constraint_rel_264, 5); -YAP_UserCPredicate("gecode_constraint_rel_267", gecode_constraint_rel_267, 5); -YAP_UserCPredicate("gecode_constraint_rel_260", gecode_constraint_rel_260, 5); -YAP_UserCPredicate("gecode_constraint_rel_263", gecode_constraint_rel_263, 5); -YAP_UserCPredicate("gecode_constraint_rel_258", gecode_constraint_rel_258, 5); -YAP_UserCPredicate("gecode_constraint_rel_256", gecode_constraint_rel_256, 5); -YAP_UserCPredicate("gecode_constraint_rel_275", gecode_constraint_rel_275, 5); -YAP_UserCPredicate("gecode_constraint_rel_271", gecode_constraint_rel_271, 5); -YAP_UserCPredicate("gecode_constraint_rel_269", gecode_constraint_rel_269, 5); -YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 5); -YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 5); -YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 5); -YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 5); -YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 5); -YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 5); -YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 5); -YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 5); -YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 5); -YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 5); -YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 5); -YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 5); -YAP_UserCPredicate("gecode_constraint_rel_255", gecode_constraint_rel_255, 5); -YAP_UserCPredicate("gecode_constraint_rel_253", gecode_constraint_rel_253, 5); -YAP_UserCPredicate("gecode_constraint_min_216", gecode_constraint_min_216, 4); -YAP_UserCPredicate("gecode_constraint_min_215", gecode_constraint_min_215, 4); -YAP_UserCPredicate("gecode_constraint_min_219", gecode_constraint_min_219, 4); -YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); -YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 4); -YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 4); -YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); -YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 4); -YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 4); -YAP_UserCPredicate("gecode_constraint_sqrt_322", gecode_constraint_sqrt_322, 3); -YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_101", gecode_constraint_cumulatives_101, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_99", gecode_constraint_cumulatives_99, 9); -YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); -YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 7); -YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 7); -YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 7); -YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 7); -YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); -YAP_UserCPredicate("gecode_constraint_convex_50", gecode_constraint_convex_50, 2); -YAP_UserCPredicate("gecode_constraint_div_118", gecode_constraint_div_118, 4); -YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 6); -YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 6); -YAP_UserCPredicate("gecode_constraint_rel_276", gecode_constraint_rel_276, 6); -YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 6); -YAP_UserCPredicate("gecode_constraint_rel_265", gecode_constraint_rel_265, 6); -YAP_UserCPredicate("gecode_constraint_rel_261", gecode_constraint_rel_261, 6); -YAP_UserCPredicate("gecode_constraint_rel_259", gecode_constraint_rel_259, 6); -YAP_UserCPredicate("gecode_constraint_rel_257", gecode_constraint_rel_257, 6); -YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 6); -YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 6); -YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 6); -YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 6); -YAP_UserCPredicate("gecode_constraint_weights_340", gecode_constraint_weights_340, 5); -YAP_UserCPredicate("gecode_constraint_max_211", gecode_constraint_max_211, 5); -YAP_UserCPredicate("gecode_constraint_path_239", gecode_constraint_path_239, 9); -YAP_UserCPredicate("gecode_constraint_unary_334", gecode_constraint_unary_334, 4); -YAP_UserCPredicate("gecode_constraint_unary_330", gecode_constraint_unary_330, 4); -YAP_UserCPredicate("gecode_constraint_unary_324", gecode_constraint_unary_324, 4); -YAP_UserCPredicate("gecode_constraint_unary_327", gecode_constraint_unary_327, 4); -YAP_UserCPredicate("gecode_constraint_sorted_317", gecode_constraint_sorted_317, 5); -YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 5); -YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 5); -YAP_UserCPredicate("gecode_constraint_circuit_34", gecode_constraint_circuit_34, 5); -YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 4); -YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 4); -YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 4); -YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 4); -YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 4); -YAP_UserCPredicate("gecode_constraint_dom_126", gecode_constraint_dom_126, 4); -YAP_UserCPredicate("gecode_constraint_dom_125", gecode_constraint_dom_125, 4); -YAP_UserCPredicate("gecode_constraint_dom_123", gecode_constraint_dom_123, 4); -YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 4); -YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 4); -YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); -YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); -YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); -YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 3); -YAP_UserCPredicate("gecode_constraint_rel_272", gecode_constraint_rel_272, 3); -YAP_UserCPredicate("gecode_constraint_path_242", gecode_constraint_path_242, 4); -YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); -YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); -YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); -YAP_UserCPredicate("gecode_constraint_mult_223", gecode_constraint_mult_223, 5); -YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 6); -YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 6); -YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 6); -YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 5); -YAP_UserCPredicate("gecode_constraint_clause_46", gecode_constraint_clause_46, 5); -YAP_UserCPredicate("gecode_constraint_precede_251", gecode_constraint_precede_251, 4); -YAP_UserCPredicate("gecode_constraint_precede_248", gecode_constraint_precede_248, 4); -YAP_UserCPredicate("gecode_constraint_precede_247", gecode_constraint_precede_247, 4); -YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_78", gecode_constraint_cumulative_78, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_75", gecode_constraint_cumulative_75, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 7); -YAP_UserCPredicate("gecode_constraint_distinct_117", gecode_constraint_distinct_117, 3); -YAP_UserCPredicate("gecode_constraint_distinct_114", gecode_constraint_distinct_114, 3); -YAP_UserCPredicate("gecode_constraint_mod_220", gecode_constraint_mod_220, 4); -YAP_UserCPredicate("gecode_constraint_sqr_320", gecode_constraint_sqr_320, 3); -YAP_UserCPredicate("gecode_constraint_sequence_313", gecode_constraint_sequence_313, 7); -YAP_UserCPredicate("gecode_constraint_sequence_311", gecode_constraint_sequence_311, 7); -YAP_UserCPredicate("gecode_constraint_path_240", gecode_constraint_path_240, 7); -YAP_UserCPredicate("gecode_constraint_path_237", gecode_constraint_path_237, 7); -YAP_UserCPredicate("gecode_constraint_path_234", gecode_constraint_path_234, 7); -YAP_UserCPredicate("gecode_constraint_divmod_121", gecode_constraint_divmod_121, 6); -YAP_UserCPredicate("gecode_constraint_sorted_318", gecode_constraint_sorted_318, 3); -YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); -YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 3); -YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); -YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); -YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); -YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); -YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); -YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); -YAP_UserCPredicate("gecode_constraint_count_52", gecode_constraint_count_52, 5); -YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 5); -YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 5); -YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 5); -YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 5); -YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 5); -YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 5); -YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 5); -YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 5); -YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_102", gecode_constraint_cumulatives_102, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_100", gecode_constraint_cumulatives_100, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_98", gecode_constraint_cumulatives_98, 8); -YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); -YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 6); -YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 6); -YAP_UserCPredicate("gecode_constraint_linear_177", gecode_constraint_linear_177, 6); -YAP_UserCPredicate("gecode_constraint_linear_181", gecode_constraint_linear_181, 6); -YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); -YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); -YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 6); -YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); -YAP_UserCPredicate("gecode_constraint_linear_184", gecode_constraint_linear_184, 6); -YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 6); -YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 6); -YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_230", gecode_constraint_nooverlap_230, 7); -YAP_UserCPredicate("gecode_constraint_nooverlap_225", gecode_constraint_nooverlap_225, 7); -YAP_UserCPredicate("gecode_constraint_div_119", gecode_constraint_div_119, 5); -YAP_UserCPredicate("gecode_constraint_max_210", gecode_constraint_max_210, 4); -YAP_UserCPredicate("gecode_constraint_max_209", gecode_constraint_max_209, 4); -YAP_UserCPredicate("gecode_constraint_max_213", gecode_constraint_max_213, 4); -YAP_UserCPredicate("gecode_constraint_path_241", gecode_constraint_path_241, 8); -YAP_UserCPredicate("gecode_constraint_path_238", gecode_constraint_path_238, 8); -YAP_UserCPredicate("gecode_constraint_path_235", gecode_constraint_path_235, 8); -YAP_UserCPredicate("gecode_constraint_unary_332", gecode_constraint_unary_332, 5); -YAP_UserCPredicate("gecode_constraint_unary_335", gecode_constraint_unary_335, 5); -YAP_UserCPredicate("gecode_constraint_unary_328", gecode_constraint_unary_328, 5); -YAP_UserCPredicate("gecode_constraint_unary_331", gecode_constraint_unary_331, 5); -YAP_UserCPredicate("gecode_constraint_unary_325", gecode_constraint_unary_325, 5); -YAP_UserCPredicate("gecode_constraint_sorted_316", gecode_constraint_sorted_316, 4); -YAP_UserCPredicate("gecode_constraint_sorted_319", gecode_constraint_sorted_319, 4); -YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 8); -YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 8); -YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 8); -YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 8); -YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 5); -YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 5); -YAP_UserCPredicate("gecode_constraint_element_149", gecode_constraint_element_149, 5); -YAP_UserCPredicate("gecode_constraint_element_147", gecode_constraint_element_147, 5); -YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 5); -YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 5); -YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 5); -YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 5); -YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 5); -YAP_UserCPredicate("gecode_constraint_sequence_315", gecode_constraint_sequence_315, 3); -YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 7); -YAP_UserCPredicate("gecode_constraint_precede_250", gecode_constraint_precede_250, 3); -YAP_UserCPredicate("gecode_constraint_precede_246", gecode_constraint_precede_246, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_74", gecode_constraint_cumulative_74, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_77", gecode_constraint_cumulative_77, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 6); -YAP_UserCPredicate("gecode_constraint_distinct_115", gecode_constraint_distinct_115, 4); -YAP_UserCPredicate("gecode_constraint_min_214", gecode_constraint_min_214, 3); -YAP_UserCPredicate("gecode_constraint_min_218", gecode_constraint_min_218, 3); -YAP_UserCPredicate("gecode_constraint_sqrt_323", gecode_constraint_sqrt_323, 4); -YAP_UserCPredicate("gecode_constraint_sequence_312", gecode_constraint_sequence_312, 6); -YAP_UserCPredicate("gecode_constraint_sequence_310", gecode_constraint_sequence_310, 6); -YAP_UserCPredicate("gecode_constraint_unshare_339", gecode_constraint_unshare_339, 3); -YAP_UserCPredicate("gecode_constraint_unshare_337", gecode_constraint_unshare_337, 3); -YAP_UserCPredicate("gecode_constraint_path_245", gecode_constraint_path_245, 6); -YAP_UserCPredicate("gecode_constraint_path_236", gecode_constraint_path_236, 6); -YAP_UserCPredicate("gecode_constraint_divmod_120", gecode_constraint_divmod_120, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_229", gecode_constraint_nooverlap_229, 9); -YAP_UserCPredicate("gecode_constraint_cumulative_76", gecode_constraint_cumulative_76, 5); -YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 5); -YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 6); -YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 6); -YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 6); -YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 6); -YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 6); -YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 6); -YAP_UserCPredicate("gecode_constraint_notMin_233", gecode_constraint_notMin_233, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 8); -YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); -YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); -YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); -YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 3); -YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 3); -YAP_UserCPredicate("gecode_constraint_dom_124", gecode_constraint_dom_124, 3); -YAP_UserCPredicate("gecode_constraint_dom_122", gecode_constraint_dom_122, 3); -YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 5); -YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 5); -YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 5); -YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 5); -YAP_UserCPredicate("gecode_constraint_linear_176", gecode_constraint_linear_176, 5); -YAP_UserCPredicate("gecode_constraint_linear_179", gecode_constraint_linear_179, 5); -YAP_UserCPredicate("gecode_constraint_linear_180", gecode_constraint_linear_180, 5); -YAP_UserCPredicate("gecode_constraint_linear_183", gecode_constraint_linear_183, 5); -YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 5); -YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 5); -YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 5); -YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_224", gecode_constraint_nooverlap_224, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_227", gecode_constraint_nooverlap_227, 6); -YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 6); -YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 6); -YAP_UserCPredicate("gecode_constraint_rel_266", gecode_constraint_rel_266, 4); -YAP_UserCPredicate("gecode_constraint_rel_262", gecode_constraint_rel_262, 4); -YAP_UserCPredicate("gecode_constraint_rel_274", gecode_constraint_rel_274, 4); -YAP_UserCPredicate("gecode_constraint_rel_270", gecode_constraint_rel_270, 4); -YAP_UserCPredicate("gecode_constraint_rel_268", gecode_constraint_rel_268, 4); -YAP_UserCPredicate("gecode_constraint_rel_273", gecode_constraint_rel_273, 4); -YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 4); -YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); -YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 4); -YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 4); -YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 4); -YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 4); -YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 4); -YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 4); -YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 4); -YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 4); -YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 4); -YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); -YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 4); -YAP_UserCPredicate("gecode_constraint_rel_254", gecode_constraint_rel_254, 4); -YAP_UserCPredicate("gecode_constraint_rel_252", gecode_constraint_rel_252, 4); -YAP_UserCPredicate("gecode_constraint_min_217", gecode_constraint_min_217, 5); -YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 3); -YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 3); diff --git a/library/gecode/3.7.0/gecode-version.txt b/library/gecode/3.7.0/gecode-version.txt deleted file mode 100644 index 7c69a55db..000000000 --- a/library/gecode/3.7.0/gecode-version.txt +++ /dev/null @@ -1 +0,0 @@ -3.7.0 diff --git a/library/gecode/3.7.0/gecode_yap_auto_generated.yap b/library/gecode/3.7.0/gecode_yap_auto_generated.yap deleted file mode 100644 index 1b519c648..000000000 --- a/library/gecode/3.7.0/gecode_yap_auto_generated.yap +++ /dev/null @@ -1,2995 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -is_IntRelType_('IRT_EQ'). -is_IntRelType_('IRT_NQ'). -is_IntRelType_('IRT_LQ'). -is_IntRelType_('IRT_LE'). -is_IntRelType_('IRT_GQ'). -is_IntRelType_('IRT_GR'). - -is_IntRelType_('IRT_EQ','IRT_EQ'). -is_IntRelType_('IRT_NQ','IRT_NQ'). -is_IntRelType_('IRT_LQ','IRT_LQ'). -is_IntRelType_('IRT_LE','IRT_LE'). -is_IntRelType_('IRT_GQ','IRT_GQ'). -is_IntRelType_('IRT_GR','IRT_GR'). - -is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). -is_IntRelType(X) :- is_IntRelType(X,_). - -is_BoolOpType_('BOT_AND'). -is_BoolOpType_('BOT_OR'). -is_BoolOpType_('BOT_IMP'). -is_BoolOpType_('BOT_EQV'). -is_BoolOpType_('BOT_XOR'). - -is_BoolOpType_('BOT_AND','BOT_AND'). -is_BoolOpType_('BOT_OR','BOT_OR'). -is_BoolOpType_('BOT_IMP','BOT_IMP'). -is_BoolOpType_('BOT_EQV','BOT_EQV'). -is_BoolOpType_('BOT_XOR','BOT_XOR'). - -is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). -is_BoolOpType(X) :- is_BoolOpType(X,_). - -is_IntConLevel_('ICL_VAL'). -is_IntConLevel_('ICL_BND'). -is_IntConLevel_('ICL_DOM'). -is_IntConLevel_('ICL_DEF'). - -is_IntConLevel_('ICL_VAL','ICL_VAL'). -is_IntConLevel_('ICL_BND','ICL_BND'). -is_IntConLevel_('ICL_DOM','ICL_DOM'). -is_IntConLevel_('ICL_DEF','ICL_DEF'). - -is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). -is_IntConLevel(X) :- is_IntConLevel(X,_). - -is_TaskType_('TT_FIXP'). -is_TaskType_('TT_FIXS'). -is_TaskType_('TT_FIXE'). - -is_TaskType_('TT_FIXP','TT_FIXP'). -is_TaskType_('TT_FIXS','TT_FIXS'). -is_TaskType_('TT_FIXE','TT_FIXE'). - -is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). -is_TaskType(X) :- is_TaskType(X,_). - -is_ExtensionalPropKind_('EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY'). - -is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). - -is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). -is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). - -is_IntVarBranch_('INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). -is_IntVarBranch(X) :- is_IntVarBranch(X,_). - -is_IntValBranch_('INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX'). - -is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). - -is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). -is_IntValBranch(X) :- is_IntValBranch(X,_). - -is_IntAssign_('INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND'). - -is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). - -is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). -is_IntAssign(X) :- is_IntAssign(X,_). - -is_SetRelType_('SRT_EQ'). -is_SetRelType_('SRT_NQ'). -is_SetRelType_('SRT_SUB'). -is_SetRelType_('SRT_SUP'). -is_SetRelType_('SRT_DISJ'). -is_SetRelType_('SRT_CMPL'). -is_SetRelType_('SRT_LQ'). -is_SetRelType_('SRT_LE'). -is_SetRelType_('SRT_GQ'). -is_SetRelType_('SRT_GR'). - -is_SetRelType_('SRT_EQ','SRT_EQ'). -is_SetRelType_('SRT_NQ','SRT_NQ'). -is_SetRelType_('SRT_SUB','SRT_SUB'). -is_SetRelType_('SRT_SUP','SRT_SUP'). -is_SetRelType_('SRT_DISJ','SRT_DISJ'). -is_SetRelType_('SRT_CMPL','SRT_CMPL'). -is_SetRelType_('SRT_LQ','SRT_LQ'). -is_SetRelType_('SRT_LE','SRT_LE'). -is_SetRelType_('SRT_GQ','SRT_GQ'). -is_SetRelType_('SRT_GR','SRT_GR'). - -is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). -is_SetRelType(X) :- is_SetRelType(X,_). - -is_SetOpType_('SOT_UNION'). -is_SetOpType_('SOT_DUNION'). -is_SetOpType_('SOT_INTER'). -is_SetOpType_('SOT_MINUS'). - -is_SetOpType_('SOT_UNION','SOT_UNION'). -is_SetOpType_('SOT_DUNION','SOT_DUNION'). -is_SetOpType_('SOT_INTER','SOT_INTER'). -is_SetOpType_('SOT_MINUS','SOT_MINUS'). - -is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). -is_SetOpType(X) :- is_SetOpType(X,_). - -is_SetVarBranch_('SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). -is_SetVarBranch(X) :- is_SetVarBranch(X,_). - -is_SetValBranch_('SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC'). - -is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). - -is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). -is_SetValBranch(X) :- is_SetValBranch(X,_). - -is_SetAssign_('SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC'). - -is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). - -is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). -is_SetAssign(X) :- is_SetAssign(X,_). - -unary(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_357(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_353(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). - -nvalues(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_255(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_257(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_251(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_253(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_max_218(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_max_217(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_max_221(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_dom_149(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). - -convex(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_convex_51(Y0,Y1,Y2) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). - -nooverlap(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_nooverlap_242(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). - -assign(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_4(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_3(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_5(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_7(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_6(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_8(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). - -element(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_162(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_152(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_150(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_157(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_165(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_168(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_174(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_166(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> gecode_constraint_sequence_338(Y0,Y1) - ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). - -notMax(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMax_248(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). - -unary(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_unary_350(Y0,Y1,Y2) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_circuit_45(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_137(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_133(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_dom_148(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_147(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntSet(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). - -channel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_32(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> gecode_constraint_nooverlap_244(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; (is_IntConLevel(X7,Y7) - -> gecode_constraint_nooverlap_247(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> gecode_constraint_element_154(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_164(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_BoolVar(X6,Y6) - -> gecode_constraint_element_170(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -max(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_216(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_220(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). - -unshare(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_unshare_362(Y0,Y1) - ; (is_BoolVarArgs(X1,Y1) - -> gecode_constraint_unshare_360(Y0,Y1) - ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). - -path(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_path_268(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_path_267(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). - -mult(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mult_238(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). - -clause(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). - -precede(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_precede_273(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). - -distinct(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_distinct_120(Y0,Y1) - ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). - -member(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_member_226(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_229(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_member_222(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_225(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). - -mod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mod_237(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). - -cardinality(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_cardinality_18(Y0,Y1,Y2) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). - -atmostOne(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). - -channelSorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_channelSorted_33(Y0,Y1,Y2) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_210(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_214(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). - -circuit(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_circuit_42(Y0,Y1) - ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). - -rel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_280(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_323(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_321(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_310(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_313(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_314(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_317(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_320(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_331(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_333(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). - -min(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_min_232(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_min_231(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_min_235(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). - -cardinality(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). - -count(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_69(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_66(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_59(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_56(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). - -sqrt(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqrt_346(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_117(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_115(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -nvalues(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_254(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_256(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_250(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_252(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). - -binpacking(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). - -linear(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -abs(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). - -convex(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> gecode_constraint_convex_50(Y0,Y1) - ; throw(gecode_argument_error(convex(X0,X1),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1),arg=1))). - -div(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_div_122(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). - -rel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_311(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_315(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntSet(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_326(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_327(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_328(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_329(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). - -weights(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_weights_364(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_max_219(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_path_263(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -unary(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_unary_358(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_unary_354(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_unary_348(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_unary_351(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). - -sorted(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_sorted_341(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_34(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). - -dom(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_dom_136(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) - ; (is_IntSet(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_130(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_129(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_127(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_146(Y0,Y1,Y2,Y3) - ; (is_IntSet(X3,Y3) - -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). - -abs(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_abs_1(Y0,Y1,Y2) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). - -channel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). - -rel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_304(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_296(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_path_266(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). - -branch(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarBranch(X2,Y2) - -> (is_SetValBranch(X3,Y3) - -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). - -mult(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mult_239(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). - -clause(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_clause_46(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). - -precede(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_275(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_272(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_precede_271(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). - -channel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_101(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -distinct(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_distinct_121(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_distinct_118(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). - -member(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_227(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_223(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). - -mod(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mod_236(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). - -sqr(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqr_344(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_337(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_335(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_264(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_path_261(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_258(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -divmod(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_divmod_125(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). - -sorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_sorted_342(Y0,Y1,Y2) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_circuit_44(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_circuit_43(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). - -channel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_channel_31(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> gecode_constraint_channel_28(Y0,Y1,Y2) - ; (is_IntVarArgs(X2,Y2) - -> gecode_constraint_channel_26(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_22(Y0,Y1,Y2) - ; (is_SetVar(X2,Y2) - -> gecode_constraint_channel_25(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_20(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_52(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_70(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_62(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_64(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_61(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_57(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_67(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_74(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_76(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_116(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_114(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -binpacking(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). - -linear(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_209(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_213(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> gecode_constraint_nooverlap_246(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_nooverlap_241(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -div(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_div_123(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). - -sqr(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqr_345(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_265(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> gecode_constraint_path_262(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_259(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -unary(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_356(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_359(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_352(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_355(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_349(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). - -sorted(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_sorted_340(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_sorted_343(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_161(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_159(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_163(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_153(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_151(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_182(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_180(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_178(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_176(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_169(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_175(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_167(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). - -sequence(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_sequence_339(Y0,Y1,Y2) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -precede(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_274(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_270(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_78(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_100(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). - -distinct(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_distinct_119(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_230(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_234(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). - -sqrt(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqrt_347(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_336(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_334(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). - -unshare(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_363(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_361(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_path_269(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_path_260(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). - -divmod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_divmod_124(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_nooverlap_245(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -cumulative(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). - -member(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_member_228(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_member_224(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_75(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_77(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_65(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). - -notMin(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMin_249(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -branch(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_16(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_12(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetValBranch(X2,Y2) - -> gecode_constraint_branch_17(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). - -dom(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_140(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_134(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_128(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_126(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_208(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_211(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_212(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_215(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_184(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_nooverlap_240(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_nooverlap_243(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). - -element(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_183(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_181(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_179(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_177(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). - -rel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) - ; (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_297(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_324(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_322(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3) - ; (is_IntVarArgs(X3,Y3) - -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_305(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_312(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_316(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_318(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_319(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_325(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_330(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_332(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_276(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_min_233(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). - -count(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_count_68(Y0,Y1,Y2) - ; (is_IntSetArgs(X2,Y2) - -> gecode_constraint_count_58(Y0,Y1,Y2) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). - diff --git a/library/gecode/3.7.0/gecode_yap_cc_forward_auto_generated.icc b/library/gecode/3.7.0/gecode_yap_cc_forward_auto_generated.icc deleted file mode 100644 index 67781a39b..000000000 --- a/library/gecode/3.7.0/gecode_yap_cc_forward_auto_generated.icc +++ /dev/null @@ -1,31 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static IntRelType gecode_IntRelType_from_term(YAP_Term); -static BoolOpType gecode_BoolOpType_from_term(YAP_Term); -static IntConLevel gecode_IntConLevel_from_term(YAP_Term); -static TaskType gecode_TaskType_from_term(YAP_Term); -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); -static IntValBranch gecode_IntValBranch_from_term(YAP_Term); -static IntAssign gecode_IntAssign_from_term(YAP_Term); -static SetRelType gecode_SetRelType_from_term(YAP_Term); -static SetOpType gecode_SetOpType_from_term(YAP_Term); -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); -static SetValBranch gecode_SetValBranch_from_term(YAP_Term); -static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/library/gecode/3.7.0/gecode_yap_cc_impl_auto_generated.icc b/library/gecode/3.7.0/gecode_yap_cc_impl_auto_generated.icc deleted file mode 100644 index 8b41f068b..000000000 --- a/library/gecode/3.7.0/gecode_yap_cc_impl_auto_generated.icc +++ /dev/null @@ -1,4315 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static YAP_Term gecode_IRT_EQ; -static YAP_Term gecode_IRT_NQ; -static YAP_Term gecode_IRT_LQ; -static YAP_Term gecode_IRT_LE; -static YAP_Term gecode_IRT_GQ; -static YAP_Term gecode_IRT_GR; - -static IntRelType gecode_IntRelType_from_term(YAP_Term X) -{ - if (X==gecode_IRT_EQ) return IRT_EQ; - if (X==gecode_IRT_NQ) return IRT_NQ; - if (X==gecode_IRT_LQ) return IRT_LQ; - if (X==gecode_IRT_LE) return IRT_LE; - if (X==gecode_IRT_GQ) return IRT_GQ; - if (X==gecode_IRT_GR) return IRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_BOT_AND; -static YAP_Term gecode_BOT_OR; -static YAP_Term gecode_BOT_IMP; -static YAP_Term gecode_BOT_EQV; -static YAP_Term gecode_BOT_XOR; - -static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) -{ - if (X==gecode_BOT_AND) return BOT_AND; - if (X==gecode_BOT_OR) return BOT_OR; - if (X==gecode_BOT_IMP) return BOT_IMP; - if (X==gecode_BOT_EQV) return BOT_EQV; - if (X==gecode_BOT_XOR) return BOT_XOR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_ICL_VAL; -static YAP_Term gecode_ICL_BND; -static YAP_Term gecode_ICL_DOM; -static YAP_Term gecode_ICL_DEF; - -static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) -{ - if (X==gecode_ICL_VAL) return ICL_VAL; - if (X==gecode_ICL_BND) return ICL_BND; - if (X==gecode_ICL_DOM) return ICL_DOM; - if (X==gecode_ICL_DEF) return ICL_DEF; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_TT_FIXP; -static YAP_Term gecode_TT_FIXS; -static YAP_Term gecode_TT_FIXE; - -static TaskType gecode_TaskType_from_term(YAP_Term X) -{ - if (X==gecode_TT_FIXP) return TT_FIXP; - if (X==gecode_TT_FIXS) return TT_FIXS; - if (X==gecode_TT_FIXE) return TT_FIXE; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_EPK_DEF; -static YAP_Term gecode_EPK_SPEED; -static YAP_Term gecode_EPK_MEMORY; - -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) -{ - if (X==gecode_EPK_DEF) return EPK_DEF; - if (X==gecode_EPK_SPEED) return EPK_SPEED; - if (X==gecode_EPK_MEMORY) return EPK_MEMORY; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAR_NONE; -static YAP_Term gecode_INT_VAR_RND; -static YAP_Term gecode_INT_VAR_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_AFC_MIN; -static YAP_Term gecode_INT_VAR_AFC_MAX; -static YAP_Term gecode_INT_VAR_MIN_MIN; -static YAP_Term gecode_INT_VAR_MIN_MAX; -static YAP_Term gecode_INT_VAR_MAX_MIN; -static YAP_Term gecode_INT_VAR_MAX_MAX; -static YAP_Term gecode_INT_VAR_SIZE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; - -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; - if (X==gecode_INT_VAR_RND) return INT_VAR_RND; - if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; - if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; - if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; - if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; - if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; - if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; - if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; - if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; - if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; - if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; - if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; - if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; - if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; - if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; - if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; - if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; - if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; - if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAL_MIN; -static YAP_Term gecode_INT_VAL_MED; -static YAP_Term gecode_INT_VAL_MAX; -static YAP_Term gecode_INT_VAL_RND; -static YAP_Term gecode_INT_VAL_SPLIT_MIN; -static YAP_Term gecode_INT_VAL_SPLIT_MAX; -static YAP_Term gecode_INT_VAL_RANGE_MIN; -static YAP_Term gecode_INT_VAL_RANGE_MAX; -static YAP_Term gecode_INT_VALUES_MIN; -static YAP_Term gecode_INT_VALUES_MAX; - -static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; - if (X==gecode_INT_VAL_MED) return INT_VAL_MED; - if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; - if (X==gecode_INT_VAL_RND) return INT_VAL_RND; - if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; - if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; - if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; - if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; - if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; - if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_ASSIGN_MIN; -static YAP_Term gecode_INT_ASSIGN_MED; -static YAP_Term gecode_INT_ASSIGN_MAX; -static YAP_Term gecode_INT_ASSIGN_RND; - -static IntAssign gecode_IntAssign_from_term(YAP_Term X) -{ - if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; - if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; - if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; - if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SRT_EQ; -static YAP_Term gecode_SRT_NQ; -static YAP_Term gecode_SRT_SUB; -static YAP_Term gecode_SRT_SUP; -static YAP_Term gecode_SRT_DISJ; -static YAP_Term gecode_SRT_CMPL; -static YAP_Term gecode_SRT_LQ; -static YAP_Term gecode_SRT_LE; -static YAP_Term gecode_SRT_GQ; -static YAP_Term gecode_SRT_GR; - -static SetRelType gecode_SetRelType_from_term(YAP_Term X) -{ - if (X==gecode_SRT_EQ) return SRT_EQ; - if (X==gecode_SRT_NQ) return SRT_NQ; - if (X==gecode_SRT_SUB) return SRT_SUB; - if (X==gecode_SRT_SUP) return SRT_SUP; - if (X==gecode_SRT_DISJ) return SRT_DISJ; - if (X==gecode_SRT_CMPL) return SRT_CMPL; - if (X==gecode_SRT_LQ) return SRT_LQ; - if (X==gecode_SRT_LE) return SRT_LE; - if (X==gecode_SRT_GQ) return SRT_GQ; - if (X==gecode_SRT_GR) return SRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SOT_UNION; -static YAP_Term gecode_SOT_DUNION; -static YAP_Term gecode_SOT_INTER; -static YAP_Term gecode_SOT_MINUS; - -static SetOpType gecode_SetOpType_from_term(YAP_Term X) -{ - if (X==gecode_SOT_UNION) return SOT_UNION; - if (X==gecode_SOT_DUNION) return SOT_DUNION; - if (X==gecode_SOT_INTER) return SOT_INTER; - if (X==gecode_SOT_MINUS) return SOT_MINUS; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAR_NONE; -static YAP_Term gecode_SET_VAR_RND; -static YAP_Term gecode_SET_VAR_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_AFC_MIN; -static YAP_Term gecode_SET_VAR_AFC_MAX; -static YAP_Term gecode_SET_VAR_MIN_MIN; -static YAP_Term gecode_SET_VAR_MIN_MAX; -static YAP_Term gecode_SET_VAR_MAX_MIN; -static YAP_Term gecode_SET_VAR_MAX_MAX; -static YAP_Term gecode_SET_VAR_SIZE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; - -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; - if (X==gecode_SET_VAR_RND) return SET_VAR_RND; - if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; - if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; - if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; - if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; - if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; - if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; - if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; - if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; - if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; - if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; - if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; - if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; - if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; - if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAL_MIN_INC; -static YAP_Term gecode_SET_VAL_MIN_EXC; -static YAP_Term gecode_SET_VAL_MED_INC; -static YAP_Term gecode_SET_VAL_MED_EXC; -static YAP_Term gecode_SET_VAL_MAX_INC; -static YAP_Term gecode_SET_VAL_MAX_EXC; -static YAP_Term gecode_SET_VAL_RND_INC; -static YAP_Term gecode_SET_VAL_RND_EXC; - -static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; - if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; - if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; - if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; - if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; - if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; - if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; - if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_ASSIGN_MIN_INC; -static YAP_Term gecode_SET_ASSIGN_MIN_EXC; -static YAP_Term gecode_SET_ASSIGN_MED_INC; -static YAP_Term gecode_SET_ASSIGN_MED_EXC; -static YAP_Term gecode_SET_ASSIGN_MAX_INC; -static YAP_Term gecode_SET_ASSIGN_MAX_EXC; -static YAP_Term gecode_SET_ASSIGN_RND_INC; -static YAP_Term gecode_SET_ASSIGN_RND_EXC; - -static SetAssign gecode_SetAssign_from_term(YAP_Term X) -{ - if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; - if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; - if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; - if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; - if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; - if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; - if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; - if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static int gecode_constraint_unary_357(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unary_353(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nvalues_255(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_257(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_251(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_253(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_218(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_217(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_221(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_139(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_dom_149(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_convex_51(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - convex(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_nooverlap_242(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - nooverlap(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_assign_4(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_3(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_5(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_7(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_6(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_8(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_element_158(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_162(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_152(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_150(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_157(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_165(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_168(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_174(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_166(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_338(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - sequence(*space,X2); - return TRUE; -} - -static int gecode_constraint_notMax_248(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMax(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unary_350(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - unary(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_45(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_36(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_138(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_143(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_137(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_133(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_131(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_148(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_147(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_145(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_32(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_27(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_23(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_21(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nooverlap_244(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_nooverlap_247(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_160(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_154(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_156(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_164(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_172(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_170(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_max_216(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_max_220(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_362(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_unshare_360(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_path_268(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_267(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mult_238(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mult(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_clause_49(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_47(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_precede_273(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - precede(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_distinct_120(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - distinct(*space,X2); - return TRUE; -} - -static int gecode_constraint_member_226(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_229(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_222(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_225(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mod_237(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cardinality_18(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - cardinality(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_atmostOne_9(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - atmostOne(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channelSorted_33(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channelSorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_210(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_214(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_186(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_190(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_42(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - circuit(*space,X2); - return TRUE; -} - -static int gecode_constraint_rel_288(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_291(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_284(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_287(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_282(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_280(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_299(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_295(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_293(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_323(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_321(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_307(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_309(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_303(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_310(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_313(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_314(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_317(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_320(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_331(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_333(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_279(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_277(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_min_232(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_231(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_235(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_cardinality_19(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - cardinality(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_69(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_66(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_60(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_59(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_56(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqrt_346(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqrt(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulatives_117(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_115(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_113(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_111(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_109(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_107(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_105(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_103(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_nvalues_254(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_256(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_250(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_252(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_binpacking_10(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - binpacking(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_201(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_205(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_193(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_197(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_abs_2(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - abs(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_convex_50(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - convex(*space,X2); - return TRUE; -} - -static int gecode_constraint_div_122(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - div(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_311(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_315(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_300(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_301(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_289(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_285(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_283(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_281(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_326(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_327(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_328(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_329(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_weights_364(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - weights(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_219(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - max(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_263(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - path(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_unary_358(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_354(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_348(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_351(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_341(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - sorted(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_40(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_37(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_34(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_142(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_136(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_141(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_132(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_135(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_130(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_129(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_127(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_146(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_144(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_abs_1(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - abs(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_29(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_24(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_304(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_rel_296(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_266(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - path(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_14(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_13(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_15(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mult_239(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mult(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_41(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_38(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_35(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_48(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_clause_46(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_precede_275(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_272(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_271(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_30(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - channel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_86(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_89(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_82(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_85(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_79(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_98(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_101(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_94(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_97(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_91(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_distinct_121(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_distinct_118(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_227(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_223(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mod_236(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mod(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqr_344(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqr(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sequence_337(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_sequence_335(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_264(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_261(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_258(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_divmod_125(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - divmod(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sorted_342(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - sorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_44(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_43(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_31(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_28(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_26(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_22(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_25(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_20(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_52(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_54(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_70(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_72(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_62(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_64(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_61(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_57(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_67(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_74(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_76(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulatives_116(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_114(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_112(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_110(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_108(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_106(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_104(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_102(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_binpacking_11(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - binpacking(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_209(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_213(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_185(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_189(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_200(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_203(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_204(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_207(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_192(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_195(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_196(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_199(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_246(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_nooverlap_241(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_div_123(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - div(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sqr_345(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqr(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_path_265(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_262(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_259(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_unary_356(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_359(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_352(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_355(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_349(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sorted_340(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_343(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_161(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_155(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_173(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_171(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_159(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_163(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_153(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_151(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_182(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_180(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_178(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_176(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_169(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_175(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_167(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sequence_339(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - sequence(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_39(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - circuit(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_precede_274(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_precede_270(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_88(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_84(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_78(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_81(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_100(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_96(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_90(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_93(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_distinct_119(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - distinct(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_230(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_min_234(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sqrt_347(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqrt(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_336(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sequence_334(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unshare_363(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_361(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_269(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_path_260(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_divmod_124(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - divmod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_245(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulative_80(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulative_92(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_228(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_224(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_71(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_73(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_75(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_77(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_63(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_65(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_53(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_55(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_notMin_249(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMin(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_87(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_83(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_99(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_95(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_branch_16(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_12(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_17(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_140(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_134(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_128(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_126(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_208(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_211(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_212(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_215(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_184(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_187(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_188(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_191(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_202(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_206(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_194(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_198(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_240(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_243(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_183(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_181(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_179(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_177(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_290(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_286(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_298(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_294(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_292(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_297(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_324(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_322(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_306(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_308(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_302(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_305(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_312(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_316(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_318(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_319(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_325(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_330(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_332(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_278(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_276(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_233(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - min(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_68(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_58(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - diff --git a/library/gecode/3.7.0/gecode_yap_cc_init_auto_generated.icc b/library/gecode/3.7.0/gecode_yap_cc_init_auto_generated.icc deleted file mode 100644 index cb05df765..000000000 --- a/library/gecode/3.7.0/gecode_yap_cc_init_auto_generated.icc +++ /dev/null @@ -1,698 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); - gecode_IRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); - gecode_IRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); - gecode_IRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); - gecode_IRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); - gecode_IRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); - gecode_IRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); - gecode_BOT_AND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); - gecode_BOT_OR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); - gecode_BOT_IMP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); - gecode_BOT_EQV = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); - gecode_BOT_XOR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); - gecode_ICL_VAL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); - gecode_ICL_BND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); - gecode_ICL_DOM = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); - gecode_ICL_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); - gecode_TT_FIXP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); - gecode_TT_FIXS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); - gecode_TT_FIXE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); - gecode_EPK_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); - gecode_EPK_SPEED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); - gecode_EPK_MEMORY = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); - gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); - gecode_INT_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); - gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); - gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); - gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); - gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); - gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); - gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); - gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); - gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); - gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); - gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); - gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); - gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); - gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); - gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); - gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); - gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); - gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); - gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); - gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); - gecode_INT_VAL_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); - gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); - gecode_INT_VAL_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); - gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); - gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); - gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); - gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); - gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); - gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); - gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); - gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); - gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); - gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); - gecode_SRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); - gecode_SRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); - gecode_SRT_SUB = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); - gecode_SRT_SUP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); - gecode_SRT_DISJ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); - gecode_SRT_CMPL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); - gecode_SRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); - gecode_SRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); - gecode_SRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); - gecode_SRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); - gecode_SOT_UNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); - gecode_SOT_DUNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); - gecode_SOT_INTER = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); - gecode_SOT_MINUS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); - gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); - gecode_SET_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); - gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); - gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); - gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); - gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); - gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); - gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); - gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); - gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); - gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); - gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); - gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); - gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); - gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); - gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); - gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); - gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); - gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); - gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); - gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); - gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); - gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); - gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); - gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); - gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); - gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); - gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); - gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); - gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); - gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); - gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -YAP_UserCPredicate("gecode_constraint_unary_357", gecode_constraint_unary_357, 6); -YAP_UserCPredicate("gecode_constraint_unary_353", gecode_constraint_unary_353, 6); -YAP_UserCPredicate("gecode_constraint_nvalues_255", gecode_constraint_nvalues_255, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_257", gecode_constraint_nvalues_257, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_251", gecode_constraint_nvalues_251, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_253", gecode_constraint_nvalues_253, 5); -YAP_UserCPredicate("gecode_constraint_max_218", gecode_constraint_max_218, 4); -YAP_UserCPredicate("gecode_constraint_max_217", gecode_constraint_max_217, 4); -YAP_UserCPredicate("gecode_constraint_max_221", gecode_constraint_max_221, 4); -YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 6); -YAP_UserCPredicate("gecode_constraint_dom_149", gecode_constraint_dom_149, 6); -YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 3); -YAP_UserCPredicate("gecode_constraint_nooverlap_242", gecode_constraint_nooverlap_242, 5); -YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); -YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); -YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); -YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); -YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); -YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); -YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); -YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 4); -YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 4); -YAP_UserCPredicate("gecode_constraint_element_150", gecode_constraint_element_150, 4); -YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 4); -YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 4); -YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 4); -YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 4); -YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 4); -YAP_UserCPredicate("gecode_constraint_sequence_338", gecode_constraint_sequence_338, 2); -YAP_UserCPredicate("gecode_constraint_notMax_248", gecode_constraint_notMax_248, 3); -YAP_UserCPredicate("gecode_constraint_unary_350", gecode_constraint_unary_350, 3); -YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 4); -YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 4); -YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 5); -YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 5); -YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 5); -YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 5); -YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 5); -YAP_UserCPredicate("gecode_constraint_dom_148", gecode_constraint_dom_148, 5); -YAP_UserCPredicate("gecode_constraint_dom_147", gecode_constraint_dom_147, 5); -YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 5); -YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 4); -YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); -YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); -YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); -YAP_UserCPredicate("gecode_constraint_nooverlap_244", gecode_constraint_nooverlap_244, 8); -YAP_UserCPredicate("gecode_constraint_nooverlap_247", gecode_constraint_nooverlap_247, 8); -YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 7); -YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 7); -YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 7); -YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 7); -YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 7); -YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 7); -YAP_UserCPredicate("gecode_constraint_max_216", gecode_constraint_max_216, 3); -YAP_UserCPredicate("gecode_constraint_max_220", gecode_constraint_max_220, 3); -YAP_UserCPredicate("gecode_constraint_unshare_362", gecode_constraint_unshare_362, 2); -YAP_UserCPredicate("gecode_constraint_unshare_360", gecode_constraint_unshare_360, 2); -YAP_UserCPredicate("gecode_constraint_path_268", gecode_constraint_path_268, 5); -YAP_UserCPredicate("gecode_constraint_path_267", gecode_constraint_path_267, 5); -YAP_UserCPredicate("gecode_constraint_mult_238", gecode_constraint_mult_238, 4); -YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 6); -YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 6); -YAP_UserCPredicate("gecode_constraint_precede_273", gecode_constraint_precede_273, 5); -YAP_UserCPredicate("gecode_constraint_distinct_120", gecode_constraint_distinct_120, 2); -YAP_UserCPredicate("gecode_constraint_member_226", gecode_constraint_member_226, 4); -YAP_UserCPredicate("gecode_constraint_member_229", gecode_constraint_member_229, 4); -YAP_UserCPredicate("gecode_constraint_member_222", gecode_constraint_member_222, 4); -YAP_UserCPredicate("gecode_constraint_member_225", gecode_constraint_member_225, 4); -YAP_UserCPredicate("gecode_constraint_mod_237", gecode_constraint_mod_237, 5); -YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); -YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); -YAP_UserCPredicate("gecode_constraint_channelSorted_33", gecode_constraint_channelSorted_33, 3); -YAP_UserCPredicate("gecode_constraint_linear_210", gecode_constraint_linear_210, 4); -YAP_UserCPredicate("gecode_constraint_linear_214", gecode_constraint_linear_214, 4); -YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 4); -YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 4); -YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 2); -YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 5); -YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 5); -YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 5); -YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 5); -YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 5); -YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 5); -YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 5); -YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 5); -YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 5); -YAP_UserCPredicate("gecode_constraint_rel_323", gecode_constraint_rel_323, 5); -YAP_UserCPredicate("gecode_constraint_rel_321", gecode_constraint_rel_321, 5); -YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 5); -YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 5); -YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 5); -YAP_UserCPredicate("gecode_constraint_rel_310", gecode_constraint_rel_310, 5); -YAP_UserCPredicate("gecode_constraint_rel_313", gecode_constraint_rel_313, 5); -YAP_UserCPredicate("gecode_constraint_rel_314", gecode_constraint_rel_314, 5); -YAP_UserCPredicate("gecode_constraint_rel_317", gecode_constraint_rel_317, 5); -YAP_UserCPredicate("gecode_constraint_rel_320", gecode_constraint_rel_320, 5); -YAP_UserCPredicate("gecode_constraint_rel_331", gecode_constraint_rel_331, 5); -YAP_UserCPredicate("gecode_constraint_rel_333", gecode_constraint_rel_333, 5); -YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 5); -YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 5); -YAP_UserCPredicate("gecode_constraint_min_232", gecode_constraint_min_232, 4); -YAP_UserCPredicate("gecode_constraint_min_231", gecode_constraint_min_231, 4); -YAP_UserCPredicate("gecode_constraint_min_235", gecode_constraint_min_235, 4); -YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); -YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 4); -YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 4); -YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); -YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 4); -YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 4); -YAP_UserCPredicate("gecode_constraint_sqrt_346", gecode_constraint_sqrt_346, 3); -YAP_UserCPredicate("gecode_constraint_cumulatives_117", gecode_constraint_cumulatives_117, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_115", gecode_constraint_cumulatives_115, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 9); -YAP_UserCPredicate("gecode_constraint_nvalues_254", gecode_constraint_nvalues_254, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_256", gecode_constraint_nvalues_256, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_250", gecode_constraint_nvalues_250, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_252", gecode_constraint_nvalues_252, 4); -YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); -YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 7); -YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 7); -YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 7); -YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 7); -YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); -YAP_UserCPredicate("gecode_constraint_convex_50", gecode_constraint_convex_50, 2); -YAP_UserCPredicate("gecode_constraint_div_122", gecode_constraint_div_122, 4); -YAP_UserCPredicate("gecode_constraint_rel_311", gecode_constraint_rel_311, 6); -YAP_UserCPredicate("gecode_constraint_rel_315", gecode_constraint_rel_315, 6); -YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 6); -YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 6); -YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 6); -YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 6); -YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 6); -YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 6); -YAP_UserCPredicate("gecode_constraint_rel_326", gecode_constraint_rel_326, 6); -YAP_UserCPredicate("gecode_constraint_rel_327", gecode_constraint_rel_327, 6); -YAP_UserCPredicate("gecode_constraint_rel_328", gecode_constraint_rel_328, 6); -YAP_UserCPredicate("gecode_constraint_rel_329", gecode_constraint_rel_329, 6); -YAP_UserCPredicate("gecode_constraint_weights_364", gecode_constraint_weights_364, 5); -YAP_UserCPredicate("gecode_constraint_max_219", gecode_constraint_max_219, 5); -YAP_UserCPredicate("gecode_constraint_path_263", gecode_constraint_path_263, 9); -YAP_UserCPredicate("gecode_constraint_unary_358", gecode_constraint_unary_358, 4); -YAP_UserCPredicate("gecode_constraint_unary_354", gecode_constraint_unary_354, 4); -YAP_UserCPredicate("gecode_constraint_unary_348", gecode_constraint_unary_348, 4); -YAP_UserCPredicate("gecode_constraint_unary_351", gecode_constraint_unary_351, 4); -YAP_UserCPredicate("gecode_constraint_sorted_341", gecode_constraint_sorted_341, 5); -YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 5); -YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 5); -YAP_UserCPredicate("gecode_constraint_circuit_34", gecode_constraint_circuit_34, 5); -YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 4); -YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 4); -YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 4); -YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 4); -YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 4); -YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 4); -YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 4); -YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 4); -YAP_UserCPredicate("gecode_constraint_dom_146", gecode_constraint_dom_146, 4); -YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 4); -YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); -YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); -YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); -YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 3); -YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 3); -YAP_UserCPredicate("gecode_constraint_path_266", gecode_constraint_path_266, 4); -YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); -YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); -YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); -YAP_UserCPredicate("gecode_constraint_mult_239", gecode_constraint_mult_239, 5); -YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 6); -YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 6); -YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 6); -YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 5); -YAP_UserCPredicate("gecode_constraint_clause_46", gecode_constraint_clause_46, 5); -YAP_UserCPredicate("gecode_constraint_precede_275", gecode_constraint_precede_275, 4); -YAP_UserCPredicate("gecode_constraint_precede_272", gecode_constraint_precede_272, 4); -YAP_UserCPredicate("gecode_constraint_precede_271", gecode_constraint_precede_271, 4); -YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_98", gecode_constraint_cumulative_98, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_101", gecode_constraint_cumulative_101, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 7); -YAP_UserCPredicate("gecode_constraint_distinct_121", gecode_constraint_distinct_121, 3); -YAP_UserCPredicate("gecode_constraint_distinct_118", gecode_constraint_distinct_118, 3); -YAP_UserCPredicate("gecode_constraint_member_227", gecode_constraint_member_227, 5); -YAP_UserCPredicate("gecode_constraint_member_223", gecode_constraint_member_223, 5); -YAP_UserCPredicate("gecode_constraint_mod_236", gecode_constraint_mod_236, 4); -YAP_UserCPredicate("gecode_constraint_sqr_344", gecode_constraint_sqr_344, 3); -YAP_UserCPredicate("gecode_constraint_sequence_337", gecode_constraint_sequence_337, 7); -YAP_UserCPredicate("gecode_constraint_sequence_335", gecode_constraint_sequence_335, 7); -YAP_UserCPredicate("gecode_constraint_path_264", gecode_constraint_path_264, 7); -YAP_UserCPredicate("gecode_constraint_path_261", gecode_constraint_path_261, 7); -YAP_UserCPredicate("gecode_constraint_path_258", gecode_constraint_path_258, 7); -YAP_UserCPredicate("gecode_constraint_divmod_125", gecode_constraint_divmod_125, 6); -YAP_UserCPredicate("gecode_constraint_sorted_342", gecode_constraint_sorted_342, 3); -YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); -YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 3); -YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); -YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); -YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); -YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); -YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); -YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); -YAP_UserCPredicate("gecode_constraint_count_52", gecode_constraint_count_52, 5); -YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 5); -YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 5); -YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 5); -YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 5); -YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 5); -YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 5); -YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 5); -YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 5); -YAP_UserCPredicate("gecode_constraint_count_74", gecode_constraint_count_74, 5); -YAP_UserCPredicate("gecode_constraint_count_76", gecode_constraint_count_76, 5); -YAP_UserCPredicate("gecode_constraint_cumulatives_116", gecode_constraint_cumulatives_116, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_114", gecode_constraint_cumulatives_114, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_102", gecode_constraint_cumulatives_102, 8); -YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); -YAP_UserCPredicate("gecode_constraint_linear_209", gecode_constraint_linear_209, 6); -YAP_UserCPredicate("gecode_constraint_linear_213", gecode_constraint_linear_213, 6); -YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 6); -YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 6); -YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 6); -YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 6); -YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 6); -YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 6); -YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); -YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); -YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 6); -YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_246", gecode_constraint_nooverlap_246, 7); -YAP_UserCPredicate("gecode_constraint_nooverlap_241", gecode_constraint_nooverlap_241, 7); -YAP_UserCPredicate("gecode_constraint_div_123", gecode_constraint_div_123, 5); -YAP_UserCPredicate("gecode_constraint_sqr_345", gecode_constraint_sqr_345, 4); -YAP_UserCPredicate("gecode_constraint_path_265", gecode_constraint_path_265, 8); -YAP_UserCPredicate("gecode_constraint_path_262", gecode_constraint_path_262, 8); -YAP_UserCPredicate("gecode_constraint_path_259", gecode_constraint_path_259, 8); -YAP_UserCPredicate("gecode_constraint_unary_356", gecode_constraint_unary_356, 5); -YAP_UserCPredicate("gecode_constraint_unary_359", gecode_constraint_unary_359, 5); -YAP_UserCPredicate("gecode_constraint_unary_352", gecode_constraint_unary_352, 5); -YAP_UserCPredicate("gecode_constraint_unary_355", gecode_constraint_unary_355, 5); -YAP_UserCPredicate("gecode_constraint_unary_349", gecode_constraint_unary_349, 5); -YAP_UserCPredicate("gecode_constraint_sorted_340", gecode_constraint_sorted_340, 4); -YAP_UserCPredicate("gecode_constraint_sorted_343", gecode_constraint_sorted_343, 4); -YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 8); -YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 8); -YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 8); -YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 8); -YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 5); -YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 5); -YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 5); -YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 5); -YAP_UserCPredicate("gecode_constraint_element_182", gecode_constraint_element_182, 5); -YAP_UserCPredicate("gecode_constraint_element_180", gecode_constraint_element_180, 5); -YAP_UserCPredicate("gecode_constraint_element_178", gecode_constraint_element_178, 5); -YAP_UserCPredicate("gecode_constraint_element_176", gecode_constraint_element_176, 5); -YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 5); -YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 5); -YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 5); -YAP_UserCPredicate("gecode_constraint_sequence_339", gecode_constraint_sequence_339, 3); -YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 7); -YAP_UserCPredicate("gecode_constraint_precede_274", gecode_constraint_precede_274, 3); -YAP_UserCPredicate("gecode_constraint_precede_270", gecode_constraint_precede_270, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_78", gecode_constraint_cumulative_78, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_100", gecode_constraint_cumulative_100, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 6); -YAP_UserCPredicate("gecode_constraint_distinct_119", gecode_constraint_distinct_119, 4); -YAP_UserCPredicate("gecode_constraint_min_230", gecode_constraint_min_230, 3); -YAP_UserCPredicate("gecode_constraint_min_234", gecode_constraint_min_234, 3); -YAP_UserCPredicate("gecode_constraint_sqrt_347", gecode_constraint_sqrt_347, 4); -YAP_UserCPredicate("gecode_constraint_sequence_336", gecode_constraint_sequence_336, 6); -YAP_UserCPredicate("gecode_constraint_sequence_334", gecode_constraint_sequence_334, 6); -YAP_UserCPredicate("gecode_constraint_unshare_363", gecode_constraint_unshare_363, 3); -YAP_UserCPredicate("gecode_constraint_unshare_361", gecode_constraint_unshare_361, 3); -YAP_UserCPredicate("gecode_constraint_path_269", gecode_constraint_path_269, 6); -YAP_UserCPredicate("gecode_constraint_path_260", gecode_constraint_path_260, 6); -YAP_UserCPredicate("gecode_constraint_divmod_124", gecode_constraint_divmod_124, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_245", gecode_constraint_nooverlap_245, 9); -YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 5); -YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 5); -YAP_UserCPredicate("gecode_constraint_member_228", gecode_constraint_member_228, 3); -YAP_UserCPredicate("gecode_constraint_member_224", gecode_constraint_member_224, 3); -YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 6); -YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 6); -YAP_UserCPredicate("gecode_constraint_count_75", gecode_constraint_count_75, 6); -YAP_UserCPredicate("gecode_constraint_count_77", gecode_constraint_count_77, 6); -YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 6); -YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 6); -YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 6); -YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 6); -YAP_UserCPredicate("gecode_constraint_notMin_249", gecode_constraint_notMin_249, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_99", gecode_constraint_cumulative_99, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 8); -YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); -YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); -YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); -YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 3); -YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 3); -YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 3); -YAP_UserCPredicate("gecode_constraint_dom_126", gecode_constraint_dom_126, 3); -YAP_UserCPredicate("gecode_constraint_linear_208", gecode_constraint_linear_208, 5); -YAP_UserCPredicate("gecode_constraint_linear_211", gecode_constraint_linear_211, 5); -YAP_UserCPredicate("gecode_constraint_linear_212", gecode_constraint_linear_212, 5); -YAP_UserCPredicate("gecode_constraint_linear_215", gecode_constraint_linear_215, 5); -YAP_UserCPredicate("gecode_constraint_linear_184", gecode_constraint_linear_184, 5); -YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 5); -YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 5); -YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 5); -YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 5); -YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 5); -YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 5); -YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_240", gecode_constraint_nooverlap_240, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_243", gecode_constraint_nooverlap_243, 6); -YAP_UserCPredicate("gecode_constraint_element_183", gecode_constraint_element_183, 6); -YAP_UserCPredicate("gecode_constraint_element_181", gecode_constraint_element_181, 6); -YAP_UserCPredicate("gecode_constraint_element_179", gecode_constraint_element_179, 6); -YAP_UserCPredicate("gecode_constraint_element_177", gecode_constraint_element_177, 6); -YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 4); -YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 4); -YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); -YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 4); -YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 4); -YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 4); -YAP_UserCPredicate("gecode_constraint_rel_324", gecode_constraint_rel_324, 4); -YAP_UserCPredicate("gecode_constraint_rel_322", gecode_constraint_rel_322, 4); -YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); -YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 4); -YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 4); -YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 4); -YAP_UserCPredicate("gecode_constraint_rel_312", gecode_constraint_rel_312, 4); -YAP_UserCPredicate("gecode_constraint_rel_316", gecode_constraint_rel_316, 4); -YAP_UserCPredicate("gecode_constraint_rel_318", gecode_constraint_rel_318, 4); -YAP_UserCPredicate("gecode_constraint_rel_319", gecode_constraint_rel_319, 4); -YAP_UserCPredicate("gecode_constraint_rel_325", gecode_constraint_rel_325, 4); -YAP_UserCPredicate("gecode_constraint_rel_330", gecode_constraint_rel_330, 4); -YAP_UserCPredicate("gecode_constraint_rel_332", gecode_constraint_rel_332, 4); -YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 4); -YAP_UserCPredicate("gecode_constraint_rel_276", gecode_constraint_rel_276, 4); -YAP_UserCPredicate("gecode_constraint_min_233", gecode_constraint_min_233, 5); -YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 3); -YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 3); diff --git a/library/gecode/3.7.1/gecode-version.txt b/library/gecode/3.7.1/gecode-version.txt deleted file mode 100644 index a76ccff2a..000000000 --- a/library/gecode/3.7.1/gecode-version.txt +++ /dev/null @@ -1 +0,0 @@ -3.7.1 diff --git a/library/gecode/3.7.1/gecode_yap_auto_generated.yap b/library/gecode/3.7.1/gecode_yap_auto_generated.yap deleted file mode 100644 index 1b519c648..000000000 --- a/library/gecode/3.7.1/gecode_yap_auto_generated.yap +++ /dev/null @@ -1,2995 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -is_IntRelType_('IRT_EQ'). -is_IntRelType_('IRT_NQ'). -is_IntRelType_('IRT_LQ'). -is_IntRelType_('IRT_LE'). -is_IntRelType_('IRT_GQ'). -is_IntRelType_('IRT_GR'). - -is_IntRelType_('IRT_EQ','IRT_EQ'). -is_IntRelType_('IRT_NQ','IRT_NQ'). -is_IntRelType_('IRT_LQ','IRT_LQ'). -is_IntRelType_('IRT_LE','IRT_LE'). -is_IntRelType_('IRT_GQ','IRT_GQ'). -is_IntRelType_('IRT_GR','IRT_GR'). - -is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). -is_IntRelType(X) :- is_IntRelType(X,_). - -is_BoolOpType_('BOT_AND'). -is_BoolOpType_('BOT_OR'). -is_BoolOpType_('BOT_IMP'). -is_BoolOpType_('BOT_EQV'). -is_BoolOpType_('BOT_XOR'). - -is_BoolOpType_('BOT_AND','BOT_AND'). -is_BoolOpType_('BOT_OR','BOT_OR'). -is_BoolOpType_('BOT_IMP','BOT_IMP'). -is_BoolOpType_('BOT_EQV','BOT_EQV'). -is_BoolOpType_('BOT_XOR','BOT_XOR'). - -is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). -is_BoolOpType(X) :- is_BoolOpType(X,_). - -is_IntConLevel_('ICL_VAL'). -is_IntConLevel_('ICL_BND'). -is_IntConLevel_('ICL_DOM'). -is_IntConLevel_('ICL_DEF'). - -is_IntConLevel_('ICL_VAL','ICL_VAL'). -is_IntConLevel_('ICL_BND','ICL_BND'). -is_IntConLevel_('ICL_DOM','ICL_DOM'). -is_IntConLevel_('ICL_DEF','ICL_DEF'). - -is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). -is_IntConLevel(X) :- is_IntConLevel(X,_). - -is_TaskType_('TT_FIXP'). -is_TaskType_('TT_FIXS'). -is_TaskType_('TT_FIXE'). - -is_TaskType_('TT_FIXP','TT_FIXP'). -is_TaskType_('TT_FIXS','TT_FIXS'). -is_TaskType_('TT_FIXE','TT_FIXE'). - -is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). -is_TaskType(X) :- is_TaskType(X,_). - -is_ExtensionalPropKind_('EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY'). - -is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). - -is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). -is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). - -is_IntVarBranch_('INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). -is_IntVarBranch(X) :- is_IntVarBranch(X,_). - -is_IntValBranch_('INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX'). - -is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). - -is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). -is_IntValBranch(X) :- is_IntValBranch(X,_). - -is_IntAssign_('INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND'). - -is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). - -is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). -is_IntAssign(X) :- is_IntAssign(X,_). - -is_SetRelType_('SRT_EQ'). -is_SetRelType_('SRT_NQ'). -is_SetRelType_('SRT_SUB'). -is_SetRelType_('SRT_SUP'). -is_SetRelType_('SRT_DISJ'). -is_SetRelType_('SRT_CMPL'). -is_SetRelType_('SRT_LQ'). -is_SetRelType_('SRT_LE'). -is_SetRelType_('SRT_GQ'). -is_SetRelType_('SRT_GR'). - -is_SetRelType_('SRT_EQ','SRT_EQ'). -is_SetRelType_('SRT_NQ','SRT_NQ'). -is_SetRelType_('SRT_SUB','SRT_SUB'). -is_SetRelType_('SRT_SUP','SRT_SUP'). -is_SetRelType_('SRT_DISJ','SRT_DISJ'). -is_SetRelType_('SRT_CMPL','SRT_CMPL'). -is_SetRelType_('SRT_LQ','SRT_LQ'). -is_SetRelType_('SRT_LE','SRT_LE'). -is_SetRelType_('SRT_GQ','SRT_GQ'). -is_SetRelType_('SRT_GR','SRT_GR'). - -is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). -is_SetRelType(X) :- is_SetRelType(X,_). - -is_SetOpType_('SOT_UNION'). -is_SetOpType_('SOT_DUNION'). -is_SetOpType_('SOT_INTER'). -is_SetOpType_('SOT_MINUS'). - -is_SetOpType_('SOT_UNION','SOT_UNION'). -is_SetOpType_('SOT_DUNION','SOT_DUNION'). -is_SetOpType_('SOT_INTER','SOT_INTER'). -is_SetOpType_('SOT_MINUS','SOT_MINUS'). - -is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). -is_SetOpType(X) :- is_SetOpType(X,_). - -is_SetVarBranch_('SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). -is_SetVarBranch(X) :- is_SetVarBranch(X,_). - -is_SetValBranch_('SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC'). - -is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). - -is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). -is_SetValBranch(X) :- is_SetValBranch(X,_). - -is_SetAssign_('SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC'). - -is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). - -is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). -is_SetAssign(X) :- is_SetAssign(X,_). - -unary(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_357(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_353(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). - -nvalues(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_255(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_257(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_251(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_253(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_max_218(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_max_217(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_max_221(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_dom_149(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). - -convex(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_convex_51(Y0,Y1,Y2) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). - -nooverlap(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_nooverlap_242(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). - -assign(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_4(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_3(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_5(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_7(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_6(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_8(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). - -element(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_162(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_152(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_150(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_157(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_165(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_168(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_174(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_166(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> gecode_constraint_sequence_338(Y0,Y1) - ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). - -notMax(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMax_248(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). - -unary(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_unary_350(Y0,Y1,Y2) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_circuit_45(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_137(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_133(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_dom_148(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_147(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntSet(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). - -channel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_32(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> gecode_constraint_nooverlap_244(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; (is_IntConLevel(X7,Y7) - -> gecode_constraint_nooverlap_247(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> gecode_constraint_element_154(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_164(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_BoolVar(X6,Y6) - -> gecode_constraint_element_170(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -max(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_216(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_220(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). - -unshare(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_unshare_362(Y0,Y1) - ; (is_BoolVarArgs(X1,Y1) - -> gecode_constraint_unshare_360(Y0,Y1) - ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). - -path(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_path_268(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_path_267(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). - -mult(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mult_238(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). - -clause(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). - -precede(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_precede_273(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). - -distinct(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_distinct_120(Y0,Y1) - ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). - -member(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_member_226(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_229(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_member_222(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_225(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). - -mod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mod_237(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). - -cardinality(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_cardinality_18(Y0,Y1,Y2) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). - -atmostOne(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). - -channelSorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_channelSorted_33(Y0,Y1,Y2) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_210(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_214(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). - -circuit(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_circuit_42(Y0,Y1) - ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). - -rel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_280(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_323(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_321(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_310(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_313(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_314(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_317(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_320(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_331(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_333(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). - -min(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_min_232(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_min_231(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_min_235(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). - -cardinality(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). - -count(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_69(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_66(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_59(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_56(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). - -sqrt(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqrt_346(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_117(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_115(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -nvalues(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_254(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_256(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_250(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_252(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). - -binpacking(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). - -linear(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -abs(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). - -convex(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> gecode_constraint_convex_50(Y0,Y1) - ; throw(gecode_argument_error(convex(X0,X1),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1),arg=1))). - -div(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_div_122(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). - -rel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_311(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_315(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntSet(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_326(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_327(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_328(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_329(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). - -weights(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_weights_364(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_max_219(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_path_263(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -unary(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_unary_358(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_unary_354(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_unary_348(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_unary_351(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). - -sorted(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_sorted_341(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_34(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). - -dom(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_dom_136(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) - ; (is_IntSet(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_130(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_129(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_127(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_146(Y0,Y1,Y2,Y3) - ; (is_IntSet(X3,Y3) - -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). - -abs(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_abs_1(Y0,Y1,Y2) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). - -channel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). - -rel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_304(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_296(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_path_266(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). - -branch(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarBranch(X2,Y2) - -> (is_SetValBranch(X3,Y3) - -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). - -mult(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mult_239(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). - -clause(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_clause_46(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). - -precede(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_275(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_272(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_precede_271(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). - -channel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_101(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -distinct(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_distinct_121(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_distinct_118(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). - -member(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_227(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_223(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). - -mod(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mod_236(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). - -sqr(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqr_344(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_337(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_335(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_264(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_path_261(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_258(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -divmod(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_divmod_125(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). - -sorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_sorted_342(Y0,Y1,Y2) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_circuit_44(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_circuit_43(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). - -channel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_channel_31(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> gecode_constraint_channel_28(Y0,Y1,Y2) - ; (is_IntVarArgs(X2,Y2) - -> gecode_constraint_channel_26(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_22(Y0,Y1,Y2) - ; (is_SetVar(X2,Y2) - -> gecode_constraint_channel_25(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_20(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_52(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_70(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_62(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_64(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_61(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_57(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_67(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_74(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_76(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_116(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_114(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -binpacking(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). - -linear(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_209(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_213(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> gecode_constraint_nooverlap_246(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_nooverlap_241(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -div(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_div_123(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). - -sqr(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqr_345(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_265(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> gecode_constraint_path_262(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_259(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -unary(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_356(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_359(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_352(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_355(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_349(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). - -sorted(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_sorted_340(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_sorted_343(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_161(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_159(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_163(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_153(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_151(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_182(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_180(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_178(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_176(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_169(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_175(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_167(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). - -sequence(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_sequence_339(Y0,Y1,Y2) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -precede(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_274(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_270(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_78(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_100(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). - -distinct(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_distinct_119(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_230(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_234(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). - -sqrt(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqrt_347(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_336(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_334(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). - -unshare(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_363(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_361(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_path_269(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_path_260(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). - -divmod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_divmod_124(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_nooverlap_245(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -cumulative(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). - -member(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_member_228(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_member_224(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_75(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_77(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_65(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). - -notMin(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMin_249(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -branch(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_16(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_12(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetValBranch(X2,Y2) - -> gecode_constraint_branch_17(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). - -dom(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_140(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_134(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_128(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_126(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_208(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_211(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_212(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_215(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_184(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_nooverlap_240(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_nooverlap_243(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). - -element(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_183(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_181(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_179(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_177(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). - -rel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) - ; (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_297(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_324(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_322(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3) - ; (is_IntVarArgs(X3,Y3) - -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_305(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_312(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_316(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_318(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_319(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_325(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_330(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_332(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_276(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_min_233(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). - -count(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_count_68(Y0,Y1,Y2) - ; (is_IntSetArgs(X2,Y2) - -> gecode_constraint_count_58(Y0,Y1,Y2) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). - diff --git a/library/gecode/3.7.1/gecode_yap_cc_forward_auto_generated.icc b/library/gecode/3.7.1/gecode_yap_cc_forward_auto_generated.icc deleted file mode 100644 index 67781a39b..000000000 --- a/library/gecode/3.7.1/gecode_yap_cc_forward_auto_generated.icc +++ /dev/null @@ -1,31 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static IntRelType gecode_IntRelType_from_term(YAP_Term); -static BoolOpType gecode_BoolOpType_from_term(YAP_Term); -static IntConLevel gecode_IntConLevel_from_term(YAP_Term); -static TaskType gecode_TaskType_from_term(YAP_Term); -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); -static IntValBranch gecode_IntValBranch_from_term(YAP_Term); -static IntAssign gecode_IntAssign_from_term(YAP_Term); -static SetRelType gecode_SetRelType_from_term(YAP_Term); -static SetOpType gecode_SetOpType_from_term(YAP_Term); -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); -static SetValBranch gecode_SetValBranch_from_term(YAP_Term); -static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/library/gecode/3.7.1/gecode_yap_cc_impl_auto_generated.icc b/library/gecode/3.7.1/gecode_yap_cc_impl_auto_generated.icc deleted file mode 100644 index 8b41f068b..000000000 --- a/library/gecode/3.7.1/gecode_yap_cc_impl_auto_generated.icc +++ /dev/null @@ -1,4315 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static YAP_Term gecode_IRT_EQ; -static YAP_Term gecode_IRT_NQ; -static YAP_Term gecode_IRT_LQ; -static YAP_Term gecode_IRT_LE; -static YAP_Term gecode_IRT_GQ; -static YAP_Term gecode_IRT_GR; - -static IntRelType gecode_IntRelType_from_term(YAP_Term X) -{ - if (X==gecode_IRT_EQ) return IRT_EQ; - if (X==gecode_IRT_NQ) return IRT_NQ; - if (X==gecode_IRT_LQ) return IRT_LQ; - if (X==gecode_IRT_LE) return IRT_LE; - if (X==gecode_IRT_GQ) return IRT_GQ; - if (X==gecode_IRT_GR) return IRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_BOT_AND; -static YAP_Term gecode_BOT_OR; -static YAP_Term gecode_BOT_IMP; -static YAP_Term gecode_BOT_EQV; -static YAP_Term gecode_BOT_XOR; - -static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) -{ - if (X==gecode_BOT_AND) return BOT_AND; - if (X==gecode_BOT_OR) return BOT_OR; - if (X==gecode_BOT_IMP) return BOT_IMP; - if (X==gecode_BOT_EQV) return BOT_EQV; - if (X==gecode_BOT_XOR) return BOT_XOR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_ICL_VAL; -static YAP_Term gecode_ICL_BND; -static YAP_Term gecode_ICL_DOM; -static YAP_Term gecode_ICL_DEF; - -static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) -{ - if (X==gecode_ICL_VAL) return ICL_VAL; - if (X==gecode_ICL_BND) return ICL_BND; - if (X==gecode_ICL_DOM) return ICL_DOM; - if (X==gecode_ICL_DEF) return ICL_DEF; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_TT_FIXP; -static YAP_Term gecode_TT_FIXS; -static YAP_Term gecode_TT_FIXE; - -static TaskType gecode_TaskType_from_term(YAP_Term X) -{ - if (X==gecode_TT_FIXP) return TT_FIXP; - if (X==gecode_TT_FIXS) return TT_FIXS; - if (X==gecode_TT_FIXE) return TT_FIXE; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_EPK_DEF; -static YAP_Term gecode_EPK_SPEED; -static YAP_Term gecode_EPK_MEMORY; - -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) -{ - if (X==gecode_EPK_DEF) return EPK_DEF; - if (X==gecode_EPK_SPEED) return EPK_SPEED; - if (X==gecode_EPK_MEMORY) return EPK_MEMORY; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAR_NONE; -static YAP_Term gecode_INT_VAR_RND; -static YAP_Term gecode_INT_VAR_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_AFC_MIN; -static YAP_Term gecode_INT_VAR_AFC_MAX; -static YAP_Term gecode_INT_VAR_MIN_MIN; -static YAP_Term gecode_INT_VAR_MIN_MAX; -static YAP_Term gecode_INT_VAR_MAX_MIN; -static YAP_Term gecode_INT_VAR_MAX_MAX; -static YAP_Term gecode_INT_VAR_SIZE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; - -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; - if (X==gecode_INT_VAR_RND) return INT_VAR_RND; - if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; - if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; - if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; - if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; - if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; - if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; - if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; - if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; - if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; - if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; - if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; - if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; - if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; - if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; - if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; - if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; - if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; - if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAL_MIN; -static YAP_Term gecode_INT_VAL_MED; -static YAP_Term gecode_INT_VAL_MAX; -static YAP_Term gecode_INT_VAL_RND; -static YAP_Term gecode_INT_VAL_SPLIT_MIN; -static YAP_Term gecode_INT_VAL_SPLIT_MAX; -static YAP_Term gecode_INT_VAL_RANGE_MIN; -static YAP_Term gecode_INT_VAL_RANGE_MAX; -static YAP_Term gecode_INT_VALUES_MIN; -static YAP_Term gecode_INT_VALUES_MAX; - -static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; - if (X==gecode_INT_VAL_MED) return INT_VAL_MED; - if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; - if (X==gecode_INT_VAL_RND) return INT_VAL_RND; - if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; - if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; - if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; - if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; - if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; - if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_ASSIGN_MIN; -static YAP_Term gecode_INT_ASSIGN_MED; -static YAP_Term gecode_INT_ASSIGN_MAX; -static YAP_Term gecode_INT_ASSIGN_RND; - -static IntAssign gecode_IntAssign_from_term(YAP_Term X) -{ - if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; - if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; - if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; - if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SRT_EQ; -static YAP_Term gecode_SRT_NQ; -static YAP_Term gecode_SRT_SUB; -static YAP_Term gecode_SRT_SUP; -static YAP_Term gecode_SRT_DISJ; -static YAP_Term gecode_SRT_CMPL; -static YAP_Term gecode_SRT_LQ; -static YAP_Term gecode_SRT_LE; -static YAP_Term gecode_SRT_GQ; -static YAP_Term gecode_SRT_GR; - -static SetRelType gecode_SetRelType_from_term(YAP_Term X) -{ - if (X==gecode_SRT_EQ) return SRT_EQ; - if (X==gecode_SRT_NQ) return SRT_NQ; - if (X==gecode_SRT_SUB) return SRT_SUB; - if (X==gecode_SRT_SUP) return SRT_SUP; - if (X==gecode_SRT_DISJ) return SRT_DISJ; - if (X==gecode_SRT_CMPL) return SRT_CMPL; - if (X==gecode_SRT_LQ) return SRT_LQ; - if (X==gecode_SRT_LE) return SRT_LE; - if (X==gecode_SRT_GQ) return SRT_GQ; - if (X==gecode_SRT_GR) return SRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SOT_UNION; -static YAP_Term gecode_SOT_DUNION; -static YAP_Term gecode_SOT_INTER; -static YAP_Term gecode_SOT_MINUS; - -static SetOpType gecode_SetOpType_from_term(YAP_Term X) -{ - if (X==gecode_SOT_UNION) return SOT_UNION; - if (X==gecode_SOT_DUNION) return SOT_DUNION; - if (X==gecode_SOT_INTER) return SOT_INTER; - if (X==gecode_SOT_MINUS) return SOT_MINUS; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAR_NONE; -static YAP_Term gecode_SET_VAR_RND; -static YAP_Term gecode_SET_VAR_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_AFC_MIN; -static YAP_Term gecode_SET_VAR_AFC_MAX; -static YAP_Term gecode_SET_VAR_MIN_MIN; -static YAP_Term gecode_SET_VAR_MIN_MAX; -static YAP_Term gecode_SET_VAR_MAX_MIN; -static YAP_Term gecode_SET_VAR_MAX_MAX; -static YAP_Term gecode_SET_VAR_SIZE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; - -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; - if (X==gecode_SET_VAR_RND) return SET_VAR_RND; - if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; - if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; - if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; - if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; - if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; - if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; - if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; - if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; - if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; - if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; - if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; - if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; - if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; - if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAL_MIN_INC; -static YAP_Term gecode_SET_VAL_MIN_EXC; -static YAP_Term gecode_SET_VAL_MED_INC; -static YAP_Term gecode_SET_VAL_MED_EXC; -static YAP_Term gecode_SET_VAL_MAX_INC; -static YAP_Term gecode_SET_VAL_MAX_EXC; -static YAP_Term gecode_SET_VAL_RND_INC; -static YAP_Term gecode_SET_VAL_RND_EXC; - -static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; - if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; - if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; - if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; - if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; - if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; - if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; - if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_ASSIGN_MIN_INC; -static YAP_Term gecode_SET_ASSIGN_MIN_EXC; -static YAP_Term gecode_SET_ASSIGN_MED_INC; -static YAP_Term gecode_SET_ASSIGN_MED_EXC; -static YAP_Term gecode_SET_ASSIGN_MAX_INC; -static YAP_Term gecode_SET_ASSIGN_MAX_EXC; -static YAP_Term gecode_SET_ASSIGN_RND_INC; -static YAP_Term gecode_SET_ASSIGN_RND_EXC; - -static SetAssign gecode_SetAssign_from_term(YAP_Term X) -{ - if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; - if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; - if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; - if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; - if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; - if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; - if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; - if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static int gecode_constraint_unary_357(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unary_353(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nvalues_255(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_257(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_251(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_253(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_218(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_217(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_221(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_139(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_dom_149(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_convex_51(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - convex(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_nooverlap_242(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - nooverlap(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_assign_4(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_3(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_5(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_7(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_6(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_8(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_element_158(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_162(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_152(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_150(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_157(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_165(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_168(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_174(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_166(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_338(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - sequence(*space,X2); - return TRUE; -} - -static int gecode_constraint_notMax_248(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMax(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unary_350(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - unary(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_45(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_36(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_138(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_143(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_137(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_133(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_131(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_148(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_147(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_145(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_32(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_27(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_23(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_21(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nooverlap_244(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_nooverlap_247(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_160(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_154(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_156(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_164(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_172(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_170(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_max_216(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_max_220(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_362(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_unshare_360(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_path_268(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_267(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mult_238(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mult(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_clause_49(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_47(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_precede_273(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - precede(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_distinct_120(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - distinct(*space,X2); - return TRUE; -} - -static int gecode_constraint_member_226(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_229(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_222(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_225(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mod_237(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cardinality_18(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - cardinality(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_atmostOne_9(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - atmostOne(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channelSorted_33(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channelSorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_210(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_214(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_186(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_190(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_42(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - circuit(*space,X2); - return TRUE; -} - -static int gecode_constraint_rel_288(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_291(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_284(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_287(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_282(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_280(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_299(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_295(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_293(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_323(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_321(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_307(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_309(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_303(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_310(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_313(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_314(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_317(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_320(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_331(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_333(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_279(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_277(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_min_232(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_231(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_235(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_cardinality_19(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - cardinality(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_69(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_66(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_60(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_59(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_56(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqrt_346(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqrt(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulatives_117(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_115(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_113(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_111(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_109(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_107(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_105(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_103(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_nvalues_254(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_256(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_250(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_252(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_binpacking_10(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - binpacking(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_201(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_205(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_193(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_197(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_abs_2(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - abs(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_convex_50(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - convex(*space,X2); - return TRUE; -} - -static int gecode_constraint_div_122(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - div(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_311(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_315(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_300(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_301(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_289(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_285(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_283(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_281(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_326(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_327(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_328(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_329(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_weights_364(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - weights(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_219(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - max(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_263(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - path(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_unary_358(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_354(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_348(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_351(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_341(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - sorted(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_40(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_37(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_34(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_142(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_136(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_141(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_132(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_135(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_130(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_129(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_127(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_146(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_144(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_abs_1(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - abs(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_29(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_24(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_304(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_rel_296(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_266(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - path(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_14(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_13(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_15(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mult_239(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mult(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_41(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_38(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_35(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_48(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_clause_46(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_precede_275(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_272(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_271(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_30(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - channel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_86(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_89(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_82(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_85(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_79(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_98(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_101(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_94(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_97(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_91(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_distinct_121(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_distinct_118(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_227(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_223(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mod_236(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mod(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqr_344(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqr(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sequence_337(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_sequence_335(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_264(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_261(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_258(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_divmod_125(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - divmod(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sorted_342(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - sorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_44(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_43(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_31(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_28(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_26(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_22(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_25(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_20(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_52(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_54(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_70(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_72(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_62(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_64(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_61(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_57(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_67(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_74(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_76(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulatives_116(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_114(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_112(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_110(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_108(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_106(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_104(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_102(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_binpacking_11(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - binpacking(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_209(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_213(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_185(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_189(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_200(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_203(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_204(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_207(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_192(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_195(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_196(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_199(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_246(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_nooverlap_241(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_div_123(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - div(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sqr_345(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqr(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_path_265(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_262(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_259(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_unary_356(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_359(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_352(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_355(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_349(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sorted_340(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_343(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_161(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_155(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_173(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_171(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_159(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_163(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_153(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_151(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_182(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_180(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_178(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_176(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_169(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_175(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_167(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sequence_339(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - sequence(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_39(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - circuit(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_precede_274(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_precede_270(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_88(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_84(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_78(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_81(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_100(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_96(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_90(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_93(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_distinct_119(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - distinct(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_230(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_min_234(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sqrt_347(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqrt(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_336(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sequence_334(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unshare_363(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_361(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_269(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_path_260(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_divmod_124(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - divmod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_245(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulative_80(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulative_92(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_228(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_224(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_71(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_73(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_75(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_77(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_63(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_65(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_53(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_55(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_notMin_249(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMin(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_87(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_83(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_99(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_95(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_branch_16(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_12(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_17(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_140(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_134(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_128(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_126(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_208(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_211(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_212(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_215(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_184(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_187(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_188(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_191(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_202(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_206(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_194(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_198(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_240(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_243(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_183(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_181(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_179(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_177(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_290(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_286(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_298(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_294(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_292(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_297(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_324(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_322(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_306(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_308(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_302(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_305(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_312(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_316(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_318(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_319(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_325(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_330(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_332(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_278(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_276(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_233(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - min(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_68(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_58(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - diff --git a/library/gecode/3.7.1/gecode_yap_cc_init_auto_generated.icc b/library/gecode/3.7.1/gecode_yap_cc_init_auto_generated.icc deleted file mode 100644 index cb05df765..000000000 --- a/library/gecode/3.7.1/gecode_yap_cc_init_auto_generated.icc +++ /dev/null @@ -1,698 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); - gecode_IRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); - gecode_IRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); - gecode_IRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); - gecode_IRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); - gecode_IRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); - gecode_IRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); - gecode_BOT_AND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); - gecode_BOT_OR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); - gecode_BOT_IMP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); - gecode_BOT_EQV = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); - gecode_BOT_XOR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); - gecode_ICL_VAL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); - gecode_ICL_BND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); - gecode_ICL_DOM = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); - gecode_ICL_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); - gecode_TT_FIXP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); - gecode_TT_FIXS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); - gecode_TT_FIXE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); - gecode_EPK_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); - gecode_EPK_SPEED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); - gecode_EPK_MEMORY = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); - gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); - gecode_INT_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); - gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); - gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); - gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); - gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); - gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); - gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); - gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); - gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); - gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); - gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); - gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); - gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); - gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); - gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); - gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); - gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); - gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); - gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); - gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); - gecode_INT_VAL_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); - gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); - gecode_INT_VAL_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); - gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); - gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); - gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); - gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); - gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); - gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); - gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); - gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); - gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); - gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); - gecode_SRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); - gecode_SRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); - gecode_SRT_SUB = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); - gecode_SRT_SUP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); - gecode_SRT_DISJ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); - gecode_SRT_CMPL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); - gecode_SRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); - gecode_SRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); - gecode_SRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); - gecode_SRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); - gecode_SOT_UNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); - gecode_SOT_DUNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); - gecode_SOT_INTER = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); - gecode_SOT_MINUS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); - gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); - gecode_SET_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); - gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); - gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); - gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); - gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); - gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); - gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); - gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); - gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); - gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); - gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); - gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); - gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); - gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); - gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); - gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); - gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); - gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); - gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); - gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); - gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); - gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); - gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); - gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); - gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); - gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); - gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); - gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); - gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); - gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); - gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -YAP_UserCPredicate("gecode_constraint_unary_357", gecode_constraint_unary_357, 6); -YAP_UserCPredicate("gecode_constraint_unary_353", gecode_constraint_unary_353, 6); -YAP_UserCPredicate("gecode_constraint_nvalues_255", gecode_constraint_nvalues_255, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_257", gecode_constraint_nvalues_257, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_251", gecode_constraint_nvalues_251, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_253", gecode_constraint_nvalues_253, 5); -YAP_UserCPredicate("gecode_constraint_max_218", gecode_constraint_max_218, 4); -YAP_UserCPredicate("gecode_constraint_max_217", gecode_constraint_max_217, 4); -YAP_UserCPredicate("gecode_constraint_max_221", gecode_constraint_max_221, 4); -YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 6); -YAP_UserCPredicate("gecode_constraint_dom_149", gecode_constraint_dom_149, 6); -YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 3); -YAP_UserCPredicate("gecode_constraint_nooverlap_242", gecode_constraint_nooverlap_242, 5); -YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); -YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); -YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); -YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); -YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); -YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); -YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); -YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 4); -YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 4); -YAP_UserCPredicate("gecode_constraint_element_150", gecode_constraint_element_150, 4); -YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 4); -YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 4); -YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 4); -YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 4); -YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 4); -YAP_UserCPredicate("gecode_constraint_sequence_338", gecode_constraint_sequence_338, 2); -YAP_UserCPredicate("gecode_constraint_notMax_248", gecode_constraint_notMax_248, 3); -YAP_UserCPredicate("gecode_constraint_unary_350", gecode_constraint_unary_350, 3); -YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 4); -YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 4); -YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 5); -YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 5); -YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 5); -YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 5); -YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 5); -YAP_UserCPredicate("gecode_constraint_dom_148", gecode_constraint_dom_148, 5); -YAP_UserCPredicate("gecode_constraint_dom_147", gecode_constraint_dom_147, 5); -YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 5); -YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 4); -YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); -YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); -YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); -YAP_UserCPredicate("gecode_constraint_nooverlap_244", gecode_constraint_nooverlap_244, 8); -YAP_UserCPredicate("gecode_constraint_nooverlap_247", gecode_constraint_nooverlap_247, 8); -YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 7); -YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 7); -YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 7); -YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 7); -YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 7); -YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 7); -YAP_UserCPredicate("gecode_constraint_max_216", gecode_constraint_max_216, 3); -YAP_UserCPredicate("gecode_constraint_max_220", gecode_constraint_max_220, 3); -YAP_UserCPredicate("gecode_constraint_unshare_362", gecode_constraint_unshare_362, 2); -YAP_UserCPredicate("gecode_constraint_unshare_360", gecode_constraint_unshare_360, 2); -YAP_UserCPredicate("gecode_constraint_path_268", gecode_constraint_path_268, 5); -YAP_UserCPredicate("gecode_constraint_path_267", gecode_constraint_path_267, 5); -YAP_UserCPredicate("gecode_constraint_mult_238", gecode_constraint_mult_238, 4); -YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 6); -YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 6); -YAP_UserCPredicate("gecode_constraint_precede_273", gecode_constraint_precede_273, 5); -YAP_UserCPredicate("gecode_constraint_distinct_120", gecode_constraint_distinct_120, 2); -YAP_UserCPredicate("gecode_constraint_member_226", gecode_constraint_member_226, 4); -YAP_UserCPredicate("gecode_constraint_member_229", gecode_constraint_member_229, 4); -YAP_UserCPredicate("gecode_constraint_member_222", gecode_constraint_member_222, 4); -YAP_UserCPredicate("gecode_constraint_member_225", gecode_constraint_member_225, 4); -YAP_UserCPredicate("gecode_constraint_mod_237", gecode_constraint_mod_237, 5); -YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); -YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); -YAP_UserCPredicate("gecode_constraint_channelSorted_33", gecode_constraint_channelSorted_33, 3); -YAP_UserCPredicate("gecode_constraint_linear_210", gecode_constraint_linear_210, 4); -YAP_UserCPredicate("gecode_constraint_linear_214", gecode_constraint_linear_214, 4); -YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 4); -YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 4); -YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 2); -YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 5); -YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 5); -YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 5); -YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 5); -YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 5); -YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 5); -YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 5); -YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 5); -YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 5); -YAP_UserCPredicate("gecode_constraint_rel_323", gecode_constraint_rel_323, 5); -YAP_UserCPredicate("gecode_constraint_rel_321", gecode_constraint_rel_321, 5); -YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 5); -YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 5); -YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 5); -YAP_UserCPredicate("gecode_constraint_rel_310", gecode_constraint_rel_310, 5); -YAP_UserCPredicate("gecode_constraint_rel_313", gecode_constraint_rel_313, 5); -YAP_UserCPredicate("gecode_constraint_rel_314", gecode_constraint_rel_314, 5); -YAP_UserCPredicate("gecode_constraint_rel_317", gecode_constraint_rel_317, 5); -YAP_UserCPredicate("gecode_constraint_rel_320", gecode_constraint_rel_320, 5); -YAP_UserCPredicate("gecode_constraint_rel_331", gecode_constraint_rel_331, 5); -YAP_UserCPredicate("gecode_constraint_rel_333", gecode_constraint_rel_333, 5); -YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 5); -YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 5); -YAP_UserCPredicate("gecode_constraint_min_232", gecode_constraint_min_232, 4); -YAP_UserCPredicate("gecode_constraint_min_231", gecode_constraint_min_231, 4); -YAP_UserCPredicate("gecode_constraint_min_235", gecode_constraint_min_235, 4); -YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); -YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 4); -YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 4); -YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); -YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 4); -YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 4); -YAP_UserCPredicate("gecode_constraint_sqrt_346", gecode_constraint_sqrt_346, 3); -YAP_UserCPredicate("gecode_constraint_cumulatives_117", gecode_constraint_cumulatives_117, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_115", gecode_constraint_cumulatives_115, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 9); -YAP_UserCPredicate("gecode_constraint_nvalues_254", gecode_constraint_nvalues_254, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_256", gecode_constraint_nvalues_256, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_250", gecode_constraint_nvalues_250, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_252", gecode_constraint_nvalues_252, 4); -YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); -YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 7); -YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 7); -YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 7); -YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 7); -YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); -YAP_UserCPredicate("gecode_constraint_convex_50", gecode_constraint_convex_50, 2); -YAP_UserCPredicate("gecode_constraint_div_122", gecode_constraint_div_122, 4); -YAP_UserCPredicate("gecode_constraint_rel_311", gecode_constraint_rel_311, 6); -YAP_UserCPredicate("gecode_constraint_rel_315", gecode_constraint_rel_315, 6); -YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 6); -YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 6); -YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 6); -YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 6); -YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 6); -YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 6); -YAP_UserCPredicate("gecode_constraint_rel_326", gecode_constraint_rel_326, 6); -YAP_UserCPredicate("gecode_constraint_rel_327", gecode_constraint_rel_327, 6); -YAP_UserCPredicate("gecode_constraint_rel_328", gecode_constraint_rel_328, 6); -YAP_UserCPredicate("gecode_constraint_rel_329", gecode_constraint_rel_329, 6); -YAP_UserCPredicate("gecode_constraint_weights_364", gecode_constraint_weights_364, 5); -YAP_UserCPredicate("gecode_constraint_max_219", gecode_constraint_max_219, 5); -YAP_UserCPredicate("gecode_constraint_path_263", gecode_constraint_path_263, 9); -YAP_UserCPredicate("gecode_constraint_unary_358", gecode_constraint_unary_358, 4); -YAP_UserCPredicate("gecode_constraint_unary_354", gecode_constraint_unary_354, 4); -YAP_UserCPredicate("gecode_constraint_unary_348", gecode_constraint_unary_348, 4); -YAP_UserCPredicate("gecode_constraint_unary_351", gecode_constraint_unary_351, 4); -YAP_UserCPredicate("gecode_constraint_sorted_341", gecode_constraint_sorted_341, 5); -YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 5); -YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 5); -YAP_UserCPredicate("gecode_constraint_circuit_34", gecode_constraint_circuit_34, 5); -YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 4); -YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 4); -YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 4); -YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 4); -YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 4); -YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 4); -YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 4); -YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 4); -YAP_UserCPredicate("gecode_constraint_dom_146", gecode_constraint_dom_146, 4); -YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 4); -YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); -YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); -YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); -YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 3); -YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 3); -YAP_UserCPredicate("gecode_constraint_path_266", gecode_constraint_path_266, 4); -YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); -YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); -YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); -YAP_UserCPredicate("gecode_constraint_mult_239", gecode_constraint_mult_239, 5); -YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 6); -YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 6); -YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 6); -YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 5); -YAP_UserCPredicate("gecode_constraint_clause_46", gecode_constraint_clause_46, 5); -YAP_UserCPredicate("gecode_constraint_precede_275", gecode_constraint_precede_275, 4); -YAP_UserCPredicate("gecode_constraint_precede_272", gecode_constraint_precede_272, 4); -YAP_UserCPredicate("gecode_constraint_precede_271", gecode_constraint_precede_271, 4); -YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_98", gecode_constraint_cumulative_98, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_101", gecode_constraint_cumulative_101, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 7); -YAP_UserCPredicate("gecode_constraint_distinct_121", gecode_constraint_distinct_121, 3); -YAP_UserCPredicate("gecode_constraint_distinct_118", gecode_constraint_distinct_118, 3); -YAP_UserCPredicate("gecode_constraint_member_227", gecode_constraint_member_227, 5); -YAP_UserCPredicate("gecode_constraint_member_223", gecode_constraint_member_223, 5); -YAP_UserCPredicate("gecode_constraint_mod_236", gecode_constraint_mod_236, 4); -YAP_UserCPredicate("gecode_constraint_sqr_344", gecode_constraint_sqr_344, 3); -YAP_UserCPredicate("gecode_constraint_sequence_337", gecode_constraint_sequence_337, 7); -YAP_UserCPredicate("gecode_constraint_sequence_335", gecode_constraint_sequence_335, 7); -YAP_UserCPredicate("gecode_constraint_path_264", gecode_constraint_path_264, 7); -YAP_UserCPredicate("gecode_constraint_path_261", gecode_constraint_path_261, 7); -YAP_UserCPredicate("gecode_constraint_path_258", gecode_constraint_path_258, 7); -YAP_UserCPredicate("gecode_constraint_divmod_125", gecode_constraint_divmod_125, 6); -YAP_UserCPredicate("gecode_constraint_sorted_342", gecode_constraint_sorted_342, 3); -YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); -YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 3); -YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); -YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); -YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); -YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); -YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); -YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); -YAP_UserCPredicate("gecode_constraint_count_52", gecode_constraint_count_52, 5); -YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 5); -YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 5); -YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 5); -YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 5); -YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 5); -YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 5); -YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 5); -YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 5); -YAP_UserCPredicate("gecode_constraint_count_74", gecode_constraint_count_74, 5); -YAP_UserCPredicate("gecode_constraint_count_76", gecode_constraint_count_76, 5); -YAP_UserCPredicate("gecode_constraint_cumulatives_116", gecode_constraint_cumulatives_116, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_114", gecode_constraint_cumulatives_114, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_102", gecode_constraint_cumulatives_102, 8); -YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); -YAP_UserCPredicate("gecode_constraint_linear_209", gecode_constraint_linear_209, 6); -YAP_UserCPredicate("gecode_constraint_linear_213", gecode_constraint_linear_213, 6); -YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 6); -YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 6); -YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 6); -YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 6); -YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 6); -YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 6); -YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); -YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); -YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 6); -YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_246", gecode_constraint_nooverlap_246, 7); -YAP_UserCPredicate("gecode_constraint_nooverlap_241", gecode_constraint_nooverlap_241, 7); -YAP_UserCPredicate("gecode_constraint_div_123", gecode_constraint_div_123, 5); -YAP_UserCPredicate("gecode_constraint_sqr_345", gecode_constraint_sqr_345, 4); -YAP_UserCPredicate("gecode_constraint_path_265", gecode_constraint_path_265, 8); -YAP_UserCPredicate("gecode_constraint_path_262", gecode_constraint_path_262, 8); -YAP_UserCPredicate("gecode_constraint_path_259", gecode_constraint_path_259, 8); -YAP_UserCPredicate("gecode_constraint_unary_356", gecode_constraint_unary_356, 5); -YAP_UserCPredicate("gecode_constraint_unary_359", gecode_constraint_unary_359, 5); -YAP_UserCPredicate("gecode_constraint_unary_352", gecode_constraint_unary_352, 5); -YAP_UserCPredicate("gecode_constraint_unary_355", gecode_constraint_unary_355, 5); -YAP_UserCPredicate("gecode_constraint_unary_349", gecode_constraint_unary_349, 5); -YAP_UserCPredicate("gecode_constraint_sorted_340", gecode_constraint_sorted_340, 4); -YAP_UserCPredicate("gecode_constraint_sorted_343", gecode_constraint_sorted_343, 4); -YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 8); -YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 8); -YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 8); -YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 8); -YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 5); -YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 5); -YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 5); -YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 5); -YAP_UserCPredicate("gecode_constraint_element_182", gecode_constraint_element_182, 5); -YAP_UserCPredicate("gecode_constraint_element_180", gecode_constraint_element_180, 5); -YAP_UserCPredicate("gecode_constraint_element_178", gecode_constraint_element_178, 5); -YAP_UserCPredicate("gecode_constraint_element_176", gecode_constraint_element_176, 5); -YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 5); -YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 5); -YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 5); -YAP_UserCPredicate("gecode_constraint_sequence_339", gecode_constraint_sequence_339, 3); -YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 7); -YAP_UserCPredicate("gecode_constraint_precede_274", gecode_constraint_precede_274, 3); -YAP_UserCPredicate("gecode_constraint_precede_270", gecode_constraint_precede_270, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_78", gecode_constraint_cumulative_78, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_100", gecode_constraint_cumulative_100, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 6); -YAP_UserCPredicate("gecode_constraint_distinct_119", gecode_constraint_distinct_119, 4); -YAP_UserCPredicate("gecode_constraint_min_230", gecode_constraint_min_230, 3); -YAP_UserCPredicate("gecode_constraint_min_234", gecode_constraint_min_234, 3); -YAP_UserCPredicate("gecode_constraint_sqrt_347", gecode_constraint_sqrt_347, 4); -YAP_UserCPredicate("gecode_constraint_sequence_336", gecode_constraint_sequence_336, 6); -YAP_UserCPredicate("gecode_constraint_sequence_334", gecode_constraint_sequence_334, 6); -YAP_UserCPredicate("gecode_constraint_unshare_363", gecode_constraint_unshare_363, 3); -YAP_UserCPredicate("gecode_constraint_unshare_361", gecode_constraint_unshare_361, 3); -YAP_UserCPredicate("gecode_constraint_path_269", gecode_constraint_path_269, 6); -YAP_UserCPredicate("gecode_constraint_path_260", gecode_constraint_path_260, 6); -YAP_UserCPredicate("gecode_constraint_divmod_124", gecode_constraint_divmod_124, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_245", gecode_constraint_nooverlap_245, 9); -YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 5); -YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 5); -YAP_UserCPredicate("gecode_constraint_member_228", gecode_constraint_member_228, 3); -YAP_UserCPredicate("gecode_constraint_member_224", gecode_constraint_member_224, 3); -YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 6); -YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 6); -YAP_UserCPredicate("gecode_constraint_count_75", gecode_constraint_count_75, 6); -YAP_UserCPredicate("gecode_constraint_count_77", gecode_constraint_count_77, 6); -YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 6); -YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 6); -YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 6); -YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 6); -YAP_UserCPredicate("gecode_constraint_notMin_249", gecode_constraint_notMin_249, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_99", gecode_constraint_cumulative_99, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 8); -YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); -YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); -YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); -YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 3); -YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 3); -YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 3); -YAP_UserCPredicate("gecode_constraint_dom_126", gecode_constraint_dom_126, 3); -YAP_UserCPredicate("gecode_constraint_linear_208", gecode_constraint_linear_208, 5); -YAP_UserCPredicate("gecode_constraint_linear_211", gecode_constraint_linear_211, 5); -YAP_UserCPredicate("gecode_constraint_linear_212", gecode_constraint_linear_212, 5); -YAP_UserCPredicate("gecode_constraint_linear_215", gecode_constraint_linear_215, 5); -YAP_UserCPredicate("gecode_constraint_linear_184", gecode_constraint_linear_184, 5); -YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 5); -YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 5); -YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 5); -YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 5); -YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 5); -YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 5); -YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_240", gecode_constraint_nooverlap_240, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_243", gecode_constraint_nooverlap_243, 6); -YAP_UserCPredicate("gecode_constraint_element_183", gecode_constraint_element_183, 6); -YAP_UserCPredicate("gecode_constraint_element_181", gecode_constraint_element_181, 6); -YAP_UserCPredicate("gecode_constraint_element_179", gecode_constraint_element_179, 6); -YAP_UserCPredicate("gecode_constraint_element_177", gecode_constraint_element_177, 6); -YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 4); -YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 4); -YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); -YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 4); -YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 4); -YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 4); -YAP_UserCPredicate("gecode_constraint_rel_324", gecode_constraint_rel_324, 4); -YAP_UserCPredicate("gecode_constraint_rel_322", gecode_constraint_rel_322, 4); -YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); -YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 4); -YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 4); -YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 4); -YAP_UserCPredicate("gecode_constraint_rel_312", gecode_constraint_rel_312, 4); -YAP_UserCPredicate("gecode_constraint_rel_316", gecode_constraint_rel_316, 4); -YAP_UserCPredicate("gecode_constraint_rel_318", gecode_constraint_rel_318, 4); -YAP_UserCPredicate("gecode_constraint_rel_319", gecode_constraint_rel_319, 4); -YAP_UserCPredicate("gecode_constraint_rel_325", gecode_constraint_rel_325, 4); -YAP_UserCPredicate("gecode_constraint_rel_330", gecode_constraint_rel_330, 4); -YAP_UserCPredicate("gecode_constraint_rel_332", gecode_constraint_rel_332, 4); -YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 4); -YAP_UserCPredicate("gecode_constraint_rel_276", gecode_constraint_rel_276, 4); -YAP_UserCPredicate("gecode_constraint_min_233", gecode_constraint_min_233, 5); -YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 3); -YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 3); diff --git a/library/gecode/3.7.2/gecode-version.txt b/library/gecode/3.7.2/gecode-version.txt deleted file mode 100644 index 0b2eb36f5..000000000 --- a/library/gecode/3.7.2/gecode-version.txt +++ /dev/null @@ -1 +0,0 @@ -3.7.2 diff --git a/library/gecode/3.7.2/gecode_yap_auto_generated.yap b/library/gecode/3.7.2/gecode_yap_auto_generated.yap deleted file mode 100644 index 1b519c648..000000000 --- a/library/gecode/3.7.2/gecode_yap_auto_generated.yap +++ /dev/null @@ -1,2995 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -is_IntRelType_('IRT_EQ'). -is_IntRelType_('IRT_NQ'). -is_IntRelType_('IRT_LQ'). -is_IntRelType_('IRT_LE'). -is_IntRelType_('IRT_GQ'). -is_IntRelType_('IRT_GR'). - -is_IntRelType_('IRT_EQ','IRT_EQ'). -is_IntRelType_('IRT_NQ','IRT_NQ'). -is_IntRelType_('IRT_LQ','IRT_LQ'). -is_IntRelType_('IRT_LE','IRT_LE'). -is_IntRelType_('IRT_GQ','IRT_GQ'). -is_IntRelType_('IRT_GR','IRT_GR'). - -is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). -is_IntRelType(X) :- is_IntRelType(X,_). - -is_BoolOpType_('BOT_AND'). -is_BoolOpType_('BOT_OR'). -is_BoolOpType_('BOT_IMP'). -is_BoolOpType_('BOT_EQV'). -is_BoolOpType_('BOT_XOR'). - -is_BoolOpType_('BOT_AND','BOT_AND'). -is_BoolOpType_('BOT_OR','BOT_OR'). -is_BoolOpType_('BOT_IMP','BOT_IMP'). -is_BoolOpType_('BOT_EQV','BOT_EQV'). -is_BoolOpType_('BOT_XOR','BOT_XOR'). - -is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). -is_BoolOpType(X) :- is_BoolOpType(X,_). - -is_IntConLevel_('ICL_VAL'). -is_IntConLevel_('ICL_BND'). -is_IntConLevel_('ICL_DOM'). -is_IntConLevel_('ICL_DEF'). - -is_IntConLevel_('ICL_VAL','ICL_VAL'). -is_IntConLevel_('ICL_BND','ICL_BND'). -is_IntConLevel_('ICL_DOM','ICL_DOM'). -is_IntConLevel_('ICL_DEF','ICL_DEF'). - -is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). -is_IntConLevel(X) :- is_IntConLevel(X,_). - -is_TaskType_('TT_FIXP'). -is_TaskType_('TT_FIXS'). -is_TaskType_('TT_FIXE'). - -is_TaskType_('TT_FIXP','TT_FIXP'). -is_TaskType_('TT_FIXS','TT_FIXS'). -is_TaskType_('TT_FIXE','TT_FIXE'). - -is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). -is_TaskType(X) :- is_TaskType(X,_). - -is_ExtensionalPropKind_('EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY'). - -is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). - -is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). -is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). - -is_IntVarBranch_('INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). -is_IntVarBranch(X) :- is_IntVarBranch(X,_). - -is_IntValBranch_('INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX'). - -is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). - -is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). -is_IntValBranch(X) :- is_IntValBranch(X,_). - -is_IntAssign_('INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND'). - -is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). - -is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). -is_IntAssign(X) :- is_IntAssign(X,_). - -is_SetRelType_('SRT_EQ'). -is_SetRelType_('SRT_NQ'). -is_SetRelType_('SRT_SUB'). -is_SetRelType_('SRT_SUP'). -is_SetRelType_('SRT_DISJ'). -is_SetRelType_('SRT_CMPL'). -is_SetRelType_('SRT_LQ'). -is_SetRelType_('SRT_LE'). -is_SetRelType_('SRT_GQ'). -is_SetRelType_('SRT_GR'). - -is_SetRelType_('SRT_EQ','SRT_EQ'). -is_SetRelType_('SRT_NQ','SRT_NQ'). -is_SetRelType_('SRT_SUB','SRT_SUB'). -is_SetRelType_('SRT_SUP','SRT_SUP'). -is_SetRelType_('SRT_DISJ','SRT_DISJ'). -is_SetRelType_('SRT_CMPL','SRT_CMPL'). -is_SetRelType_('SRT_LQ','SRT_LQ'). -is_SetRelType_('SRT_LE','SRT_LE'). -is_SetRelType_('SRT_GQ','SRT_GQ'). -is_SetRelType_('SRT_GR','SRT_GR'). - -is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). -is_SetRelType(X) :- is_SetRelType(X,_). - -is_SetOpType_('SOT_UNION'). -is_SetOpType_('SOT_DUNION'). -is_SetOpType_('SOT_INTER'). -is_SetOpType_('SOT_MINUS'). - -is_SetOpType_('SOT_UNION','SOT_UNION'). -is_SetOpType_('SOT_DUNION','SOT_DUNION'). -is_SetOpType_('SOT_INTER','SOT_INTER'). -is_SetOpType_('SOT_MINUS','SOT_MINUS'). - -is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). -is_SetOpType(X) :- is_SetOpType(X,_). - -is_SetVarBranch_('SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). -is_SetVarBranch(X) :- is_SetVarBranch(X,_). - -is_SetValBranch_('SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC'). - -is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). - -is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). -is_SetValBranch(X) :- is_SetValBranch(X,_). - -is_SetAssign_('SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC'). - -is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). - -is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). -is_SetAssign(X) :- is_SetAssign(X,_). - -unary(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_357(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_353(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). - -nvalues(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_255(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_257(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_251(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_253(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_max_218(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_max_217(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_max_221(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_dom_149(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). - -convex(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_convex_51(Y0,Y1,Y2) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). - -nooverlap(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_nooverlap_242(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). - -assign(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_4(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_3(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_5(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_7(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_6(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_8(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). - -element(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_162(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_152(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_150(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_157(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_165(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_168(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_174(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_166(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> gecode_constraint_sequence_338(Y0,Y1) - ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). - -notMax(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMax_248(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). - -unary(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_unary_350(Y0,Y1,Y2) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_circuit_45(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_137(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_133(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_dom_148(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_147(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntSet(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). - -channel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_32(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> gecode_constraint_nooverlap_244(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; (is_IntConLevel(X7,Y7) - -> gecode_constraint_nooverlap_247(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> gecode_constraint_element_154(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_164(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_BoolVar(X6,Y6) - -> gecode_constraint_element_170(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -max(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_216(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_220(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). - -unshare(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_unshare_362(Y0,Y1) - ; (is_BoolVarArgs(X1,Y1) - -> gecode_constraint_unshare_360(Y0,Y1) - ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). - -path(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_path_268(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_path_267(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). - -mult(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mult_238(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). - -clause(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). - -precede(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_precede_273(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). - -distinct(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_distinct_120(Y0,Y1) - ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). - -member(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_member_226(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_229(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_member_222(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_225(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). - -mod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mod_237(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). - -cardinality(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_cardinality_18(Y0,Y1,Y2) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). - -atmostOne(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). - -channelSorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_channelSorted_33(Y0,Y1,Y2) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_210(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_214(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). - -circuit(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_circuit_42(Y0,Y1) - ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). - -rel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_280(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_323(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_321(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_310(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_313(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_314(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_317(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_320(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_331(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_333(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). - -min(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_min_232(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_min_231(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_min_235(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). - -cardinality(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). - -count(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_69(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_66(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_59(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_56(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). - -sqrt(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqrt_346(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_117(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_115(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -nvalues(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_254(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_256(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_250(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_252(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). - -binpacking(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). - -linear(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -abs(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). - -convex(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> gecode_constraint_convex_50(Y0,Y1) - ; throw(gecode_argument_error(convex(X0,X1),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1),arg=1))). - -div(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_div_122(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). - -rel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_311(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_315(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntSet(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_326(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_327(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_328(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_329(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). - -weights(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_weights_364(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_max_219(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_path_263(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -unary(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_unary_358(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_unary_354(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_unary_348(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_unary_351(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). - -sorted(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_sorted_341(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_34(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). - -dom(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_dom_136(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) - ; (is_IntSet(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_130(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_129(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_127(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_146(Y0,Y1,Y2,Y3) - ; (is_IntSet(X3,Y3) - -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). - -abs(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_abs_1(Y0,Y1,Y2) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). - -channel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). - -rel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_304(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_296(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_path_266(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). - -branch(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarBranch(X2,Y2) - -> (is_SetValBranch(X3,Y3) - -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). - -mult(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mult_239(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). - -clause(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_clause_46(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). - -precede(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_275(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_272(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_precede_271(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). - -channel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_101(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -distinct(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_distinct_121(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_distinct_118(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). - -member(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_227(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_223(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). - -mod(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mod_236(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). - -sqr(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqr_344(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_337(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_335(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_264(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_path_261(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_258(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -divmod(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_divmod_125(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). - -sorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_sorted_342(Y0,Y1,Y2) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_circuit_44(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_circuit_43(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). - -channel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_channel_31(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> gecode_constraint_channel_28(Y0,Y1,Y2) - ; (is_IntVarArgs(X2,Y2) - -> gecode_constraint_channel_26(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_22(Y0,Y1,Y2) - ; (is_SetVar(X2,Y2) - -> gecode_constraint_channel_25(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_20(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_52(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_70(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_62(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_64(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_61(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_57(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_67(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_74(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_76(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_116(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_114(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -binpacking(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). - -linear(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_209(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_213(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> gecode_constraint_nooverlap_246(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_nooverlap_241(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -div(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_div_123(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). - -sqr(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqr_345(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_265(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> gecode_constraint_path_262(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_259(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -unary(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_356(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_359(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_352(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_355(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_349(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). - -sorted(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_sorted_340(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_sorted_343(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_161(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_159(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_163(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_153(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_151(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_182(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_180(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_178(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_176(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_169(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_175(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_167(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). - -sequence(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_sequence_339(Y0,Y1,Y2) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -precede(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_274(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_270(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_78(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_100(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). - -distinct(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_distinct_119(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_230(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_234(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). - -sqrt(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqrt_347(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_336(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_334(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). - -unshare(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_363(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_361(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_path_269(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_path_260(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). - -divmod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_divmod_124(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_nooverlap_245(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -cumulative(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). - -member(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_member_228(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_member_224(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_75(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_77(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_65(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). - -notMin(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMin_249(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -branch(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_16(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_12(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetValBranch(X2,Y2) - -> gecode_constraint_branch_17(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). - -dom(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_140(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_134(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_128(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_126(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_208(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_211(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_212(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_215(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_184(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_nooverlap_240(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_nooverlap_243(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). - -element(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_183(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_181(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_179(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_177(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). - -rel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) - ; (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_297(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_324(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_322(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3) - ; (is_IntVarArgs(X3,Y3) - -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_305(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_312(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_316(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_318(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_319(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_325(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_330(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_332(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_276(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_min_233(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). - -count(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_count_68(Y0,Y1,Y2) - ; (is_IntSetArgs(X2,Y2) - -> gecode_constraint_count_58(Y0,Y1,Y2) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). - diff --git a/library/gecode/3.7.2/gecode_yap_cc_forward_auto_generated.icc b/library/gecode/3.7.2/gecode_yap_cc_forward_auto_generated.icc deleted file mode 100644 index 67781a39b..000000000 --- a/library/gecode/3.7.2/gecode_yap_cc_forward_auto_generated.icc +++ /dev/null @@ -1,31 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static IntRelType gecode_IntRelType_from_term(YAP_Term); -static BoolOpType gecode_BoolOpType_from_term(YAP_Term); -static IntConLevel gecode_IntConLevel_from_term(YAP_Term); -static TaskType gecode_TaskType_from_term(YAP_Term); -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); -static IntValBranch gecode_IntValBranch_from_term(YAP_Term); -static IntAssign gecode_IntAssign_from_term(YAP_Term); -static SetRelType gecode_SetRelType_from_term(YAP_Term); -static SetOpType gecode_SetOpType_from_term(YAP_Term); -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); -static SetValBranch gecode_SetValBranch_from_term(YAP_Term); -static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/library/gecode/3.7.2/gecode_yap_cc_impl_auto_generated.icc b/library/gecode/3.7.2/gecode_yap_cc_impl_auto_generated.icc deleted file mode 100644 index 8b41f068b..000000000 --- a/library/gecode/3.7.2/gecode_yap_cc_impl_auto_generated.icc +++ /dev/null @@ -1,4315 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static YAP_Term gecode_IRT_EQ; -static YAP_Term gecode_IRT_NQ; -static YAP_Term gecode_IRT_LQ; -static YAP_Term gecode_IRT_LE; -static YAP_Term gecode_IRT_GQ; -static YAP_Term gecode_IRT_GR; - -static IntRelType gecode_IntRelType_from_term(YAP_Term X) -{ - if (X==gecode_IRT_EQ) return IRT_EQ; - if (X==gecode_IRT_NQ) return IRT_NQ; - if (X==gecode_IRT_LQ) return IRT_LQ; - if (X==gecode_IRT_LE) return IRT_LE; - if (X==gecode_IRT_GQ) return IRT_GQ; - if (X==gecode_IRT_GR) return IRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_BOT_AND; -static YAP_Term gecode_BOT_OR; -static YAP_Term gecode_BOT_IMP; -static YAP_Term gecode_BOT_EQV; -static YAP_Term gecode_BOT_XOR; - -static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) -{ - if (X==gecode_BOT_AND) return BOT_AND; - if (X==gecode_BOT_OR) return BOT_OR; - if (X==gecode_BOT_IMP) return BOT_IMP; - if (X==gecode_BOT_EQV) return BOT_EQV; - if (X==gecode_BOT_XOR) return BOT_XOR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_ICL_VAL; -static YAP_Term gecode_ICL_BND; -static YAP_Term gecode_ICL_DOM; -static YAP_Term gecode_ICL_DEF; - -static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) -{ - if (X==gecode_ICL_VAL) return ICL_VAL; - if (X==gecode_ICL_BND) return ICL_BND; - if (X==gecode_ICL_DOM) return ICL_DOM; - if (X==gecode_ICL_DEF) return ICL_DEF; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_TT_FIXP; -static YAP_Term gecode_TT_FIXS; -static YAP_Term gecode_TT_FIXE; - -static TaskType gecode_TaskType_from_term(YAP_Term X) -{ - if (X==gecode_TT_FIXP) return TT_FIXP; - if (X==gecode_TT_FIXS) return TT_FIXS; - if (X==gecode_TT_FIXE) return TT_FIXE; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_EPK_DEF; -static YAP_Term gecode_EPK_SPEED; -static YAP_Term gecode_EPK_MEMORY; - -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) -{ - if (X==gecode_EPK_DEF) return EPK_DEF; - if (X==gecode_EPK_SPEED) return EPK_SPEED; - if (X==gecode_EPK_MEMORY) return EPK_MEMORY; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAR_NONE; -static YAP_Term gecode_INT_VAR_RND; -static YAP_Term gecode_INT_VAR_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_AFC_MIN; -static YAP_Term gecode_INT_VAR_AFC_MAX; -static YAP_Term gecode_INT_VAR_MIN_MIN; -static YAP_Term gecode_INT_VAR_MIN_MAX; -static YAP_Term gecode_INT_VAR_MAX_MIN; -static YAP_Term gecode_INT_VAR_MAX_MAX; -static YAP_Term gecode_INT_VAR_SIZE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; - -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; - if (X==gecode_INT_VAR_RND) return INT_VAR_RND; - if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; - if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; - if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; - if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; - if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; - if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; - if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; - if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; - if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; - if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; - if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; - if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; - if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; - if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; - if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; - if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; - if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; - if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAL_MIN; -static YAP_Term gecode_INT_VAL_MED; -static YAP_Term gecode_INT_VAL_MAX; -static YAP_Term gecode_INT_VAL_RND; -static YAP_Term gecode_INT_VAL_SPLIT_MIN; -static YAP_Term gecode_INT_VAL_SPLIT_MAX; -static YAP_Term gecode_INT_VAL_RANGE_MIN; -static YAP_Term gecode_INT_VAL_RANGE_MAX; -static YAP_Term gecode_INT_VALUES_MIN; -static YAP_Term gecode_INT_VALUES_MAX; - -static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; - if (X==gecode_INT_VAL_MED) return INT_VAL_MED; - if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; - if (X==gecode_INT_VAL_RND) return INT_VAL_RND; - if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; - if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; - if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; - if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; - if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; - if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_ASSIGN_MIN; -static YAP_Term gecode_INT_ASSIGN_MED; -static YAP_Term gecode_INT_ASSIGN_MAX; -static YAP_Term gecode_INT_ASSIGN_RND; - -static IntAssign gecode_IntAssign_from_term(YAP_Term X) -{ - if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; - if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; - if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; - if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SRT_EQ; -static YAP_Term gecode_SRT_NQ; -static YAP_Term gecode_SRT_SUB; -static YAP_Term gecode_SRT_SUP; -static YAP_Term gecode_SRT_DISJ; -static YAP_Term gecode_SRT_CMPL; -static YAP_Term gecode_SRT_LQ; -static YAP_Term gecode_SRT_LE; -static YAP_Term gecode_SRT_GQ; -static YAP_Term gecode_SRT_GR; - -static SetRelType gecode_SetRelType_from_term(YAP_Term X) -{ - if (X==gecode_SRT_EQ) return SRT_EQ; - if (X==gecode_SRT_NQ) return SRT_NQ; - if (X==gecode_SRT_SUB) return SRT_SUB; - if (X==gecode_SRT_SUP) return SRT_SUP; - if (X==gecode_SRT_DISJ) return SRT_DISJ; - if (X==gecode_SRT_CMPL) return SRT_CMPL; - if (X==gecode_SRT_LQ) return SRT_LQ; - if (X==gecode_SRT_LE) return SRT_LE; - if (X==gecode_SRT_GQ) return SRT_GQ; - if (X==gecode_SRT_GR) return SRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SOT_UNION; -static YAP_Term gecode_SOT_DUNION; -static YAP_Term gecode_SOT_INTER; -static YAP_Term gecode_SOT_MINUS; - -static SetOpType gecode_SetOpType_from_term(YAP_Term X) -{ - if (X==gecode_SOT_UNION) return SOT_UNION; - if (X==gecode_SOT_DUNION) return SOT_DUNION; - if (X==gecode_SOT_INTER) return SOT_INTER; - if (X==gecode_SOT_MINUS) return SOT_MINUS; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAR_NONE; -static YAP_Term gecode_SET_VAR_RND; -static YAP_Term gecode_SET_VAR_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_AFC_MIN; -static YAP_Term gecode_SET_VAR_AFC_MAX; -static YAP_Term gecode_SET_VAR_MIN_MIN; -static YAP_Term gecode_SET_VAR_MIN_MAX; -static YAP_Term gecode_SET_VAR_MAX_MIN; -static YAP_Term gecode_SET_VAR_MAX_MAX; -static YAP_Term gecode_SET_VAR_SIZE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; - -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; - if (X==gecode_SET_VAR_RND) return SET_VAR_RND; - if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; - if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; - if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; - if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; - if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; - if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; - if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; - if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; - if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; - if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; - if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; - if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; - if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; - if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAL_MIN_INC; -static YAP_Term gecode_SET_VAL_MIN_EXC; -static YAP_Term gecode_SET_VAL_MED_INC; -static YAP_Term gecode_SET_VAL_MED_EXC; -static YAP_Term gecode_SET_VAL_MAX_INC; -static YAP_Term gecode_SET_VAL_MAX_EXC; -static YAP_Term gecode_SET_VAL_RND_INC; -static YAP_Term gecode_SET_VAL_RND_EXC; - -static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; - if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; - if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; - if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; - if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; - if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; - if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; - if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_ASSIGN_MIN_INC; -static YAP_Term gecode_SET_ASSIGN_MIN_EXC; -static YAP_Term gecode_SET_ASSIGN_MED_INC; -static YAP_Term gecode_SET_ASSIGN_MED_EXC; -static YAP_Term gecode_SET_ASSIGN_MAX_INC; -static YAP_Term gecode_SET_ASSIGN_MAX_EXC; -static YAP_Term gecode_SET_ASSIGN_RND_INC; -static YAP_Term gecode_SET_ASSIGN_RND_EXC; - -static SetAssign gecode_SetAssign_from_term(YAP_Term X) -{ - if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; - if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; - if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; - if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; - if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; - if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; - if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; - if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static int gecode_constraint_unary_357(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unary_353(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nvalues_255(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_257(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_251(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_253(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_218(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_217(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_221(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_139(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_dom_149(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_convex_51(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - convex(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_nooverlap_242(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - nooverlap(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_assign_4(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_3(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_5(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_7(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_6(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_8(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_element_158(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_162(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_152(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_150(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_157(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_165(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_168(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_174(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_166(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_338(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - sequence(*space,X2); - return TRUE; -} - -static int gecode_constraint_notMax_248(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMax(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unary_350(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - unary(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_45(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_36(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_138(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_143(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_137(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_133(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_131(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_148(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_147(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_145(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_32(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_27(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_23(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_21(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nooverlap_244(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_nooverlap_247(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_160(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_154(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_156(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_164(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_172(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_170(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_max_216(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_max_220(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_362(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_unshare_360(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_path_268(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_267(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mult_238(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mult(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_clause_49(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_47(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_precede_273(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - precede(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_distinct_120(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - distinct(*space,X2); - return TRUE; -} - -static int gecode_constraint_member_226(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_229(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_222(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_225(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mod_237(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cardinality_18(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - cardinality(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_atmostOne_9(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - atmostOne(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channelSorted_33(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channelSorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_210(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_214(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_186(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_190(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_42(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - circuit(*space,X2); - return TRUE; -} - -static int gecode_constraint_rel_288(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_291(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_284(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_287(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_282(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_280(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_299(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_295(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_293(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_323(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_321(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_307(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_309(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_303(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_310(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_313(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_314(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_317(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_320(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_331(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_333(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_279(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_277(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_min_232(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_231(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_235(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_cardinality_19(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - cardinality(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_69(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_66(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_60(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_59(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_56(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqrt_346(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqrt(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulatives_117(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_115(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_113(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_111(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_109(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_107(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_105(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_103(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_nvalues_254(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_256(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_250(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_252(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_binpacking_10(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - binpacking(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_201(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_205(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_193(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_197(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_abs_2(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - abs(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_convex_50(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - convex(*space,X2); - return TRUE; -} - -static int gecode_constraint_div_122(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - div(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_311(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_315(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_300(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_301(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_289(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_285(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_283(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_281(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_326(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_327(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_328(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_329(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_weights_364(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - weights(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_219(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - max(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_263(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - path(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_unary_358(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_354(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_348(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_351(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_341(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - sorted(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_40(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_37(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_34(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_142(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_136(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_141(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_132(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_135(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_130(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_129(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_127(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_146(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_144(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_abs_1(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - abs(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_29(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_24(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_304(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_rel_296(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_266(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - path(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_14(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_13(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_15(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mult_239(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mult(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_41(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_38(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_35(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_48(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_clause_46(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_precede_275(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_272(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_271(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_30(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - channel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_86(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_89(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_82(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_85(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_79(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_98(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_101(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_94(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_97(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_91(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_distinct_121(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_distinct_118(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_227(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_223(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mod_236(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mod(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqr_344(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqr(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sequence_337(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_sequence_335(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_264(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_261(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_258(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_divmod_125(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - divmod(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sorted_342(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - sorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_44(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_43(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_31(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_28(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_26(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_22(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_25(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_20(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_52(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_54(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_70(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_72(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_62(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_64(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_61(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_57(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_67(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_74(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_76(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulatives_116(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_114(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_112(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_110(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_108(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_106(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_104(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_102(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_binpacking_11(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - binpacking(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_209(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_213(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_185(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_189(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_200(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_203(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_204(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_207(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_192(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_195(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_196(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_199(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_246(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_nooverlap_241(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_div_123(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - div(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sqr_345(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqr(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_path_265(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_262(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_259(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_unary_356(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_359(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_352(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_355(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_349(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sorted_340(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_343(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_161(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_155(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_173(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_171(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_159(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_163(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_153(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_151(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_182(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_180(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_178(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_176(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_169(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_175(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_167(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sequence_339(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - sequence(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_39(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - circuit(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_precede_274(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_precede_270(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_88(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_84(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_78(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_81(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_100(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_96(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_90(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_93(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_distinct_119(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - distinct(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_230(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_min_234(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sqrt_347(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqrt(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_336(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sequence_334(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unshare_363(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_361(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_269(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_path_260(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_divmod_124(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - divmod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_245(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulative_80(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulative_92(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_228(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_224(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_71(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_73(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_75(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_77(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_63(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_65(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_53(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_55(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_notMin_249(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMin(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_87(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_83(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_99(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_95(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_branch_16(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_12(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_17(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_140(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_134(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_128(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_126(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_208(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_211(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_212(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_215(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_184(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_187(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_188(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_191(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_202(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_206(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_194(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_198(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_240(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_243(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_183(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_181(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_179(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_177(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_290(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_286(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_298(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_294(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_292(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_297(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_324(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_322(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_306(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_308(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_302(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_305(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_312(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_316(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_318(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_319(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_325(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_330(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_332(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_278(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_276(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_233(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - min(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_68(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_58(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - diff --git a/library/gecode/3.7.2/gecode_yap_cc_init_auto_generated.icc b/library/gecode/3.7.2/gecode_yap_cc_init_auto_generated.icc deleted file mode 100644 index cb05df765..000000000 --- a/library/gecode/3.7.2/gecode_yap_cc_init_auto_generated.icc +++ /dev/null @@ -1,698 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); - gecode_IRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); - gecode_IRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); - gecode_IRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); - gecode_IRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); - gecode_IRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); - gecode_IRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); - gecode_BOT_AND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); - gecode_BOT_OR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); - gecode_BOT_IMP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); - gecode_BOT_EQV = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); - gecode_BOT_XOR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); - gecode_ICL_VAL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); - gecode_ICL_BND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); - gecode_ICL_DOM = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); - gecode_ICL_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); - gecode_TT_FIXP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); - gecode_TT_FIXS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); - gecode_TT_FIXE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); - gecode_EPK_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); - gecode_EPK_SPEED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); - gecode_EPK_MEMORY = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); - gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); - gecode_INT_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); - gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); - gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); - gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); - gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); - gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); - gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); - gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); - gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); - gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); - gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); - gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); - gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); - gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); - gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); - gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); - gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); - gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); - gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); - gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); - gecode_INT_VAL_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); - gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); - gecode_INT_VAL_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); - gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); - gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); - gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); - gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); - gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); - gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); - gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); - gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); - gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); - gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); - gecode_SRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); - gecode_SRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); - gecode_SRT_SUB = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); - gecode_SRT_SUP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); - gecode_SRT_DISJ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); - gecode_SRT_CMPL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); - gecode_SRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); - gecode_SRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); - gecode_SRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); - gecode_SRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); - gecode_SOT_UNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); - gecode_SOT_DUNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); - gecode_SOT_INTER = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); - gecode_SOT_MINUS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); - gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); - gecode_SET_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); - gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); - gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); - gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); - gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); - gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); - gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); - gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); - gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); - gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); - gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); - gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); - gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); - gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); - gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); - gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); - gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); - gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); - gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); - gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); - gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); - gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); - gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); - gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); - gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); - gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); - gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); - gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); - gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); - gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); - gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -YAP_UserCPredicate("gecode_constraint_unary_357", gecode_constraint_unary_357, 6); -YAP_UserCPredicate("gecode_constraint_unary_353", gecode_constraint_unary_353, 6); -YAP_UserCPredicate("gecode_constraint_nvalues_255", gecode_constraint_nvalues_255, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_257", gecode_constraint_nvalues_257, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_251", gecode_constraint_nvalues_251, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_253", gecode_constraint_nvalues_253, 5); -YAP_UserCPredicate("gecode_constraint_max_218", gecode_constraint_max_218, 4); -YAP_UserCPredicate("gecode_constraint_max_217", gecode_constraint_max_217, 4); -YAP_UserCPredicate("gecode_constraint_max_221", gecode_constraint_max_221, 4); -YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 6); -YAP_UserCPredicate("gecode_constraint_dom_149", gecode_constraint_dom_149, 6); -YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 3); -YAP_UserCPredicate("gecode_constraint_nooverlap_242", gecode_constraint_nooverlap_242, 5); -YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); -YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); -YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); -YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); -YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); -YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); -YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); -YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 4); -YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 4); -YAP_UserCPredicate("gecode_constraint_element_150", gecode_constraint_element_150, 4); -YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 4); -YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 4); -YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 4); -YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 4); -YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 4); -YAP_UserCPredicate("gecode_constraint_sequence_338", gecode_constraint_sequence_338, 2); -YAP_UserCPredicate("gecode_constraint_notMax_248", gecode_constraint_notMax_248, 3); -YAP_UserCPredicate("gecode_constraint_unary_350", gecode_constraint_unary_350, 3); -YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 4); -YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 4); -YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 5); -YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 5); -YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 5); -YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 5); -YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 5); -YAP_UserCPredicate("gecode_constraint_dom_148", gecode_constraint_dom_148, 5); -YAP_UserCPredicate("gecode_constraint_dom_147", gecode_constraint_dom_147, 5); -YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 5); -YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 4); -YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); -YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); -YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); -YAP_UserCPredicate("gecode_constraint_nooverlap_244", gecode_constraint_nooverlap_244, 8); -YAP_UserCPredicate("gecode_constraint_nooverlap_247", gecode_constraint_nooverlap_247, 8); -YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 7); -YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 7); -YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 7); -YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 7); -YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 7); -YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 7); -YAP_UserCPredicate("gecode_constraint_max_216", gecode_constraint_max_216, 3); -YAP_UserCPredicate("gecode_constraint_max_220", gecode_constraint_max_220, 3); -YAP_UserCPredicate("gecode_constraint_unshare_362", gecode_constraint_unshare_362, 2); -YAP_UserCPredicate("gecode_constraint_unshare_360", gecode_constraint_unshare_360, 2); -YAP_UserCPredicate("gecode_constraint_path_268", gecode_constraint_path_268, 5); -YAP_UserCPredicate("gecode_constraint_path_267", gecode_constraint_path_267, 5); -YAP_UserCPredicate("gecode_constraint_mult_238", gecode_constraint_mult_238, 4); -YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 6); -YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 6); -YAP_UserCPredicate("gecode_constraint_precede_273", gecode_constraint_precede_273, 5); -YAP_UserCPredicate("gecode_constraint_distinct_120", gecode_constraint_distinct_120, 2); -YAP_UserCPredicate("gecode_constraint_member_226", gecode_constraint_member_226, 4); -YAP_UserCPredicate("gecode_constraint_member_229", gecode_constraint_member_229, 4); -YAP_UserCPredicate("gecode_constraint_member_222", gecode_constraint_member_222, 4); -YAP_UserCPredicate("gecode_constraint_member_225", gecode_constraint_member_225, 4); -YAP_UserCPredicate("gecode_constraint_mod_237", gecode_constraint_mod_237, 5); -YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); -YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); -YAP_UserCPredicate("gecode_constraint_channelSorted_33", gecode_constraint_channelSorted_33, 3); -YAP_UserCPredicate("gecode_constraint_linear_210", gecode_constraint_linear_210, 4); -YAP_UserCPredicate("gecode_constraint_linear_214", gecode_constraint_linear_214, 4); -YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 4); -YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 4); -YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 2); -YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 5); -YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 5); -YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 5); -YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 5); -YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 5); -YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 5); -YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 5); -YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 5); -YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 5); -YAP_UserCPredicate("gecode_constraint_rel_323", gecode_constraint_rel_323, 5); -YAP_UserCPredicate("gecode_constraint_rel_321", gecode_constraint_rel_321, 5); -YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 5); -YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 5); -YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 5); -YAP_UserCPredicate("gecode_constraint_rel_310", gecode_constraint_rel_310, 5); -YAP_UserCPredicate("gecode_constraint_rel_313", gecode_constraint_rel_313, 5); -YAP_UserCPredicate("gecode_constraint_rel_314", gecode_constraint_rel_314, 5); -YAP_UserCPredicate("gecode_constraint_rel_317", gecode_constraint_rel_317, 5); -YAP_UserCPredicate("gecode_constraint_rel_320", gecode_constraint_rel_320, 5); -YAP_UserCPredicate("gecode_constraint_rel_331", gecode_constraint_rel_331, 5); -YAP_UserCPredicate("gecode_constraint_rel_333", gecode_constraint_rel_333, 5); -YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 5); -YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 5); -YAP_UserCPredicate("gecode_constraint_min_232", gecode_constraint_min_232, 4); -YAP_UserCPredicate("gecode_constraint_min_231", gecode_constraint_min_231, 4); -YAP_UserCPredicate("gecode_constraint_min_235", gecode_constraint_min_235, 4); -YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); -YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 4); -YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 4); -YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); -YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 4); -YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 4); -YAP_UserCPredicate("gecode_constraint_sqrt_346", gecode_constraint_sqrt_346, 3); -YAP_UserCPredicate("gecode_constraint_cumulatives_117", gecode_constraint_cumulatives_117, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_115", gecode_constraint_cumulatives_115, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 9); -YAP_UserCPredicate("gecode_constraint_nvalues_254", gecode_constraint_nvalues_254, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_256", gecode_constraint_nvalues_256, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_250", gecode_constraint_nvalues_250, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_252", gecode_constraint_nvalues_252, 4); -YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); -YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 7); -YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 7); -YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 7); -YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 7); -YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); -YAP_UserCPredicate("gecode_constraint_convex_50", gecode_constraint_convex_50, 2); -YAP_UserCPredicate("gecode_constraint_div_122", gecode_constraint_div_122, 4); -YAP_UserCPredicate("gecode_constraint_rel_311", gecode_constraint_rel_311, 6); -YAP_UserCPredicate("gecode_constraint_rel_315", gecode_constraint_rel_315, 6); -YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 6); -YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 6); -YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 6); -YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 6); -YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 6); -YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 6); -YAP_UserCPredicate("gecode_constraint_rel_326", gecode_constraint_rel_326, 6); -YAP_UserCPredicate("gecode_constraint_rel_327", gecode_constraint_rel_327, 6); -YAP_UserCPredicate("gecode_constraint_rel_328", gecode_constraint_rel_328, 6); -YAP_UserCPredicate("gecode_constraint_rel_329", gecode_constraint_rel_329, 6); -YAP_UserCPredicate("gecode_constraint_weights_364", gecode_constraint_weights_364, 5); -YAP_UserCPredicate("gecode_constraint_max_219", gecode_constraint_max_219, 5); -YAP_UserCPredicate("gecode_constraint_path_263", gecode_constraint_path_263, 9); -YAP_UserCPredicate("gecode_constraint_unary_358", gecode_constraint_unary_358, 4); -YAP_UserCPredicate("gecode_constraint_unary_354", gecode_constraint_unary_354, 4); -YAP_UserCPredicate("gecode_constraint_unary_348", gecode_constraint_unary_348, 4); -YAP_UserCPredicate("gecode_constraint_unary_351", gecode_constraint_unary_351, 4); -YAP_UserCPredicate("gecode_constraint_sorted_341", gecode_constraint_sorted_341, 5); -YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 5); -YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 5); -YAP_UserCPredicate("gecode_constraint_circuit_34", gecode_constraint_circuit_34, 5); -YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 4); -YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 4); -YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 4); -YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 4); -YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 4); -YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 4); -YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 4); -YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 4); -YAP_UserCPredicate("gecode_constraint_dom_146", gecode_constraint_dom_146, 4); -YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 4); -YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); -YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); -YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); -YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 3); -YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 3); -YAP_UserCPredicate("gecode_constraint_path_266", gecode_constraint_path_266, 4); -YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); -YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); -YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); -YAP_UserCPredicate("gecode_constraint_mult_239", gecode_constraint_mult_239, 5); -YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 6); -YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 6); -YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 6); -YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 5); -YAP_UserCPredicate("gecode_constraint_clause_46", gecode_constraint_clause_46, 5); -YAP_UserCPredicate("gecode_constraint_precede_275", gecode_constraint_precede_275, 4); -YAP_UserCPredicate("gecode_constraint_precede_272", gecode_constraint_precede_272, 4); -YAP_UserCPredicate("gecode_constraint_precede_271", gecode_constraint_precede_271, 4); -YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_98", gecode_constraint_cumulative_98, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_101", gecode_constraint_cumulative_101, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 7); -YAP_UserCPredicate("gecode_constraint_distinct_121", gecode_constraint_distinct_121, 3); -YAP_UserCPredicate("gecode_constraint_distinct_118", gecode_constraint_distinct_118, 3); -YAP_UserCPredicate("gecode_constraint_member_227", gecode_constraint_member_227, 5); -YAP_UserCPredicate("gecode_constraint_member_223", gecode_constraint_member_223, 5); -YAP_UserCPredicate("gecode_constraint_mod_236", gecode_constraint_mod_236, 4); -YAP_UserCPredicate("gecode_constraint_sqr_344", gecode_constraint_sqr_344, 3); -YAP_UserCPredicate("gecode_constraint_sequence_337", gecode_constraint_sequence_337, 7); -YAP_UserCPredicate("gecode_constraint_sequence_335", gecode_constraint_sequence_335, 7); -YAP_UserCPredicate("gecode_constraint_path_264", gecode_constraint_path_264, 7); -YAP_UserCPredicate("gecode_constraint_path_261", gecode_constraint_path_261, 7); -YAP_UserCPredicate("gecode_constraint_path_258", gecode_constraint_path_258, 7); -YAP_UserCPredicate("gecode_constraint_divmod_125", gecode_constraint_divmod_125, 6); -YAP_UserCPredicate("gecode_constraint_sorted_342", gecode_constraint_sorted_342, 3); -YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); -YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 3); -YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); -YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); -YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); -YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); -YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); -YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); -YAP_UserCPredicate("gecode_constraint_count_52", gecode_constraint_count_52, 5); -YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 5); -YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 5); -YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 5); -YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 5); -YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 5); -YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 5); -YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 5); -YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 5); -YAP_UserCPredicate("gecode_constraint_count_74", gecode_constraint_count_74, 5); -YAP_UserCPredicate("gecode_constraint_count_76", gecode_constraint_count_76, 5); -YAP_UserCPredicate("gecode_constraint_cumulatives_116", gecode_constraint_cumulatives_116, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_114", gecode_constraint_cumulatives_114, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_102", gecode_constraint_cumulatives_102, 8); -YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); -YAP_UserCPredicate("gecode_constraint_linear_209", gecode_constraint_linear_209, 6); -YAP_UserCPredicate("gecode_constraint_linear_213", gecode_constraint_linear_213, 6); -YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 6); -YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 6); -YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 6); -YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 6); -YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 6); -YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 6); -YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); -YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); -YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 6); -YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_246", gecode_constraint_nooverlap_246, 7); -YAP_UserCPredicate("gecode_constraint_nooverlap_241", gecode_constraint_nooverlap_241, 7); -YAP_UserCPredicate("gecode_constraint_div_123", gecode_constraint_div_123, 5); -YAP_UserCPredicate("gecode_constraint_sqr_345", gecode_constraint_sqr_345, 4); -YAP_UserCPredicate("gecode_constraint_path_265", gecode_constraint_path_265, 8); -YAP_UserCPredicate("gecode_constraint_path_262", gecode_constraint_path_262, 8); -YAP_UserCPredicate("gecode_constraint_path_259", gecode_constraint_path_259, 8); -YAP_UserCPredicate("gecode_constraint_unary_356", gecode_constraint_unary_356, 5); -YAP_UserCPredicate("gecode_constraint_unary_359", gecode_constraint_unary_359, 5); -YAP_UserCPredicate("gecode_constraint_unary_352", gecode_constraint_unary_352, 5); -YAP_UserCPredicate("gecode_constraint_unary_355", gecode_constraint_unary_355, 5); -YAP_UserCPredicate("gecode_constraint_unary_349", gecode_constraint_unary_349, 5); -YAP_UserCPredicate("gecode_constraint_sorted_340", gecode_constraint_sorted_340, 4); -YAP_UserCPredicate("gecode_constraint_sorted_343", gecode_constraint_sorted_343, 4); -YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 8); -YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 8); -YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 8); -YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 8); -YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 5); -YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 5); -YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 5); -YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 5); -YAP_UserCPredicate("gecode_constraint_element_182", gecode_constraint_element_182, 5); -YAP_UserCPredicate("gecode_constraint_element_180", gecode_constraint_element_180, 5); -YAP_UserCPredicate("gecode_constraint_element_178", gecode_constraint_element_178, 5); -YAP_UserCPredicate("gecode_constraint_element_176", gecode_constraint_element_176, 5); -YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 5); -YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 5); -YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 5); -YAP_UserCPredicate("gecode_constraint_sequence_339", gecode_constraint_sequence_339, 3); -YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 7); -YAP_UserCPredicate("gecode_constraint_precede_274", gecode_constraint_precede_274, 3); -YAP_UserCPredicate("gecode_constraint_precede_270", gecode_constraint_precede_270, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_78", gecode_constraint_cumulative_78, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_100", gecode_constraint_cumulative_100, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 6); -YAP_UserCPredicate("gecode_constraint_distinct_119", gecode_constraint_distinct_119, 4); -YAP_UserCPredicate("gecode_constraint_min_230", gecode_constraint_min_230, 3); -YAP_UserCPredicate("gecode_constraint_min_234", gecode_constraint_min_234, 3); -YAP_UserCPredicate("gecode_constraint_sqrt_347", gecode_constraint_sqrt_347, 4); -YAP_UserCPredicate("gecode_constraint_sequence_336", gecode_constraint_sequence_336, 6); -YAP_UserCPredicate("gecode_constraint_sequence_334", gecode_constraint_sequence_334, 6); -YAP_UserCPredicate("gecode_constraint_unshare_363", gecode_constraint_unshare_363, 3); -YAP_UserCPredicate("gecode_constraint_unshare_361", gecode_constraint_unshare_361, 3); -YAP_UserCPredicate("gecode_constraint_path_269", gecode_constraint_path_269, 6); -YAP_UserCPredicate("gecode_constraint_path_260", gecode_constraint_path_260, 6); -YAP_UserCPredicate("gecode_constraint_divmod_124", gecode_constraint_divmod_124, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_245", gecode_constraint_nooverlap_245, 9); -YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 5); -YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 5); -YAP_UserCPredicate("gecode_constraint_member_228", gecode_constraint_member_228, 3); -YAP_UserCPredicate("gecode_constraint_member_224", gecode_constraint_member_224, 3); -YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 6); -YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 6); -YAP_UserCPredicate("gecode_constraint_count_75", gecode_constraint_count_75, 6); -YAP_UserCPredicate("gecode_constraint_count_77", gecode_constraint_count_77, 6); -YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 6); -YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 6); -YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 6); -YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 6); -YAP_UserCPredicate("gecode_constraint_notMin_249", gecode_constraint_notMin_249, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_99", gecode_constraint_cumulative_99, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 8); -YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); -YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); -YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); -YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 3); -YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 3); -YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 3); -YAP_UserCPredicate("gecode_constraint_dom_126", gecode_constraint_dom_126, 3); -YAP_UserCPredicate("gecode_constraint_linear_208", gecode_constraint_linear_208, 5); -YAP_UserCPredicate("gecode_constraint_linear_211", gecode_constraint_linear_211, 5); -YAP_UserCPredicate("gecode_constraint_linear_212", gecode_constraint_linear_212, 5); -YAP_UserCPredicate("gecode_constraint_linear_215", gecode_constraint_linear_215, 5); -YAP_UserCPredicate("gecode_constraint_linear_184", gecode_constraint_linear_184, 5); -YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 5); -YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 5); -YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 5); -YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 5); -YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 5); -YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 5); -YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_240", gecode_constraint_nooverlap_240, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_243", gecode_constraint_nooverlap_243, 6); -YAP_UserCPredicate("gecode_constraint_element_183", gecode_constraint_element_183, 6); -YAP_UserCPredicate("gecode_constraint_element_181", gecode_constraint_element_181, 6); -YAP_UserCPredicate("gecode_constraint_element_179", gecode_constraint_element_179, 6); -YAP_UserCPredicate("gecode_constraint_element_177", gecode_constraint_element_177, 6); -YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 4); -YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 4); -YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); -YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 4); -YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 4); -YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 4); -YAP_UserCPredicate("gecode_constraint_rel_324", gecode_constraint_rel_324, 4); -YAP_UserCPredicate("gecode_constraint_rel_322", gecode_constraint_rel_322, 4); -YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); -YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 4); -YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 4); -YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 4); -YAP_UserCPredicate("gecode_constraint_rel_312", gecode_constraint_rel_312, 4); -YAP_UserCPredicate("gecode_constraint_rel_316", gecode_constraint_rel_316, 4); -YAP_UserCPredicate("gecode_constraint_rel_318", gecode_constraint_rel_318, 4); -YAP_UserCPredicate("gecode_constraint_rel_319", gecode_constraint_rel_319, 4); -YAP_UserCPredicate("gecode_constraint_rel_325", gecode_constraint_rel_325, 4); -YAP_UserCPredicate("gecode_constraint_rel_330", gecode_constraint_rel_330, 4); -YAP_UserCPredicate("gecode_constraint_rel_332", gecode_constraint_rel_332, 4); -YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 4); -YAP_UserCPredicate("gecode_constraint_rel_276", gecode_constraint_rel_276, 4); -YAP_UserCPredicate("gecode_constraint_min_233", gecode_constraint_min_233, 5); -YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 3); -YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 3); diff --git a/library/gecode/3.7.3/gecode-version.txt b/library/gecode/3.7.3/gecode-version.txt deleted file mode 100644 index c1e43e6d4..000000000 --- a/library/gecode/3.7.3/gecode-version.txt +++ /dev/null @@ -1 +0,0 @@ -3.7.3 diff --git a/library/gecode/3.7.3/gecode_yap_auto_generated.yap b/library/gecode/3.7.3/gecode_yap_auto_generated.yap deleted file mode 100644 index 1b519c648..000000000 --- a/library/gecode/3.7.3/gecode_yap_auto_generated.yap +++ /dev/null @@ -1,2995 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -is_IntRelType_('IRT_EQ'). -is_IntRelType_('IRT_NQ'). -is_IntRelType_('IRT_LQ'). -is_IntRelType_('IRT_LE'). -is_IntRelType_('IRT_GQ'). -is_IntRelType_('IRT_GR'). - -is_IntRelType_('IRT_EQ','IRT_EQ'). -is_IntRelType_('IRT_NQ','IRT_NQ'). -is_IntRelType_('IRT_LQ','IRT_LQ'). -is_IntRelType_('IRT_LE','IRT_LE'). -is_IntRelType_('IRT_GQ','IRT_GQ'). -is_IntRelType_('IRT_GR','IRT_GR'). - -is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). -is_IntRelType(X) :- is_IntRelType(X,_). - -is_BoolOpType_('BOT_AND'). -is_BoolOpType_('BOT_OR'). -is_BoolOpType_('BOT_IMP'). -is_BoolOpType_('BOT_EQV'). -is_BoolOpType_('BOT_XOR'). - -is_BoolOpType_('BOT_AND','BOT_AND'). -is_BoolOpType_('BOT_OR','BOT_OR'). -is_BoolOpType_('BOT_IMP','BOT_IMP'). -is_BoolOpType_('BOT_EQV','BOT_EQV'). -is_BoolOpType_('BOT_XOR','BOT_XOR'). - -is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). -is_BoolOpType(X) :- is_BoolOpType(X,_). - -is_IntConLevel_('ICL_VAL'). -is_IntConLevel_('ICL_BND'). -is_IntConLevel_('ICL_DOM'). -is_IntConLevel_('ICL_DEF'). - -is_IntConLevel_('ICL_VAL','ICL_VAL'). -is_IntConLevel_('ICL_BND','ICL_BND'). -is_IntConLevel_('ICL_DOM','ICL_DOM'). -is_IntConLevel_('ICL_DEF','ICL_DEF'). - -is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). -is_IntConLevel(X) :- is_IntConLevel(X,_). - -is_TaskType_('TT_FIXP'). -is_TaskType_('TT_FIXS'). -is_TaskType_('TT_FIXE'). - -is_TaskType_('TT_FIXP','TT_FIXP'). -is_TaskType_('TT_FIXS','TT_FIXS'). -is_TaskType_('TT_FIXE','TT_FIXE'). - -is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). -is_TaskType(X) :- is_TaskType(X,_). - -is_ExtensionalPropKind_('EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY'). - -is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). - -is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). -is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). - -is_IntVarBranch_('INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). -is_IntVarBranch(X) :- is_IntVarBranch(X,_). - -is_IntValBranch_('INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX'). - -is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). - -is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). -is_IntValBranch(X) :- is_IntValBranch(X,_). - -is_IntAssign_('INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND'). - -is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). - -is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). -is_IntAssign(X) :- is_IntAssign(X,_). - -is_SetRelType_('SRT_EQ'). -is_SetRelType_('SRT_NQ'). -is_SetRelType_('SRT_SUB'). -is_SetRelType_('SRT_SUP'). -is_SetRelType_('SRT_DISJ'). -is_SetRelType_('SRT_CMPL'). -is_SetRelType_('SRT_LQ'). -is_SetRelType_('SRT_LE'). -is_SetRelType_('SRT_GQ'). -is_SetRelType_('SRT_GR'). - -is_SetRelType_('SRT_EQ','SRT_EQ'). -is_SetRelType_('SRT_NQ','SRT_NQ'). -is_SetRelType_('SRT_SUB','SRT_SUB'). -is_SetRelType_('SRT_SUP','SRT_SUP'). -is_SetRelType_('SRT_DISJ','SRT_DISJ'). -is_SetRelType_('SRT_CMPL','SRT_CMPL'). -is_SetRelType_('SRT_LQ','SRT_LQ'). -is_SetRelType_('SRT_LE','SRT_LE'). -is_SetRelType_('SRT_GQ','SRT_GQ'). -is_SetRelType_('SRT_GR','SRT_GR'). - -is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). -is_SetRelType(X) :- is_SetRelType(X,_). - -is_SetOpType_('SOT_UNION'). -is_SetOpType_('SOT_DUNION'). -is_SetOpType_('SOT_INTER'). -is_SetOpType_('SOT_MINUS'). - -is_SetOpType_('SOT_UNION','SOT_UNION'). -is_SetOpType_('SOT_DUNION','SOT_DUNION'). -is_SetOpType_('SOT_INTER','SOT_INTER'). -is_SetOpType_('SOT_MINUS','SOT_MINUS'). - -is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). -is_SetOpType(X) :- is_SetOpType(X,_). - -is_SetVarBranch_('SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). -is_SetVarBranch(X) :- is_SetVarBranch(X,_). - -is_SetValBranch_('SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC'). - -is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). - -is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). -is_SetValBranch(X) :- is_SetValBranch(X,_). - -is_SetAssign_('SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC'). - -is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). - -is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). -is_SetAssign(X) :- is_SetAssign(X,_). - -unary(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_357(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_353(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). - -nvalues(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_255(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_257(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_251(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_253(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_max_218(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_max_217(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_max_221(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_dom_149(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). - -convex(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_convex_51(Y0,Y1,Y2) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). - -nooverlap(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_nooverlap_242(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). - -assign(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_4(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_3(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_5(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_7(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_6(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_8(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). - -element(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_162(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_152(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_150(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_157(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_165(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_168(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_174(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_166(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> gecode_constraint_sequence_338(Y0,Y1) - ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). - -notMax(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMax_248(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). - -unary(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_unary_350(Y0,Y1,Y2) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_circuit_45(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_137(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_133(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_dom_148(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_147(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntSet(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). - -channel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_32(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> gecode_constraint_nooverlap_244(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; (is_IntConLevel(X7,Y7) - -> gecode_constraint_nooverlap_247(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> gecode_constraint_element_154(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_164(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_BoolVar(X6,Y6) - -> gecode_constraint_element_170(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -max(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_216(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_220(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). - -unshare(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_unshare_362(Y0,Y1) - ; (is_BoolVarArgs(X1,Y1) - -> gecode_constraint_unshare_360(Y0,Y1) - ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). - -path(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_path_268(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_path_267(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). - -mult(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mult_238(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). - -clause(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). - -precede(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_precede_273(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). - -distinct(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_distinct_120(Y0,Y1) - ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). - -member(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_member_226(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_229(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_member_222(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_225(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). - -mod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mod_237(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). - -cardinality(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_cardinality_18(Y0,Y1,Y2) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). - -atmostOne(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). - -channelSorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_channelSorted_33(Y0,Y1,Y2) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_210(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_214(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). - -circuit(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_circuit_42(Y0,Y1) - ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). - -rel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_280(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_323(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_321(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_310(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_313(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_314(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_317(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_320(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_331(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_333(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). - -min(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_min_232(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_min_231(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_min_235(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). - -cardinality(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). - -count(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_69(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_66(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_59(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_56(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). - -sqrt(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqrt_346(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_117(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_115(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -nvalues(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_254(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_256(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_250(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_252(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). - -binpacking(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). - -linear(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -abs(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). - -convex(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> gecode_constraint_convex_50(Y0,Y1) - ; throw(gecode_argument_error(convex(X0,X1),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1),arg=1))). - -div(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_div_122(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). - -rel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_311(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_315(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntSet(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_326(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_327(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_328(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_329(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). - -weights(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_weights_364(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_max_219(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_path_263(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -unary(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_unary_358(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_unary_354(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_unary_348(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_unary_351(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). - -sorted(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_sorted_341(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_34(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). - -dom(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_dom_136(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) - ; (is_IntSet(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_130(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_129(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_127(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_146(Y0,Y1,Y2,Y3) - ; (is_IntSet(X3,Y3) - -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). - -abs(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_abs_1(Y0,Y1,Y2) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). - -channel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). - -rel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_304(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_296(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_path_266(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). - -branch(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarBranch(X2,Y2) - -> (is_SetValBranch(X3,Y3) - -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). - -mult(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mult_239(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). - -clause(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_clause_46(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). - -precede(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_275(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_272(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_precede_271(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). - -channel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_101(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -distinct(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_distinct_121(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_distinct_118(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). - -member(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_227(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_223(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). - -mod(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mod_236(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). - -sqr(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqr_344(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_337(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_335(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_264(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_path_261(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_258(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -divmod(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_divmod_125(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). - -sorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_sorted_342(Y0,Y1,Y2) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_circuit_44(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_circuit_43(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). - -channel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_channel_31(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> gecode_constraint_channel_28(Y0,Y1,Y2) - ; (is_IntVarArgs(X2,Y2) - -> gecode_constraint_channel_26(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_22(Y0,Y1,Y2) - ; (is_SetVar(X2,Y2) - -> gecode_constraint_channel_25(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_20(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_52(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_70(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_62(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_64(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_61(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_57(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_67(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_74(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_76(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_116(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_114(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -binpacking(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). - -linear(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_209(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_213(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> gecode_constraint_nooverlap_246(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_nooverlap_241(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -div(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_div_123(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). - -sqr(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqr_345(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_265(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> gecode_constraint_path_262(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_259(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -unary(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_356(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_359(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_352(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_355(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_349(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). - -sorted(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_sorted_340(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_sorted_343(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_161(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_159(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_163(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_153(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_151(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_182(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_180(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_178(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_176(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_169(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_175(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_167(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). - -sequence(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_sequence_339(Y0,Y1,Y2) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -precede(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_274(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_270(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_78(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_100(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). - -distinct(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_distinct_119(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_230(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_234(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). - -sqrt(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqrt_347(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_336(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_334(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). - -unshare(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_363(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_361(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_path_269(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_path_260(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). - -divmod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_divmod_124(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_nooverlap_245(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -cumulative(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). - -member(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_member_228(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_member_224(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_75(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_77(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_65(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). - -notMin(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMin_249(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -branch(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_16(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_12(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetValBranch(X2,Y2) - -> gecode_constraint_branch_17(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). - -dom(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_140(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_134(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_128(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_126(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_208(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_211(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_212(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_215(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_184(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_nooverlap_240(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_nooverlap_243(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). - -element(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_183(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_181(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_179(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_177(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). - -rel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) - ; (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_297(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_324(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_322(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3) - ; (is_IntVarArgs(X3,Y3) - -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_305(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_312(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_316(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_318(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_319(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_325(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_330(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_332(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_276(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_min_233(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). - -count(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_count_68(Y0,Y1,Y2) - ; (is_IntSetArgs(X2,Y2) - -> gecode_constraint_count_58(Y0,Y1,Y2) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). - diff --git a/library/gecode/3.7.3/gecode_yap_cc_forward_auto_generated.icc b/library/gecode/3.7.3/gecode_yap_cc_forward_auto_generated.icc deleted file mode 100644 index 67781a39b..000000000 --- a/library/gecode/3.7.3/gecode_yap_cc_forward_auto_generated.icc +++ /dev/null @@ -1,31 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static IntRelType gecode_IntRelType_from_term(YAP_Term); -static BoolOpType gecode_BoolOpType_from_term(YAP_Term); -static IntConLevel gecode_IntConLevel_from_term(YAP_Term); -static TaskType gecode_TaskType_from_term(YAP_Term); -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); -static IntValBranch gecode_IntValBranch_from_term(YAP_Term); -static IntAssign gecode_IntAssign_from_term(YAP_Term); -static SetRelType gecode_SetRelType_from_term(YAP_Term); -static SetOpType gecode_SetOpType_from_term(YAP_Term); -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); -static SetValBranch gecode_SetValBranch_from_term(YAP_Term); -static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/library/gecode/3.7.3/gecode_yap_cc_impl_auto_generated.icc b/library/gecode/3.7.3/gecode_yap_cc_impl_auto_generated.icc deleted file mode 100644 index 8b41f068b..000000000 --- a/library/gecode/3.7.3/gecode_yap_cc_impl_auto_generated.icc +++ /dev/null @@ -1,4315 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static YAP_Term gecode_IRT_EQ; -static YAP_Term gecode_IRT_NQ; -static YAP_Term gecode_IRT_LQ; -static YAP_Term gecode_IRT_LE; -static YAP_Term gecode_IRT_GQ; -static YAP_Term gecode_IRT_GR; - -static IntRelType gecode_IntRelType_from_term(YAP_Term X) -{ - if (X==gecode_IRT_EQ) return IRT_EQ; - if (X==gecode_IRT_NQ) return IRT_NQ; - if (X==gecode_IRT_LQ) return IRT_LQ; - if (X==gecode_IRT_LE) return IRT_LE; - if (X==gecode_IRT_GQ) return IRT_GQ; - if (X==gecode_IRT_GR) return IRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_BOT_AND; -static YAP_Term gecode_BOT_OR; -static YAP_Term gecode_BOT_IMP; -static YAP_Term gecode_BOT_EQV; -static YAP_Term gecode_BOT_XOR; - -static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) -{ - if (X==gecode_BOT_AND) return BOT_AND; - if (X==gecode_BOT_OR) return BOT_OR; - if (X==gecode_BOT_IMP) return BOT_IMP; - if (X==gecode_BOT_EQV) return BOT_EQV; - if (X==gecode_BOT_XOR) return BOT_XOR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_ICL_VAL; -static YAP_Term gecode_ICL_BND; -static YAP_Term gecode_ICL_DOM; -static YAP_Term gecode_ICL_DEF; - -static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) -{ - if (X==gecode_ICL_VAL) return ICL_VAL; - if (X==gecode_ICL_BND) return ICL_BND; - if (X==gecode_ICL_DOM) return ICL_DOM; - if (X==gecode_ICL_DEF) return ICL_DEF; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_TT_FIXP; -static YAP_Term gecode_TT_FIXS; -static YAP_Term gecode_TT_FIXE; - -static TaskType gecode_TaskType_from_term(YAP_Term X) -{ - if (X==gecode_TT_FIXP) return TT_FIXP; - if (X==gecode_TT_FIXS) return TT_FIXS; - if (X==gecode_TT_FIXE) return TT_FIXE; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_EPK_DEF; -static YAP_Term gecode_EPK_SPEED; -static YAP_Term gecode_EPK_MEMORY; - -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) -{ - if (X==gecode_EPK_DEF) return EPK_DEF; - if (X==gecode_EPK_SPEED) return EPK_SPEED; - if (X==gecode_EPK_MEMORY) return EPK_MEMORY; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAR_NONE; -static YAP_Term gecode_INT_VAR_RND; -static YAP_Term gecode_INT_VAR_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_AFC_MIN; -static YAP_Term gecode_INT_VAR_AFC_MAX; -static YAP_Term gecode_INT_VAR_MIN_MIN; -static YAP_Term gecode_INT_VAR_MIN_MAX; -static YAP_Term gecode_INT_VAR_MAX_MIN; -static YAP_Term gecode_INT_VAR_MAX_MAX; -static YAP_Term gecode_INT_VAR_SIZE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; - -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; - if (X==gecode_INT_VAR_RND) return INT_VAR_RND; - if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; - if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; - if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; - if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; - if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; - if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; - if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; - if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; - if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; - if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; - if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; - if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; - if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; - if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; - if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; - if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; - if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; - if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAL_MIN; -static YAP_Term gecode_INT_VAL_MED; -static YAP_Term gecode_INT_VAL_MAX; -static YAP_Term gecode_INT_VAL_RND; -static YAP_Term gecode_INT_VAL_SPLIT_MIN; -static YAP_Term gecode_INT_VAL_SPLIT_MAX; -static YAP_Term gecode_INT_VAL_RANGE_MIN; -static YAP_Term gecode_INT_VAL_RANGE_MAX; -static YAP_Term gecode_INT_VALUES_MIN; -static YAP_Term gecode_INT_VALUES_MAX; - -static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; - if (X==gecode_INT_VAL_MED) return INT_VAL_MED; - if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; - if (X==gecode_INT_VAL_RND) return INT_VAL_RND; - if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; - if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; - if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; - if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; - if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; - if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_ASSIGN_MIN; -static YAP_Term gecode_INT_ASSIGN_MED; -static YAP_Term gecode_INT_ASSIGN_MAX; -static YAP_Term gecode_INT_ASSIGN_RND; - -static IntAssign gecode_IntAssign_from_term(YAP_Term X) -{ - if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; - if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; - if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; - if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SRT_EQ; -static YAP_Term gecode_SRT_NQ; -static YAP_Term gecode_SRT_SUB; -static YAP_Term gecode_SRT_SUP; -static YAP_Term gecode_SRT_DISJ; -static YAP_Term gecode_SRT_CMPL; -static YAP_Term gecode_SRT_LQ; -static YAP_Term gecode_SRT_LE; -static YAP_Term gecode_SRT_GQ; -static YAP_Term gecode_SRT_GR; - -static SetRelType gecode_SetRelType_from_term(YAP_Term X) -{ - if (X==gecode_SRT_EQ) return SRT_EQ; - if (X==gecode_SRT_NQ) return SRT_NQ; - if (X==gecode_SRT_SUB) return SRT_SUB; - if (X==gecode_SRT_SUP) return SRT_SUP; - if (X==gecode_SRT_DISJ) return SRT_DISJ; - if (X==gecode_SRT_CMPL) return SRT_CMPL; - if (X==gecode_SRT_LQ) return SRT_LQ; - if (X==gecode_SRT_LE) return SRT_LE; - if (X==gecode_SRT_GQ) return SRT_GQ; - if (X==gecode_SRT_GR) return SRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SOT_UNION; -static YAP_Term gecode_SOT_DUNION; -static YAP_Term gecode_SOT_INTER; -static YAP_Term gecode_SOT_MINUS; - -static SetOpType gecode_SetOpType_from_term(YAP_Term X) -{ - if (X==gecode_SOT_UNION) return SOT_UNION; - if (X==gecode_SOT_DUNION) return SOT_DUNION; - if (X==gecode_SOT_INTER) return SOT_INTER; - if (X==gecode_SOT_MINUS) return SOT_MINUS; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAR_NONE; -static YAP_Term gecode_SET_VAR_RND; -static YAP_Term gecode_SET_VAR_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_AFC_MIN; -static YAP_Term gecode_SET_VAR_AFC_MAX; -static YAP_Term gecode_SET_VAR_MIN_MIN; -static YAP_Term gecode_SET_VAR_MIN_MAX; -static YAP_Term gecode_SET_VAR_MAX_MIN; -static YAP_Term gecode_SET_VAR_MAX_MAX; -static YAP_Term gecode_SET_VAR_SIZE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; - -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; - if (X==gecode_SET_VAR_RND) return SET_VAR_RND; - if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; - if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; - if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; - if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; - if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; - if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; - if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; - if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; - if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; - if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; - if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; - if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; - if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; - if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAL_MIN_INC; -static YAP_Term gecode_SET_VAL_MIN_EXC; -static YAP_Term gecode_SET_VAL_MED_INC; -static YAP_Term gecode_SET_VAL_MED_EXC; -static YAP_Term gecode_SET_VAL_MAX_INC; -static YAP_Term gecode_SET_VAL_MAX_EXC; -static YAP_Term gecode_SET_VAL_RND_INC; -static YAP_Term gecode_SET_VAL_RND_EXC; - -static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; - if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; - if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; - if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; - if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; - if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; - if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; - if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_ASSIGN_MIN_INC; -static YAP_Term gecode_SET_ASSIGN_MIN_EXC; -static YAP_Term gecode_SET_ASSIGN_MED_INC; -static YAP_Term gecode_SET_ASSIGN_MED_EXC; -static YAP_Term gecode_SET_ASSIGN_MAX_INC; -static YAP_Term gecode_SET_ASSIGN_MAX_EXC; -static YAP_Term gecode_SET_ASSIGN_RND_INC; -static YAP_Term gecode_SET_ASSIGN_RND_EXC; - -static SetAssign gecode_SetAssign_from_term(YAP_Term X) -{ - if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; - if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; - if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; - if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; - if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; - if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; - if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; - if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static int gecode_constraint_unary_357(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unary_353(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nvalues_255(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_257(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_251(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_253(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_218(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_217(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_221(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_139(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_dom_149(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_convex_51(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - convex(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_nooverlap_242(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - nooverlap(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_assign_4(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_3(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_5(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_7(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_6(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_8(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_element_158(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_162(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_152(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_150(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_157(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_165(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_168(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_174(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_166(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_338(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - sequence(*space,X2); - return TRUE; -} - -static int gecode_constraint_notMax_248(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMax(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unary_350(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - unary(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_45(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_36(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_138(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_143(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_137(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_133(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_131(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_148(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_147(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_145(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_32(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_27(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_23(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_21(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nooverlap_244(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_nooverlap_247(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_160(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_154(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_156(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_164(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_172(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_170(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_max_216(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_max_220(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_362(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_unshare_360(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_path_268(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_267(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mult_238(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mult(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_clause_49(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_47(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_precede_273(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - precede(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_distinct_120(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - distinct(*space,X2); - return TRUE; -} - -static int gecode_constraint_member_226(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_229(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_222(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_225(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mod_237(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cardinality_18(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - cardinality(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_atmostOne_9(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - atmostOne(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channelSorted_33(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channelSorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_210(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_214(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_186(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_190(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_42(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - circuit(*space,X2); - return TRUE; -} - -static int gecode_constraint_rel_288(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_291(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_284(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_287(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_282(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_280(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_299(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_295(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_293(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_323(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_321(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_307(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_309(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_303(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_310(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_313(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_314(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_317(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_320(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_331(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_333(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_279(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_277(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_min_232(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_231(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_235(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_cardinality_19(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - cardinality(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_69(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_66(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_60(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_59(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_56(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqrt_346(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqrt(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulatives_117(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_115(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_113(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_111(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_109(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_107(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_105(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_103(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_nvalues_254(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_256(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_250(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_252(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_binpacking_10(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - binpacking(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_201(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_205(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_193(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_197(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_abs_2(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - abs(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_convex_50(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - convex(*space,X2); - return TRUE; -} - -static int gecode_constraint_div_122(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - div(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_311(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_315(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_300(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_301(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_289(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_285(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_283(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_281(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_326(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_327(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_328(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_329(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_weights_364(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - weights(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_219(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - max(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_263(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - path(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_unary_358(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_354(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_348(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_351(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_341(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - sorted(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_40(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_37(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_34(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_142(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_136(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_141(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_132(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_135(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_130(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_129(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_127(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_146(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_144(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_abs_1(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - abs(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_29(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_24(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_304(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_rel_296(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_266(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - path(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_14(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_13(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_15(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mult_239(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mult(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_41(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_38(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_35(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_48(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_clause_46(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_precede_275(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_272(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_271(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_30(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - channel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_86(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_89(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_82(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_85(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_79(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_98(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_101(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_94(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_97(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_91(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_distinct_121(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_distinct_118(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_227(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_223(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mod_236(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mod(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqr_344(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqr(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sequence_337(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_sequence_335(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_264(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_261(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_258(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_divmod_125(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - divmod(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sorted_342(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - sorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_44(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_43(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_31(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_28(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_26(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_22(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_25(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_20(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_52(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_54(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_70(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_72(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_62(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_64(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_61(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_57(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_67(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_74(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_76(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulatives_116(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_114(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_112(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_110(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_108(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_106(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_104(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_102(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_binpacking_11(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - binpacking(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_209(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_213(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_185(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_189(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_200(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_203(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_204(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_207(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_192(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_195(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_196(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_199(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_246(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_nooverlap_241(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_div_123(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - div(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sqr_345(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqr(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_path_265(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_262(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_259(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_unary_356(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_359(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_352(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_355(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_349(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sorted_340(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_343(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_161(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_155(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_173(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_171(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_159(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_163(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_153(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_151(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_182(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_180(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_178(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_176(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_169(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_175(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_167(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sequence_339(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - sequence(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_39(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - circuit(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_precede_274(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_precede_270(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_88(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_84(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_78(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_81(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_100(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_96(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_90(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_93(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_distinct_119(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - distinct(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_230(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_min_234(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sqrt_347(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqrt(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_336(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sequence_334(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unshare_363(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_361(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_269(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_path_260(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_divmod_124(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - divmod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_245(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulative_80(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulative_92(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_228(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_224(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_71(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_73(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_75(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_77(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_63(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_65(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_53(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_55(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_notMin_249(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMin(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_87(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_83(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_99(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_95(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_branch_16(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_12(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_17(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_140(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_134(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_128(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_126(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_208(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_211(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_212(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_215(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_184(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_187(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_188(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_191(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_202(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_206(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_194(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_198(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_240(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_243(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_183(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_181(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_179(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_177(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_290(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_286(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_298(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_294(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_292(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_297(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_324(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_322(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_306(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_308(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_302(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_305(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_312(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_316(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_318(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_319(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_325(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_330(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_332(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_278(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_276(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_233(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - min(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_68(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_58(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - diff --git a/library/gecode/3.7.3/gecode_yap_cc_init_auto_generated.icc b/library/gecode/3.7.3/gecode_yap_cc_init_auto_generated.icc deleted file mode 100644 index cb05df765..000000000 --- a/library/gecode/3.7.3/gecode_yap_cc_init_auto_generated.icc +++ /dev/null @@ -1,698 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); - gecode_IRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); - gecode_IRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); - gecode_IRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); - gecode_IRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); - gecode_IRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); - gecode_IRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); - gecode_BOT_AND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); - gecode_BOT_OR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); - gecode_BOT_IMP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); - gecode_BOT_EQV = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); - gecode_BOT_XOR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); - gecode_ICL_VAL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); - gecode_ICL_BND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); - gecode_ICL_DOM = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); - gecode_ICL_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); - gecode_TT_FIXP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); - gecode_TT_FIXS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); - gecode_TT_FIXE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); - gecode_EPK_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); - gecode_EPK_SPEED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); - gecode_EPK_MEMORY = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); - gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); - gecode_INT_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); - gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); - gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); - gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); - gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); - gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); - gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); - gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); - gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); - gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); - gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); - gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); - gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); - gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); - gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); - gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); - gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); - gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); - gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); - gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); - gecode_INT_VAL_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); - gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); - gecode_INT_VAL_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); - gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); - gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); - gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); - gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); - gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); - gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); - gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); - gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); - gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); - gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); - gecode_SRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); - gecode_SRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); - gecode_SRT_SUB = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); - gecode_SRT_SUP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); - gecode_SRT_DISJ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); - gecode_SRT_CMPL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); - gecode_SRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); - gecode_SRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); - gecode_SRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); - gecode_SRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); - gecode_SOT_UNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); - gecode_SOT_DUNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); - gecode_SOT_INTER = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); - gecode_SOT_MINUS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); - gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); - gecode_SET_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); - gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); - gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); - gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); - gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); - gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); - gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); - gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); - gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); - gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); - gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); - gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); - gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); - gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); - gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); - gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); - gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); - gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); - gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); - gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); - gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); - gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); - gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); - gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); - gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); - gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); - gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); - gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); - gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); - gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); - gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -YAP_UserCPredicate("gecode_constraint_unary_357", gecode_constraint_unary_357, 6); -YAP_UserCPredicate("gecode_constraint_unary_353", gecode_constraint_unary_353, 6); -YAP_UserCPredicate("gecode_constraint_nvalues_255", gecode_constraint_nvalues_255, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_257", gecode_constraint_nvalues_257, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_251", gecode_constraint_nvalues_251, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_253", gecode_constraint_nvalues_253, 5); -YAP_UserCPredicate("gecode_constraint_max_218", gecode_constraint_max_218, 4); -YAP_UserCPredicate("gecode_constraint_max_217", gecode_constraint_max_217, 4); -YAP_UserCPredicate("gecode_constraint_max_221", gecode_constraint_max_221, 4); -YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 6); -YAP_UserCPredicate("gecode_constraint_dom_149", gecode_constraint_dom_149, 6); -YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 3); -YAP_UserCPredicate("gecode_constraint_nooverlap_242", gecode_constraint_nooverlap_242, 5); -YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); -YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); -YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); -YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); -YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); -YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); -YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); -YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 4); -YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 4); -YAP_UserCPredicate("gecode_constraint_element_150", gecode_constraint_element_150, 4); -YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 4); -YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 4); -YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 4); -YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 4); -YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 4); -YAP_UserCPredicate("gecode_constraint_sequence_338", gecode_constraint_sequence_338, 2); -YAP_UserCPredicate("gecode_constraint_notMax_248", gecode_constraint_notMax_248, 3); -YAP_UserCPredicate("gecode_constraint_unary_350", gecode_constraint_unary_350, 3); -YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 4); -YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 4); -YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 5); -YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 5); -YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 5); -YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 5); -YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 5); -YAP_UserCPredicate("gecode_constraint_dom_148", gecode_constraint_dom_148, 5); -YAP_UserCPredicate("gecode_constraint_dom_147", gecode_constraint_dom_147, 5); -YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 5); -YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 4); -YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); -YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); -YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); -YAP_UserCPredicate("gecode_constraint_nooverlap_244", gecode_constraint_nooverlap_244, 8); -YAP_UserCPredicate("gecode_constraint_nooverlap_247", gecode_constraint_nooverlap_247, 8); -YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 7); -YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 7); -YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 7); -YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 7); -YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 7); -YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 7); -YAP_UserCPredicate("gecode_constraint_max_216", gecode_constraint_max_216, 3); -YAP_UserCPredicate("gecode_constraint_max_220", gecode_constraint_max_220, 3); -YAP_UserCPredicate("gecode_constraint_unshare_362", gecode_constraint_unshare_362, 2); -YAP_UserCPredicate("gecode_constraint_unshare_360", gecode_constraint_unshare_360, 2); -YAP_UserCPredicate("gecode_constraint_path_268", gecode_constraint_path_268, 5); -YAP_UserCPredicate("gecode_constraint_path_267", gecode_constraint_path_267, 5); -YAP_UserCPredicate("gecode_constraint_mult_238", gecode_constraint_mult_238, 4); -YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 6); -YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 6); -YAP_UserCPredicate("gecode_constraint_precede_273", gecode_constraint_precede_273, 5); -YAP_UserCPredicate("gecode_constraint_distinct_120", gecode_constraint_distinct_120, 2); -YAP_UserCPredicate("gecode_constraint_member_226", gecode_constraint_member_226, 4); -YAP_UserCPredicate("gecode_constraint_member_229", gecode_constraint_member_229, 4); -YAP_UserCPredicate("gecode_constraint_member_222", gecode_constraint_member_222, 4); -YAP_UserCPredicate("gecode_constraint_member_225", gecode_constraint_member_225, 4); -YAP_UserCPredicate("gecode_constraint_mod_237", gecode_constraint_mod_237, 5); -YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); -YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); -YAP_UserCPredicate("gecode_constraint_channelSorted_33", gecode_constraint_channelSorted_33, 3); -YAP_UserCPredicate("gecode_constraint_linear_210", gecode_constraint_linear_210, 4); -YAP_UserCPredicate("gecode_constraint_linear_214", gecode_constraint_linear_214, 4); -YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 4); -YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 4); -YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 2); -YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 5); -YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 5); -YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 5); -YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 5); -YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 5); -YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 5); -YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 5); -YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 5); -YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 5); -YAP_UserCPredicate("gecode_constraint_rel_323", gecode_constraint_rel_323, 5); -YAP_UserCPredicate("gecode_constraint_rel_321", gecode_constraint_rel_321, 5); -YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 5); -YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 5); -YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 5); -YAP_UserCPredicate("gecode_constraint_rel_310", gecode_constraint_rel_310, 5); -YAP_UserCPredicate("gecode_constraint_rel_313", gecode_constraint_rel_313, 5); -YAP_UserCPredicate("gecode_constraint_rel_314", gecode_constraint_rel_314, 5); -YAP_UserCPredicate("gecode_constraint_rel_317", gecode_constraint_rel_317, 5); -YAP_UserCPredicate("gecode_constraint_rel_320", gecode_constraint_rel_320, 5); -YAP_UserCPredicate("gecode_constraint_rel_331", gecode_constraint_rel_331, 5); -YAP_UserCPredicate("gecode_constraint_rel_333", gecode_constraint_rel_333, 5); -YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 5); -YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 5); -YAP_UserCPredicate("gecode_constraint_min_232", gecode_constraint_min_232, 4); -YAP_UserCPredicate("gecode_constraint_min_231", gecode_constraint_min_231, 4); -YAP_UserCPredicate("gecode_constraint_min_235", gecode_constraint_min_235, 4); -YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); -YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 4); -YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 4); -YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); -YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 4); -YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 4); -YAP_UserCPredicate("gecode_constraint_sqrt_346", gecode_constraint_sqrt_346, 3); -YAP_UserCPredicate("gecode_constraint_cumulatives_117", gecode_constraint_cumulatives_117, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_115", gecode_constraint_cumulatives_115, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 9); -YAP_UserCPredicate("gecode_constraint_nvalues_254", gecode_constraint_nvalues_254, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_256", gecode_constraint_nvalues_256, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_250", gecode_constraint_nvalues_250, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_252", gecode_constraint_nvalues_252, 4); -YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); -YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 7); -YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 7); -YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 7); -YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 7); -YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); -YAP_UserCPredicate("gecode_constraint_convex_50", gecode_constraint_convex_50, 2); -YAP_UserCPredicate("gecode_constraint_div_122", gecode_constraint_div_122, 4); -YAP_UserCPredicate("gecode_constraint_rel_311", gecode_constraint_rel_311, 6); -YAP_UserCPredicate("gecode_constraint_rel_315", gecode_constraint_rel_315, 6); -YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 6); -YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 6); -YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 6); -YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 6); -YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 6); -YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 6); -YAP_UserCPredicate("gecode_constraint_rel_326", gecode_constraint_rel_326, 6); -YAP_UserCPredicate("gecode_constraint_rel_327", gecode_constraint_rel_327, 6); -YAP_UserCPredicate("gecode_constraint_rel_328", gecode_constraint_rel_328, 6); -YAP_UserCPredicate("gecode_constraint_rel_329", gecode_constraint_rel_329, 6); -YAP_UserCPredicate("gecode_constraint_weights_364", gecode_constraint_weights_364, 5); -YAP_UserCPredicate("gecode_constraint_max_219", gecode_constraint_max_219, 5); -YAP_UserCPredicate("gecode_constraint_path_263", gecode_constraint_path_263, 9); -YAP_UserCPredicate("gecode_constraint_unary_358", gecode_constraint_unary_358, 4); -YAP_UserCPredicate("gecode_constraint_unary_354", gecode_constraint_unary_354, 4); -YAP_UserCPredicate("gecode_constraint_unary_348", gecode_constraint_unary_348, 4); -YAP_UserCPredicate("gecode_constraint_unary_351", gecode_constraint_unary_351, 4); -YAP_UserCPredicate("gecode_constraint_sorted_341", gecode_constraint_sorted_341, 5); -YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 5); -YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 5); -YAP_UserCPredicate("gecode_constraint_circuit_34", gecode_constraint_circuit_34, 5); -YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 4); -YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 4); -YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 4); -YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 4); -YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 4); -YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 4); -YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 4); -YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 4); -YAP_UserCPredicate("gecode_constraint_dom_146", gecode_constraint_dom_146, 4); -YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 4); -YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); -YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); -YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); -YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 3); -YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 3); -YAP_UserCPredicate("gecode_constraint_path_266", gecode_constraint_path_266, 4); -YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); -YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); -YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); -YAP_UserCPredicate("gecode_constraint_mult_239", gecode_constraint_mult_239, 5); -YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 6); -YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 6); -YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 6); -YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 5); -YAP_UserCPredicate("gecode_constraint_clause_46", gecode_constraint_clause_46, 5); -YAP_UserCPredicate("gecode_constraint_precede_275", gecode_constraint_precede_275, 4); -YAP_UserCPredicate("gecode_constraint_precede_272", gecode_constraint_precede_272, 4); -YAP_UserCPredicate("gecode_constraint_precede_271", gecode_constraint_precede_271, 4); -YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_98", gecode_constraint_cumulative_98, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_101", gecode_constraint_cumulative_101, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 7); -YAP_UserCPredicate("gecode_constraint_distinct_121", gecode_constraint_distinct_121, 3); -YAP_UserCPredicate("gecode_constraint_distinct_118", gecode_constraint_distinct_118, 3); -YAP_UserCPredicate("gecode_constraint_member_227", gecode_constraint_member_227, 5); -YAP_UserCPredicate("gecode_constraint_member_223", gecode_constraint_member_223, 5); -YAP_UserCPredicate("gecode_constraint_mod_236", gecode_constraint_mod_236, 4); -YAP_UserCPredicate("gecode_constraint_sqr_344", gecode_constraint_sqr_344, 3); -YAP_UserCPredicate("gecode_constraint_sequence_337", gecode_constraint_sequence_337, 7); -YAP_UserCPredicate("gecode_constraint_sequence_335", gecode_constraint_sequence_335, 7); -YAP_UserCPredicate("gecode_constraint_path_264", gecode_constraint_path_264, 7); -YAP_UserCPredicate("gecode_constraint_path_261", gecode_constraint_path_261, 7); -YAP_UserCPredicate("gecode_constraint_path_258", gecode_constraint_path_258, 7); -YAP_UserCPredicate("gecode_constraint_divmod_125", gecode_constraint_divmod_125, 6); -YAP_UserCPredicate("gecode_constraint_sorted_342", gecode_constraint_sorted_342, 3); -YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); -YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 3); -YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); -YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); -YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); -YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); -YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); -YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); -YAP_UserCPredicate("gecode_constraint_count_52", gecode_constraint_count_52, 5); -YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 5); -YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 5); -YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 5); -YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 5); -YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 5); -YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 5); -YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 5); -YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 5); -YAP_UserCPredicate("gecode_constraint_count_74", gecode_constraint_count_74, 5); -YAP_UserCPredicate("gecode_constraint_count_76", gecode_constraint_count_76, 5); -YAP_UserCPredicate("gecode_constraint_cumulatives_116", gecode_constraint_cumulatives_116, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_114", gecode_constraint_cumulatives_114, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_102", gecode_constraint_cumulatives_102, 8); -YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); -YAP_UserCPredicate("gecode_constraint_linear_209", gecode_constraint_linear_209, 6); -YAP_UserCPredicate("gecode_constraint_linear_213", gecode_constraint_linear_213, 6); -YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 6); -YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 6); -YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 6); -YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 6); -YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 6); -YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 6); -YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); -YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); -YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 6); -YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_246", gecode_constraint_nooverlap_246, 7); -YAP_UserCPredicate("gecode_constraint_nooverlap_241", gecode_constraint_nooverlap_241, 7); -YAP_UserCPredicate("gecode_constraint_div_123", gecode_constraint_div_123, 5); -YAP_UserCPredicate("gecode_constraint_sqr_345", gecode_constraint_sqr_345, 4); -YAP_UserCPredicate("gecode_constraint_path_265", gecode_constraint_path_265, 8); -YAP_UserCPredicate("gecode_constraint_path_262", gecode_constraint_path_262, 8); -YAP_UserCPredicate("gecode_constraint_path_259", gecode_constraint_path_259, 8); -YAP_UserCPredicate("gecode_constraint_unary_356", gecode_constraint_unary_356, 5); -YAP_UserCPredicate("gecode_constraint_unary_359", gecode_constraint_unary_359, 5); -YAP_UserCPredicate("gecode_constraint_unary_352", gecode_constraint_unary_352, 5); -YAP_UserCPredicate("gecode_constraint_unary_355", gecode_constraint_unary_355, 5); -YAP_UserCPredicate("gecode_constraint_unary_349", gecode_constraint_unary_349, 5); -YAP_UserCPredicate("gecode_constraint_sorted_340", gecode_constraint_sorted_340, 4); -YAP_UserCPredicate("gecode_constraint_sorted_343", gecode_constraint_sorted_343, 4); -YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 8); -YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 8); -YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 8); -YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 8); -YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 5); -YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 5); -YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 5); -YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 5); -YAP_UserCPredicate("gecode_constraint_element_182", gecode_constraint_element_182, 5); -YAP_UserCPredicate("gecode_constraint_element_180", gecode_constraint_element_180, 5); -YAP_UserCPredicate("gecode_constraint_element_178", gecode_constraint_element_178, 5); -YAP_UserCPredicate("gecode_constraint_element_176", gecode_constraint_element_176, 5); -YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 5); -YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 5); -YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 5); -YAP_UserCPredicate("gecode_constraint_sequence_339", gecode_constraint_sequence_339, 3); -YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 7); -YAP_UserCPredicate("gecode_constraint_precede_274", gecode_constraint_precede_274, 3); -YAP_UserCPredicate("gecode_constraint_precede_270", gecode_constraint_precede_270, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_78", gecode_constraint_cumulative_78, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_100", gecode_constraint_cumulative_100, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 6); -YAP_UserCPredicate("gecode_constraint_distinct_119", gecode_constraint_distinct_119, 4); -YAP_UserCPredicate("gecode_constraint_min_230", gecode_constraint_min_230, 3); -YAP_UserCPredicate("gecode_constraint_min_234", gecode_constraint_min_234, 3); -YAP_UserCPredicate("gecode_constraint_sqrt_347", gecode_constraint_sqrt_347, 4); -YAP_UserCPredicate("gecode_constraint_sequence_336", gecode_constraint_sequence_336, 6); -YAP_UserCPredicate("gecode_constraint_sequence_334", gecode_constraint_sequence_334, 6); -YAP_UserCPredicate("gecode_constraint_unshare_363", gecode_constraint_unshare_363, 3); -YAP_UserCPredicate("gecode_constraint_unshare_361", gecode_constraint_unshare_361, 3); -YAP_UserCPredicate("gecode_constraint_path_269", gecode_constraint_path_269, 6); -YAP_UserCPredicate("gecode_constraint_path_260", gecode_constraint_path_260, 6); -YAP_UserCPredicate("gecode_constraint_divmod_124", gecode_constraint_divmod_124, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_245", gecode_constraint_nooverlap_245, 9); -YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 5); -YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 5); -YAP_UserCPredicate("gecode_constraint_member_228", gecode_constraint_member_228, 3); -YAP_UserCPredicate("gecode_constraint_member_224", gecode_constraint_member_224, 3); -YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 6); -YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 6); -YAP_UserCPredicate("gecode_constraint_count_75", gecode_constraint_count_75, 6); -YAP_UserCPredicate("gecode_constraint_count_77", gecode_constraint_count_77, 6); -YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 6); -YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 6); -YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 6); -YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 6); -YAP_UserCPredicate("gecode_constraint_notMin_249", gecode_constraint_notMin_249, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_99", gecode_constraint_cumulative_99, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 8); -YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); -YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); -YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); -YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 3); -YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 3); -YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 3); -YAP_UserCPredicate("gecode_constraint_dom_126", gecode_constraint_dom_126, 3); -YAP_UserCPredicate("gecode_constraint_linear_208", gecode_constraint_linear_208, 5); -YAP_UserCPredicate("gecode_constraint_linear_211", gecode_constraint_linear_211, 5); -YAP_UserCPredicate("gecode_constraint_linear_212", gecode_constraint_linear_212, 5); -YAP_UserCPredicate("gecode_constraint_linear_215", gecode_constraint_linear_215, 5); -YAP_UserCPredicate("gecode_constraint_linear_184", gecode_constraint_linear_184, 5); -YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 5); -YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 5); -YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 5); -YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 5); -YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 5); -YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 5); -YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_240", gecode_constraint_nooverlap_240, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_243", gecode_constraint_nooverlap_243, 6); -YAP_UserCPredicate("gecode_constraint_element_183", gecode_constraint_element_183, 6); -YAP_UserCPredicate("gecode_constraint_element_181", gecode_constraint_element_181, 6); -YAP_UserCPredicate("gecode_constraint_element_179", gecode_constraint_element_179, 6); -YAP_UserCPredicate("gecode_constraint_element_177", gecode_constraint_element_177, 6); -YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 4); -YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 4); -YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); -YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 4); -YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 4); -YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 4); -YAP_UserCPredicate("gecode_constraint_rel_324", gecode_constraint_rel_324, 4); -YAP_UserCPredicate("gecode_constraint_rel_322", gecode_constraint_rel_322, 4); -YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); -YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 4); -YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 4); -YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 4); -YAP_UserCPredicate("gecode_constraint_rel_312", gecode_constraint_rel_312, 4); -YAP_UserCPredicate("gecode_constraint_rel_316", gecode_constraint_rel_316, 4); -YAP_UserCPredicate("gecode_constraint_rel_318", gecode_constraint_rel_318, 4); -YAP_UserCPredicate("gecode_constraint_rel_319", gecode_constraint_rel_319, 4); -YAP_UserCPredicate("gecode_constraint_rel_325", gecode_constraint_rel_325, 4); -YAP_UserCPredicate("gecode_constraint_rel_330", gecode_constraint_rel_330, 4); -YAP_UserCPredicate("gecode_constraint_rel_332", gecode_constraint_rel_332, 4); -YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 4); -YAP_UserCPredicate("gecode_constraint_rel_276", gecode_constraint_rel_276, 4); -YAP_UserCPredicate("gecode_constraint_min_233", gecode_constraint_min_233, 5); -YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 3); -YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 3); diff --git a/library/gecode/4.0.0/gecode-version.txt b/library/gecode/4.0.0/gecode-version.txt deleted file mode 100644 index fcdb2e109..000000000 --- a/library/gecode/4.0.0/gecode-version.txt +++ /dev/null @@ -1 +0,0 @@ -4.0.0 diff --git a/library/gecode/4.0.0/gecode_yap_auto_generated.yap b/library/gecode/4.0.0/gecode_yap_auto_generated.yap deleted file mode 100644 index 4f1fc63c4..000000000 --- a/library/gecode/4.0.0/gecode_yap_auto_generated.yap +++ /dev/null @@ -1,3010 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -is_ReifyMode_('RM_EQV'). -is_ReifyMode_('RM_IMP'). -is_ReifyMode_('RM_PMI'). - -is_ReifyMode_('RM_EQV','RM_EQV'). -is_ReifyMode_('RM_IMP','RM_IMP'). -is_ReifyMode_('RM_PMI','RM_PMI'). - -is_ReifyMode(X,Y) :- nonvar(X), is_ReifyMode_(X,Y). -is_ReifyMode(X) :- is_ReifyMode(X,_). - -is_IntRelType_('IRT_EQ'). -is_IntRelType_('IRT_NQ'). -is_IntRelType_('IRT_LQ'). -is_IntRelType_('IRT_LE'). -is_IntRelType_('IRT_GQ'). -is_IntRelType_('IRT_GR'). - -is_IntRelType_('IRT_EQ','IRT_EQ'). -is_IntRelType_('IRT_NQ','IRT_NQ'). -is_IntRelType_('IRT_LQ','IRT_LQ'). -is_IntRelType_('IRT_LE','IRT_LE'). -is_IntRelType_('IRT_GQ','IRT_GQ'). -is_IntRelType_('IRT_GR','IRT_GR'). - -is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). -is_IntRelType(X) :- is_IntRelType(X,_). - -is_BoolOpType_('BOT_AND'). -is_BoolOpType_('BOT_OR'). -is_BoolOpType_('BOT_IMP'). -is_BoolOpType_('BOT_EQV'). -is_BoolOpType_('BOT_XOR'). - -is_BoolOpType_('BOT_AND','BOT_AND'). -is_BoolOpType_('BOT_OR','BOT_OR'). -is_BoolOpType_('BOT_IMP','BOT_IMP'). -is_BoolOpType_('BOT_EQV','BOT_EQV'). -is_BoolOpType_('BOT_XOR','BOT_XOR'). - -is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). -is_BoolOpType(X) :- is_BoolOpType(X,_). - -is_IntConLevel_('ICL_VAL'). -is_IntConLevel_('ICL_BND'). -is_IntConLevel_('ICL_DOM'). -is_IntConLevel_('ICL_DEF'). - -is_IntConLevel_('ICL_VAL','ICL_VAL'). -is_IntConLevel_('ICL_BND','ICL_BND'). -is_IntConLevel_('ICL_DOM','ICL_DOM'). -is_IntConLevel_('ICL_DEF','ICL_DEF'). - -is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). -is_IntConLevel(X) :- is_IntConLevel(X,_). - -is_TaskType_('TT_FIXP'). -is_TaskType_('TT_FIXS'). -is_TaskType_('TT_FIXE'). - -is_TaskType_('TT_FIXP','TT_FIXP'). -is_TaskType_('TT_FIXS','TT_FIXS'). -is_TaskType_('TT_FIXE','TT_FIXE'). - -is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). -is_TaskType(X) :- is_TaskType(X,_). - -is_ExtensionalPropKind_('EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY'). - -is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). - -is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). -is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). - -is_IntVarBranch_('INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch_('INT_VAR_NONE','INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND','INT_VAR_RND'). -is_IntVarBranch_('INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX','INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN','INT_VAR_AFC_MIN'). -is_IntVarBranch_('INT_VAR_AFC_MAX','INT_VAR_AFC_MAX'). -is_IntVarBranch_('INT_VAR_MIN_MIN','INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX','INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN','INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX','INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN','INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX','INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_AFC_MAX','INT_VAR_SIZE_AFC_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX','INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). -is_IntVarBranch(X) :- is_IntVarBranch(X,_). - -is_IntValBranch_('INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX'). - -is_IntValBranch_('INT_VAL_MIN','INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED','INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX','INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_RND','INT_VAL_RND'). -is_IntValBranch_('INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX','INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN','INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX','INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN','INT_VALUES_MIN'). -is_IntValBranch_('INT_VALUES_MAX','INT_VALUES_MAX'). - -is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). -is_IntValBranch(X) :- is_IntValBranch(X,_). - -is_IntAssign_('INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND'). - -is_IntAssign_('INT_ASSIGN_MIN','INT_ASSIGN_MIN'). -is_IntAssign_('INT_ASSIGN_MED','INT_ASSIGN_MED'). -is_IntAssign_('INT_ASSIGN_MAX','INT_ASSIGN_MAX'). -is_IntAssign_('INT_ASSIGN_RND','INT_ASSIGN_RND'). - -is_IntAssign(X,Y) :- nonvar(X), is_IntAssign_(X,Y). -is_IntAssign(X) :- is_IntAssign(X,_). - -is_SetRelType_('SRT_EQ'). -is_SetRelType_('SRT_NQ'). -is_SetRelType_('SRT_SUB'). -is_SetRelType_('SRT_SUP'). -is_SetRelType_('SRT_DISJ'). -is_SetRelType_('SRT_CMPL'). -is_SetRelType_('SRT_LQ'). -is_SetRelType_('SRT_LE'). -is_SetRelType_('SRT_GQ'). -is_SetRelType_('SRT_GR'). - -is_SetRelType_('SRT_EQ','SRT_EQ'). -is_SetRelType_('SRT_NQ','SRT_NQ'). -is_SetRelType_('SRT_SUB','SRT_SUB'). -is_SetRelType_('SRT_SUP','SRT_SUP'). -is_SetRelType_('SRT_DISJ','SRT_DISJ'). -is_SetRelType_('SRT_CMPL','SRT_CMPL'). -is_SetRelType_('SRT_LQ','SRT_LQ'). -is_SetRelType_('SRT_LE','SRT_LE'). -is_SetRelType_('SRT_GQ','SRT_GQ'). -is_SetRelType_('SRT_GR','SRT_GR'). - -is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). -is_SetRelType(X) :- is_SetRelType(X,_). - -is_SetOpType_('SOT_UNION'). -is_SetOpType_('SOT_DUNION'). -is_SetOpType_('SOT_INTER'). -is_SetOpType_('SOT_MINUS'). - -is_SetOpType_('SOT_UNION','SOT_UNION'). -is_SetOpType_('SOT_DUNION','SOT_DUNION'). -is_SetOpType_('SOT_INTER','SOT_INTER'). -is_SetOpType_('SOT_MINUS','SOT_MINUS'). - -is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). -is_SetOpType(X) :- is_SetOpType(X,_). - -is_SetVarBranch_('SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch_('SET_VAR_NONE','SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND','SET_VAR_RND'). -is_SetVarBranch_('SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX','SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN','SET_VAR_AFC_MIN'). -is_SetVarBranch_('SET_VAR_AFC_MAX','SET_VAR_AFC_MAX'). -is_SetVarBranch_('SET_VAR_MIN_MIN','SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX','SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN','SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX','SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN','SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX','SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_AFC_MAX','SET_VAR_SIZE_AFC_MAX'). - -is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). -is_SetVarBranch(X) :- is_SetVarBranch(X,_). - -is_SetValBranch_('SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC'). - -is_SetValBranch_('SET_VAL_MIN_INC','SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC','SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC','SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC','SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC','SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC','SET_VAL_MAX_EXC'). -is_SetValBranch_('SET_VAL_RND_INC','SET_VAL_RND_INC'). -is_SetValBranch_('SET_VAL_RND_EXC','SET_VAL_RND_EXC'). - -is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). -is_SetValBranch(X) :- is_SetValBranch(X,_). - -is_SetAssign_('SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC'). - -is_SetAssign_('SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_INC'). -is_SetAssign_('SET_ASSIGN_MIN_EXC','SET_ASSIGN_MIN_EXC'). -is_SetAssign_('SET_ASSIGN_MED_INC','SET_ASSIGN_MED_INC'). -is_SetAssign_('SET_ASSIGN_MED_EXC','SET_ASSIGN_MED_EXC'). -is_SetAssign_('SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_INC'). -is_SetAssign_('SET_ASSIGN_MAX_EXC','SET_ASSIGN_MAX_EXC'). -is_SetAssign_('SET_ASSIGN_RND_INC','SET_ASSIGN_RND_INC'). -is_SetAssign_('SET_ASSIGN_RND_EXC','SET_ASSIGN_RND_EXC'). - -is_SetAssign(X,Y) :- nonvar(X), is_SetAssign_(X,Y). -is_SetAssign(X) :- is_SetAssign(X,_). - -unary(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_358(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_354(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). - -nvalues(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_256(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_258(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_252(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_254(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_max_219(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_max_218(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_max_222(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_dom_142(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_BoolVar(X5,Y5) - -> gecode_constraint_dom_150(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). - -convex(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_convex_52(Y0,Y1,Y2) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). - -nooverlap(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_nooverlap_243(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). - -assign(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_4(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_3(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_5(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_7(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_6(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_8(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). - -element(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_159(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_163(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_153(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_151(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_158(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_166(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_169(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_175(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_167(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> gecode_constraint_sequence_339(Y0,Y1) - ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). - -notMax(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMax_249(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). - -unary(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_unary_351(Y0,Y1,Y2) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_circuit_46(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_circuit_37(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_dom_141(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_140(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_Reify(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_144(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_Reify(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_136(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_132(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_dom_149(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_148(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntSet(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_dom_146(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). - -channel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_33(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_27(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_channel_23(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_21(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2)))))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> gecode_constraint_nooverlap_245(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; (is_IntConLevel(X7,Y7) - -> gecode_constraint_nooverlap_248(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_161(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> gecode_constraint_element_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_157(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_165(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_173(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_BoolVar(X6,Y6) - -> gecode_constraint_element_171(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -max(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_217(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_221(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). - -unshare(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_unshare_363(Y0,Y1) - ; (is_BoolVarArgs(X1,Y1) - -> gecode_constraint_unshare_361(Y0,Y1) - ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). - -path(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_path_269(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_path_268(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). - -mult(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mult_239(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). - -clause(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_50(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_48(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). - -precede(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_precede_274(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). - -distinct(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_distinct_121(Y0,Y1) - ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). - -member(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_Reify(X3,Y3) - -> gecode_constraint_member_229(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_228(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_Reify(X3,Y3) - -> gecode_constraint_member_225(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_224(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). - -mod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mod_238(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). - -cardinality(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_cardinality_18(Y0,Y1,Y2) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). - -atmostOne(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_atmostOne_9(Y0,Y1,Y2) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). - -channelSorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_channelSorted_34(Y0,Y1,Y2) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_209(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_213(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_185(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_189(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). - -circuit(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_circuit_43(Y0,Y1) - ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). - -rel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_291(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_290(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_287(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_286(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_rel_283(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_281(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_300(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_296(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_294(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_324(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_322(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_308(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_310(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_304(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_313(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_312(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_317(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_316(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_321(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_332(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_334(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_280(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_278(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). - -min(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_min_233(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_min_232(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> gecode_constraint_min_236(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). - -cardinality(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_cardinality_19(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). - -count(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_70(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_67(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_count_61(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_60(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_57(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). - -sqrt(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqrt_347(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_118(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_116(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_114(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_112(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_110(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_108(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_106(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_104(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -nvalues(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_255(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_257(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_251(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_253(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). - -binpacking(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_binpacking_10(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). - -linear(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_Reify(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_204(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_Reify(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_208(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_Reify(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_196(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_Reify(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_200(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -abs(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_abs_2(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). - -convex(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> gecode_constraint_convex_51(Y0,Y1) - ; throw(gecode_argument_error(convex(X0,X1),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1),arg=1))). - -div(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_div_123(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). - -rel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_314(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_318(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntSet(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_301(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_302(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_292(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_288(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_284(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_282(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_327(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_328(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_329(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_330(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). - -weights(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_weights_365(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_max_220(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_path_264(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -unary(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_unary_359(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_unary_355(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_unary_349(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_unary_352(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). - -sorted(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_sorted_342(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_41(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_circuit_38(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_35(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). - -dom(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_139(Y0,Y1,Y2,Y3) - ; (is_Reify(X3,Y3) - -> gecode_constraint_dom_143(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_138(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) - ; (is_IntSet(X2,Y2) - -> (is_Reify(X3,Y3) - -> gecode_constraint_dom_135(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_134(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_131(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_130(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_128(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_147(Y0,Y1,Y2,Y3) - ; (is_IntSet(X3,Y3) - -> gecode_constraint_dom_145(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). - -abs(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_abs_1(Y0,Y1,Y2) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). - -channel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_channel_29(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_channel_24(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). - -rel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_305(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_297(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_path_267(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). - -branch(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_14(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_13(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarBranch(X2,Y2) - -> (is_SetValBranch(X3,Y3) - -> gecode_constraint_branch_15(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). - -mult(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mult_240(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_42(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_circuit_39(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_36(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). - -clause(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_clause_49(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_clause_47(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). - -precede(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_276(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_273(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_precede_272(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). - -channel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_channel_30(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_87(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_90(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_83(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_86(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_80(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_99(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_102(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_95(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_98(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_92(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -distinct(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_distinct_122(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_distinct_119(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). - -member(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_Reify(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_230(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_Reify(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_226(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). - -mod(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mod_237(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). - -sqr(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqr_345(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_338(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_336(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_265(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_path_262(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_259(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -divmod(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_divmod_126(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). - -sorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_sorted_343(Y0,Y1,Y2) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_circuit_45(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_circuit_44(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). - -channel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_channel_32(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> gecode_constraint_channel_28(Y0,Y1,Y2) - ; (is_IntVarArgs(X2,Y2) - -> gecode_constraint_channel_26(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_22(Y0,Y1,Y2) - ; (is_SetVar(X2,Y2) - -> gecode_constraint_channel_25(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_20(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> gecode_constraint_channel_31(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2))))))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_53(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_55(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_71(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_73(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_63(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_65(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_62(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_58(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_68(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_75(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_77(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_117(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_115(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_113(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_111(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_109(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_107(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_105(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_103(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -binpacking(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_binpacking_11(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). - -linear(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_212(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_216(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_188(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_192(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_Reify(X5,Y5) - -> gecode_constraint_linear_203(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_202(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_Reify(X5,Y5) - -> gecode_constraint_linear_207(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_206(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_Reify(X5,Y5) - -> gecode_constraint_linear_195(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_194(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_Reify(X5,Y5) - -> gecode_constraint_linear_199(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_198(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> gecode_constraint_nooverlap_247(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_nooverlap_242(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -div(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_div_124(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). - -sqr(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqr_346(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_266(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> gecode_constraint_path_263(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_260(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -unary(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_357(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_360(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_353(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_356(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_350(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). - -sorted(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_sorted_341(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_sorted_344(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_162(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_174(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_172(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_160(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_164(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_154(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_152(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_183(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_181(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_179(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_177(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_170(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_176(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_168(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). - -sequence(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_sequence_340(Y0,Y1,Y2) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_circuit_40(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -precede(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_275(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_271(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_89(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_85(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_79(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_82(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_101(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_97(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_91(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_94(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). - -distinct(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_distinct_120(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_231(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_235(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). - -sqrt(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqrt_348(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_337(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_335(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). - -unshare(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_364(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_362(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_path_270(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_path_261(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). - -divmod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_divmod_125(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_nooverlap_246(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -cumulative(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_81(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_93(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). - -member(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_member_227(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_member_223(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_72(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_74(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_76(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_78(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_64(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_66(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_54(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_56(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). - -notMin(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMin_250(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_88(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_84(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_100(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_96(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -branch(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_16(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_12(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetValBranch(X2,Y2) - -> gecode_constraint_branch_17(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). - -dom(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_137(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_133(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_129(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_127(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_linear_211(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_210(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_linear_215(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_214(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_linear_187(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_186(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_linear_191(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_190(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_201(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_205(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_193(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_197(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_nooverlap_241(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_nooverlap_244(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). - -element(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_184(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_182(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_180(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_178(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). - -rel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_289(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_285(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_299(Y0,Y1,Y2,Y3) - ; (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_rel_295(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_293(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_298(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_325(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_323(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_307(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_309(Y0,Y1,Y2,Y3) - ; (is_IntVarArgs(X3,Y3) - -> gecode_constraint_rel_303(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_306(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_311(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_315(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_319(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_320(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_326(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_331(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_333(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_279(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_277(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_min_234(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). - -count(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_count_69(Y0,Y1,Y2) - ; (is_IntSetArgs(X2,Y2) - -> gecode_constraint_count_59(Y0,Y1,Y2) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). - diff --git a/library/gecode/4.0.0/gecode_yap_cc_forward_auto_generated.icc b/library/gecode/4.0.0/gecode_yap_cc_forward_auto_generated.icc deleted file mode 100644 index 41c030117..000000000 --- a/library/gecode/4.0.0/gecode_yap_cc_forward_auto_generated.icc +++ /dev/null @@ -1,32 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static ReifyMode gecode_ReifyMode_from_term(YAP_Term); -static IntRelType gecode_IntRelType_from_term(YAP_Term); -static BoolOpType gecode_BoolOpType_from_term(YAP_Term); -static IntConLevel gecode_IntConLevel_from_term(YAP_Term); -static TaskType gecode_TaskType_from_term(YAP_Term); -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term); -static IntValBranch gecode_IntValBranch_from_term(YAP_Term); -static IntAssign gecode_IntAssign_from_term(YAP_Term); -static SetRelType gecode_SetRelType_from_term(YAP_Term); -static SetOpType gecode_SetOpType_from_term(YAP_Term); -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term); -static SetValBranch gecode_SetValBranch_from_term(YAP_Term); -static SetAssign gecode_SetAssign_from_term(YAP_Term); diff --git a/library/gecode/4.0.0/gecode_yap_cc_impl_auto_generated.icc b/library/gecode/4.0.0/gecode_yap_cc_impl_auto_generated.icc deleted file mode 100644 index 3aed734bc..000000000 --- a/library/gecode/4.0.0/gecode_yap_cc_impl_auto_generated.icc +++ /dev/null @@ -1,4336 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static YAP_Term gecode_RM_EQV; -static YAP_Term gecode_RM_IMP; -static YAP_Term gecode_RM_PMI; - -static ReifyMode gecode_ReifyMode_from_term(YAP_Term X) -{ - if (X==gecode_RM_EQV) return RM_EQV; - if (X==gecode_RM_IMP) return RM_IMP; - if (X==gecode_RM_PMI) return RM_PMI; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_IRT_EQ; -static YAP_Term gecode_IRT_NQ; -static YAP_Term gecode_IRT_LQ; -static YAP_Term gecode_IRT_LE; -static YAP_Term gecode_IRT_GQ; -static YAP_Term gecode_IRT_GR; - -static IntRelType gecode_IntRelType_from_term(YAP_Term X) -{ - if (X==gecode_IRT_EQ) return IRT_EQ; - if (X==gecode_IRT_NQ) return IRT_NQ; - if (X==gecode_IRT_LQ) return IRT_LQ; - if (X==gecode_IRT_LE) return IRT_LE; - if (X==gecode_IRT_GQ) return IRT_GQ; - if (X==gecode_IRT_GR) return IRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_BOT_AND; -static YAP_Term gecode_BOT_OR; -static YAP_Term gecode_BOT_IMP; -static YAP_Term gecode_BOT_EQV; -static YAP_Term gecode_BOT_XOR; - -static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) -{ - if (X==gecode_BOT_AND) return BOT_AND; - if (X==gecode_BOT_OR) return BOT_OR; - if (X==gecode_BOT_IMP) return BOT_IMP; - if (X==gecode_BOT_EQV) return BOT_EQV; - if (X==gecode_BOT_XOR) return BOT_XOR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_ICL_VAL; -static YAP_Term gecode_ICL_BND; -static YAP_Term gecode_ICL_DOM; -static YAP_Term gecode_ICL_DEF; - -static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) -{ - if (X==gecode_ICL_VAL) return ICL_VAL; - if (X==gecode_ICL_BND) return ICL_BND; - if (X==gecode_ICL_DOM) return ICL_DOM; - if (X==gecode_ICL_DEF) return ICL_DEF; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_TT_FIXP; -static YAP_Term gecode_TT_FIXS; -static YAP_Term gecode_TT_FIXE; - -static TaskType gecode_TaskType_from_term(YAP_Term X) -{ - if (X==gecode_TT_FIXP) return TT_FIXP; - if (X==gecode_TT_FIXS) return TT_FIXS; - if (X==gecode_TT_FIXE) return TT_FIXE; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_EPK_DEF; -static YAP_Term gecode_EPK_SPEED; -static YAP_Term gecode_EPK_MEMORY; - -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) -{ - if (X==gecode_EPK_DEF) return EPK_DEF; - if (X==gecode_EPK_SPEED) return EPK_SPEED; - if (X==gecode_EPK_MEMORY) return EPK_MEMORY; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAR_NONE; -static YAP_Term gecode_INT_VAR_RND; -static YAP_Term gecode_INT_VAR_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_AFC_MIN; -static YAP_Term gecode_INT_VAR_AFC_MAX; -static YAP_Term gecode_INT_VAR_MIN_MIN; -static YAP_Term gecode_INT_VAR_MIN_MAX; -static YAP_Term gecode_INT_VAR_MAX_MIN; -static YAP_Term gecode_INT_VAR_MAX_MAX; -static YAP_Term gecode_INT_VAR_SIZE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_INT_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_INT_VAR_SIZE_AFC_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; -static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; - -static IntVarBranch gecode_IntVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAR_NONE) return INT_VAR_NONE; - if (X==gecode_INT_VAR_RND) return INT_VAR_RND; - if (X==gecode_INT_VAR_DEGREE_MIN) return INT_VAR_DEGREE_MIN; - if (X==gecode_INT_VAR_DEGREE_MAX) return INT_VAR_DEGREE_MAX; - if (X==gecode_INT_VAR_AFC_MIN) return INT_VAR_AFC_MIN; - if (X==gecode_INT_VAR_AFC_MAX) return INT_VAR_AFC_MAX; - if (X==gecode_INT_VAR_MIN_MIN) return INT_VAR_MIN_MIN; - if (X==gecode_INT_VAR_MIN_MAX) return INT_VAR_MIN_MAX; - if (X==gecode_INT_VAR_MAX_MIN) return INT_VAR_MAX_MIN; - if (X==gecode_INT_VAR_MAX_MAX) return INT_VAR_MAX_MAX; - if (X==gecode_INT_VAR_SIZE_MIN) return INT_VAR_SIZE_MIN; - if (X==gecode_INT_VAR_SIZE_MAX) return INT_VAR_SIZE_MAX; - if (X==gecode_INT_VAR_SIZE_DEGREE_MIN) return INT_VAR_SIZE_DEGREE_MIN; - if (X==gecode_INT_VAR_SIZE_DEGREE_MAX) return INT_VAR_SIZE_DEGREE_MAX; - if (X==gecode_INT_VAR_SIZE_AFC_MIN) return INT_VAR_SIZE_AFC_MIN; - if (X==gecode_INT_VAR_SIZE_AFC_MAX) return INT_VAR_SIZE_AFC_MAX; - if (X==gecode_INT_VAR_REGRET_MIN_MIN) return INT_VAR_REGRET_MIN_MIN; - if (X==gecode_INT_VAR_REGRET_MIN_MAX) return INT_VAR_REGRET_MIN_MAX; - if (X==gecode_INT_VAR_REGRET_MAX_MIN) return INT_VAR_REGRET_MAX_MIN; - if (X==gecode_INT_VAR_REGRET_MAX_MAX) return INT_VAR_REGRET_MAX_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_VAL_MIN; -static YAP_Term gecode_INT_VAL_MED; -static YAP_Term gecode_INT_VAL_MAX; -static YAP_Term gecode_INT_VAL_RND; -static YAP_Term gecode_INT_VAL_SPLIT_MIN; -static YAP_Term gecode_INT_VAL_SPLIT_MAX; -static YAP_Term gecode_INT_VAL_RANGE_MIN; -static YAP_Term gecode_INT_VAL_RANGE_MAX; -static YAP_Term gecode_INT_VALUES_MIN; -static YAP_Term gecode_INT_VALUES_MAX; - -static IntValBranch gecode_IntValBranch_from_term(YAP_Term X) -{ - if (X==gecode_INT_VAL_MIN) return INT_VAL_MIN; - if (X==gecode_INT_VAL_MED) return INT_VAL_MED; - if (X==gecode_INT_VAL_MAX) return INT_VAL_MAX; - if (X==gecode_INT_VAL_RND) return INT_VAL_RND; - if (X==gecode_INT_VAL_SPLIT_MIN) return INT_VAL_SPLIT_MIN; - if (X==gecode_INT_VAL_SPLIT_MAX) return INT_VAL_SPLIT_MAX; - if (X==gecode_INT_VAL_RANGE_MIN) return INT_VAL_RANGE_MIN; - if (X==gecode_INT_VAL_RANGE_MAX) return INT_VAL_RANGE_MAX; - if (X==gecode_INT_VALUES_MIN) return INT_VALUES_MIN; - if (X==gecode_INT_VALUES_MAX) return INT_VALUES_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_INT_ASSIGN_MIN; -static YAP_Term gecode_INT_ASSIGN_MED; -static YAP_Term gecode_INT_ASSIGN_MAX; -static YAP_Term gecode_INT_ASSIGN_RND; - -static IntAssign gecode_IntAssign_from_term(YAP_Term X) -{ - if (X==gecode_INT_ASSIGN_MIN) return INT_ASSIGN_MIN; - if (X==gecode_INT_ASSIGN_MED) return INT_ASSIGN_MED; - if (X==gecode_INT_ASSIGN_MAX) return INT_ASSIGN_MAX; - if (X==gecode_INT_ASSIGN_RND) return INT_ASSIGN_RND; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SRT_EQ; -static YAP_Term gecode_SRT_NQ; -static YAP_Term gecode_SRT_SUB; -static YAP_Term gecode_SRT_SUP; -static YAP_Term gecode_SRT_DISJ; -static YAP_Term gecode_SRT_CMPL; -static YAP_Term gecode_SRT_LQ; -static YAP_Term gecode_SRT_LE; -static YAP_Term gecode_SRT_GQ; -static YAP_Term gecode_SRT_GR; - -static SetRelType gecode_SetRelType_from_term(YAP_Term X) -{ - if (X==gecode_SRT_EQ) return SRT_EQ; - if (X==gecode_SRT_NQ) return SRT_NQ; - if (X==gecode_SRT_SUB) return SRT_SUB; - if (X==gecode_SRT_SUP) return SRT_SUP; - if (X==gecode_SRT_DISJ) return SRT_DISJ; - if (X==gecode_SRT_CMPL) return SRT_CMPL; - if (X==gecode_SRT_LQ) return SRT_LQ; - if (X==gecode_SRT_LE) return SRT_LE; - if (X==gecode_SRT_GQ) return SRT_GQ; - if (X==gecode_SRT_GR) return SRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SOT_UNION; -static YAP_Term gecode_SOT_DUNION; -static YAP_Term gecode_SOT_INTER; -static YAP_Term gecode_SOT_MINUS; - -static SetOpType gecode_SetOpType_from_term(YAP_Term X) -{ - if (X==gecode_SOT_UNION) return SOT_UNION; - if (X==gecode_SOT_DUNION) return SOT_DUNION; - if (X==gecode_SOT_INTER) return SOT_INTER; - if (X==gecode_SOT_MINUS) return SOT_MINUS; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAR_NONE; -static YAP_Term gecode_SET_VAR_RND; -static YAP_Term gecode_SET_VAR_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_AFC_MIN; -static YAP_Term gecode_SET_VAR_AFC_MAX; -static YAP_Term gecode_SET_VAR_MIN_MIN; -static YAP_Term gecode_SET_VAR_MIN_MAX; -static YAP_Term gecode_SET_VAR_MAX_MIN; -static YAP_Term gecode_SET_VAR_MAX_MAX; -static YAP_Term gecode_SET_VAR_SIZE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MIN; -static YAP_Term gecode_SET_VAR_SIZE_DEGREE_MAX; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MIN; -static YAP_Term gecode_SET_VAR_SIZE_AFC_MAX; - -static SetVarBranch gecode_SetVarBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAR_NONE) return SET_VAR_NONE; - if (X==gecode_SET_VAR_RND) return SET_VAR_RND; - if (X==gecode_SET_VAR_DEGREE_MIN) return SET_VAR_DEGREE_MIN; - if (X==gecode_SET_VAR_DEGREE_MAX) return SET_VAR_DEGREE_MAX; - if (X==gecode_SET_VAR_AFC_MIN) return SET_VAR_AFC_MIN; - if (X==gecode_SET_VAR_AFC_MAX) return SET_VAR_AFC_MAX; - if (X==gecode_SET_VAR_MIN_MIN) return SET_VAR_MIN_MIN; - if (X==gecode_SET_VAR_MIN_MAX) return SET_VAR_MIN_MAX; - if (X==gecode_SET_VAR_MAX_MIN) return SET_VAR_MAX_MIN; - if (X==gecode_SET_VAR_MAX_MAX) return SET_VAR_MAX_MAX; - if (X==gecode_SET_VAR_SIZE_MIN) return SET_VAR_SIZE_MIN; - if (X==gecode_SET_VAR_SIZE_MAX) return SET_VAR_SIZE_MAX; - if (X==gecode_SET_VAR_SIZE_DEGREE_MIN) return SET_VAR_SIZE_DEGREE_MIN; - if (X==gecode_SET_VAR_SIZE_DEGREE_MAX) return SET_VAR_SIZE_DEGREE_MAX; - if (X==gecode_SET_VAR_SIZE_AFC_MIN) return SET_VAR_SIZE_AFC_MIN; - if (X==gecode_SET_VAR_SIZE_AFC_MAX) return SET_VAR_SIZE_AFC_MAX; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_VAL_MIN_INC; -static YAP_Term gecode_SET_VAL_MIN_EXC; -static YAP_Term gecode_SET_VAL_MED_INC; -static YAP_Term gecode_SET_VAL_MED_EXC; -static YAP_Term gecode_SET_VAL_MAX_INC; -static YAP_Term gecode_SET_VAL_MAX_EXC; -static YAP_Term gecode_SET_VAL_RND_INC; -static YAP_Term gecode_SET_VAL_RND_EXC; - -static SetValBranch gecode_SetValBranch_from_term(YAP_Term X) -{ - if (X==gecode_SET_VAL_MIN_INC) return SET_VAL_MIN_INC; - if (X==gecode_SET_VAL_MIN_EXC) return SET_VAL_MIN_EXC; - if (X==gecode_SET_VAL_MED_INC) return SET_VAL_MED_INC; - if (X==gecode_SET_VAL_MED_EXC) return SET_VAL_MED_EXC; - if (X==gecode_SET_VAL_MAX_INC) return SET_VAL_MAX_INC; - if (X==gecode_SET_VAL_MAX_EXC) return SET_VAL_MAX_EXC; - if (X==gecode_SET_VAL_RND_INC) return SET_VAL_RND_INC; - if (X==gecode_SET_VAL_RND_EXC) return SET_VAL_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SET_ASSIGN_MIN_INC; -static YAP_Term gecode_SET_ASSIGN_MIN_EXC; -static YAP_Term gecode_SET_ASSIGN_MED_INC; -static YAP_Term gecode_SET_ASSIGN_MED_EXC; -static YAP_Term gecode_SET_ASSIGN_MAX_INC; -static YAP_Term gecode_SET_ASSIGN_MAX_EXC; -static YAP_Term gecode_SET_ASSIGN_RND_INC; -static YAP_Term gecode_SET_ASSIGN_RND_EXC; - -static SetAssign gecode_SetAssign_from_term(YAP_Term X) -{ - if (X==gecode_SET_ASSIGN_MIN_INC) return SET_ASSIGN_MIN_INC; - if (X==gecode_SET_ASSIGN_MIN_EXC) return SET_ASSIGN_MIN_EXC; - if (X==gecode_SET_ASSIGN_MED_INC) return SET_ASSIGN_MED_INC; - if (X==gecode_SET_ASSIGN_MED_EXC) return SET_ASSIGN_MED_EXC; - if (X==gecode_SET_ASSIGN_MAX_INC) return SET_ASSIGN_MAX_INC; - if (X==gecode_SET_ASSIGN_MAX_EXC) return SET_ASSIGN_MAX_EXC; - if (X==gecode_SET_ASSIGN_RND_INC) return SET_ASSIGN_RND_INC; - if (X==gecode_SET_ASSIGN_RND_EXC) return SET_ASSIGN_RND_EXC; - cerr << "this should never happen" << endl; exit(1); -} - -static int gecode_constraint_unary_358(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unary_354(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nvalues_256(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_258(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_252(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_254(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_219(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_218(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_222(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_142(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_dom_150(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - BoolVar X6 = gecode_BoolVar_from_term(space,YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_convex_52(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - convex(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_nooverlap_243(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - nooverlap(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_assign_4(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_3(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_5(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_7(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_6(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_8(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_element_159(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_163(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_153(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_151(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_158(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_166(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_169(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_175(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_167(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_339(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - sequence(*space,X2); - return TRUE; -} - -static int gecode_constraint_notMax_249(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMax(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unary_351(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - unary(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_46(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_37(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_141(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_140(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_144(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_136(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_132(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_149(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_148(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_146(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_33(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_27(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_23(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_21(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nooverlap_245(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_nooverlap_248(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_161(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_155(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_157(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_165(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_173(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_171(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_max_217(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_max_221(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_363(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_unshare_361(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_path_269(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_268(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mult_239(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mult(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_clause_50(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_48(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_precede_274(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - precede(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_distinct_121(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - distinct(*space,X2); - return TRUE; -} - -static int gecode_constraint_member_229(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_228(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_225(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_224(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mod_238(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cardinality_18(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - cardinality(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_atmostOne_9(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - atmostOne(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channelSorted_34(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channelSorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_209(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_213(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_185(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_189(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_43(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - circuit(*space,X2); - return TRUE; -} - -static int gecode_constraint_rel_291(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_290(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_287(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_286(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_283(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_281(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_300(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_296(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_294(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_324(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_322(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_308(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_310(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_304(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_313(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_312(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_317(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_316(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_321(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_332(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_334(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_280(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_278(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_min_233(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_232(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_236(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_cardinality_19(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - cardinality(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_70(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_67(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_61(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_60(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_57(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqrt_347(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqrt(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulatives_118(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_116(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_114(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_112(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_110(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_108(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_106(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_104(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_nvalues_255(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_257(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_251(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_253(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_binpacking_10(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - binpacking(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_204(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_208(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_196(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_200(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_abs_2(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - abs(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_convex_51(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - convex(*space,X2); - return TRUE; -} - -static int gecode_constraint_div_123(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - div(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_314(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_318(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_301(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_302(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_292(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_288(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_284(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_282(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_327(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_328(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_329(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_330(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_weights_365(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - weights(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_220(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - max(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_264(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - path(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_unary_359(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_355(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_349(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_352(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_342(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - sorted(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_41(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_38(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_35(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_139(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_143(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_138(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_135(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_134(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_131(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_130(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_128(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_147(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_145(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_abs_1(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - abs(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_29(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_24(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_305(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_rel_297(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_267(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - path(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_14(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_13(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_15(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mult_240(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mult(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_42(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_39(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_36(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_49(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_clause_47(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_precede_276(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_273(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_272(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_30(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - channel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_87(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_90(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_83(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_86(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_80(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_99(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_102(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_95(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_98(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_92(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_distinct_122(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_distinct_119(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_230(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_226(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mod_237(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mod(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqr_345(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqr(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sequence_338(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_sequence_336(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_265(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_262(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_259(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_divmod_126(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - divmod(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sorted_343(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - sorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_45(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_44(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_32(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_28(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_26(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_22(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_25(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_20(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_31(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_53(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_55(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_71(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_73(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_63(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_65(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_62(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_58(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_68(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_75(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_77(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulatives_117(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_115(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_113(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_111(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_109(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_107(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_105(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_103(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_binpacking_11(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - binpacking(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_212(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_216(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_188(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_192(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_203(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_202(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_207(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_206(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_195(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_194(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_199(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_198(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_247(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_nooverlap_242(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_div_124(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - div(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sqr_346(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqr(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_path_266(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_263(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_260(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_unary_357(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_360(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_353(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_356(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_350(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sorted_341(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_344(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_162(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_156(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_174(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_172(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_160(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_164(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_154(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_152(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_183(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_181(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_179(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_177(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_170(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_176(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_168(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sequence_340(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - sequence(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_40(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - circuit(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_precede_275(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_precede_271(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_89(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_85(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_79(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_82(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_101(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_97(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_91(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_94(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_distinct_120(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - distinct(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_231(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_min_235(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sqrt_348(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqrt(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_337(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sequence_335(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unshare_364(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_362(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_270(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_path_261(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_divmod_125(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - divmod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_246(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulative_81(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulative_93(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_227(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_223(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_72(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_74(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_76(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_78(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_64(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_66(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_54(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_56(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_notMin_250(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMin(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_88(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_84(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_100(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_96(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_branch_16(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_12(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_17(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_137(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_133(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_129(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_127(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_211(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_210(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_215(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_214(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_187(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_186(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_191(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_190(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_201(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_205(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_193(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_197(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_241(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_244(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_184(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_182(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_180(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_178(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_289(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_285(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_299(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_295(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_293(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_298(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_325(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_323(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_307(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_309(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_303(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_306(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_311(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_315(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_319(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_320(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_326(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_331(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_333(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_279(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_277(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_234(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - min(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_69(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_59(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - diff --git a/library/gecode/4.0.0/gecode_yap_cc_init_auto_generated.icc b/library/gecode/4.0.0/gecode_yap_cc_init_auto_generated.icc deleted file mode 100644 index 31048df5b..000000000 --- a/library/gecode/4.0.0/gecode_yap_cc_init_auto_generated.icc +++ /dev/null @@ -1,709 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -{ YAP_Atom X= YAP_LookupAtom("RM_EQV"); - gecode_RM_EQV = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("RM_IMP"); - gecode_RM_IMP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("RM_PMI"); - gecode_RM_PMI = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); - gecode_IRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); - gecode_IRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); - gecode_IRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); - gecode_IRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); - gecode_IRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); - gecode_IRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); - gecode_BOT_AND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); - gecode_BOT_OR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); - gecode_BOT_IMP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); - gecode_BOT_EQV = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); - gecode_BOT_XOR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); - gecode_ICL_VAL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); - gecode_ICL_BND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); - gecode_ICL_DOM = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); - gecode_ICL_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); - gecode_TT_FIXP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); - gecode_TT_FIXS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); - gecode_TT_FIXE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); - gecode_EPK_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); - gecode_EPK_SPEED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); - gecode_EPK_MEMORY = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); - gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_RND"); - gecode_INT_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); - gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); - gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MIN"); - gecode_INT_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_AFC_MAX"); - gecode_INT_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); - gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); - gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); - gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); - gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); - gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); - gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MIN"); - gecode_INT_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_DEGREE_MAX"); - gecode_INT_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MIN"); - gecode_INT_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_AFC_MAX"); - gecode_INT_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); - gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); - gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); - gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); - gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); - gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); - gecode_INT_VAL_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); - gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RND"); - gecode_INT_VAL_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); - gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); - gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); - gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); - gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); - gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); - gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MIN"); - gecode_INT_ASSIGN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MED"); - gecode_INT_ASSIGN_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_MAX"); - gecode_INT_ASSIGN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("INT_ASSIGN_RND"); - gecode_INT_ASSIGN_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); - gecode_SRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); - gecode_SRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); - gecode_SRT_SUB = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); - gecode_SRT_SUP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); - gecode_SRT_DISJ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); - gecode_SRT_CMPL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); - gecode_SRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); - gecode_SRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); - gecode_SRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); - gecode_SRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); - gecode_SOT_UNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); - gecode_SOT_DUNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); - gecode_SOT_INTER = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); - gecode_SOT_MINUS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); - gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_RND"); - gecode_SET_VAR_RND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); - gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); - gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MIN"); - gecode_SET_VAR_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_AFC_MAX"); - gecode_SET_VAR_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); - gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); - gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); - gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); - gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); - gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); - gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MIN"); - gecode_SET_VAR_SIZE_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_DEGREE_MAX"); - gecode_SET_VAR_SIZE_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MIN"); - gecode_SET_VAR_SIZE_AFC_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_AFC_MAX"); - gecode_SET_VAR_SIZE_AFC_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); - gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); - gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); - gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); - gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); - gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); - gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_INC"); - gecode_SET_VAL_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_VAL_RND_EXC"); - gecode_SET_VAL_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_INC"); - gecode_SET_ASSIGN_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MIN_EXC"); - gecode_SET_ASSIGN_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_INC"); - gecode_SET_ASSIGN_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MED_EXC"); - gecode_SET_ASSIGN_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_INC"); - gecode_SET_ASSIGN_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_MAX_EXC"); - gecode_SET_ASSIGN_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_INC"); - gecode_SET_ASSIGN_RND_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SET_ASSIGN_RND_EXC"); - gecode_SET_ASSIGN_RND_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -YAP_UserCPredicate("gecode_constraint_unary_358", gecode_constraint_unary_358, 6); -YAP_UserCPredicate("gecode_constraint_unary_354", gecode_constraint_unary_354, 6); -YAP_UserCPredicate("gecode_constraint_nvalues_256", gecode_constraint_nvalues_256, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_258", gecode_constraint_nvalues_258, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_252", gecode_constraint_nvalues_252, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_254", gecode_constraint_nvalues_254, 5); -YAP_UserCPredicate("gecode_constraint_max_219", gecode_constraint_max_219, 4); -YAP_UserCPredicate("gecode_constraint_max_218", gecode_constraint_max_218, 4); -YAP_UserCPredicate("gecode_constraint_max_222", gecode_constraint_max_222, 4); -YAP_UserCPredicate("gecode_constraint_dom_142", gecode_constraint_dom_142, 6); -YAP_UserCPredicate("gecode_constraint_dom_150", gecode_constraint_dom_150, 6); -YAP_UserCPredicate("gecode_constraint_convex_52", gecode_constraint_convex_52, 3); -YAP_UserCPredicate("gecode_constraint_nooverlap_243", gecode_constraint_nooverlap_243, 5); -YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 3); -YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); -YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 3); -YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 3); -YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); -YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 3); -YAP_UserCPredicate("gecode_constraint_element_159", gecode_constraint_element_159, 4); -YAP_UserCPredicate("gecode_constraint_element_163", gecode_constraint_element_163, 4); -YAP_UserCPredicate("gecode_constraint_element_153", gecode_constraint_element_153, 4); -YAP_UserCPredicate("gecode_constraint_element_151", gecode_constraint_element_151, 4); -YAP_UserCPredicate("gecode_constraint_element_158", gecode_constraint_element_158, 4); -YAP_UserCPredicate("gecode_constraint_element_166", gecode_constraint_element_166, 4); -YAP_UserCPredicate("gecode_constraint_element_169", gecode_constraint_element_169, 4); -YAP_UserCPredicate("gecode_constraint_element_175", gecode_constraint_element_175, 4); -YAP_UserCPredicate("gecode_constraint_element_167", gecode_constraint_element_167, 4); -YAP_UserCPredicate("gecode_constraint_sequence_339", gecode_constraint_sequence_339, 2); -YAP_UserCPredicate("gecode_constraint_notMax_249", gecode_constraint_notMax_249, 3); -YAP_UserCPredicate("gecode_constraint_unary_351", gecode_constraint_unary_351, 3); -YAP_UserCPredicate("gecode_constraint_circuit_46", gecode_constraint_circuit_46, 4); -YAP_UserCPredicate("gecode_constraint_circuit_37", gecode_constraint_circuit_37, 4); -YAP_UserCPredicate("gecode_constraint_dom_141", gecode_constraint_dom_141, 5); -YAP_UserCPredicate("gecode_constraint_dom_140", gecode_constraint_dom_140, 5); -YAP_UserCPredicate("gecode_constraint_dom_144", gecode_constraint_dom_144, 5); -YAP_UserCPredicate("gecode_constraint_dom_136", gecode_constraint_dom_136, 5); -YAP_UserCPredicate("gecode_constraint_dom_132", gecode_constraint_dom_132, 5); -YAP_UserCPredicate("gecode_constraint_dom_149", gecode_constraint_dom_149, 5); -YAP_UserCPredicate("gecode_constraint_dom_148", gecode_constraint_dom_148, 5); -YAP_UserCPredicate("gecode_constraint_dom_146", gecode_constraint_dom_146, 5); -YAP_UserCPredicate("gecode_constraint_channel_33", gecode_constraint_channel_33, 4); -YAP_UserCPredicate("gecode_constraint_channel_27", gecode_constraint_channel_27, 4); -YAP_UserCPredicate("gecode_constraint_channel_23", gecode_constraint_channel_23, 4); -YAP_UserCPredicate("gecode_constraint_channel_21", gecode_constraint_channel_21, 4); -YAP_UserCPredicate("gecode_constraint_nooverlap_245", gecode_constraint_nooverlap_245, 8); -YAP_UserCPredicate("gecode_constraint_nooverlap_248", gecode_constraint_nooverlap_248, 8); -YAP_UserCPredicate("gecode_constraint_element_161", gecode_constraint_element_161, 7); -YAP_UserCPredicate("gecode_constraint_element_155", gecode_constraint_element_155, 7); -YAP_UserCPredicate("gecode_constraint_element_157", gecode_constraint_element_157, 7); -YAP_UserCPredicate("gecode_constraint_element_165", gecode_constraint_element_165, 7); -YAP_UserCPredicate("gecode_constraint_element_173", gecode_constraint_element_173, 7); -YAP_UserCPredicate("gecode_constraint_element_171", gecode_constraint_element_171, 7); -YAP_UserCPredicate("gecode_constraint_max_217", gecode_constraint_max_217, 3); -YAP_UserCPredicate("gecode_constraint_max_221", gecode_constraint_max_221, 3); -YAP_UserCPredicate("gecode_constraint_unshare_363", gecode_constraint_unshare_363, 2); -YAP_UserCPredicate("gecode_constraint_unshare_361", gecode_constraint_unshare_361, 2); -YAP_UserCPredicate("gecode_constraint_path_269", gecode_constraint_path_269, 5); -YAP_UserCPredicate("gecode_constraint_path_268", gecode_constraint_path_268, 5); -YAP_UserCPredicate("gecode_constraint_mult_239", gecode_constraint_mult_239, 4); -YAP_UserCPredicate("gecode_constraint_clause_50", gecode_constraint_clause_50, 6); -YAP_UserCPredicate("gecode_constraint_clause_48", gecode_constraint_clause_48, 6); -YAP_UserCPredicate("gecode_constraint_precede_274", gecode_constraint_precede_274, 5); -YAP_UserCPredicate("gecode_constraint_distinct_121", gecode_constraint_distinct_121, 2); -YAP_UserCPredicate("gecode_constraint_member_229", gecode_constraint_member_229, 4); -YAP_UserCPredicate("gecode_constraint_member_228", gecode_constraint_member_228, 4); -YAP_UserCPredicate("gecode_constraint_member_225", gecode_constraint_member_225, 4); -YAP_UserCPredicate("gecode_constraint_member_224", gecode_constraint_member_224, 4); -YAP_UserCPredicate("gecode_constraint_mod_238", gecode_constraint_mod_238, 5); -YAP_UserCPredicate("gecode_constraint_cardinality_18", gecode_constraint_cardinality_18, 3); -YAP_UserCPredicate("gecode_constraint_atmostOne_9", gecode_constraint_atmostOne_9, 3); -YAP_UserCPredicate("gecode_constraint_channelSorted_34", gecode_constraint_channelSorted_34, 3); -YAP_UserCPredicate("gecode_constraint_linear_209", gecode_constraint_linear_209, 4); -YAP_UserCPredicate("gecode_constraint_linear_213", gecode_constraint_linear_213, 4); -YAP_UserCPredicate("gecode_constraint_linear_185", gecode_constraint_linear_185, 4); -YAP_UserCPredicate("gecode_constraint_linear_189", gecode_constraint_linear_189, 4); -YAP_UserCPredicate("gecode_constraint_circuit_43", gecode_constraint_circuit_43, 2); -YAP_UserCPredicate("gecode_constraint_rel_291", gecode_constraint_rel_291, 5); -YAP_UserCPredicate("gecode_constraint_rel_290", gecode_constraint_rel_290, 5); -YAP_UserCPredicate("gecode_constraint_rel_287", gecode_constraint_rel_287, 5); -YAP_UserCPredicate("gecode_constraint_rel_286", gecode_constraint_rel_286, 5); -YAP_UserCPredicate("gecode_constraint_rel_283", gecode_constraint_rel_283, 5); -YAP_UserCPredicate("gecode_constraint_rel_281", gecode_constraint_rel_281, 5); -YAP_UserCPredicate("gecode_constraint_rel_300", gecode_constraint_rel_300, 5); -YAP_UserCPredicate("gecode_constraint_rel_296", gecode_constraint_rel_296, 5); -YAP_UserCPredicate("gecode_constraint_rel_294", gecode_constraint_rel_294, 5); -YAP_UserCPredicate("gecode_constraint_rel_324", gecode_constraint_rel_324, 5); -YAP_UserCPredicate("gecode_constraint_rel_322", gecode_constraint_rel_322, 5); -YAP_UserCPredicate("gecode_constraint_rel_308", gecode_constraint_rel_308, 5); -YAP_UserCPredicate("gecode_constraint_rel_310", gecode_constraint_rel_310, 5); -YAP_UserCPredicate("gecode_constraint_rel_304", gecode_constraint_rel_304, 5); -YAP_UserCPredicate("gecode_constraint_rel_313", gecode_constraint_rel_313, 5); -YAP_UserCPredicate("gecode_constraint_rel_312", gecode_constraint_rel_312, 5); -YAP_UserCPredicate("gecode_constraint_rel_317", gecode_constraint_rel_317, 5); -YAP_UserCPredicate("gecode_constraint_rel_316", gecode_constraint_rel_316, 5); -YAP_UserCPredicate("gecode_constraint_rel_321", gecode_constraint_rel_321, 5); -YAP_UserCPredicate("gecode_constraint_rel_332", gecode_constraint_rel_332, 5); -YAP_UserCPredicate("gecode_constraint_rel_334", gecode_constraint_rel_334, 5); -YAP_UserCPredicate("gecode_constraint_rel_280", gecode_constraint_rel_280, 5); -YAP_UserCPredicate("gecode_constraint_rel_278", gecode_constraint_rel_278, 5); -YAP_UserCPredicate("gecode_constraint_min_233", gecode_constraint_min_233, 4); -YAP_UserCPredicate("gecode_constraint_min_232", gecode_constraint_min_232, 4); -YAP_UserCPredicate("gecode_constraint_min_236", gecode_constraint_min_236, 4); -YAP_UserCPredicate("gecode_constraint_cardinality_19", gecode_constraint_cardinality_19, 4); -YAP_UserCPredicate("gecode_constraint_count_70", gecode_constraint_count_70, 4); -YAP_UserCPredicate("gecode_constraint_count_67", gecode_constraint_count_67, 4); -YAP_UserCPredicate("gecode_constraint_count_61", gecode_constraint_count_61, 4); -YAP_UserCPredicate("gecode_constraint_count_60", gecode_constraint_count_60, 4); -YAP_UserCPredicate("gecode_constraint_count_57", gecode_constraint_count_57, 4); -YAP_UserCPredicate("gecode_constraint_sqrt_347", gecode_constraint_sqrt_347, 3); -YAP_UserCPredicate("gecode_constraint_cumulatives_118", gecode_constraint_cumulatives_118, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_116", gecode_constraint_cumulatives_116, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_114", gecode_constraint_cumulatives_114, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_112", gecode_constraint_cumulatives_112, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_110", gecode_constraint_cumulatives_110, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_108", gecode_constraint_cumulatives_108, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_106", gecode_constraint_cumulatives_106, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_104", gecode_constraint_cumulatives_104, 9); -YAP_UserCPredicate("gecode_constraint_nvalues_255", gecode_constraint_nvalues_255, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_257", gecode_constraint_nvalues_257, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_251", gecode_constraint_nvalues_251, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_253", gecode_constraint_nvalues_253, 4); -YAP_UserCPredicate("gecode_constraint_binpacking_10", gecode_constraint_binpacking_10, 4); -YAP_UserCPredicate("gecode_constraint_linear_204", gecode_constraint_linear_204, 7); -YAP_UserCPredicate("gecode_constraint_linear_208", gecode_constraint_linear_208, 7); -YAP_UserCPredicate("gecode_constraint_linear_196", gecode_constraint_linear_196, 7); -YAP_UserCPredicate("gecode_constraint_linear_200", gecode_constraint_linear_200, 7); -YAP_UserCPredicate("gecode_constraint_abs_2", gecode_constraint_abs_2, 4); -YAP_UserCPredicate("gecode_constraint_convex_51", gecode_constraint_convex_51, 2); -YAP_UserCPredicate("gecode_constraint_div_123", gecode_constraint_div_123, 4); -YAP_UserCPredicate("gecode_constraint_rel_314", gecode_constraint_rel_314, 6); -YAP_UserCPredicate("gecode_constraint_rel_318", gecode_constraint_rel_318, 6); -YAP_UserCPredicate("gecode_constraint_rel_301", gecode_constraint_rel_301, 6); -YAP_UserCPredicate("gecode_constraint_rel_302", gecode_constraint_rel_302, 6); -YAP_UserCPredicate("gecode_constraint_rel_292", gecode_constraint_rel_292, 6); -YAP_UserCPredicate("gecode_constraint_rel_288", gecode_constraint_rel_288, 6); -YAP_UserCPredicate("gecode_constraint_rel_284", gecode_constraint_rel_284, 6); -YAP_UserCPredicate("gecode_constraint_rel_282", gecode_constraint_rel_282, 6); -YAP_UserCPredicate("gecode_constraint_rel_327", gecode_constraint_rel_327, 6); -YAP_UserCPredicate("gecode_constraint_rel_328", gecode_constraint_rel_328, 6); -YAP_UserCPredicate("gecode_constraint_rel_329", gecode_constraint_rel_329, 6); -YAP_UserCPredicate("gecode_constraint_rel_330", gecode_constraint_rel_330, 6); -YAP_UserCPredicate("gecode_constraint_weights_365", gecode_constraint_weights_365, 5); -YAP_UserCPredicate("gecode_constraint_max_220", gecode_constraint_max_220, 5); -YAP_UserCPredicate("gecode_constraint_path_264", gecode_constraint_path_264, 9); -YAP_UserCPredicate("gecode_constraint_unary_359", gecode_constraint_unary_359, 4); -YAP_UserCPredicate("gecode_constraint_unary_355", gecode_constraint_unary_355, 4); -YAP_UserCPredicate("gecode_constraint_unary_349", gecode_constraint_unary_349, 4); -YAP_UserCPredicate("gecode_constraint_unary_352", gecode_constraint_unary_352, 4); -YAP_UserCPredicate("gecode_constraint_sorted_342", gecode_constraint_sorted_342, 5); -YAP_UserCPredicate("gecode_constraint_circuit_41", gecode_constraint_circuit_41, 5); -YAP_UserCPredicate("gecode_constraint_circuit_38", gecode_constraint_circuit_38, 5); -YAP_UserCPredicate("gecode_constraint_circuit_35", gecode_constraint_circuit_35, 5); -YAP_UserCPredicate("gecode_constraint_dom_139", gecode_constraint_dom_139, 4); -YAP_UserCPredicate("gecode_constraint_dom_143", gecode_constraint_dom_143, 4); -YAP_UserCPredicate("gecode_constraint_dom_138", gecode_constraint_dom_138, 4); -YAP_UserCPredicate("gecode_constraint_dom_135", gecode_constraint_dom_135, 4); -YAP_UserCPredicate("gecode_constraint_dom_134", gecode_constraint_dom_134, 4); -YAP_UserCPredicate("gecode_constraint_dom_131", gecode_constraint_dom_131, 4); -YAP_UserCPredicate("gecode_constraint_dom_130", gecode_constraint_dom_130, 4); -YAP_UserCPredicate("gecode_constraint_dom_128", gecode_constraint_dom_128, 4); -YAP_UserCPredicate("gecode_constraint_dom_147", gecode_constraint_dom_147, 4); -YAP_UserCPredicate("gecode_constraint_dom_145", gecode_constraint_dom_145, 4); -YAP_UserCPredicate("gecode_constraint_abs_1", gecode_constraint_abs_1, 3); -YAP_UserCPredicate("gecode_constraint_channel_29", gecode_constraint_channel_29, 5); -YAP_UserCPredicate("gecode_constraint_channel_24", gecode_constraint_channel_24, 5); -YAP_UserCPredicate("gecode_constraint_rel_305", gecode_constraint_rel_305, 3); -YAP_UserCPredicate("gecode_constraint_rel_297", gecode_constraint_rel_297, 3); -YAP_UserCPredicate("gecode_constraint_path_267", gecode_constraint_path_267, 4); -YAP_UserCPredicate("gecode_constraint_branch_14", gecode_constraint_branch_14, 4); -YAP_UserCPredicate("gecode_constraint_branch_13", gecode_constraint_branch_13, 4); -YAP_UserCPredicate("gecode_constraint_branch_15", gecode_constraint_branch_15, 4); -YAP_UserCPredicate("gecode_constraint_mult_240", gecode_constraint_mult_240, 5); -YAP_UserCPredicate("gecode_constraint_circuit_42", gecode_constraint_circuit_42, 6); -YAP_UserCPredicate("gecode_constraint_circuit_39", gecode_constraint_circuit_39, 6); -YAP_UserCPredicate("gecode_constraint_circuit_36", gecode_constraint_circuit_36, 6); -YAP_UserCPredicate("gecode_constraint_clause_49", gecode_constraint_clause_49, 5); -YAP_UserCPredicate("gecode_constraint_clause_47", gecode_constraint_clause_47, 5); -YAP_UserCPredicate("gecode_constraint_precede_276", gecode_constraint_precede_276, 4); -YAP_UserCPredicate("gecode_constraint_precede_273", gecode_constraint_precede_273, 4); -YAP_UserCPredicate("gecode_constraint_precede_272", gecode_constraint_precede_272, 4); -YAP_UserCPredicate("gecode_constraint_channel_30", gecode_constraint_channel_30, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_87", gecode_constraint_cumulative_87, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_90", gecode_constraint_cumulative_90, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_83", gecode_constraint_cumulative_83, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_86", gecode_constraint_cumulative_86, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_80", gecode_constraint_cumulative_80, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_99", gecode_constraint_cumulative_99, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_102", gecode_constraint_cumulative_102, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_95", gecode_constraint_cumulative_95, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_98", gecode_constraint_cumulative_98, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_92", gecode_constraint_cumulative_92, 7); -YAP_UserCPredicate("gecode_constraint_distinct_122", gecode_constraint_distinct_122, 3); -YAP_UserCPredicate("gecode_constraint_distinct_119", gecode_constraint_distinct_119, 3); -YAP_UserCPredicate("gecode_constraint_member_230", gecode_constraint_member_230, 5); -YAP_UserCPredicate("gecode_constraint_member_226", gecode_constraint_member_226, 5); -YAP_UserCPredicate("gecode_constraint_mod_237", gecode_constraint_mod_237, 4); -YAP_UserCPredicate("gecode_constraint_sqr_345", gecode_constraint_sqr_345, 3); -YAP_UserCPredicate("gecode_constraint_sequence_338", gecode_constraint_sequence_338, 7); -YAP_UserCPredicate("gecode_constraint_sequence_336", gecode_constraint_sequence_336, 7); -YAP_UserCPredicate("gecode_constraint_path_265", gecode_constraint_path_265, 7); -YAP_UserCPredicate("gecode_constraint_path_262", gecode_constraint_path_262, 7); -YAP_UserCPredicate("gecode_constraint_path_259", gecode_constraint_path_259, 7); -YAP_UserCPredicate("gecode_constraint_divmod_126", gecode_constraint_divmod_126, 6); -YAP_UserCPredicate("gecode_constraint_sorted_343", gecode_constraint_sorted_343, 3); -YAP_UserCPredicate("gecode_constraint_circuit_45", gecode_constraint_circuit_45, 3); -YAP_UserCPredicate("gecode_constraint_circuit_44", gecode_constraint_circuit_44, 3); -YAP_UserCPredicate("gecode_constraint_channel_32", gecode_constraint_channel_32, 3); -YAP_UserCPredicate("gecode_constraint_channel_28", gecode_constraint_channel_28, 3); -YAP_UserCPredicate("gecode_constraint_channel_26", gecode_constraint_channel_26, 3); -YAP_UserCPredicate("gecode_constraint_channel_22", gecode_constraint_channel_22, 3); -YAP_UserCPredicate("gecode_constraint_channel_25", gecode_constraint_channel_25, 3); -YAP_UserCPredicate("gecode_constraint_channel_20", gecode_constraint_channel_20, 3); -YAP_UserCPredicate("gecode_constraint_channel_31", gecode_constraint_channel_31, 3); -YAP_UserCPredicate("gecode_constraint_count_53", gecode_constraint_count_53, 5); -YAP_UserCPredicate("gecode_constraint_count_55", gecode_constraint_count_55, 5); -YAP_UserCPredicate("gecode_constraint_count_71", gecode_constraint_count_71, 5); -YAP_UserCPredicate("gecode_constraint_count_73", gecode_constraint_count_73, 5); -YAP_UserCPredicate("gecode_constraint_count_63", gecode_constraint_count_63, 5); -YAP_UserCPredicate("gecode_constraint_count_65", gecode_constraint_count_65, 5); -YAP_UserCPredicate("gecode_constraint_count_62", gecode_constraint_count_62, 5); -YAP_UserCPredicate("gecode_constraint_count_58", gecode_constraint_count_58, 5); -YAP_UserCPredicate("gecode_constraint_count_68", gecode_constraint_count_68, 5); -YAP_UserCPredicate("gecode_constraint_count_75", gecode_constraint_count_75, 5); -YAP_UserCPredicate("gecode_constraint_count_77", gecode_constraint_count_77, 5); -YAP_UserCPredicate("gecode_constraint_cumulatives_117", gecode_constraint_cumulatives_117, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_115", gecode_constraint_cumulatives_115, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_113", gecode_constraint_cumulatives_113, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_111", gecode_constraint_cumulatives_111, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_109", gecode_constraint_cumulatives_109, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_107", gecode_constraint_cumulatives_107, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_105", gecode_constraint_cumulatives_105, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_103", gecode_constraint_cumulatives_103, 8); -YAP_UserCPredicate("gecode_constraint_binpacking_11", gecode_constraint_binpacking_11, 5); -YAP_UserCPredicate("gecode_constraint_linear_212", gecode_constraint_linear_212, 6); -YAP_UserCPredicate("gecode_constraint_linear_216", gecode_constraint_linear_216, 6); -YAP_UserCPredicate("gecode_constraint_linear_188", gecode_constraint_linear_188, 6); -YAP_UserCPredicate("gecode_constraint_linear_192", gecode_constraint_linear_192, 6); -YAP_UserCPredicate("gecode_constraint_linear_203", gecode_constraint_linear_203, 6); -YAP_UserCPredicate("gecode_constraint_linear_202", gecode_constraint_linear_202, 6); -YAP_UserCPredicate("gecode_constraint_linear_207", gecode_constraint_linear_207, 6); -YAP_UserCPredicate("gecode_constraint_linear_206", gecode_constraint_linear_206, 6); -YAP_UserCPredicate("gecode_constraint_linear_195", gecode_constraint_linear_195, 6); -YAP_UserCPredicate("gecode_constraint_linear_194", gecode_constraint_linear_194, 6); -YAP_UserCPredicate("gecode_constraint_linear_199", gecode_constraint_linear_199, 6); -YAP_UserCPredicate("gecode_constraint_linear_198", gecode_constraint_linear_198, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_247", gecode_constraint_nooverlap_247, 7); -YAP_UserCPredicate("gecode_constraint_nooverlap_242", gecode_constraint_nooverlap_242, 7); -YAP_UserCPredicate("gecode_constraint_div_124", gecode_constraint_div_124, 5); -YAP_UserCPredicate("gecode_constraint_sqr_346", gecode_constraint_sqr_346, 4); -YAP_UserCPredicate("gecode_constraint_path_266", gecode_constraint_path_266, 8); -YAP_UserCPredicate("gecode_constraint_path_263", gecode_constraint_path_263, 8); -YAP_UserCPredicate("gecode_constraint_path_260", gecode_constraint_path_260, 8); -YAP_UserCPredicate("gecode_constraint_unary_357", gecode_constraint_unary_357, 5); -YAP_UserCPredicate("gecode_constraint_unary_360", gecode_constraint_unary_360, 5); -YAP_UserCPredicate("gecode_constraint_unary_353", gecode_constraint_unary_353, 5); -YAP_UserCPredicate("gecode_constraint_unary_356", gecode_constraint_unary_356, 5); -YAP_UserCPredicate("gecode_constraint_unary_350", gecode_constraint_unary_350, 5); -YAP_UserCPredicate("gecode_constraint_sorted_341", gecode_constraint_sorted_341, 4); -YAP_UserCPredicate("gecode_constraint_sorted_344", gecode_constraint_sorted_344, 4); -YAP_UserCPredicate("gecode_constraint_element_162", gecode_constraint_element_162, 8); -YAP_UserCPredicate("gecode_constraint_element_156", gecode_constraint_element_156, 8); -YAP_UserCPredicate("gecode_constraint_element_174", gecode_constraint_element_174, 8); -YAP_UserCPredicate("gecode_constraint_element_172", gecode_constraint_element_172, 8); -YAP_UserCPredicate("gecode_constraint_element_160", gecode_constraint_element_160, 5); -YAP_UserCPredicate("gecode_constraint_element_164", gecode_constraint_element_164, 5); -YAP_UserCPredicate("gecode_constraint_element_154", gecode_constraint_element_154, 5); -YAP_UserCPredicate("gecode_constraint_element_152", gecode_constraint_element_152, 5); -YAP_UserCPredicate("gecode_constraint_element_183", gecode_constraint_element_183, 5); -YAP_UserCPredicate("gecode_constraint_element_181", gecode_constraint_element_181, 5); -YAP_UserCPredicate("gecode_constraint_element_179", gecode_constraint_element_179, 5); -YAP_UserCPredicate("gecode_constraint_element_177", gecode_constraint_element_177, 5); -YAP_UserCPredicate("gecode_constraint_element_170", gecode_constraint_element_170, 5); -YAP_UserCPredicate("gecode_constraint_element_176", gecode_constraint_element_176, 5); -YAP_UserCPredicate("gecode_constraint_element_168", gecode_constraint_element_168, 5); -YAP_UserCPredicate("gecode_constraint_sequence_340", gecode_constraint_sequence_340, 3); -YAP_UserCPredicate("gecode_constraint_circuit_40", gecode_constraint_circuit_40, 7); -YAP_UserCPredicate("gecode_constraint_precede_275", gecode_constraint_precede_275, 3); -YAP_UserCPredicate("gecode_constraint_precede_271", gecode_constraint_precede_271, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_89", gecode_constraint_cumulative_89, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_85", gecode_constraint_cumulative_85, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_79", gecode_constraint_cumulative_79, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_82", gecode_constraint_cumulative_82, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_101", gecode_constraint_cumulative_101, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_97", gecode_constraint_cumulative_97, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_91", gecode_constraint_cumulative_91, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_94", gecode_constraint_cumulative_94, 6); -YAP_UserCPredicate("gecode_constraint_distinct_120", gecode_constraint_distinct_120, 4); -YAP_UserCPredicate("gecode_constraint_min_231", gecode_constraint_min_231, 3); -YAP_UserCPredicate("gecode_constraint_min_235", gecode_constraint_min_235, 3); -YAP_UserCPredicate("gecode_constraint_sqrt_348", gecode_constraint_sqrt_348, 4); -YAP_UserCPredicate("gecode_constraint_sequence_337", gecode_constraint_sequence_337, 6); -YAP_UserCPredicate("gecode_constraint_sequence_335", gecode_constraint_sequence_335, 6); -YAP_UserCPredicate("gecode_constraint_unshare_364", gecode_constraint_unshare_364, 3); -YAP_UserCPredicate("gecode_constraint_unshare_362", gecode_constraint_unshare_362, 3); -YAP_UserCPredicate("gecode_constraint_path_270", gecode_constraint_path_270, 6); -YAP_UserCPredicate("gecode_constraint_path_261", gecode_constraint_path_261, 6); -YAP_UserCPredicate("gecode_constraint_divmod_125", gecode_constraint_divmod_125, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_246", gecode_constraint_nooverlap_246, 9); -YAP_UserCPredicate("gecode_constraint_cumulative_81", gecode_constraint_cumulative_81, 5); -YAP_UserCPredicate("gecode_constraint_cumulative_93", gecode_constraint_cumulative_93, 5); -YAP_UserCPredicate("gecode_constraint_member_227", gecode_constraint_member_227, 3); -YAP_UserCPredicate("gecode_constraint_member_223", gecode_constraint_member_223, 3); -YAP_UserCPredicate("gecode_constraint_count_72", gecode_constraint_count_72, 6); -YAP_UserCPredicate("gecode_constraint_count_74", gecode_constraint_count_74, 6); -YAP_UserCPredicate("gecode_constraint_count_76", gecode_constraint_count_76, 6); -YAP_UserCPredicate("gecode_constraint_count_78", gecode_constraint_count_78, 6); -YAP_UserCPredicate("gecode_constraint_count_64", gecode_constraint_count_64, 6); -YAP_UserCPredicate("gecode_constraint_count_66", gecode_constraint_count_66, 6); -YAP_UserCPredicate("gecode_constraint_count_54", gecode_constraint_count_54, 6); -YAP_UserCPredicate("gecode_constraint_count_56", gecode_constraint_count_56, 6); -YAP_UserCPredicate("gecode_constraint_notMin_250", gecode_constraint_notMin_250, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_88", gecode_constraint_cumulative_88, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_84", gecode_constraint_cumulative_84, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_100", gecode_constraint_cumulative_100, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_96", gecode_constraint_cumulative_96, 8); -YAP_UserCPredicate("gecode_constraint_branch_16", gecode_constraint_branch_16, 3); -YAP_UserCPredicate("gecode_constraint_branch_12", gecode_constraint_branch_12, 3); -YAP_UserCPredicate("gecode_constraint_branch_17", gecode_constraint_branch_17, 3); -YAP_UserCPredicate("gecode_constraint_dom_137", gecode_constraint_dom_137, 3); -YAP_UserCPredicate("gecode_constraint_dom_133", gecode_constraint_dom_133, 3); -YAP_UserCPredicate("gecode_constraint_dom_129", gecode_constraint_dom_129, 3); -YAP_UserCPredicate("gecode_constraint_dom_127", gecode_constraint_dom_127, 3); -YAP_UserCPredicate("gecode_constraint_linear_211", gecode_constraint_linear_211, 5); -YAP_UserCPredicate("gecode_constraint_linear_210", gecode_constraint_linear_210, 5); -YAP_UserCPredicate("gecode_constraint_linear_215", gecode_constraint_linear_215, 5); -YAP_UserCPredicate("gecode_constraint_linear_214", gecode_constraint_linear_214, 5); -YAP_UserCPredicate("gecode_constraint_linear_187", gecode_constraint_linear_187, 5); -YAP_UserCPredicate("gecode_constraint_linear_186", gecode_constraint_linear_186, 5); -YAP_UserCPredicate("gecode_constraint_linear_191", gecode_constraint_linear_191, 5); -YAP_UserCPredicate("gecode_constraint_linear_190", gecode_constraint_linear_190, 5); -YAP_UserCPredicate("gecode_constraint_linear_201", gecode_constraint_linear_201, 5); -YAP_UserCPredicate("gecode_constraint_linear_205", gecode_constraint_linear_205, 5); -YAP_UserCPredicate("gecode_constraint_linear_193", gecode_constraint_linear_193, 5); -YAP_UserCPredicate("gecode_constraint_linear_197", gecode_constraint_linear_197, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_241", gecode_constraint_nooverlap_241, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_244", gecode_constraint_nooverlap_244, 6); -YAP_UserCPredicate("gecode_constraint_element_184", gecode_constraint_element_184, 6); -YAP_UserCPredicate("gecode_constraint_element_182", gecode_constraint_element_182, 6); -YAP_UserCPredicate("gecode_constraint_element_180", gecode_constraint_element_180, 6); -YAP_UserCPredicate("gecode_constraint_element_178", gecode_constraint_element_178, 6); -YAP_UserCPredicate("gecode_constraint_rel_289", gecode_constraint_rel_289, 4); -YAP_UserCPredicate("gecode_constraint_rel_285", gecode_constraint_rel_285, 4); -YAP_UserCPredicate("gecode_constraint_rel_299", gecode_constraint_rel_299, 4); -YAP_UserCPredicate("gecode_constraint_rel_295", gecode_constraint_rel_295, 4); -YAP_UserCPredicate("gecode_constraint_rel_293", gecode_constraint_rel_293, 4); -YAP_UserCPredicate("gecode_constraint_rel_298", gecode_constraint_rel_298, 4); -YAP_UserCPredicate("gecode_constraint_rel_325", gecode_constraint_rel_325, 4); -YAP_UserCPredicate("gecode_constraint_rel_323", gecode_constraint_rel_323, 4); -YAP_UserCPredicate("gecode_constraint_rel_307", gecode_constraint_rel_307, 4); -YAP_UserCPredicate("gecode_constraint_rel_309", gecode_constraint_rel_309, 4); -YAP_UserCPredicate("gecode_constraint_rel_303", gecode_constraint_rel_303, 4); -YAP_UserCPredicate("gecode_constraint_rel_306", gecode_constraint_rel_306, 4); -YAP_UserCPredicate("gecode_constraint_rel_311", gecode_constraint_rel_311, 4); -YAP_UserCPredicate("gecode_constraint_rel_315", gecode_constraint_rel_315, 4); -YAP_UserCPredicate("gecode_constraint_rel_319", gecode_constraint_rel_319, 4); -YAP_UserCPredicate("gecode_constraint_rel_320", gecode_constraint_rel_320, 4); -YAP_UserCPredicate("gecode_constraint_rel_326", gecode_constraint_rel_326, 4); -YAP_UserCPredicate("gecode_constraint_rel_331", gecode_constraint_rel_331, 4); -YAP_UserCPredicate("gecode_constraint_rel_333", gecode_constraint_rel_333, 4); -YAP_UserCPredicate("gecode_constraint_rel_279", gecode_constraint_rel_279, 4); -YAP_UserCPredicate("gecode_constraint_rel_277", gecode_constraint_rel_277, 4); -YAP_UserCPredicate("gecode_constraint_min_234", gecode_constraint_min_234, 5); -YAP_UserCPredicate("gecode_constraint_count_69", gecode_constraint_count_69, 3); -YAP_UserCPredicate("gecode_constraint_count_59", gecode_constraint_count_59, 3); diff --git a/library/gecode/4.2.0/gecode-version.txt b/library/gecode/4.2.0/gecode-version.txt deleted file mode 100644 index 6aba2b245..000000000 --- a/library/gecode/4.2.0/gecode-version.txt +++ /dev/null @@ -1 +0,0 @@ -4.2.0 diff --git a/library/gecode/4.2.0/gecode_yap_auto_generated.yap b/library/gecode/4.2.0/gecode_yap_auto_generated.yap deleted file mode 100644 index 051cb381e..000000000 --- a/library/gecode/4.2.0/gecode_yap_auto_generated.yap +++ /dev/null @@ -1,3516 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -is_RestartMode_('RM_NONE'). -is_RestartMode_('RM_CONSTANT'). -is_RestartMode_('RM_LINEAR'). -is_RestartMode_('RM_LUBY'). -is_RestartMode_('RM_GEOMETRIC'). - -is_RestartMode_('RM_NONE','RM_NONE'). -is_RestartMode_('RM_CONSTANT','RM_CONSTANT'). -is_RestartMode_('RM_LINEAR','RM_LINEAR'). -is_RestartMode_('RM_LUBY','RM_LUBY'). -is_RestartMode_('RM_GEOMETRIC','RM_GEOMETRIC'). - -is_RestartMode(X,Y) :- nonvar(X), is_RestartMode_(X,Y). -is_RestartMode(X) :- is_RestartMode(X,_). - -is_FloatRelType_('FRT_EQ'). -is_FloatRelType_('FRT_NQ'). -is_FloatRelType_('FRT_LQ'). -is_FloatRelType_('FRT_LE'). -is_FloatRelType_('FRT_GQ'). -is_FloatRelType_('FRT_GR'). - -is_FloatRelType_('FRT_EQ','FRT_EQ'). -is_FloatRelType_('FRT_NQ','FRT_NQ'). -is_FloatRelType_('FRT_LQ','FRT_LQ'). -is_FloatRelType_('FRT_LE','FRT_LE'). -is_FloatRelType_('FRT_GQ','FRT_GQ'). -is_FloatRelType_('FRT_GR','FRT_GR'). - -is_FloatRelType(X,Y) :- nonvar(X), is_FloatRelType_(X,Y). -is_FloatRelType(X) :- is_FloatRelType(X,_). - -is_ReifyMode_('RM_EQV'). -is_ReifyMode_('RM_IMP'). -is_ReifyMode_('RM_PMI'). - -is_ReifyMode_('RM_EQV','RM_EQV'). -is_ReifyMode_('RM_IMP','RM_IMP'). -is_ReifyMode_('RM_PMI','RM_PMI'). - -is_ReifyMode(X,Y) :- nonvar(X), is_ReifyMode_(X,Y). -is_ReifyMode(X) :- is_ReifyMode(X,_). - -is_IntRelType_('IRT_EQ'). -is_IntRelType_('IRT_NQ'). -is_IntRelType_('IRT_LQ'). -is_IntRelType_('IRT_LE'). -is_IntRelType_('IRT_GQ'). -is_IntRelType_('IRT_GR'). - -is_IntRelType_('IRT_EQ','IRT_EQ'). -is_IntRelType_('IRT_NQ','IRT_NQ'). -is_IntRelType_('IRT_LQ','IRT_LQ'). -is_IntRelType_('IRT_LE','IRT_LE'). -is_IntRelType_('IRT_GQ','IRT_GQ'). -is_IntRelType_('IRT_GR','IRT_GR'). - -is_IntRelType(X,Y) :- nonvar(X), is_IntRelType_(X,Y). -is_IntRelType(X) :- is_IntRelType(X,_). - -is_BoolOpType_('BOT_AND'). -is_BoolOpType_('BOT_OR'). -is_BoolOpType_('BOT_IMP'). -is_BoolOpType_('BOT_EQV'). -is_BoolOpType_('BOT_XOR'). - -is_BoolOpType_('BOT_AND','BOT_AND'). -is_BoolOpType_('BOT_OR','BOT_OR'). -is_BoolOpType_('BOT_IMP','BOT_IMP'). -is_BoolOpType_('BOT_EQV','BOT_EQV'). -is_BoolOpType_('BOT_XOR','BOT_XOR'). - -is_BoolOpType(X,Y) :- nonvar(X), is_BoolOpType_(X,Y). -is_BoolOpType(X) :- is_BoolOpType(X,_). - -is_IntConLevel_('ICL_VAL'). -is_IntConLevel_('ICL_BND'). -is_IntConLevel_('ICL_DOM'). -is_IntConLevel_('ICL_DEF'). - -is_IntConLevel_('ICL_VAL','ICL_VAL'). -is_IntConLevel_('ICL_BND','ICL_BND'). -is_IntConLevel_('ICL_DOM','ICL_DOM'). -is_IntConLevel_('ICL_DEF','ICL_DEF'). - -is_IntConLevel(X,Y) :- nonvar(X), is_IntConLevel_(X,Y). -is_IntConLevel(X) :- is_IntConLevel(X,_). - -is_TaskType_('TT_FIXP'). -is_TaskType_('TT_FIXS'). -is_TaskType_('TT_FIXE'). - -is_TaskType_('TT_FIXP','TT_FIXP'). -is_TaskType_('TT_FIXS','TT_FIXS'). -is_TaskType_('TT_FIXE','TT_FIXE'). - -is_TaskType(X,Y) :- nonvar(X), is_TaskType_(X,Y). -is_TaskType(X) :- is_TaskType(X,_). - -is_ExtensionalPropKind_('EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY'). - -is_ExtensionalPropKind_('EPK_DEF','EPK_DEF'). -is_ExtensionalPropKind_('EPK_SPEED','EPK_SPEED'). -is_ExtensionalPropKind_('EPK_MEMORY','EPK_MEMORY'). - -is_ExtensionalPropKind(X,Y) :- nonvar(X), is_ExtensionalPropKind_(X,Y). -is_ExtensionalPropKind(X) :- is_ExtensionalPropKind(X,_). - -is_SetRelType_('SRT_EQ'). -is_SetRelType_('SRT_NQ'). -is_SetRelType_('SRT_SUB'). -is_SetRelType_('SRT_SUP'). -is_SetRelType_('SRT_DISJ'). -is_SetRelType_('SRT_CMPL'). -is_SetRelType_('SRT_LQ'). -is_SetRelType_('SRT_LE'). -is_SetRelType_('SRT_GQ'). -is_SetRelType_('SRT_GR'). - -is_SetRelType_('SRT_EQ','SRT_EQ'). -is_SetRelType_('SRT_NQ','SRT_NQ'). -is_SetRelType_('SRT_SUB','SRT_SUB'). -is_SetRelType_('SRT_SUP','SRT_SUP'). -is_SetRelType_('SRT_DISJ','SRT_DISJ'). -is_SetRelType_('SRT_CMPL','SRT_CMPL'). -is_SetRelType_('SRT_LQ','SRT_LQ'). -is_SetRelType_('SRT_LE','SRT_LE'). -is_SetRelType_('SRT_GQ','SRT_GQ'). -is_SetRelType_('SRT_GR','SRT_GR'). - -is_SetRelType(X,Y) :- nonvar(X), is_SetRelType_(X,Y). -is_SetRelType(X) :- is_SetRelType(X,_). - -is_SetOpType_('SOT_UNION'). -is_SetOpType_('SOT_DUNION'). -is_SetOpType_('SOT_INTER'). -is_SetOpType_('SOT_MINUS'). - -is_SetOpType_('SOT_UNION','SOT_UNION'). -is_SetOpType_('SOT_DUNION','SOT_DUNION'). -is_SetOpType_('SOT_INTER','SOT_INTER'). -is_SetOpType_('SOT_MINUS','SOT_MINUS'). - -is_SetOpType(X,Y) :- nonvar(X), is_SetOpType_(X,Y). -is_SetOpType(X) :- is_SetOpType(X,_). - -unary(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_458(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_unary_454(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4,X5),arg=1))). - -nvalues(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_345(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_347(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_341(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nvalues_343(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_max_302(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_max_300(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_FloatVar(X1,Y1) - -> (is_FloatVar(X2,Y2) - -> (is_FloatVar(X3,Y3) - -> gecode_constraint_max_301(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_Reify(X3,Y3) - -> gecode_constraint_max_305(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=2)))))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_dom_200(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_Reify(X5,Y5) - -> gecode_constraint_dom_209(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4,X5),arg=1))). - -convex(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_convex_91(Y0,Y1,Y2) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1,X2),arg=1))). - -nooverlap(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_nooverlap_329(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4),arg=1))). - -assign(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVar(X1,Y1) - -> (is_FloatAssign(X2,Y2) - -> gecode_constraint_assign_15(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_FloatVarArgs(X1,Y1) - -> (is_FloatAssign(X2,Y2) - -> gecode_constraint_assign_6(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_3(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_1(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_9(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> gecode_constraint_assign_17(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_12(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> gecode_constraint_assign_19(Y0,Y1,Y2) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=2)))))))))) - ; throw(gecode_argument_error(assign(X0,X1,X2),arg=1))). - -element(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_220(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_224(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_214(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_212(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_219(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_element_227(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_element_230(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_element_236(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_element_228(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> gecode_constraint_sequence_437(Y0,Y1) - ; throw(gecode_argument_error(sequence(X0,X1),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1),arg=1))). - -notMax(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMax_335(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMax(X0,X1,X2),arg=1))). - -ite(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_ite_256(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4),arg=1))). - -unary(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_unary_451(Y0,Y1,Y2) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(unary(X0,X1,X2),arg=1))). - -nroot(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_nroot_339(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(nroot(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(nroot(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(nroot(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(nroot(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(nroot(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_circuit_85(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_circuit_76(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3),arg=1))). - -dom(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_dom_199(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_198(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_Reify(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_202(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_Reify(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_194(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3)))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_dom_185(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_dom_181(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; (is_FloatVar(X1,Y1) - -> (is_FloatNum(X2,Y2) - -> (is_FloatNum(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_dom_187(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_dom_208(Y0,Y1,Y2,Y3,Y4) - ; (is_Reify(X4,Y4) - -> gecode_constraint_dom_210(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntSet(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_dom_206(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=2))))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3,X4),arg=1))). - -channel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_66(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_channel_62(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_channel_60(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> gecode_constraint_nooverlap_331(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; (is_IntConLevel(X7,Y7) - -> gecode_constraint_nooverlap_334(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=8)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_222(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> gecode_constraint_element_216(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntSetArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_218(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_SetVar(X6,Y6) - -> gecode_constraint_element_226(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_element_234(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_BoolVar(X6,Y6) - -> gecode_constraint_element_232(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=2))))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -max(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVarArgs(X1,Y1) - -> (is_FloatVar(X2,Y2) - -> gecode_constraint_max_298(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_299(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_max_304(Y0,Y1,Y2) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=2))))) - ; throw(gecode_argument_error(max(X0,X1,X2),arg=1))). - -unshare(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_unshare_463(Y0,Y1) - ; (is_BoolVarArgs(X1,Y1) - -> gecode_constraint_unshare_461(Y0,Y1) - ; throw(gecode_argument_error(unshare(X0,X1),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1),arg=1))). - -path(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_path_358(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_path_357(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4),arg=1))). - -branch(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> (is_Symmetries(X4,Y4) - -> (is_IntBranchFilter(X5,Y5) - -> (is_IntVarValPrint(X6,Y6) - -> gecode_constraint_branch_34(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> (is_Symmetries(X4,Y4) - -> (is_BoolBranchFilter(X5,Y5) - -> (is_BoolVarValPrint(X6,Y6) - -> gecode_constraint_branch_28(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarBranch(X2,Y2) - -> (is_SetValBranch(X3,Y3) - -> (is_Symmetries(X4,Y4) - -> (is_SetBranchFilter(X5,Y5) - -> (is_SetVarValPrint(X6,Y6) - -> gecode_constraint_branch_40(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=2))))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -mult(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mult_325(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) - ; (is_FloatVar(X1,Y1) - -> (is_FloatVar(X2,Y2) - -> (is_FloatVar(X3,Y3) - -> gecode_constraint_mult_324(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3),arg=1))). - -clause(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_89(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_clause_87(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4,X5),arg=1))). - -precede(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_precede_366(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3,X4),arg=1))). - -distinct(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_distinct_160(Y0,Y1) - ; throw(gecode_argument_error(distinct(X0,X1),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1),arg=1))). - -member(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_Reify(X3,Y3) - -> gecode_constraint_member_312(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_311(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_Reify(X3,Y3) - -> gecode_constraint_member_308(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_member_307(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3),arg=1))). - -mod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mod_323(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3,X4),arg=1))). - -cardinality(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_cardinality_57(Y0,Y1,Y2) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2),arg=1))). - -atmostOne(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_atmostOne_53(Y0,Y1,Y2) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(atmostOne(X0,X1,X2),arg=1))). - -channelSorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_channelSorted_73(Y0,Y1,Y2) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(channelSorted(X0,X1,X2),arg=1))). - -extensional(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_TupleSet(X2,Y2) - -> (is_ExtensionalPropKind(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_extensional_253(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_TupleSet(X2,Y2) - -> (is_ExtensionalPropKind(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_extensional_248(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3,X4),arg=1))). - -linear(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVarArgs(X1,Y1) - -> (is_FloatRelType(X2,Y2) - -> (is_FloatVar(X3,Y3) - -> gecode_constraint_linear_272(Y0,Y1,Y2,Y3) - ; (is_FloatNum(X3,Y3) - -> gecode_constraint_linear_270(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_258(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_262(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_linear_290(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_linear_294(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=2))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3),arg=1))). - -circuit(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> gecode_constraint_circuit_82(Y0,Y1) - ; throw(gecode_argument_error(circuit(X0,X1),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1),arg=1))). - -rel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVar(X1,Y1) - -> (is_FloatRelType(X2,Y2) - -> (is_FloatVal(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_406(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_FloatVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_408(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_422(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_rel_420(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_392(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_388(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_386(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_383(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_382(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_BoolVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_379(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_378(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_rel_375(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_rel_373(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_402(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_404(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_398(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_411(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_410(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_415(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_414(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_419(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_430(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_rel_432(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_372(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_rel_370(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=2)))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4),arg=1))). - -min(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_min_318(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_min_316(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_FloatVar(X1,Y1) - -> (is_FloatVar(X2,Y2) - -> (is_FloatVar(X3,Y3) - -> gecode_constraint_min_317(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_Reify(X3,Y3) - -> gecode_constraint_min_321(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=2)))))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3),arg=1))). - -cardinality(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_cardinality_56(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_cardinality_58(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(cardinality(X0,X1,X2,X3),arg=1))). - -count(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_109(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_106(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; (is_IntSet(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_count_100(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_count_99(Y0,Y1,Y2,Y3) - ; (is_IntArgs(X3,Y3) - -> gecode_constraint_count_96(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=3))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3),arg=1))). - -sqrt(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqrt_447(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) - ; (is_FloatVar(X1,Y1) - -> (is_FloatVar(X2,Y2) - -> gecode_constraint_sqrt_446(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_157(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_155(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_153(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_151(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_149(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_147(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_145(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_cumulatives_143(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -nvalues(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_344(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_346(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_nvalues_340(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_nvalues_342(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(nvalues(X0,X1,X2,X3),arg=1))). - -binpacking(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_binpacking_54(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3),arg=1))). - -linear(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_Reify(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_285(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_Reify(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_289(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_Reify(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_277(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_Reify(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_linear_281(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -abs(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_abs_52(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(abs(X0,X1,X2,X3),arg=1))). - -convex(X0,X1) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> gecode_constraint_convex_90(Y0,Y1) - ; throw(gecode_argument_error(convex(X0,X1),arg=2))) - ; throw(gecode_argument_error(convex(X0,X1),arg=1))). - -div(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_div_163(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) - ; (is_FloatVar(X1,Y1) - -> (is_FloatVar(X2,Y2) - -> (is_FloatVar(X3,Y3) - -> gecode_constraint_div_162(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3),arg=1))). - -rel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_412(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_416(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntSet(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_395(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_396(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_384(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_380(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; (is_BoolOpType(X2,Y2) - -> (is_BoolVar(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_376(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_rel_374(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_SetOpType(X2,Y2) - -> (is_IntSet(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_425(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_426(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_SetVar(X3,Y3) - -> (is_SetRelType(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_rel_427(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_SetVar(X5,Y5) - -> gecode_constraint_rel_428(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=2)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3,X4,X5),arg=1))). - -weights(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_weights_465(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(weights(X0,X1,X2,X3,X4),arg=1))). - -max(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_max_303(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(max(X0,X1,X2,X3,X4),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_path_353(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -unary(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> gecode_constraint_unary_459(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_unary_455(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_unary_449(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_unary_452(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3),arg=1))). - -nroot(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_nroot_338(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=3))) - ; (is_FloatVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_FloatVar(X3,Y3) - -> gecode_constraint_nroot_337(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(nroot(X0,X1,X2,X3),arg=1))). - -sorted(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_sorted_440(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_80(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_circuit_77(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_circuit_74(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4),arg=1))). - -dom(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVar(X1,Y1) - -> (is_FloatVal(X2,Y2) - -> (is_Reify(X3,Y3) - -> gecode_constraint_dom_189(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; (is_FloatNum(X2,Y2) - -> (is_FloatNum(X3,Y3) - -> gecode_constraint_dom_186(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3)))) - ; (is_FloatVarArgs(X1,Y1) - -> (is_FloatNum(X2,Y2) - -> (is_FloatNum(X3,Y3) - -> gecode_constraint_dom_172(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_170(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_168(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_180(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_179(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_177(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_175(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))))) - ; (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_197(Y0,Y1,Y2,Y3) - ; (is_Reify(X3,Y3) - -> gecode_constraint_dom_201(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_196(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))))) - ; (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_204(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_Reify(X3,Y3) - -> gecode_constraint_dom_193(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_dom_192(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_184(Y0,Y1,Y2,Y3) - ; (is_IntSet(X3,Y3) - -> gecode_constraint_dom_183(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_dom_207(Y0,Y1,Y2,Y3) - ; (is_IntSet(X3,Y3) - -> gecode_constraint_dom_205(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=2)))))))))) - ; throw(gecode_argument_error(dom(X0,X1,X2,X3),arg=1))). - -abs(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_abs_51(Y0,Y1,Y2) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) - ; (is_FloatVar(X1,Y1) - -> (is_FloatVar(X2,Y2) - -> gecode_constraint_abs_50(Y0,Y1,Y2) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(abs(X0,X1,X2),arg=1))). - -channel(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_channel_68(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_channel_63(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4),arg=1))). - -assign(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVarArgs(X1,Y1) - -> (is_FloatAssign(X2,Y2) - -> (is_FloatBranchFilter(X3,Y3) - -> (is_FloatVarValPrint(X4,Y4) - -> gecode_constraint_assign_8(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> (is_BoolBranchFilter(X3,Y3) - -> (is_BoolVarValPrint(X4,Y4) - -> gecode_constraint_assign_5(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> (is_IntBranchFilter(X3,Y3) - -> (is_IntVarValPrint(X4,Y4) - -> gecode_constraint_assign_11(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> (is_SetBranchFilter(X3,Y3) - -> (is_SetVarValPrint(X4,Y4) - -> gecode_constraint_assign_14(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=2)))))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3,X4),arg=1))). - -rel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_399(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> gecode_constraint_rel_389(Y0,Y1,Y2) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(rel(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_path_356(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3),arg=1))). - -branch(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVar(X1,Y1) - -> (is_FloatValBranch(X2,Y2) - -> (is_FloatVarValPrint(X3,Y3) - -> gecode_constraint_branch_45(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_FloatVarArgs(X1,Y1) - -> (is_FloatVarBranch(X2,Y2) - -> (is_FloatValBranch(X3,Y3) - -> gecode_constraint_branch_29(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_23(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> (is_BoolVarValPrint(X3,Y3) - -> gecode_constraint_branch_22(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> gecode_constraint_branch_35(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> (is_IntVarValPrint(X3,Y3) - -> gecode_constraint_branch_47(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarBranch(X2,Y2) - -> (is_SetValBranch(X3,Y3) - -> gecode_constraint_branch_41(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetValBranch(X2,Y2) - -> (is_SetVarValPrint(X3,Y3) - -> gecode_constraint_branch_49(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=2)))))))))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3),arg=1))). - -mult(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_mult_326(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(mult(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_81(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_circuit_78(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_circuit_75(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5),arg=1))). - -clause(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_clause_88(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolVar(X4,Y4) - -> gecode_constraint_clause_86(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(clause(X0,X1,X2,X3,X4),arg=1))). - -precede(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_368(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_precede_365(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_precede_364(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2,X3),arg=1))). - -channel(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_channel_69(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(channel(X0,X1,X2,X3,X4,X5),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_126(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_129(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_122(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_125(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_119(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_138(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_141(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> gecode_constraint_cumulative_134(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_137(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_cumulative_131(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -distinct(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_distinct_161(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_distinct_158(Y0,Y1,Y2) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(distinct(X0,X1,X2),arg=1))). - -member(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_Reify(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_313(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> (is_Reify(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_member_309(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2,X3,X4),arg=1))). - -mod(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_mod_322(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(mod(X0,X1,X2,X3),arg=1))). - -sqr(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_sqr_444(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) - ; (is_FloatVar(X1,Y1) - -> (is_FloatVar(X2,Y2) - -> gecode_constraint_sqr_443(Y0,Y1,Y2) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(sqr(X0,X1,X2),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_436(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_sequence_434(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_354(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_path_351(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> gecode_constraint_path_348(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=6)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -divmod(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_divmod_166(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4,X5),arg=1))). - -sorted(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_sorted_441(Y0,Y1,Y2) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2),arg=1))). - -extensional(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_TupleSet(X2,Y2) - -> (is_ExtensionalPropKind(X3,Y3) - -> gecode_constraint_extensional_252(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=4))) - ; (is_DFA(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_extensional_255(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_TupleSet(X2,Y2) - -> (is_ExtensionalPropKind(X3,Y3) - -> gecode_constraint_extensional_247(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=4))) - ; (is_DFA(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_extensional_250(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=3)))) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(extensional(X0,X1,X2,X3),arg=1))). - -circuit(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_circuit_84(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_circuit_83(Y0,Y1,Y2) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(circuit(X0,X1,X2),arg=1))). - -channel(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_71(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_61(Y0,Y1,Y2) - ; (is_SetVar(X2,Y2) - -> gecode_constraint_channel_64(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_channel_59(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> gecode_constraint_channel_67(Y0,Y1,Y2) - ; (is_IntVarArgs(X2,Y2) - -> gecode_constraint_channel_65(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_FloatVar(X2,Y2) - -> gecode_constraint_channel_72(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> gecode_constraint_channel_70(Y0,Y1,Y2) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=2)))))))) - ; throw(gecode_argument_error(channel(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_92(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_94(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_110(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_112(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_102(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_104(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_101(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4)))) - ; (is_IntSetArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_97(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_count_107(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_count_114(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_count_116(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=3)))))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4),arg=1))). - -cumulatives(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_156(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_154(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_152(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_150(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_148(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_146(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_144(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; (is_IntArgs(X5,Y5) - -> (is_IntArgs(X6,Y6) - -> (is_bool(X7,Y7) - -> gecode_constraint_cumulatives_142(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=6)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=4)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulatives(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -binpacking(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_binpacking_55(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(binpacking(X0,X1,X2,X3,X4),arg=1))). - -extensional(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_TupleSet(X2,Y2) - -> gecode_constraint_extensional_251(Y0,Y1,Y2) - ; (is_DFA(X2,Y2) - -> gecode_constraint_extensional_254(Y0,Y1,Y2) - ; throw(gecode_argument_error(extensional(X0,X1,X2),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_TupleSet(X2,Y2) - -> gecode_constraint_extensional_246(Y0,Y1,Y2) - ; (is_DFA(X2,Y2) - -> gecode_constraint_extensional_249(Y0,Y1,Y2) - ; throw(gecode_argument_error(extensional(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(extensional(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(extensional(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_293(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_297(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_261(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_265(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_FloatValArgs(X1,Y1) - -> (is_FloatVarArgs(X2,Y2) - -> (is_FloatRelType(X3,Y3) - -> (is_FloatVar(X4,Y4) - -> (is_Reify(X5,Y5) - -> gecode_constraint_linear_269(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_FloatNum(X4,Y4) - -> (is_Reify(X5,Y5) - -> gecode_constraint_linear_267(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_Reify(X5,Y5) - -> gecode_constraint_linear_284(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_283(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_Reify(X5,Y5) - -> gecode_constraint_linear_288(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_287(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_Reify(X5,Y5) - -> gecode_constraint_linear_276(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_275(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; (is_IntVar(X4,Y4) - -> (is_Reify(X5,Y5) - -> gecode_constraint_linear_280(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_linear_279(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=2)))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4,X5),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> gecode_constraint_nooverlap_333(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_nooverlap_328(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=3)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -div(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_div_164(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(div(X0,X1,X2,X3,X4),arg=1))). - -sqr(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqr_445(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqr(X0,X1,X2,X3),arg=1))). - -path(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_355(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_IntVarArgs(X6,Y6) - -> (is_IntVar(X7,Y7) - -> gecode_constraint_path_352(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_path_349(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -unary(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_TaskTypeArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_457(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_460(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_BoolVarArgs(X4,Y4) - -> gecode_constraint_unary_453(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_456(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_BoolVarArgs(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_unary_450(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(unary(X0,X1,X2,X3,X4),arg=1))). - -sorted(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> gecode_constraint_sorted_439(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_sorted_442(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sorted(X0,X1,X2,X3),arg=1))). - -element(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_223(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_217(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_int(X5,Y5) - -> (is_IntVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_235(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; (is_BoolVar(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_element_233(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=7)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=2))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -assign(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVar(X1,Y1) - -> (is_FloatAssign(X2,Y2) - -> (is_FloatVarValPrint(X3,Y3) - -> gecode_constraint_assign_16(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) - ; (is_FloatVarArgs(X1,Y1) - -> (is_FloatAssign(X2,Y2) - -> (is_FloatBranchFilter(X3,Y3) - -> gecode_constraint_assign_7(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> (is_BoolBranchFilter(X3,Y3) - -> gecode_constraint_assign_4(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> (is_BoolVarValPrint(X3,Y3) - -> gecode_constraint_assign_2(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> (is_IntBranchFilter(X3,Y3) - -> gecode_constraint_assign_10(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntAssign(X2,Y2) - -> (is_IntVarValPrint(X3,Y3) - -> gecode_constraint_assign_18(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> (is_SetBranchFilter(X3,Y3) - -> gecode_constraint_assign_13(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetAssign(X2,Y2) - -> (is_SetVarValPrint(X3,Y3) - -> gecode_constraint_assign_20(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=2)))))))))) - ; throw(gecode_argument_error(assign(X0,X1,X2,X3),arg=1))). - -element(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_221(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_225(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_215(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_213(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_244(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_242(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_240(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> gecode_constraint_element_238(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3)))))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_int(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_231(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_237(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; (is_BoolVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_element_229(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=4))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=2)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4),arg=1))). - -sequence(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_sequence_438(Y0,Y1,Y2) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(sequence(X0,X1,X2),arg=1))). - -branch(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVarArgs(X1,Y1) - -> (is_FloatVarBranch(X2,Y2) - -> (is_FloatValBranch(X3,Y3) - -> (is_FloatBranchFilter(X4,Y4) - -> gecode_constraint_branch_30(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> (is_Symmetries(X4,Y4) - -> gecode_constraint_branch_26(Y0,Y1,Y2,Y3,Y4) - ; (is_BoolBranchFilter(X4,Y4) - -> gecode_constraint_branch_24(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> (is_Symmetries(X4,Y4) - -> gecode_constraint_branch_32(Y0,Y1,Y2,Y3,Y4) - ; (is_IntBranchFilter(X4,Y4) - -> gecode_constraint_branch_36(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarBranch(X2,Y2) - -> (is_SetValBranch(X3,Y3) - -> (is_SetBranchFilter(X4,Y4) - -> gecode_constraint_branch_42(Y0,Y1,Y2,Y3,Y4) - ; (is_Symmetries(X4,Y4) - -> gecode_constraint_branch_38(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=2)))))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4),arg=1))). - -circuit(X0,X1,X2,X3,X4,X5,X6) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVar(X5,Y5) - -> (is_IntConLevel(X6,Y6) - -> gecode_constraint_circuit_79(Y0,Y1,Y2,Y3,Y4,Y5,Y6) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=7))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=6))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=5))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=4))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=3))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=2))) - ; throw(gecode_argument_error(circuit(X0,X1,X2,X3,X4,X5,X6),arg=1))). - -pow(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_pow_361(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=3))) - ; (is_FloatVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_FloatVar(X3,Y3) - -> gecode_constraint_pow_360(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=2)))) - ; throw(gecode_argument_error(pow(X0,X1,X2,X3),arg=1))). - -precede(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_367(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> gecode_constraint_precede_363(Y0,Y1,Y2) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(precede(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_128(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_124(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_118(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_121(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_140(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> gecode_constraint_cumulative_136(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_cumulative_130(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_cumulative_133(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=4)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5),arg=1))). - -distinct(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_distinct_159(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(distinct(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVarArgs(X1,Y1) - -> (is_FloatVar(X2,Y2) - -> gecode_constraint_min_314(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_315(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_min_320(Y0,Y1,Y2) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=2))))) - ; throw(gecode_argument_error(min(X0,X1,X2),arg=1))). - -sqrt(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntConLevel(X3,Y3) - -> gecode_constraint_sqrt_448(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=2))) - ; throw(gecode_argument_error(sqrt(X0,X1,X2,X3),arg=1))). - -sequence(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_435(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntSet(X2,Y2) - -> (is_int(X3,Y3) - -> (is_int(X4,Y4) - -> (is_int(X5,Y5) - -> gecode_constraint_sequence_433(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(sequence(X0,X1,X2,X3,X4,X5),arg=1))). - -unshare(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_464(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntConLevel(X2,Y2) - -> gecode_constraint_unshare_462(Y0,Y1,Y2) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(unshare(X0,X1,X2),arg=1))). - -path(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_path_359(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntVar(X5,Y5) - -> gecode_constraint_path_350(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=2)))) - ; throw(gecode_argument_error(path(X0,X1,X2,X3,X4,X5),arg=1))). - -divmod(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> gecode_constraint_divmod_165(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(divmod(X0,X1,X2,X3,X4),arg=1))). - -branch(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVarArgs(X1,Y1) - -> (is_FloatVarBranch(X2,Y2) - -> (is_FloatValBranch(X3,Y3) - -> (is_FloatBranchFilter(X4,Y4) - -> (is_FloatVarValPrint(X5,Y5) - -> gecode_constraint_branch_31(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> (is_Symmetries(X4,Y4) - -> (is_BoolBranchFilter(X5,Y5) - -> gecode_constraint_branch_27(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_BoolBranchFilter(X4,Y4) - -> (is_BoolVarValPrint(X5,Y5) - -> gecode_constraint_branch_25(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntVarBranch(X2,Y2) - -> (is_IntValBranch(X3,Y3) - -> (is_Symmetries(X4,Y4) - -> (is_IntBranchFilter(X5,Y5) - -> gecode_constraint_branch_33(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntBranchFilter(X4,Y4) - -> (is_IntVarValPrint(X5,Y5) - -> gecode_constraint_branch_37(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=3))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarBranch(X2,Y2) - -> (is_SetValBranch(X3,Y3) - -> (is_SetBranchFilter(X4,Y4) - -> (is_SetVarValPrint(X5,Y5) - -> gecode_constraint_branch_43(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_Symmetries(X4,Y4) - -> (is_SetBranchFilter(X5,Y5) - -> gecode_constraint_branch_39(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=2)))))) - ; throw(gecode_argument_error(branch(X0,X1,X2,X3,X4,X5),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntVarArgs(X5,Y5) - -> (is_IntVarArgs(X6,Y6) - -> (is_BoolVarArgs(X7,Y7) - -> (is_IntConLevel(X8,Y8) - -> gecode_constraint_nooverlap_332(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=9))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=8))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=7))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=6))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5,X6,X7,X8),arg=1))). - -cumulative(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_120(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> gecode_constraint_cumulative_132(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4),arg=1))). - -member(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_member_310(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_member_306(Y0,Y1,Y2) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=2)))) - ; throw(gecode_argument_error(member(X0,X1,X2),arg=1))). - -count(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_111(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_113(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVar(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_115(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_117(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSet(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_103(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_105(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_93(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_count_95(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=5)))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2,X3,X4,X5),arg=1))). - -pow(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_pow_362(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(pow(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(pow(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(pow(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(pow(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(pow(X0,X1,X2,X3,X4),arg=1))). - -notMin(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> gecode_constraint_notMin_336(Y0,Y1,Y2) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(notMin(X0,X1,X2),arg=1))). - -cumulative(X0,X1,X2,X3,X4,X5,X6,X7) :- - (is_Space_or_Clause(X0,Y0) - -> (is_int(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_127(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_123(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; (is_IntVar(X1,Y1) - -> (is_TaskTypeArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_139(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntVarArgs(X4,Y4) - -> (is_IntArgs(X5,Y5) - -> (is_BoolVarArgs(X6,Y6) - -> (is_IntConLevel(X7,Y7) - -> gecode_constraint_cumulative_135(Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=8))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=7))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=6))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=5))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=4))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=3)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=2)))) - ; throw(gecode_argument_error(cumulative(X0,X1,X2,X3,X4,X5,X6,X7),arg=1))). - -branch(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_46(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntValBranch(X2,Y2) - -> gecode_constraint_branch_21(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_FloatVar(X1,Y1) - -> (is_FloatValBranch(X2,Y2) - -> gecode_constraint_branch_44(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetValBranch(X2,Y2) - -> gecode_constraint_branch_48(Y0,Y1,Y2) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=2)))))) - ; throw(gecode_argument_error(branch(X0,X1,X2),arg=1))). - -dom(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVar(X1,Y1) - -> (is_FloatVal(X2,Y2) - -> gecode_constraint_dom_188(Y0,Y1,Y2) - ; (is_FloatVar(X2,Y2) - -> gecode_constraint_dom_190(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; (is_FloatVarArgs(X1,Y1) - -> (is_FloatVarArgs(X2,Y2) - -> gecode_constraint_dom_171(Y0,Y1,Y2) - ; (is_FloatVal(X2,Y2) - -> gecode_constraint_dom_173(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3)))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> gecode_constraint_dom_169(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_BoolVar(X2,Y2) - -> gecode_constraint_dom_167(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_178(Y0,Y1,Y2) - ; (is_IntVarArgs(X2,Y2) - -> gecode_constraint_dom_176(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_174(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))))) - ; (is_IntVar(X1,Y1) - -> (is_int(X2,Y2) - -> gecode_constraint_dom_195(Y0,Y1,Y2) - ; (is_IntVar(X2,Y2) - -> gecode_constraint_dom_203(Y0,Y1,Y2) - ; (is_IntSet(X2,Y2) - -> gecode_constraint_dom_191(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))))) - ; (is_SetVarArgs(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> gecode_constraint_dom_182(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))) - ; (is_SetVar(X1,Y1) - -> (is_SetVar(X2,Y2) - -> gecode_constraint_dom_211(Y0,Y1,Y2) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=3))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=2)))))))))) - ; throw(gecode_argument_error(dom(X0,X1,X2),arg=1))). - -linear(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_linear_292(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_291(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_linear_296(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_295(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_FloatVarArgs(X1,Y1) - -> (is_FloatRelType(X2,Y2) - -> (is_FloatVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_linear_273(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5))) - ; (is_FloatNum(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_linear_271(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_linear_260(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_259(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; (is_IntVar(X3,Y3) - -> (is_Reify(X4,Y4) - -> gecode_constraint_linear_264(Y0,Y1,Y2,Y3,Y4) - ; (is_IntConLevel(X4,Y4) - -> gecode_constraint_linear_263(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_FloatValArgs(X1,Y1) - -> (is_FloatVarArgs(X2,Y2) - -> (is_FloatRelType(X3,Y3) - -> (is_FloatVar(X4,Y4) - -> gecode_constraint_linear_268(Y0,Y1,Y2,Y3,Y4) - ; (is_FloatNum(X4,Y4) - -> gecode_constraint_linear_266(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3))) - ; (is_IntArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_282(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_286(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; (is_BoolVarArgs(X2,Y2) - -> (is_IntRelType(X3,Y3) - -> (is_int(X4,Y4) - -> gecode_constraint_linear_274(Y0,Y1,Y2,Y3,Y4) - ; (is_IntVar(X4,Y4) - -> gecode_constraint_linear_278(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=5)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=3)))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=2))))))) - ; throw(gecode_argument_error(linear(X0,X1,X2,X3,X4),arg=1))). - -nooverlap(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntArgs(X2,Y2) - -> (is_IntVarArgs(X3,Y3) - -> (is_IntArgs(X4,Y4) - -> (is_BoolVarArgs(X5,Y5) - -> gecode_constraint_nooverlap_327(Y0,Y1,Y2,Y3,Y4,Y5) - ; (is_IntConLevel(X5,Y5) - -> gecode_constraint_nooverlap_330(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=6)))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(nooverlap(X0,X1,X2,X3,X4,X5),arg=1))). - -element(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_245(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_243(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntSetArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_241(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; (is_IntArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> (is_SetVar(X4,Y4) - -> (is_IntSet(X5,Y5) - -> gecode_constraint_element_239(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=3)))))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(element(X0,X1,X2,X3,X4,X5),arg=1))). - -rel(X0,X1,X2,X3) :- - (is_Space_or_Clause(X0,Y0) - -> (is_FloatVar(X1,Y1) - -> (is_FloatRelType(X2,Y2) - -> (is_FloatVal(X3,Y3) - -> gecode_constraint_rel_405(Y0,Y1,Y2,Y3) - ; (is_FloatVar(X3,Y3) - -> gecode_constraint_rel_407(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_SetOpType(X1,Y1) - -> (is_SetVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_423(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_IntVarArgs(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_421(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_FloatVarArgs(X1,Y1) - -> (is_FloatRelType(X2,Y2) - -> (is_FloatVal(X3,Y3) - -> gecode_constraint_rel_393(Y0,Y1,Y2,Y3) - ; (is_FloatVar(X3,Y3) - -> gecode_constraint_rel_394(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_391(Y0,Y1,Y2,Y3) - ; (is_BoolVarArgs(X3,Y3) - -> gecode_constraint_rel_387(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_385(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_390(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_BoolVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_381(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_377(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_IntVarArgs(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_401(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_403(Y0,Y1,Y2,Y3) - ; (is_IntVarArgs(X3,Y3) - -> gecode_constraint_rel_397(Y0,Y1,Y2,Y3) - ; (is_IntConLevel(X3,Y3) - -> gecode_constraint_rel_400(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; (is_IntVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_409(Y0,Y1,Y2,Y3) - ; (is_IntVar(X3,Y3) - -> gecode_constraint_rel_413(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_417(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))))) - ; (is_SetRelType(X2,Y2) - -> (is_SetVar(X3,Y3) - -> gecode_constraint_rel_418(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_SetVar(X1,Y1) - -> (is_IntRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_424(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4))) - ; (is_SetRelType(X2,Y2) - -> (is_IntVar(X3,Y3) - -> gecode_constraint_rel_429(Y0,Y1,Y2,Y3) - ; (is_SetVar(X3,Y3) - -> gecode_constraint_rel_431(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3)))) - ; (is_BoolOpType(X1,Y1) - -> (is_BoolVarArgs(X2,Y2) - -> (is_int(X3,Y3) - -> gecode_constraint_rel_371(Y0,Y1,Y2,Y3) - ; (is_BoolVar(X3,Y3) - -> gecode_constraint_rel_369(Y0,Y1,Y2,Y3) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=4)))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=3))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=2))))))))))) - ; throw(gecode_argument_error(rel(X0,X1,X2,X3),arg=1))). - -min(X0,X1,X2,X3,X4) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntConLevel(X4,Y4) - -> gecode_constraint_min_319(Y0,Y1,Y2,Y3,Y4) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=5))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=4))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=3))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=2))) - ; throw(gecode_argument_error(min(X0,X1,X2,X3,X4),arg=1))). - -count(X0,X1,X2) :- - (is_Space_or_Clause(X0,Y0) - -> (is_IntVarArgs(X1,Y1) - -> (is_IntVarArgs(X2,Y2) - -> gecode_constraint_count_108(Y0,Y1,Y2) - ; (is_IntSetArgs(X2,Y2) - -> gecode_constraint_count_98(Y0,Y1,Y2) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=3)))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=2))) - ; throw(gecode_argument_error(count(X0,X1,X2),arg=1))). - -ite(X0,X1,X2,X3,X4,X5) :- - (is_Space_or_Clause(X0,Y0) - -> (is_BoolVar(X1,Y1) - -> (is_IntVar(X2,Y2) - -> (is_IntVar(X3,Y3) - -> (is_IntVar(X4,Y4) - -> (is_IntConLevel(X5,Y5) - -> gecode_constraint_ite_257(Y0,Y1,Y2,Y3,Y4,Y5) - ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=6))) - ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=5))) - ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=4))) - ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=3))) - ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=2))) - ; throw(gecode_argument_error(ite(X0,X1,X2,X3,X4,X5),arg=1))). - diff --git a/library/gecode/4.2.0/gecode_yap_cc_forward_auto_generated.icc b/library/gecode/4.2.0/gecode_yap_cc_forward_auto_generated.icc deleted file mode 100644 index cb696e86a..000000000 --- a/library/gecode/4.2.0/gecode_yap_cc_forward_auto_generated.icc +++ /dev/null @@ -1,28 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static RestartMode gecode_RestartMode_from_term(YAP_Term); -static FloatRelType gecode_FloatRelType_from_term(YAP_Term); -static ReifyMode gecode_ReifyMode_from_term(YAP_Term); -static IntRelType gecode_IntRelType_from_term(YAP_Term); -static BoolOpType gecode_BoolOpType_from_term(YAP_Term); -static IntConLevel gecode_IntConLevel_from_term(YAP_Term); -static TaskType gecode_TaskType_from_term(YAP_Term); -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term); -static SetRelType gecode_SetRelType_from_term(YAP_Term); -static SetOpType gecode_SetOpType_from_term(YAP_Term); diff --git a/library/gecode/4.2.0/gecode_yap_cc_impl_auto_generated.icc b/library/gecode/4.2.0/gecode_yap_cc_impl_auto_generated.icc deleted file mode 100644 index b264e3b68..000000000 --- a/library/gecode/4.2.0/gecode_yap_cc_impl_auto_generated.icc +++ /dev/null @@ -1,5232 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -static YAP_Term gecode_RM_NONE; -static YAP_Term gecode_RM_CONSTANT; -static YAP_Term gecode_RM_LINEAR; -static YAP_Term gecode_RM_LUBY; -static YAP_Term gecode_RM_GEOMETRIC; - -static RestartMode gecode_RestartMode_from_term(YAP_Term X) -{ - if (X==gecode_RM_NONE) return RM_NONE; - if (X==gecode_RM_CONSTANT) return RM_CONSTANT; - if (X==gecode_RM_LINEAR) return RM_LINEAR; - if (X==gecode_RM_LUBY) return RM_LUBY; - if (X==gecode_RM_GEOMETRIC) return RM_GEOMETRIC; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_FRT_EQ; -static YAP_Term gecode_FRT_NQ; -static YAP_Term gecode_FRT_LQ; -static YAP_Term gecode_FRT_LE; -static YAP_Term gecode_FRT_GQ; -static YAP_Term gecode_FRT_GR; - -static FloatRelType gecode_FloatRelType_from_term(YAP_Term X) -{ - if (X==gecode_FRT_EQ) return FRT_EQ; - if (X==gecode_FRT_NQ) return FRT_NQ; - if (X==gecode_FRT_LQ) return FRT_LQ; - if (X==gecode_FRT_LE) return FRT_LE; - if (X==gecode_FRT_GQ) return FRT_GQ; - if (X==gecode_FRT_GR) return FRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_RM_EQV; -static YAP_Term gecode_RM_IMP; -static YAP_Term gecode_RM_PMI; - -static ReifyMode gecode_ReifyMode_from_term(YAP_Term X) -{ - if (X==gecode_RM_EQV) return RM_EQV; - if (X==gecode_RM_IMP) return RM_IMP; - if (X==gecode_RM_PMI) return RM_PMI; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_IRT_EQ; -static YAP_Term gecode_IRT_NQ; -static YAP_Term gecode_IRT_LQ; -static YAP_Term gecode_IRT_LE; -static YAP_Term gecode_IRT_GQ; -static YAP_Term gecode_IRT_GR; - -static IntRelType gecode_IntRelType_from_term(YAP_Term X) -{ - if (X==gecode_IRT_EQ) return IRT_EQ; - if (X==gecode_IRT_NQ) return IRT_NQ; - if (X==gecode_IRT_LQ) return IRT_LQ; - if (X==gecode_IRT_LE) return IRT_LE; - if (X==gecode_IRT_GQ) return IRT_GQ; - if (X==gecode_IRT_GR) return IRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_BOT_AND; -static YAP_Term gecode_BOT_OR; -static YAP_Term gecode_BOT_IMP; -static YAP_Term gecode_BOT_EQV; -static YAP_Term gecode_BOT_XOR; - -static BoolOpType gecode_BoolOpType_from_term(YAP_Term X) -{ - if (X==gecode_BOT_AND) return BOT_AND; - if (X==gecode_BOT_OR) return BOT_OR; - if (X==gecode_BOT_IMP) return BOT_IMP; - if (X==gecode_BOT_EQV) return BOT_EQV; - if (X==gecode_BOT_XOR) return BOT_XOR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_ICL_VAL; -static YAP_Term gecode_ICL_BND; -static YAP_Term gecode_ICL_DOM; -static YAP_Term gecode_ICL_DEF; - -static IntConLevel gecode_IntConLevel_from_term(YAP_Term X) -{ - if (X==gecode_ICL_VAL) return ICL_VAL; - if (X==gecode_ICL_BND) return ICL_BND; - if (X==gecode_ICL_DOM) return ICL_DOM; - if (X==gecode_ICL_DEF) return ICL_DEF; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_TT_FIXP; -static YAP_Term gecode_TT_FIXS; -static YAP_Term gecode_TT_FIXE; - -static TaskType gecode_TaskType_from_term(YAP_Term X) -{ - if (X==gecode_TT_FIXP) return TT_FIXP; - if (X==gecode_TT_FIXS) return TT_FIXS; - if (X==gecode_TT_FIXE) return TT_FIXE; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_EPK_DEF; -static YAP_Term gecode_EPK_SPEED; -static YAP_Term gecode_EPK_MEMORY; - -static ExtensionalPropKind gecode_ExtensionalPropKind_from_term(YAP_Term X) -{ - if (X==gecode_EPK_DEF) return EPK_DEF; - if (X==gecode_EPK_SPEED) return EPK_SPEED; - if (X==gecode_EPK_MEMORY) return EPK_MEMORY; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SRT_EQ; -static YAP_Term gecode_SRT_NQ; -static YAP_Term gecode_SRT_SUB; -static YAP_Term gecode_SRT_SUP; -static YAP_Term gecode_SRT_DISJ; -static YAP_Term gecode_SRT_CMPL; -static YAP_Term gecode_SRT_LQ; -static YAP_Term gecode_SRT_LE; -static YAP_Term gecode_SRT_GQ; -static YAP_Term gecode_SRT_GR; - -static SetRelType gecode_SetRelType_from_term(YAP_Term X) -{ - if (X==gecode_SRT_EQ) return SRT_EQ; - if (X==gecode_SRT_NQ) return SRT_NQ; - if (X==gecode_SRT_SUB) return SRT_SUB; - if (X==gecode_SRT_SUP) return SRT_SUP; - if (X==gecode_SRT_DISJ) return SRT_DISJ; - if (X==gecode_SRT_CMPL) return SRT_CMPL; - if (X==gecode_SRT_LQ) return SRT_LQ; - if (X==gecode_SRT_LE) return SRT_LE; - if (X==gecode_SRT_GQ) return SRT_GQ; - if (X==gecode_SRT_GR) return SRT_GR; - cerr << "this should never happen" << endl; exit(1); -} - -static YAP_Term gecode_SOT_UNION; -static YAP_Term gecode_SOT_DUNION; -static YAP_Term gecode_SOT_INTER; -static YAP_Term gecode_SOT_MINUS; - -static SetOpType gecode_SetOpType_from_term(YAP_Term X) -{ - if (X==gecode_SOT_UNION) return SOT_UNION; - if (X==gecode_SOT_DUNION) return SOT_DUNION; - if (X==gecode_SOT_INTER) return SOT_INTER; - if (X==gecode_SOT_MINUS) return SOT_MINUS; - cerr << "this should never happen" << endl; exit(1); -} - -static int gecode_constraint_unary_458(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unary_454(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - unary(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nvalues_345(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_347(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_341(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nvalues_343(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nvalues(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_302(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_300(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_301(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); - FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_max_305(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - max(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_200(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_dom_209(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - dom(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_convex_91(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - convex(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_nooverlap_329(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - nooverlap(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_assign_15(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatAssign X3 = gecode_FloatAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_6(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatAssign X3 = gecode_FloatAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_3(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_1(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_9(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_17(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_12(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_assign_19(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - assign(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_element_220(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_224(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_214(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_212(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_219(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_227(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_230(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_236(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_228(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - element(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_437(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - sequence(*space,X2); - return TRUE; -} - -static int gecode_constraint_notMax_335(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMax(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_ite_256(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - ite(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_451(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - unary(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_nroot_339(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - nroot(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_85(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_76(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - circuit(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_199(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_198(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_202(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_194(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_185(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_181(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_187(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatNum X3 = gecode_FloatNum_from_term(YAP_ARG3); - FloatNum X4 = gecode_FloatNum_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_208(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_210(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_206(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - dom(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_66(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_62(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_60(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - channel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nooverlap_331(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_nooverlap_334(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_222(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_216(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_218(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSetArgs X2 = gecode_IntSetArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_226(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - SetVar X7 = gecode_SetVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_234(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_element_232(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - element(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_max_298(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_max_299(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_max_304(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - max(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_463(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_unshare_461(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - unshare(*space,X2); - return TRUE; -} - -static int gecode_constraint_path_358(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_357(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - path(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_branch_34(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); - IntBranchFilter X6 = gecode_IntBranchFilter_from_term(YAP_ARG6); - IntVarValPrint X7 = gecode_IntVarValPrint_from_term(YAP_ARG7); - branch(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_branch_28(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); - BoolBranchFilter X6 = gecode_BoolBranchFilter_from_term(YAP_ARG6); - BoolVarValPrint X7 = gecode_BoolVarValPrint_from_term(YAP_ARG7); - branch(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_branch_40(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); - SetBranchFilter X6 = gecode_SetBranchFilter_from_term(YAP_ARG6); - SetVarValPrint X7 = gecode_SetVarValPrint_from_term(YAP_ARG7); - branch(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_mult_325(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mult(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mult_324(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); - FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); - mult(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_clause_89(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_87(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - clause(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_precede_366(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - precede(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_distinct_160(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - distinct(*space,X2); - return TRUE; -} - -static int gecode_constraint_member_312(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_311(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_308(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_member_307(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - member(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mod_323(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cardinality_57(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - cardinality(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_atmostOne_53(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - atmostOne(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channelSorted_73(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channelSorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_extensional_253(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); - ExtensionalPropKind X4 = gecode_ExtensionalPropKind_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - extensional(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_extensional_248(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); - ExtensionalPropKind X4 = gecode_ExtensionalPropKind_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - extensional(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_272(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); - FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_270(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); - FloatNum X4 = gecode_FloatNum_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_258(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_262(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_290(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_294(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - linear(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_82(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - circuit(*space,X2); - return TRUE; -} - -static int gecode_constraint_rel_406(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); - FloatVal X4 = gecode_FloatVal_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_408(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); - FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_422(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_420(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_392(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_388(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_386(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_383(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_382(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_379(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_378(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_375(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_373(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_402(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_404(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_398(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_411(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_410(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_415(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_414(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_419(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_430(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_432(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_372(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_370(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - rel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_min_318(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_316(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_317(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); - FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_321(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - min(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_cardinality_56(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - cardinality(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_cardinality_58(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - cardinality(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_109(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_106(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_100(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_99(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_count_96(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - count(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqrt_447(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqrt(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sqrt_446(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); - sqrt(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulatives_157(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_155(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_153(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_151(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_149(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_147(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_145(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulatives_143(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_nvalues_344(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_346(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_340(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nvalues_342(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nvalues(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_binpacking_54(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - binpacking(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_linear_285(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_289(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_277(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_linear_281(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - linear(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_abs_52(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - abs(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_convex_90(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - convex(*space,X2); - return TRUE; -} - -static int gecode_constraint_div_163(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - div(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_div_162(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); - FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); - div(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_412(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_416(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_395(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_396(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntSet X2 = gecode_IntSet_from_term(YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_384(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_380(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_376(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_374(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolOpType X3 = gecode_BoolOpType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_425(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_426(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_427(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_428(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetOpType X3 = gecode_SetOpType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetRelType X5 = gecode_SetRelType_from_term(YAP_ARG5); - SetVar X6 = gecode_SetVar_from_term(space,YAP_ARG6); - rel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_weights_465(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - weights(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_max_303(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - max(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_path_353(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - path(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_unary_459(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_455(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_449(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_unary_452(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - unary(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nroot_338(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - nroot(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_nroot_337(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); - nroot(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_440(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - sorted(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_80(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_77(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_74(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - circuit(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_dom_189(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatVal X3 = gecode_FloatVal_from_term(YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_186(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatNum X3 = gecode_FloatNum_from_term(YAP_ARG3); - FloatNum X4 = gecode_FloatNum_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_172(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatNum X3 = gecode_FloatNum_from_term(YAP_ARG3); - FloatNum X4 = gecode_FloatNum_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_170(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_168(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_180(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_179(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_177(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_175(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_197(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_201(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_196(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_204(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_193(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_192(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_184(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_183(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_207(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_dom_205(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntSet X4 = gecode_IntSet_from_term(YAP_ARG4); - dom(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_abs_51(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - abs(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_abs_50(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); - abs(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_68(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_channel_63(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - channel(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_assign_8(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatAssign X3 = gecode_FloatAssign_from_term(YAP_ARG3); - FloatBranchFilter X4 = gecode_FloatBranchFilter_from_term(YAP_ARG4); - FloatVarValPrint X5 = gecode_FloatVarValPrint_from_term(YAP_ARG5); - assign(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_assign_5(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - BoolBranchFilter X4 = gecode_BoolBranchFilter_from_term(YAP_ARG4); - BoolVarValPrint X5 = gecode_BoolVarValPrint_from_term(YAP_ARG5); - assign(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_assign_11(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - IntBranchFilter X4 = gecode_IntBranchFilter_from_term(YAP_ARG4); - IntVarValPrint X5 = gecode_IntVarValPrint_from_term(YAP_ARG5); - assign(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_assign_14(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - SetBranchFilter X4 = gecode_SetBranchFilter_from_term(YAP_ARG4); - SetVarValPrint X5 = gecode_SetVarValPrint_from_term(YAP_ARG5); - assign(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_rel_399(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_rel_389(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - rel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_356(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - path(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_45(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatValBranch X3 = gecode_FloatValBranch_from_term(YAP_ARG3); - FloatVarValPrint X4 = gecode_FloatVarValPrint_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_29(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatVarBranch X3 = gecode_FloatVarBranch_from_term(YAP_ARG3); - FloatValBranch X4 = gecode_FloatValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_23(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_22(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - BoolVarValPrint X4 = gecode_BoolVarValPrint_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_35(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_47(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - IntVarValPrint X4 = gecode_IntVarValPrint_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_41(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_branch_49(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); - SetVarValPrint X4 = gecode_SetVarValPrint_from_term(YAP_ARG4); - branch(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_mult_326(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - mult(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_81(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_78(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_circuit_75(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - circuit(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_clause_88(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_clause_86(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - BoolVar X5 = gecode_BoolVar_from_term(space,YAP_ARG5); - clause(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_precede_368(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_365(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_364(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - precede(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_channel_69(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - channel(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_126(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_129(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_122(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_125(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_119(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_138(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_141(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_134(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_137(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_cumulative_131(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - cumulative(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_distinct_161(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_distinct_158(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - distinct(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_313(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_309(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - Reify X4 = gecode_Reify_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - member(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_mod_322(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - mod(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sqr_444(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - sqr(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sqr_443(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); - sqr(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sequence_436(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_sequence_434(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - sequence(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_354(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_351(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_path_348(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - path(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_divmod_166(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - divmod(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sorted_441(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - sorted(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_extensional_252(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); - ExtensionalPropKind X4 = gecode_ExtensionalPropKind_from_term(YAP_ARG4); - extensional(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_extensional_255(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - DFA X3 = gecode_DFA_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - extensional(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_extensional_247(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); - ExtensionalPropKind X4 = gecode_ExtensionalPropKind_from_term(YAP_ARG4); - extensional(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_extensional_250(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - DFA X3 = gecode_DFA_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - extensional(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_circuit_84(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_circuit_83(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - circuit(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_71(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_61(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_64(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_59(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_67(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_65(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_72(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_channel_70(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - channel(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_92(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_94(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_110(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_112(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_102(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_104(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_101(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_97(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_107(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_114(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_116(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - count(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulatives_156(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_154(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_152(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_150(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_148(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_146(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_144(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulatives_142(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - IntArgs X7 = gecode_IntArgs_from_term(YAP_ARG7); - bool X8 = gecode_bool_from_term(YAP_ARG8); - cumulatives(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_binpacking_55(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - binpacking(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_extensional_251(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); - extensional(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_extensional_254(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - DFA X3 = gecode_DFA_from_term(YAP_ARG3); - extensional(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_extensional_246(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - TupleSet X3 = gecode_TupleSet_from_term(YAP_ARG3); - extensional(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_extensional_249(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - DFA X3 = gecode_DFA_from_term(YAP_ARG3); - extensional(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_293(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_297(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_261(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_265(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_269(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatValArgs X2 = gecode_FloatValArgs_from_term(YAP_ARG2); - FloatVarArgs X3 = gecode_FloatVarArgs_from_term(space,YAP_ARG3); - FloatRelType X4 = gecode_FloatRelType_from_term(YAP_ARG4); - FloatVar X5 = gecode_FloatVar_from_term(space,YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_267(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatValArgs X2 = gecode_FloatValArgs_from_term(YAP_ARG2); - FloatVarArgs X3 = gecode_FloatVarArgs_from_term(space,YAP_ARG3); - FloatRelType X4 = gecode_FloatRelType_from_term(YAP_ARG4); - FloatNum X5 = gecode_FloatNum_from_term(YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_284(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_283(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_288(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_287(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_276(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_275(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_280(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - Reify X6 = gecode_Reify_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_linear_279(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - linear(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_333(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_nooverlap_328(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - nooverlap(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_div_164(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - div(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sqr_445(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqr(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_path_355(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_352(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - IntVar X8 = gecode_IntVar_from_term(space,YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_path_349(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - path(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_unary_457(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_460(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - TaskTypeArgs X2 = gecode_TaskTypeArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_453(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - BoolVarArgs X5 = gecode_BoolVarArgs_from_term(space,YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_456(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_unary_450(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - unary(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sorted_439(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sorted_442(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sorted(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_223(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_217(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_235(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - IntVar X7 = gecode_IntVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_element_233(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - BoolVar X7 = gecode_BoolVar_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - element(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_assign_16(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatAssign X3 = gecode_FloatAssign_from_term(YAP_ARG3); - FloatVarValPrint X4 = gecode_FloatVarValPrint_from_term(YAP_ARG4); - assign(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_assign_7(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatAssign X3 = gecode_FloatAssign_from_term(YAP_ARG3); - FloatBranchFilter X4 = gecode_FloatBranchFilter_from_term(YAP_ARG4); - assign(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_assign_4(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - BoolBranchFilter X4 = gecode_BoolBranchFilter_from_term(YAP_ARG4); - assign(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_assign_2(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - BoolVarValPrint X4 = gecode_BoolVarValPrint_from_term(YAP_ARG4); - assign(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_assign_10(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - IntBranchFilter X4 = gecode_IntBranchFilter_from_term(YAP_ARG4); - assign(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_assign_18(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntAssign X3 = gecode_IntAssign_from_term(YAP_ARG3); - IntVarValPrint X4 = gecode_IntVarValPrint_from_term(YAP_ARG4); - assign(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_assign_13(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - SetBranchFilter X4 = gecode_SetBranchFilter_from_term(YAP_ARG4); - assign(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_assign_20(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetAssign X3 = gecode_SetAssign_from_term(YAP_ARG3); - SetVarValPrint X4 = gecode_SetVarValPrint_from_term(YAP_ARG4); - assign(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_element_221(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_225(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_215(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_213(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_244(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_242(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_240(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_238(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_231(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_237(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_element_229(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - element(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_sequence_438(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - sequence(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_30(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatVarBranch X3 = gecode_FloatVarBranch_from_term(YAP_ARG3); - FloatValBranch X4 = gecode_FloatValBranch_from_term(YAP_ARG4); - FloatBranchFilter X5 = gecode_FloatBranchFilter_from_term(YAP_ARG5); - branch(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_branch_26(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); - branch(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_branch_24(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - BoolBranchFilter X5 = gecode_BoolBranchFilter_from_term(YAP_ARG5); - branch(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_branch_32(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); - branch(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_branch_36(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - IntBranchFilter X5 = gecode_IntBranchFilter_from_term(YAP_ARG5); - branch(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_branch_42(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - SetBranchFilter X5 = gecode_SetBranchFilter_from_term(YAP_ARG5); - branch(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_branch_38(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); - branch(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_circuit_79(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - IntConLevel X7 = gecode_IntConLevel_from_term(YAP_ARG7); - circuit(*space,X2,X3,X4,X5,X6,X7); - return TRUE; -} - -static int gecode_constraint_pow_361(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - pow(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_pow_360(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); - pow(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_precede_367(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_precede_363(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - precede(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_128(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_124(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_118(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_121(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_140(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_136(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_130(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_cumulative_133(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - cumulative(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_distinct_159(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - distinct(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_314(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_min_315(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_min_320(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - min(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_sqrt_448(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - sqrt(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_sequence_435(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_sequence_433(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - int X6 = gecode_int_from_term(YAP_ARG6); - sequence(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_unshare_464(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_unshare_462(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntConLevel X3 = gecode_IntConLevel_from_term(YAP_ARG3); - unshare(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_path_359(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_path_350(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntVar X6 = gecode_IntVar_from_term(space,YAP_ARG6); - path(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_divmod_165(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - divmod(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_branch_31(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatVarBranch X3 = gecode_FloatVarBranch_from_term(YAP_ARG3); - FloatValBranch X4 = gecode_FloatValBranch_from_term(YAP_ARG4); - FloatBranchFilter X5 = gecode_FloatBranchFilter_from_term(YAP_ARG5); - FloatVarValPrint X6 = gecode_FloatVarValPrint_from_term(YAP_ARG6); - branch(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_branch_27(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); - BoolBranchFilter X6 = gecode_BoolBranchFilter_from_term(YAP_ARG6); - branch(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_branch_25(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - BoolBranchFilter X5 = gecode_BoolBranchFilter_from_term(YAP_ARG5); - BoolVarValPrint X6 = gecode_BoolVarValPrint_from_term(YAP_ARG6); - branch(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_branch_33(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); - IntBranchFilter X6 = gecode_IntBranchFilter_from_term(YAP_ARG6); - branch(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_branch_37(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarBranch X3 = gecode_IntVarBranch_from_term(YAP_ARG3); - IntValBranch X4 = gecode_IntValBranch_from_term(YAP_ARG4); - IntBranchFilter X5 = gecode_IntBranchFilter_from_term(YAP_ARG5); - IntVarValPrint X6 = gecode_IntVarValPrint_from_term(YAP_ARG6); - branch(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_branch_43(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - SetBranchFilter X5 = gecode_SetBranchFilter_from_term(YAP_ARG5); - SetVarValPrint X6 = gecode_SetVarValPrint_from_term(YAP_ARG6); - branch(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_branch_39(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarBranch X3 = gecode_SetVarBranch_from_term(YAP_ARG3); - SetValBranch X4 = gecode_SetValBranch_from_term(YAP_ARG4); - Symmetries X5 = gecode_Symmetries_from_term(YAP_ARG5); - SetBranchFilter X6 = gecode_SetBranchFilter_from_term(YAP_ARG6); - branch(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_332(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntVarArgs X6 = gecode_IntVarArgs_from_term(space,YAP_ARG6); - IntVarArgs X7 = gecode_IntVarArgs_from_term(space,YAP_ARG7); - BoolVarArgs X8 = gecode_BoolVarArgs_from_term(space,YAP_ARG8); - IntConLevel X9 = gecode_IntConLevel_from_term(YAP_ARG9); - nooverlap(*space,X2,X3,X4,X5,X6,X7,X8,X9); - return TRUE; -} - -static int gecode_constraint_cumulative_120(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_cumulative_132(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntArgs X4 = gecode_IntArgs_from_term(YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - cumulative(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_member_310(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_member_306(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - member(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_111(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_113(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_115(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_117(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_103(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_105(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_93(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_count_95(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - count(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_pow_362(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - pow(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_notMin_336(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - notMin(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_cumulative_127(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_123(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int X2 = gecode_int_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_139(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - TaskTypeArgs X3 = gecode_TaskTypeArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_cumulative_135(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntVarArgs X5 = gecode_IntVarArgs_from_term(space,YAP_ARG5); - IntArgs X6 = gecode_IntArgs_from_term(YAP_ARG6); - BoolVarArgs X7 = gecode_BoolVarArgs_from_term(space,YAP_ARG7); - IntConLevel X8 = gecode_IntConLevel_from_term(YAP_ARG8); - cumulative(*space,X2,X3,X4,X5,X6,X7,X8); - return TRUE; -} - -static int gecode_constraint_branch_46(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_21(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntValBranch X3 = gecode_IntValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_44(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatValBranch X3 = gecode_FloatValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_branch_48(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetValBranch X3 = gecode_SetValBranch_from_term(YAP_ARG3); - branch(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_188(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatVal X3 = gecode_FloatVal_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_190(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatVar X3 = gecode_FloatVar_from_term(space,YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_171(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatVarArgs X3 = gecode_FloatVarArgs_from_term(space,YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_173(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatVal X3 = gecode_FloatVal_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_169(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_167(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - BoolVar X3 = gecode_BoolVar_from_term(space,YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_178(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_176(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_174(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_195(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - int X3 = gecode_int_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_203(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_191(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntSet X3 = gecode_IntSet_from_term(YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_182(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVarArgs X2 = gecode_SetVarArgs_from_term(space,YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_dom_211(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetVar X3 = gecode_SetVar_from_term(space,YAP_ARG3); - dom(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_linear_292(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_291(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_296(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_295(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_273(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); - FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_271(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); - FloatNum X4 = gecode_FloatNum_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_260(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_259(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_264(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - Reify X5 = gecode_Reify_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_263(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_268(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatValArgs X2 = gecode_FloatValArgs_from_term(YAP_ARG2); - FloatVarArgs X3 = gecode_FloatVarArgs_from_term(space,YAP_ARG3); - FloatRelType X4 = gecode_FloatRelType_from_term(YAP_ARG4); - FloatVar X5 = gecode_FloatVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_266(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatValArgs X2 = gecode_FloatValArgs_from_term(YAP_ARG2); - FloatVarArgs X3 = gecode_FloatVarArgs_from_term(space,YAP_ARG3); - FloatRelType X4 = gecode_FloatRelType_from_term(YAP_ARG4); - FloatNum X5 = gecode_FloatNum_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_282(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_286(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_274(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - int X5 = gecode_int_from_term(YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_linear_278(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntArgs X2 = gecode_IntArgs_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - IntRelType X4 = gecode_IntRelType_from_term(YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - linear(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_nooverlap_327(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - BoolVarArgs X6 = gecode_BoolVarArgs_from_term(space,YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_nooverlap_330(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - IntArgs X5 = gecode_IntArgs_from_term(YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - nooverlap(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_245(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_243(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_241(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_element_239(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntArgs X3 = gecode_IntArgs_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - SetVar X5 = gecode_SetVar_from_term(space,YAP_ARG5); - IntSet X6 = gecode_IntSet_from_term(YAP_ARG6); - element(*space,X2,X3,X4,X5,X6); - return TRUE; -} - -static int gecode_constraint_rel_405(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); - FloatVal X4 = gecode_FloatVal_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_407(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar X2 = gecode_FloatVar_from_term(space,YAP_ARG2); - FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); - FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_423(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - SetVarArgs X3 = gecode_SetVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_421(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetOpType X2 = gecode_SetOpType_from_term(YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_393(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); - FloatVal X4 = gecode_FloatVal_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_394(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVarArgs X2 = gecode_FloatVarArgs_from_term(space,YAP_ARG2); - FloatRelType X3 = gecode_FloatRelType_from_term(YAP_ARG3); - FloatVar X4 = gecode_FloatVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_391(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_387(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVarArgs X4 = gecode_BoolVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_385(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_390(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVarArgs X2 = gecode_BoolVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_381(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_377(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_401(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_403(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_397(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVarArgs X4 = gecode_IntVarArgs_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_400(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntConLevel X4 = gecode_IntConLevel_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_409(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_413(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_417(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_418(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_424(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - IntRelType X3 = gecode_IntRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_429(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_431(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar X2 = gecode_SetVar_from_term(space,YAP_ARG2); - SetRelType X3 = gecode_SetRelType_from_term(YAP_ARG3); - SetVar X4 = gecode_SetVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_371(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - int X4 = gecode_int_from_term(YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_rel_369(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolOpType X2 = gecode_BoolOpType_from_term(YAP_ARG2); - BoolVarArgs X3 = gecode_BoolVarArgs_from_term(space,YAP_ARG3); - BoolVar X4 = gecode_BoolVar_from_term(space,YAP_ARG4); - rel(*space,X2,X3,X4); - return TRUE; -} - -static int gecode_constraint_min_319(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar X2 = gecode_IntVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntConLevel X5 = gecode_IntConLevel_from_term(YAP_ARG5); - min(*space,X2,X3,X4,X5); - return TRUE; -} - -static int gecode_constraint_count_108(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntVarArgs X3 = gecode_IntVarArgs_from_term(space,YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_count_98(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVarArgs X2 = gecode_IntVarArgs_from_term(space,YAP_ARG2); - IntSetArgs X3 = gecode_IntSetArgs_from_term(YAP_ARG3); - count(*space,X2,X3); - return TRUE; -} - -static int gecode_constraint_ite_257(void) -{ - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar X2 = gecode_BoolVar_from_term(space,YAP_ARG2); - IntVar X3 = gecode_IntVar_from_term(space,YAP_ARG3); - IntVar X4 = gecode_IntVar_from_term(space,YAP_ARG4); - IntVar X5 = gecode_IntVar_from_term(space,YAP_ARG5); - IntConLevel X6 = gecode_IntConLevel_from_term(YAP_ARG6); - ite(*space,X2,X3,X4,X5,X6); - return TRUE; -} - diff --git a/library/gecode/4.2.0/gecode_yap_cc_init_auto_generated.icc b/library/gecode/4.2.0/gecode_yap_cc_init_auto_generated.icc deleted file mode 100644 index 96c3bbe9d..000000000 --- a/library/gecode/4.2.0/gecode_yap_cc_init_auto_generated.icc +++ /dev/null @@ -1,640 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -{ YAP_Atom X= YAP_LookupAtom("RM_NONE"); - gecode_RM_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("RM_CONSTANT"); - gecode_RM_CONSTANT = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("RM_LINEAR"); - gecode_RM_LINEAR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("RM_LUBY"); - gecode_RM_LUBY = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("RM_GEOMETRIC"); - gecode_RM_GEOMETRIC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("FRT_EQ"); - gecode_FRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("FRT_NQ"); - gecode_FRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("FRT_LQ"); - gecode_FRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("FRT_LE"); - gecode_FRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("FRT_GQ"); - gecode_FRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("FRT_GR"); - gecode_FRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("RM_EQV"); - gecode_RM_EQV = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("RM_IMP"); - gecode_RM_IMP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("RM_PMI"); - gecode_RM_PMI = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("IRT_EQ"); - gecode_IRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_NQ"); - gecode_IRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LQ"); - gecode_IRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_LE"); - gecode_IRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GQ"); - gecode_IRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("IRT_GR"); - gecode_IRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("BOT_AND"); - gecode_BOT_AND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_OR"); - gecode_BOT_OR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_IMP"); - gecode_BOT_IMP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_EQV"); - gecode_BOT_EQV = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("BOT_XOR"); - gecode_BOT_XOR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("ICL_VAL"); - gecode_ICL_VAL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_BND"); - gecode_ICL_BND = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DOM"); - gecode_ICL_DOM = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("ICL_DEF"); - gecode_ICL_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("TT_FIXP"); - gecode_TT_FIXP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXS"); - gecode_TT_FIXS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("TT_FIXE"); - gecode_TT_FIXE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("EPK_DEF"); - gecode_EPK_DEF = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_SPEED"); - gecode_EPK_SPEED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("EPK_MEMORY"); - gecode_EPK_MEMORY = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SRT_EQ"); - gecode_SRT_EQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_NQ"); - gecode_SRT_NQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUB"); - gecode_SRT_SUB = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_SUP"); - gecode_SRT_SUP = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_DISJ"); - gecode_SRT_DISJ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_CMPL"); - gecode_SRT_CMPL = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LQ"); - gecode_SRT_LQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_LE"); - gecode_SRT_LE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GQ"); - gecode_SRT_GQ = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SRT_GR"); - gecode_SRT_GR = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -{ YAP_Atom X= YAP_LookupAtom("SOT_UNION"); - gecode_SOT_UNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_DUNION"); - gecode_SOT_DUNION = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_INTER"); - gecode_SOT_INTER = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -{ YAP_Atom X= YAP_LookupAtom("SOT_MINUS"); - gecode_SOT_MINUS = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - -YAP_UserCPredicate("gecode_constraint_unary_458", gecode_constraint_unary_458, 6); -YAP_UserCPredicate("gecode_constraint_unary_454", gecode_constraint_unary_454, 6); -YAP_UserCPredicate("gecode_constraint_nvalues_345", gecode_constraint_nvalues_345, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_347", gecode_constraint_nvalues_347, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_341", gecode_constraint_nvalues_341, 5); -YAP_UserCPredicate("gecode_constraint_nvalues_343", gecode_constraint_nvalues_343, 5); -YAP_UserCPredicate("gecode_constraint_max_302", gecode_constraint_max_302, 4); -YAP_UserCPredicate("gecode_constraint_max_300", gecode_constraint_max_300, 4); -YAP_UserCPredicate("gecode_constraint_max_301", gecode_constraint_max_301, 4); -YAP_UserCPredicate("gecode_constraint_max_305", gecode_constraint_max_305, 4); -YAP_UserCPredicate("gecode_constraint_dom_200", gecode_constraint_dom_200, 6); -YAP_UserCPredicate("gecode_constraint_dom_209", gecode_constraint_dom_209, 6); -YAP_UserCPredicate("gecode_constraint_convex_91", gecode_constraint_convex_91, 3); -YAP_UserCPredicate("gecode_constraint_nooverlap_329", gecode_constraint_nooverlap_329, 5); -YAP_UserCPredicate("gecode_constraint_assign_15", gecode_constraint_assign_15, 3); -YAP_UserCPredicate("gecode_constraint_assign_6", gecode_constraint_assign_6, 3); -YAP_UserCPredicate("gecode_constraint_assign_3", gecode_constraint_assign_3, 3); -YAP_UserCPredicate("gecode_constraint_assign_1", gecode_constraint_assign_1, 3); -YAP_UserCPredicate("gecode_constraint_assign_9", gecode_constraint_assign_9, 3); -YAP_UserCPredicate("gecode_constraint_assign_17", gecode_constraint_assign_17, 3); -YAP_UserCPredicate("gecode_constraint_assign_12", gecode_constraint_assign_12, 3); -YAP_UserCPredicate("gecode_constraint_assign_19", gecode_constraint_assign_19, 3); -YAP_UserCPredicate("gecode_constraint_element_220", gecode_constraint_element_220, 4); -YAP_UserCPredicate("gecode_constraint_element_224", gecode_constraint_element_224, 4); -YAP_UserCPredicate("gecode_constraint_element_214", gecode_constraint_element_214, 4); -YAP_UserCPredicate("gecode_constraint_element_212", gecode_constraint_element_212, 4); -YAP_UserCPredicate("gecode_constraint_element_219", gecode_constraint_element_219, 4); -YAP_UserCPredicate("gecode_constraint_element_227", gecode_constraint_element_227, 4); -YAP_UserCPredicate("gecode_constraint_element_230", gecode_constraint_element_230, 4); -YAP_UserCPredicate("gecode_constraint_element_236", gecode_constraint_element_236, 4); -YAP_UserCPredicate("gecode_constraint_element_228", gecode_constraint_element_228, 4); -YAP_UserCPredicate("gecode_constraint_sequence_437", gecode_constraint_sequence_437, 2); -YAP_UserCPredicate("gecode_constraint_notMax_335", gecode_constraint_notMax_335, 3); -YAP_UserCPredicate("gecode_constraint_ite_256", gecode_constraint_ite_256, 5); -YAP_UserCPredicate("gecode_constraint_unary_451", gecode_constraint_unary_451, 3); -YAP_UserCPredicate("gecode_constraint_nroot_339", gecode_constraint_nroot_339, 5); -YAP_UserCPredicate("gecode_constraint_circuit_85", gecode_constraint_circuit_85, 4); -YAP_UserCPredicate("gecode_constraint_circuit_76", gecode_constraint_circuit_76, 4); -YAP_UserCPredicate("gecode_constraint_dom_199", gecode_constraint_dom_199, 5); -YAP_UserCPredicate("gecode_constraint_dom_198", gecode_constraint_dom_198, 5); -YAP_UserCPredicate("gecode_constraint_dom_202", gecode_constraint_dom_202, 5); -YAP_UserCPredicate("gecode_constraint_dom_194", gecode_constraint_dom_194, 5); -YAP_UserCPredicate("gecode_constraint_dom_185", gecode_constraint_dom_185, 5); -YAP_UserCPredicate("gecode_constraint_dom_181", gecode_constraint_dom_181, 5); -YAP_UserCPredicate("gecode_constraint_dom_187", gecode_constraint_dom_187, 5); -YAP_UserCPredicate("gecode_constraint_dom_208", gecode_constraint_dom_208, 5); -YAP_UserCPredicate("gecode_constraint_dom_210", gecode_constraint_dom_210, 5); -YAP_UserCPredicate("gecode_constraint_dom_206", gecode_constraint_dom_206, 5); -YAP_UserCPredicate("gecode_constraint_channel_66", gecode_constraint_channel_66, 4); -YAP_UserCPredicate("gecode_constraint_channel_62", gecode_constraint_channel_62, 4); -YAP_UserCPredicate("gecode_constraint_channel_60", gecode_constraint_channel_60, 4); -YAP_UserCPredicate("gecode_constraint_nooverlap_331", gecode_constraint_nooverlap_331, 8); -YAP_UserCPredicate("gecode_constraint_nooverlap_334", gecode_constraint_nooverlap_334, 8); -YAP_UserCPredicate("gecode_constraint_element_222", gecode_constraint_element_222, 7); -YAP_UserCPredicate("gecode_constraint_element_216", gecode_constraint_element_216, 7); -YAP_UserCPredicate("gecode_constraint_element_218", gecode_constraint_element_218, 7); -YAP_UserCPredicate("gecode_constraint_element_226", gecode_constraint_element_226, 7); -YAP_UserCPredicate("gecode_constraint_element_234", gecode_constraint_element_234, 7); -YAP_UserCPredicate("gecode_constraint_element_232", gecode_constraint_element_232, 7); -YAP_UserCPredicate("gecode_constraint_max_298", gecode_constraint_max_298, 3); -YAP_UserCPredicate("gecode_constraint_max_299", gecode_constraint_max_299, 3); -YAP_UserCPredicate("gecode_constraint_max_304", gecode_constraint_max_304, 3); -YAP_UserCPredicate("gecode_constraint_unshare_463", gecode_constraint_unshare_463, 2); -YAP_UserCPredicate("gecode_constraint_unshare_461", gecode_constraint_unshare_461, 2); -YAP_UserCPredicate("gecode_constraint_path_358", gecode_constraint_path_358, 5); -YAP_UserCPredicate("gecode_constraint_path_357", gecode_constraint_path_357, 5); -YAP_UserCPredicate("gecode_constraint_branch_34", gecode_constraint_branch_34, 7); -YAP_UserCPredicate("gecode_constraint_branch_28", gecode_constraint_branch_28, 7); -YAP_UserCPredicate("gecode_constraint_branch_40", gecode_constraint_branch_40, 7); -YAP_UserCPredicate("gecode_constraint_mult_325", gecode_constraint_mult_325, 4); -YAP_UserCPredicate("gecode_constraint_mult_324", gecode_constraint_mult_324, 4); -YAP_UserCPredicate("gecode_constraint_clause_89", gecode_constraint_clause_89, 6); -YAP_UserCPredicate("gecode_constraint_clause_87", gecode_constraint_clause_87, 6); -YAP_UserCPredicate("gecode_constraint_precede_366", gecode_constraint_precede_366, 5); -YAP_UserCPredicate("gecode_constraint_distinct_160", gecode_constraint_distinct_160, 2); -YAP_UserCPredicate("gecode_constraint_member_312", gecode_constraint_member_312, 4); -YAP_UserCPredicate("gecode_constraint_member_311", gecode_constraint_member_311, 4); -YAP_UserCPredicate("gecode_constraint_member_308", gecode_constraint_member_308, 4); -YAP_UserCPredicate("gecode_constraint_member_307", gecode_constraint_member_307, 4); -YAP_UserCPredicate("gecode_constraint_mod_323", gecode_constraint_mod_323, 5); -YAP_UserCPredicate("gecode_constraint_cardinality_57", gecode_constraint_cardinality_57, 3); -YAP_UserCPredicate("gecode_constraint_atmostOne_53", gecode_constraint_atmostOne_53, 3); -YAP_UserCPredicate("gecode_constraint_channelSorted_73", gecode_constraint_channelSorted_73, 3); -YAP_UserCPredicate("gecode_constraint_extensional_253", gecode_constraint_extensional_253, 5); -YAP_UserCPredicate("gecode_constraint_extensional_248", gecode_constraint_extensional_248, 5); -YAP_UserCPredicate("gecode_constraint_linear_272", gecode_constraint_linear_272, 4); -YAP_UserCPredicate("gecode_constraint_linear_270", gecode_constraint_linear_270, 4); -YAP_UserCPredicate("gecode_constraint_linear_258", gecode_constraint_linear_258, 4); -YAP_UserCPredicate("gecode_constraint_linear_262", gecode_constraint_linear_262, 4); -YAP_UserCPredicate("gecode_constraint_linear_290", gecode_constraint_linear_290, 4); -YAP_UserCPredicate("gecode_constraint_linear_294", gecode_constraint_linear_294, 4); -YAP_UserCPredicate("gecode_constraint_circuit_82", gecode_constraint_circuit_82, 2); -YAP_UserCPredicate("gecode_constraint_rel_406", gecode_constraint_rel_406, 5); -YAP_UserCPredicate("gecode_constraint_rel_408", gecode_constraint_rel_408, 5); -YAP_UserCPredicate("gecode_constraint_rel_422", gecode_constraint_rel_422, 5); -YAP_UserCPredicate("gecode_constraint_rel_420", gecode_constraint_rel_420, 5); -YAP_UserCPredicate("gecode_constraint_rel_392", gecode_constraint_rel_392, 5); -YAP_UserCPredicate("gecode_constraint_rel_388", gecode_constraint_rel_388, 5); -YAP_UserCPredicate("gecode_constraint_rel_386", gecode_constraint_rel_386, 5); -YAP_UserCPredicate("gecode_constraint_rel_383", gecode_constraint_rel_383, 5); -YAP_UserCPredicate("gecode_constraint_rel_382", gecode_constraint_rel_382, 5); -YAP_UserCPredicate("gecode_constraint_rel_379", gecode_constraint_rel_379, 5); -YAP_UserCPredicate("gecode_constraint_rel_378", gecode_constraint_rel_378, 5); -YAP_UserCPredicate("gecode_constraint_rel_375", gecode_constraint_rel_375, 5); -YAP_UserCPredicate("gecode_constraint_rel_373", gecode_constraint_rel_373, 5); -YAP_UserCPredicate("gecode_constraint_rel_402", gecode_constraint_rel_402, 5); -YAP_UserCPredicate("gecode_constraint_rel_404", gecode_constraint_rel_404, 5); -YAP_UserCPredicate("gecode_constraint_rel_398", gecode_constraint_rel_398, 5); -YAP_UserCPredicate("gecode_constraint_rel_411", gecode_constraint_rel_411, 5); -YAP_UserCPredicate("gecode_constraint_rel_410", gecode_constraint_rel_410, 5); -YAP_UserCPredicate("gecode_constraint_rel_415", gecode_constraint_rel_415, 5); -YAP_UserCPredicate("gecode_constraint_rel_414", gecode_constraint_rel_414, 5); -YAP_UserCPredicate("gecode_constraint_rel_419", gecode_constraint_rel_419, 5); -YAP_UserCPredicate("gecode_constraint_rel_430", gecode_constraint_rel_430, 5); -YAP_UserCPredicate("gecode_constraint_rel_432", gecode_constraint_rel_432, 5); -YAP_UserCPredicate("gecode_constraint_rel_372", gecode_constraint_rel_372, 5); -YAP_UserCPredicate("gecode_constraint_rel_370", gecode_constraint_rel_370, 5); -YAP_UserCPredicate("gecode_constraint_min_318", gecode_constraint_min_318, 4); -YAP_UserCPredicate("gecode_constraint_min_316", gecode_constraint_min_316, 4); -YAP_UserCPredicate("gecode_constraint_min_317", gecode_constraint_min_317, 4); -YAP_UserCPredicate("gecode_constraint_min_321", gecode_constraint_min_321, 4); -YAP_UserCPredicate("gecode_constraint_cardinality_56", gecode_constraint_cardinality_56, 4); -YAP_UserCPredicate("gecode_constraint_cardinality_58", gecode_constraint_cardinality_58, 4); -YAP_UserCPredicate("gecode_constraint_count_109", gecode_constraint_count_109, 4); -YAP_UserCPredicate("gecode_constraint_count_106", gecode_constraint_count_106, 4); -YAP_UserCPredicate("gecode_constraint_count_100", gecode_constraint_count_100, 4); -YAP_UserCPredicate("gecode_constraint_count_99", gecode_constraint_count_99, 4); -YAP_UserCPredicate("gecode_constraint_count_96", gecode_constraint_count_96, 4); -YAP_UserCPredicate("gecode_constraint_sqrt_447", gecode_constraint_sqrt_447, 3); -YAP_UserCPredicate("gecode_constraint_sqrt_446", gecode_constraint_sqrt_446, 3); -YAP_UserCPredicate("gecode_constraint_cumulatives_157", gecode_constraint_cumulatives_157, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_155", gecode_constraint_cumulatives_155, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_153", gecode_constraint_cumulatives_153, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_151", gecode_constraint_cumulatives_151, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_149", gecode_constraint_cumulatives_149, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_147", gecode_constraint_cumulatives_147, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_145", gecode_constraint_cumulatives_145, 9); -YAP_UserCPredicate("gecode_constraint_cumulatives_143", gecode_constraint_cumulatives_143, 9); -YAP_UserCPredicate("gecode_constraint_nvalues_344", gecode_constraint_nvalues_344, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_346", gecode_constraint_nvalues_346, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_340", gecode_constraint_nvalues_340, 4); -YAP_UserCPredicate("gecode_constraint_nvalues_342", gecode_constraint_nvalues_342, 4); -YAP_UserCPredicate("gecode_constraint_binpacking_54", gecode_constraint_binpacking_54, 4); -YAP_UserCPredicate("gecode_constraint_linear_285", gecode_constraint_linear_285, 7); -YAP_UserCPredicate("gecode_constraint_linear_289", gecode_constraint_linear_289, 7); -YAP_UserCPredicate("gecode_constraint_linear_277", gecode_constraint_linear_277, 7); -YAP_UserCPredicate("gecode_constraint_linear_281", gecode_constraint_linear_281, 7); -YAP_UserCPredicate("gecode_constraint_abs_52", gecode_constraint_abs_52, 4); -YAP_UserCPredicate("gecode_constraint_convex_90", gecode_constraint_convex_90, 2); -YAP_UserCPredicate("gecode_constraint_div_163", gecode_constraint_div_163, 4); -YAP_UserCPredicate("gecode_constraint_div_162", gecode_constraint_div_162, 4); -YAP_UserCPredicate("gecode_constraint_rel_412", gecode_constraint_rel_412, 6); -YAP_UserCPredicate("gecode_constraint_rel_416", gecode_constraint_rel_416, 6); -YAP_UserCPredicate("gecode_constraint_rel_395", gecode_constraint_rel_395, 6); -YAP_UserCPredicate("gecode_constraint_rel_396", gecode_constraint_rel_396, 6); -YAP_UserCPredicate("gecode_constraint_rel_384", gecode_constraint_rel_384, 6); -YAP_UserCPredicate("gecode_constraint_rel_380", gecode_constraint_rel_380, 6); -YAP_UserCPredicate("gecode_constraint_rel_376", gecode_constraint_rel_376, 6); -YAP_UserCPredicate("gecode_constraint_rel_374", gecode_constraint_rel_374, 6); -YAP_UserCPredicate("gecode_constraint_rel_425", gecode_constraint_rel_425, 6); -YAP_UserCPredicate("gecode_constraint_rel_426", gecode_constraint_rel_426, 6); -YAP_UserCPredicate("gecode_constraint_rel_427", gecode_constraint_rel_427, 6); -YAP_UserCPredicate("gecode_constraint_rel_428", gecode_constraint_rel_428, 6); -YAP_UserCPredicate("gecode_constraint_weights_465", gecode_constraint_weights_465, 5); -YAP_UserCPredicate("gecode_constraint_max_303", gecode_constraint_max_303, 5); -YAP_UserCPredicate("gecode_constraint_path_353", gecode_constraint_path_353, 9); -YAP_UserCPredicate("gecode_constraint_unary_459", gecode_constraint_unary_459, 4); -YAP_UserCPredicate("gecode_constraint_unary_455", gecode_constraint_unary_455, 4); -YAP_UserCPredicate("gecode_constraint_unary_449", gecode_constraint_unary_449, 4); -YAP_UserCPredicate("gecode_constraint_unary_452", gecode_constraint_unary_452, 4); -YAP_UserCPredicate("gecode_constraint_nroot_338", gecode_constraint_nroot_338, 4); -YAP_UserCPredicate("gecode_constraint_nroot_337", gecode_constraint_nroot_337, 4); -YAP_UserCPredicate("gecode_constraint_sorted_440", gecode_constraint_sorted_440, 5); -YAP_UserCPredicate("gecode_constraint_circuit_80", gecode_constraint_circuit_80, 5); -YAP_UserCPredicate("gecode_constraint_circuit_77", gecode_constraint_circuit_77, 5); -YAP_UserCPredicate("gecode_constraint_circuit_74", gecode_constraint_circuit_74, 5); -YAP_UserCPredicate("gecode_constraint_dom_189", gecode_constraint_dom_189, 4); -YAP_UserCPredicate("gecode_constraint_dom_186", gecode_constraint_dom_186, 4); -YAP_UserCPredicate("gecode_constraint_dom_172", gecode_constraint_dom_172, 4); -YAP_UserCPredicate("gecode_constraint_dom_170", gecode_constraint_dom_170, 4); -YAP_UserCPredicate("gecode_constraint_dom_168", gecode_constraint_dom_168, 4); -YAP_UserCPredicate("gecode_constraint_dom_180", gecode_constraint_dom_180, 4); -YAP_UserCPredicate("gecode_constraint_dom_179", gecode_constraint_dom_179, 4); -YAP_UserCPredicate("gecode_constraint_dom_177", gecode_constraint_dom_177, 4); -YAP_UserCPredicate("gecode_constraint_dom_175", gecode_constraint_dom_175, 4); -YAP_UserCPredicate("gecode_constraint_dom_197", gecode_constraint_dom_197, 4); -YAP_UserCPredicate("gecode_constraint_dom_201", gecode_constraint_dom_201, 4); -YAP_UserCPredicate("gecode_constraint_dom_196", gecode_constraint_dom_196, 4); -YAP_UserCPredicate("gecode_constraint_dom_204", gecode_constraint_dom_204, 4); -YAP_UserCPredicate("gecode_constraint_dom_193", gecode_constraint_dom_193, 4); -YAP_UserCPredicate("gecode_constraint_dom_192", gecode_constraint_dom_192, 4); -YAP_UserCPredicate("gecode_constraint_dom_184", gecode_constraint_dom_184, 4); -YAP_UserCPredicate("gecode_constraint_dom_183", gecode_constraint_dom_183, 4); -YAP_UserCPredicate("gecode_constraint_dom_207", gecode_constraint_dom_207, 4); -YAP_UserCPredicate("gecode_constraint_dom_205", gecode_constraint_dom_205, 4); -YAP_UserCPredicate("gecode_constraint_abs_51", gecode_constraint_abs_51, 3); -YAP_UserCPredicate("gecode_constraint_abs_50", gecode_constraint_abs_50, 3); -YAP_UserCPredicate("gecode_constraint_channel_68", gecode_constraint_channel_68, 5); -YAP_UserCPredicate("gecode_constraint_channel_63", gecode_constraint_channel_63, 5); -YAP_UserCPredicate("gecode_constraint_assign_8", gecode_constraint_assign_8, 5); -YAP_UserCPredicate("gecode_constraint_assign_5", gecode_constraint_assign_5, 5); -YAP_UserCPredicate("gecode_constraint_assign_11", gecode_constraint_assign_11, 5); -YAP_UserCPredicate("gecode_constraint_assign_14", gecode_constraint_assign_14, 5); -YAP_UserCPredicate("gecode_constraint_rel_399", gecode_constraint_rel_399, 3); -YAP_UserCPredicate("gecode_constraint_rel_389", gecode_constraint_rel_389, 3); -YAP_UserCPredicate("gecode_constraint_path_356", gecode_constraint_path_356, 4); -YAP_UserCPredicate("gecode_constraint_branch_45", gecode_constraint_branch_45, 4); -YAP_UserCPredicate("gecode_constraint_branch_29", gecode_constraint_branch_29, 4); -YAP_UserCPredicate("gecode_constraint_branch_23", gecode_constraint_branch_23, 4); -YAP_UserCPredicate("gecode_constraint_branch_22", gecode_constraint_branch_22, 4); -YAP_UserCPredicate("gecode_constraint_branch_35", gecode_constraint_branch_35, 4); -YAP_UserCPredicate("gecode_constraint_branch_47", gecode_constraint_branch_47, 4); -YAP_UserCPredicate("gecode_constraint_branch_41", gecode_constraint_branch_41, 4); -YAP_UserCPredicate("gecode_constraint_branch_49", gecode_constraint_branch_49, 4); -YAP_UserCPredicate("gecode_constraint_mult_326", gecode_constraint_mult_326, 5); -YAP_UserCPredicate("gecode_constraint_circuit_81", gecode_constraint_circuit_81, 6); -YAP_UserCPredicate("gecode_constraint_circuit_78", gecode_constraint_circuit_78, 6); -YAP_UserCPredicate("gecode_constraint_circuit_75", gecode_constraint_circuit_75, 6); -YAP_UserCPredicate("gecode_constraint_clause_88", gecode_constraint_clause_88, 5); -YAP_UserCPredicate("gecode_constraint_clause_86", gecode_constraint_clause_86, 5); -YAP_UserCPredicate("gecode_constraint_precede_368", gecode_constraint_precede_368, 4); -YAP_UserCPredicate("gecode_constraint_precede_365", gecode_constraint_precede_365, 4); -YAP_UserCPredicate("gecode_constraint_precede_364", gecode_constraint_precede_364, 4); -YAP_UserCPredicate("gecode_constraint_channel_69", gecode_constraint_channel_69, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_126", gecode_constraint_cumulative_126, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_129", gecode_constraint_cumulative_129, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_122", gecode_constraint_cumulative_122, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_125", gecode_constraint_cumulative_125, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_119", gecode_constraint_cumulative_119, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_138", gecode_constraint_cumulative_138, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_141", gecode_constraint_cumulative_141, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_134", gecode_constraint_cumulative_134, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_137", gecode_constraint_cumulative_137, 7); -YAP_UserCPredicate("gecode_constraint_cumulative_131", gecode_constraint_cumulative_131, 7); -YAP_UserCPredicate("gecode_constraint_distinct_161", gecode_constraint_distinct_161, 3); -YAP_UserCPredicate("gecode_constraint_distinct_158", gecode_constraint_distinct_158, 3); -YAP_UserCPredicate("gecode_constraint_member_313", gecode_constraint_member_313, 5); -YAP_UserCPredicate("gecode_constraint_member_309", gecode_constraint_member_309, 5); -YAP_UserCPredicate("gecode_constraint_mod_322", gecode_constraint_mod_322, 4); -YAP_UserCPredicate("gecode_constraint_sqr_444", gecode_constraint_sqr_444, 3); -YAP_UserCPredicate("gecode_constraint_sqr_443", gecode_constraint_sqr_443, 3); -YAP_UserCPredicate("gecode_constraint_sequence_436", gecode_constraint_sequence_436, 7); -YAP_UserCPredicate("gecode_constraint_sequence_434", gecode_constraint_sequence_434, 7); -YAP_UserCPredicate("gecode_constraint_path_354", gecode_constraint_path_354, 7); -YAP_UserCPredicate("gecode_constraint_path_351", gecode_constraint_path_351, 7); -YAP_UserCPredicate("gecode_constraint_path_348", gecode_constraint_path_348, 7); -YAP_UserCPredicate("gecode_constraint_divmod_166", gecode_constraint_divmod_166, 6); -YAP_UserCPredicate("gecode_constraint_sorted_441", gecode_constraint_sorted_441, 3); -YAP_UserCPredicate("gecode_constraint_extensional_252", gecode_constraint_extensional_252, 4); -YAP_UserCPredicate("gecode_constraint_extensional_255", gecode_constraint_extensional_255, 4); -YAP_UserCPredicate("gecode_constraint_extensional_247", gecode_constraint_extensional_247, 4); -YAP_UserCPredicate("gecode_constraint_extensional_250", gecode_constraint_extensional_250, 4); -YAP_UserCPredicate("gecode_constraint_circuit_84", gecode_constraint_circuit_84, 3); -YAP_UserCPredicate("gecode_constraint_circuit_83", gecode_constraint_circuit_83, 3); -YAP_UserCPredicate("gecode_constraint_channel_71", gecode_constraint_channel_71, 3); -YAP_UserCPredicate("gecode_constraint_channel_61", gecode_constraint_channel_61, 3); -YAP_UserCPredicate("gecode_constraint_channel_64", gecode_constraint_channel_64, 3); -YAP_UserCPredicate("gecode_constraint_channel_59", gecode_constraint_channel_59, 3); -YAP_UserCPredicate("gecode_constraint_channel_67", gecode_constraint_channel_67, 3); -YAP_UserCPredicate("gecode_constraint_channel_65", gecode_constraint_channel_65, 3); -YAP_UserCPredicate("gecode_constraint_channel_72", gecode_constraint_channel_72, 3); -YAP_UserCPredicate("gecode_constraint_channel_70", gecode_constraint_channel_70, 3); -YAP_UserCPredicate("gecode_constraint_count_92", gecode_constraint_count_92, 5); -YAP_UserCPredicate("gecode_constraint_count_94", gecode_constraint_count_94, 5); -YAP_UserCPredicate("gecode_constraint_count_110", gecode_constraint_count_110, 5); -YAP_UserCPredicate("gecode_constraint_count_112", gecode_constraint_count_112, 5); -YAP_UserCPredicate("gecode_constraint_count_102", gecode_constraint_count_102, 5); -YAP_UserCPredicate("gecode_constraint_count_104", gecode_constraint_count_104, 5); -YAP_UserCPredicate("gecode_constraint_count_101", gecode_constraint_count_101, 5); -YAP_UserCPredicate("gecode_constraint_count_97", gecode_constraint_count_97, 5); -YAP_UserCPredicate("gecode_constraint_count_107", gecode_constraint_count_107, 5); -YAP_UserCPredicate("gecode_constraint_count_114", gecode_constraint_count_114, 5); -YAP_UserCPredicate("gecode_constraint_count_116", gecode_constraint_count_116, 5); -YAP_UserCPredicate("gecode_constraint_cumulatives_156", gecode_constraint_cumulatives_156, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_154", gecode_constraint_cumulatives_154, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_152", gecode_constraint_cumulatives_152, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_150", gecode_constraint_cumulatives_150, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_148", gecode_constraint_cumulatives_148, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_146", gecode_constraint_cumulatives_146, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_144", gecode_constraint_cumulatives_144, 8); -YAP_UserCPredicate("gecode_constraint_cumulatives_142", gecode_constraint_cumulatives_142, 8); -YAP_UserCPredicate("gecode_constraint_binpacking_55", gecode_constraint_binpacking_55, 5); -YAP_UserCPredicate("gecode_constraint_extensional_251", gecode_constraint_extensional_251, 3); -YAP_UserCPredicate("gecode_constraint_extensional_254", gecode_constraint_extensional_254, 3); -YAP_UserCPredicate("gecode_constraint_extensional_246", gecode_constraint_extensional_246, 3); -YAP_UserCPredicate("gecode_constraint_extensional_249", gecode_constraint_extensional_249, 3); -YAP_UserCPredicate("gecode_constraint_linear_293", gecode_constraint_linear_293, 6); -YAP_UserCPredicate("gecode_constraint_linear_297", gecode_constraint_linear_297, 6); -YAP_UserCPredicate("gecode_constraint_linear_261", gecode_constraint_linear_261, 6); -YAP_UserCPredicate("gecode_constraint_linear_265", gecode_constraint_linear_265, 6); -YAP_UserCPredicate("gecode_constraint_linear_269", gecode_constraint_linear_269, 6); -YAP_UserCPredicate("gecode_constraint_linear_267", gecode_constraint_linear_267, 6); -YAP_UserCPredicate("gecode_constraint_linear_284", gecode_constraint_linear_284, 6); -YAP_UserCPredicate("gecode_constraint_linear_283", gecode_constraint_linear_283, 6); -YAP_UserCPredicate("gecode_constraint_linear_288", gecode_constraint_linear_288, 6); -YAP_UserCPredicate("gecode_constraint_linear_287", gecode_constraint_linear_287, 6); -YAP_UserCPredicate("gecode_constraint_linear_276", gecode_constraint_linear_276, 6); -YAP_UserCPredicate("gecode_constraint_linear_275", gecode_constraint_linear_275, 6); -YAP_UserCPredicate("gecode_constraint_linear_280", gecode_constraint_linear_280, 6); -YAP_UserCPredicate("gecode_constraint_linear_279", gecode_constraint_linear_279, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_333", gecode_constraint_nooverlap_333, 7); -YAP_UserCPredicate("gecode_constraint_nooverlap_328", gecode_constraint_nooverlap_328, 7); -YAP_UserCPredicate("gecode_constraint_div_164", gecode_constraint_div_164, 5); -YAP_UserCPredicate("gecode_constraint_sqr_445", gecode_constraint_sqr_445, 4); -YAP_UserCPredicate("gecode_constraint_path_355", gecode_constraint_path_355, 8); -YAP_UserCPredicate("gecode_constraint_path_352", gecode_constraint_path_352, 8); -YAP_UserCPredicate("gecode_constraint_path_349", gecode_constraint_path_349, 8); -YAP_UserCPredicate("gecode_constraint_unary_457", gecode_constraint_unary_457, 5); -YAP_UserCPredicate("gecode_constraint_unary_460", gecode_constraint_unary_460, 5); -YAP_UserCPredicate("gecode_constraint_unary_453", gecode_constraint_unary_453, 5); -YAP_UserCPredicate("gecode_constraint_unary_456", gecode_constraint_unary_456, 5); -YAP_UserCPredicate("gecode_constraint_unary_450", gecode_constraint_unary_450, 5); -YAP_UserCPredicate("gecode_constraint_sorted_439", gecode_constraint_sorted_439, 4); -YAP_UserCPredicate("gecode_constraint_sorted_442", gecode_constraint_sorted_442, 4); -YAP_UserCPredicate("gecode_constraint_element_223", gecode_constraint_element_223, 8); -YAP_UserCPredicate("gecode_constraint_element_217", gecode_constraint_element_217, 8); -YAP_UserCPredicate("gecode_constraint_element_235", gecode_constraint_element_235, 8); -YAP_UserCPredicate("gecode_constraint_element_233", gecode_constraint_element_233, 8); -YAP_UserCPredicate("gecode_constraint_assign_16", gecode_constraint_assign_16, 4); -YAP_UserCPredicate("gecode_constraint_assign_7", gecode_constraint_assign_7, 4); -YAP_UserCPredicate("gecode_constraint_assign_4", gecode_constraint_assign_4, 4); -YAP_UserCPredicate("gecode_constraint_assign_2", gecode_constraint_assign_2, 4); -YAP_UserCPredicate("gecode_constraint_assign_10", gecode_constraint_assign_10, 4); -YAP_UserCPredicate("gecode_constraint_assign_18", gecode_constraint_assign_18, 4); -YAP_UserCPredicate("gecode_constraint_assign_13", gecode_constraint_assign_13, 4); -YAP_UserCPredicate("gecode_constraint_assign_20", gecode_constraint_assign_20, 4); -YAP_UserCPredicate("gecode_constraint_element_221", gecode_constraint_element_221, 5); -YAP_UserCPredicate("gecode_constraint_element_225", gecode_constraint_element_225, 5); -YAP_UserCPredicate("gecode_constraint_element_215", gecode_constraint_element_215, 5); -YAP_UserCPredicate("gecode_constraint_element_213", gecode_constraint_element_213, 5); -YAP_UserCPredicate("gecode_constraint_element_244", gecode_constraint_element_244, 5); -YAP_UserCPredicate("gecode_constraint_element_242", gecode_constraint_element_242, 5); -YAP_UserCPredicate("gecode_constraint_element_240", gecode_constraint_element_240, 5); -YAP_UserCPredicate("gecode_constraint_element_238", gecode_constraint_element_238, 5); -YAP_UserCPredicate("gecode_constraint_element_231", gecode_constraint_element_231, 5); -YAP_UserCPredicate("gecode_constraint_element_237", gecode_constraint_element_237, 5); -YAP_UserCPredicate("gecode_constraint_element_229", gecode_constraint_element_229, 5); -YAP_UserCPredicate("gecode_constraint_sequence_438", gecode_constraint_sequence_438, 3); -YAP_UserCPredicate("gecode_constraint_branch_30", gecode_constraint_branch_30, 5); -YAP_UserCPredicate("gecode_constraint_branch_26", gecode_constraint_branch_26, 5); -YAP_UserCPredicate("gecode_constraint_branch_24", gecode_constraint_branch_24, 5); -YAP_UserCPredicate("gecode_constraint_branch_32", gecode_constraint_branch_32, 5); -YAP_UserCPredicate("gecode_constraint_branch_36", gecode_constraint_branch_36, 5); -YAP_UserCPredicate("gecode_constraint_branch_42", gecode_constraint_branch_42, 5); -YAP_UserCPredicate("gecode_constraint_branch_38", gecode_constraint_branch_38, 5); -YAP_UserCPredicate("gecode_constraint_circuit_79", gecode_constraint_circuit_79, 7); -YAP_UserCPredicate("gecode_constraint_pow_361", gecode_constraint_pow_361, 4); -YAP_UserCPredicate("gecode_constraint_pow_360", gecode_constraint_pow_360, 4); -YAP_UserCPredicate("gecode_constraint_precede_367", gecode_constraint_precede_367, 3); -YAP_UserCPredicate("gecode_constraint_precede_363", gecode_constraint_precede_363, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_128", gecode_constraint_cumulative_128, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_124", gecode_constraint_cumulative_124, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_118", gecode_constraint_cumulative_118, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_121", gecode_constraint_cumulative_121, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_140", gecode_constraint_cumulative_140, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_136", gecode_constraint_cumulative_136, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_130", gecode_constraint_cumulative_130, 6); -YAP_UserCPredicate("gecode_constraint_cumulative_133", gecode_constraint_cumulative_133, 6); -YAP_UserCPredicate("gecode_constraint_distinct_159", gecode_constraint_distinct_159, 4); -YAP_UserCPredicate("gecode_constraint_min_314", gecode_constraint_min_314, 3); -YAP_UserCPredicate("gecode_constraint_min_315", gecode_constraint_min_315, 3); -YAP_UserCPredicate("gecode_constraint_min_320", gecode_constraint_min_320, 3); -YAP_UserCPredicate("gecode_constraint_sqrt_448", gecode_constraint_sqrt_448, 4); -YAP_UserCPredicate("gecode_constraint_sequence_435", gecode_constraint_sequence_435, 6); -YAP_UserCPredicate("gecode_constraint_sequence_433", gecode_constraint_sequence_433, 6); -YAP_UserCPredicate("gecode_constraint_unshare_464", gecode_constraint_unshare_464, 3); -YAP_UserCPredicate("gecode_constraint_unshare_462", gecode_constraint_unshare_462, 3); -YAP_UserCPredicate("gecode_constraint_path_359", gecode_constraint_path_359, 6); -YAP_UserCPredicate("gecode_constraint_path_350", gecode_constraint_path_350, 6); -YAP_UserCPredicate("gecode_constraint_divmod_165", gecode_constraint_divmod_165, 5); -YAP_UserCPredicate("gecode_constraint_branch_31", gecode_constraint_branch_31, 6); -YAP_UserCPredicate("gecode_constraint_branch_27", gecode_constraint_branch_27, 6); -YAP_UserCPredicate("gecode_constraint_branch_25", gecode_constraint_branch_25, 6); -YAP_UserCPredicate("gecode_constraint_branch_33", gecode_constraint_branch_33, 6); -YAP_UserCPredicate("gecode_constraint_branch_37", gecode_constraint_branch_37, 6); -YAP_UserCPredicate("gecode_constraint_branch_43", gecode_constraint_branch_43, 6); -YAP_UserCPredicate("gecode_constraint_branch_39", gecode_constraint_branch_39, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_332", gecode_constraint_nooverlap_332, 9); -YAP_UserCPredicate("gecode_constraint_cumulative_120", gecode_constraint_cumulative_120, 5); -YAP_UserCPredicate("gecode_constraint_cumulative_132", gecode_constraint_cumulative_132, 5); -YAP_UserCPredicate("gecode_constraint_member_310", gecode_constraint_member_310, 3); -YAP_UserCPredicate("gecode_constraint_member_306", gecode_constraint_member_306, 3); -YAP_UserCPredicate("gecode_constraint_count_111", gecode_constraint_count_111, 6); -YAP_UserCPredicate("gecode_constraint_count_113", gecode_constraint_count_113, 6); -YAP_UserCPredicate("gecode_constraint_count_115", gecode_constraint_count_115, 6); -YAP_UserCPredicate("gecode_constraint_count_117", gecode_constraint_count_117, 6); -YAP_UserCPredicate("gecode_constraint_count_103", gecode_constraint_count_103, 6); -YAP_UserCPredicate("gecode_constraint_count_105", gecode_constraint_count_105, 6); -YAP_UserCPredicate("gecode_constraint_count_93", gecode_constraint_count_93, 6); -YAP_UserCPredicate("gecode_constraint_count_95", gecode_constraint_count_95, 6); -YAP_UserCPredicate("gecode_constraint_pow_362", gecode_constraint_pow_362, 5); -YAP_UserCPredicate("gecode_constraint_notMin_336", gecode_constraint_notMin_336, 3); -YAP_UserCPredicate("gecode_constraint_cumulative_127", gecode_constraint_cumulative_127, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_123", gecode_constraint_cumulative_123, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_139", gecode_constraint_cumulative_139, 8); -YAP_UserCPredicate("gecode_constraint_cumulative_135", gecode_constraint_cumulative_135, 8); -YAP_UserCPredicate("gecode_constraint_branch_46", gecode_constraint_branch_46, 3); -YAP_UserCPredicate("gecode_constraint_branch_21", gecode_constraint_branch_21, 3); -YAP_UserCPredicate("gecode_constraint_branch_44", gecode_constraint_branch_44, 3); -YAP_UserCPredicate("gecode_constraint_branch_48", gecode_constraint_branch_48, 3); -YAP_UserCPredicate("gecode_constraint_dom_188", gecode_constraint_dom_188, 3); -YAP_UserCPredicate("gecode_constraint_dom_190", gecode_constraint_dom_190, 3); -YAP_UserCPredicate("gecode_constraint_dom_171", gecode_constraint_dom_171, 3); -YAP_UserCPredicate("gecode_constraint_dom_173", gecode_constraint_dom_173, 3); -YAP_UserCPredicate("gecode_constraint_dom_169", gecode_constraint_dom_169, 3); -YAP_UserCPredicate("gecode_constraint_dom_167", gecode_constraint_dom_167, 3); -YAP_UserCPredicate("gecode_constraint_dom_178", gecode_constraint_dom_178, 3); -YAP_UserCPredicate("gecode_constraint_dom_176", gecode_constraint_dom_176, 3); -YAP_UserCPredicate("gecode_constraint_dom_174", gecode_constraint_dom_174, 3); -YAP_UserCPredicate("gecode_constraint_dom_195", gecode_constraint_dom_195, 3); -YAP_UserCPredicate("gecode_constraint_dom_203", gecode_constraint_dom_203, 3); -YAP_UserCPredicate("gecode_constraint_dom_191", gecode_constraint_dom_191, 3); -YAP_UserCPredicate("gecode_constraint_dom_182", gecode_constraint_dom_182, 3); -YAP_UserCPredicate("gecode_constraint_dom_211", gecode_constraint_dom_211, 3); -YAP_UserCPredicate("gecode_constraint_linear_292", gecode_constraint_linear_292, 5); -YAP_UserCPredicate("gecode_constraint_linear_291", gecode_constraint_linear_291, 5); -YAP_UserCPredicate("gecode_constraint_linear_296", gecode_constraint_linear_296, 5); -YAP_UserCPredicate("gecode_constraint_linear_295", gecode_constraint_linear_295, 5); -YAP_UserCPredicate("gecode_constraint_linear_273", gecode_constraint_linear_273, 5); -YAP_UserCPredicate("gecode_constraint_linear_271", gecode_constraint_linear_271, 5); -YAP_UserCPredicate("gecode_constraint_linear_260", gecode_constraint_linear_260, 5); -YAP_UserCPredicate("gecode_constraint_linear_259", gecode_constraint_linear_259, 5); -YAP_UserCPredicate("gecode_constraint_linear_264", gecode_constraint_linear_264, 5); -YAP_UserCPredicate("gecode_constraint_linear_263", gecode_constraint_linear_263, 5); -YAP_UserCPredicate("gecode_constraint_linear_268", gecode_constraint_linear_268, 5); -YAP_UserCPredicate("gecode_constraint_linear_266", gecode_constraint_linear_266, 5); -YAP_UserCPredicate("gecode_constraint_linear_282", gecode_constraint_linear_282, 5); -YAP_UserCPredicate("gecode_constraint_linear_286", gecode_constraint_linear_286, 5); -YAP_UserCPredicate("gecode_constraint_linear_274", gecode_constraint_linear_274, 5); -YAP_UserCPredicate("gecode_constraint_linear_278", gecode_constraint_linear_278, 5); -YAP_UserCPredicate("gecode_constraint_nooverlap_327", gecode_constraint_nooverlap_327, 6); -YAP_UserCPredicate("gecode_constraint_nooverlap_330", gecode_constraint_nooverlap_330, 6); -YAP_UserCPredicate("gecode_constraint_element_245", gecode_constraint_element_245, 6); -YAP_UserCPredicate("gecode_constraint_element_243", gecode_constraint_element_243, 6); -YAP_UserCPredicate("gecode_constraint_element_241", gecode_constraint_element_241, 6); -YAP_UserCPredicate("gecode_constraint_element_239", gecode_constraint_element_239, 6); -YAP_UserCPredicate("gecode_constraint_rel_405", gecode_constraint_rel_405, 4); -YAP_UserCPredicate("gecode_constraint_rel_407", gecode_constraint_rel_407, 4); -YAP_UserCPredicate("gecode_constraint_rel_423", gecode_constraint_rel_423, 4); -YAP_UserCPredicate("gecode_constraint_rel_421", gecode_constraint_rel_421, 4); -YAP_UserCPredicate("gecode_constraint_rel_393", gecode_constraint_rel_393, 4); -YAP_UserCPredicate("gecode_constraint_rel_394", gecode_constraint_rel_394, 4); -YAP_UserCPredicate("gecode_constraint_rel_391", gecode_constraint_rel_391, 4); -YAP_UserCPredicate("gecode_constraint_rel_387", gecode_constraint_rel_387, 4); -YAP_UserCPredicate("gecode_constraint_rel_385", gecode_constraint_rel_385, 4); -YAP_UserCPredicate("gecode_constraint_rel_390", gecode_constraint_rel_390, 4); -YAP_UserCPredicate("gecode_constraint_rel_381", gecode_constraint_rel_381, 4); -YAP_UserCPredicate("gecode_constraint_rel_377", gecode_constraint_rel_377, 4); -YAP_UserCPredicate("gecode_constraint_rel_401", gecode_constraint_rel_401, 4); -YAP_UserCPredicate("gecode_constraint_rel_403", gecode_constraint_rel_403, 4); -YAP_UserCPredicate("gecode_constraint_rel_397", gecode_constraint_rel_397, 4); -YAP_UserCPredicate("gecode_constraint_rel_400", gecode_constraint_rel_400, 4); -YAP_UserCPredicate("gecode_constraint_rel_409", gecode_constraint_rel_409, 4); -YAP_UserCPredicate("gecode_constraint_rel_413", gecode_constraint_rel_413, 4); -YAP_UserCPredicate("gecode_constraint_rel_417", gecode_constraint_rel_417, 4); -YAP_UserCPredicate("gecode_constraint_rel_418", gecode_constraint_rel_418, 4); -YAP_UserCPredicate("gecode_constraint_rel_424", gecode_constraint_rel_424, 4); -YAP_UserCPredicate("gecode_constraint_rel_429", gecode_constraint_rel_429, 4); -YAP_UserCPredicate("gecode_constraint_rel_431", gecode_constraint_rel_431, 4); -YAP_UserCPredicate("gecode_constraint_rel_371", gecode_constraint_rel_371, 4); -YAP_UserCPredicate("gecode_constraint_rel_369", gecode_constraint_rel_369, 4); -YAP_UserCPredicate("gecode_constraint_min_319", gecode_constraint_min_319, 5); -YAP_UserCPredicate("gecode_constraint_count_108", gecode_constraint_count_108, 3); -YAP_UserCPredicate("gecode_constraint_count_98", gecode_constraint_count_98, 3); -YAP_UserCPredicate("gecode_constraint_ite_257", gecode_constraint_ite_257, 6); diff --git a/library/gecode/DOC.txt b/library/gecode/DOC.txt deleted file mode 100644 index 601934345..000000000 --- a/library/gecode/DOC.txt +++ /dev/null @@ -1,189 +0,0 @@ -USING THE GECODE MODULE -======================= - -:- use_module(library(gecode)). - - -CREATING A SPACE -================ - - Space := space - -CREATING VARIABLES -================== - -Unlike in Gecode, variable objects are not bound to a specific Space. Each one -actually contains an index with which it is possible to access a Space-bound -Gecode variable. Variables can be created using the following expressions: - - IVar := intvar(Space,SPEC...) - BVar := boolvar(Space) - SVar := setvar(Space,SPEC...) - -where SPEC... is the same as in Gecode. For creating lists of variables use -the following variants: - - IVars := intvars(Space,N,SPEC...) - BVars := boolvars(Space,N,SPEC...) - SVars := setvars(Space,N,SPEC...) - -where N is the number of variables to create (just like for XXXVarArray in -Gecode). Sometimes an IntSet is necessary: - - ISet := intset([SPEC...]) - -where each SPEC is either an integer or a pair (I,J) of integers. An IntSet -describes a set of ints by providing either intervals, or integers (which stand -for an interval of themselves). It might be tempting to simply represent an -IntSet as a list of specs, but this would be ambiguous with IntArgs which, -here, are represented as lists of ints. - - Space += keep(Var) - Space += keep(Vars) - -Variables can be marked as "kept". In this case, only such variables will be -explicitly copied during search. This could bring substantial benefits in -memory usage. Of course, in a solution, you can then only look at variables -that have been "kept". If no variable is marked as "kept", then they are all -kept. Thus marking variables as "kept" is purely an optimization. - - -CONSTRAINTS AND BRANCHINGS -========================== - -all constraint and branching posting functions are available just like in -Gecode. Wherever a XXXArgs or YYYSharedArray is expected, simply use a list. -At present, there is no support for minimodel-like constraint posting. -Constraints and branchings are added to a space using: - - Space += CONSTRAINT - Space += BRANCHING - -For example: - - Space += rel(X,'IRT_EQ',Y) - -arrays of variables are represented by lists of variables, and constants are -represented by atoms with the same name as the Gecode constant -(e.g. 'INT_VAR_SIZE_MIN'). - -SEARCHING FOR SOLUTIONS -======================= - - SolSpace := search(Space) - -This is a backtrackable predicate that enumerates all solution spaces -(SolSpace). It may also take options: - - SolSpace := search(Space,Options) - -Options is a list whose elements maybe: - -restart - to select the Restart search engine -threads=N - to activate the parallel search engine and control the number of - workers (see Gecode doc) -c_d=N - to set the commit distance for recomputation -a_d=N - to set the adaptive distance for recomputation - -EXTRACTING INFO FROM A SOLUTION -=============================== - -An advantage of non Space-bound variables, is that you can use them both to -post constraints in the original space AND to consult their values in -solutions. Below are methods for looking up information about variables. Each -of these methods can either take a variable as argument, or a list of -variables, and returns resp. either a value, or a list of values: - - Val := assigned(Space,X) - - Val := min(Space,X) - Val := max(Space,X) - Val := med(Space,X) - Val := val(Space,X) - Val := size(Space,X) - Val := width(Space,X) - Val := regret_min(Space,X) - Val := regret_max(Space,X) - - Val := glbSize(Space,V) - Val := lubSize(Space,V) - Val := unknownSize(Space,V) - Val := cardMin(Space,V) - Val := cardMax(Space,V) - Val := lubMin(Space,V) - Val := lubMax(Space,V) - Val := glbMin(Space,V) - Val := glbMax(Space,V) - Val := glb_ranges(Space,V) - Val := lub_ranges(Space,V) - Val := unknown_ranges(Space,V) - Val := glb_values(Space,V) - Val := lub_values(Space,V) - Val := unknown_values(Space,V) - -DISJUNCTORS -=========== - -Disjunctors provide support for disjunctions of clauses, where each clause is a -conjunction of constraints: - - C1 or C2 or ... or Cn - -Each clause is executed "speculatively": this means it does not affect the main -space. When a clause becomes failed, it is discarded. When only one clause -remains, it is committed: this means that it now affects the main space. - -Example: - -Consider the problem where either X=Y=0 or X=Y+(1 or 2) for variable X and Y -that take values in 0..3. - - Space := space, - [X,Y] := intvars(Space,2,0,3), - -First, we must create a disjunctor as a manager for our 2 clauses: - - Disj := disjunctor(Space), - -We can now create our first clause: - - C1 := clause(Disj), - -This clause wants to constrain X and Y to 0. However, since it must be -executed "speculatively", it must operate on new variables X1 and Y1 that -shadow X and Y: - - [X1,Y1] := intvars(C1,2,0,3), - C1 += forward([X,Y],[X1,Y1]), - -The forward(...) stipulation indicates which global variable is shadowed by -which clause-local variable. Now we can post the speculative clause-local -constraints for X=Y=0: - - C1 += rel(X1,'IRT_EQ',0), - C1 += rel(Y1,'IRT_EQ',0), - -We now create the second clause which uses X2 and Y2 to shadow X and Y: - - C2 := clause(Disj), - [X2,Y2] := intvars(C2,2,0,3), - C2 += forward([X,Y],[X2,Y2]), - -However, this clause also needs a clause-local variable Z2 taking values 1 or -2 in order to post the clause-local constraint X2=Y2+Z2: - - Z2 := intvar(C2,1,2), - C2 += linear([-1,1,1],[X2,Y2,Z2],'IRT_EQ',0), - -Finally, we can branch and search: - - Space += branch([X,Y],'INT_VAR_SIZE_MIN','INT_VAL_MIN'), - SolSpace := search(Space), - -and lookup values of variables in each solution: - - [X_,Y_] := val(SolSpace,[X,Y]). diff --git a/library/gecode/Makefile.in b/library/gecode/Makefile.in deleted file mode 100644 index 047553535..000000000 --- a/library/gecode/Makefile.in +++ /dev/null @@ -1,78 +0,0 @@ -# -# default base directory for YAP installation -# (EROOT for architecture-dependent files) -# -prefix = @prefix@ -exec_prefix = @exec_prefix@ -ROOTDIR = $(prefix) -EROOTDIR = @exec_prefix@ -abs_top_builddir = @abs_top_builddir@ -# -# where the binary should be -# -BINDIR = $(EROOTDIR)/bin -# -# where YAP should look for libraries -# -LIBDIR=@libdir@ -YAPLIBDIR=@libdir@/Yap -# -# where YAP should look for architecture-independent Prolog libraries -# -SHAREDIR=$(ROOTDIR)/share -# -# -CXX=@CXX@ -CXXFLAGS= @SHLIB_CXXFLAGS@ $(YAP_EXTRAS) $(DEFS) -I. -I$(srcdir) -I../.. -I$(srcdir)/../../include -I$(srcdir)/../../os -# -# -# You shouldn't need to change what follows. -# -INSTALL=@INSTALL@ -INSTALL_DATA=@INSTALL_DATA@ -INSTALL_PROGRAM=@INSTALL_PROGRAM@ -SHELL=/bin/sh -RANLIB=@RANLIB@ -srcdir=@srcdir@ -SO=@SO@ -#4.1VPATH=@srcdir@:@srcdir@/OPTYap -CWD=$(PWD) -# - -OBJS=gecode_yap.o -SOBJS=gecode_yap.@SO@ - -GECODE_VERSION = @GECODE_VERSION@ -DISJUNCTOR = -DDISJUNCTOR -GECODE_LIBS = @GECODE_EXTRALIBS@ -GECODE_MAJOR = @GECODE_MAJOR@ -all: $(SOBJS) gecode.yap - -gecode_yap.o: \ - $(srcdir)/gecode$(GECODE_MAJOR)_yap.cc \ - $(srcdir)/gecode$(GECODE_MAJOR)-common.icc \ - $(srcdir)/$(GECODE_VERSION)/gecode_yap_cc_impl_auto_generated.icc \ - $(srcdir)/$(GECODE_VERSION)/gecode_yap_cc_init_auto_generated.icc \ - $(srcdir)/$(GECODE_VERSION)/gecode_yap_cc_forward_auto_generated.icc \ - $(srcdir)/disjunctor.icc \ - $(srcdir)/disjunctor.hh - $(CXX) -c -I$(srcdir)/$(GECODE_VERSION) $(CXXFLAGS) $(DISJUNCTOR) -o $@ $< - -@DO_SECOND_LD@gecode_yap.@SO@: gecode_yap.o -@DO_SECOND_LD@ @SHLIB_CXX_LD@ -o gecode_yap.@SO@ gecode_yap.o $(LDFLAGS) $(GECODE_LIBS) @EXTRA_LIBS_FOR_DLLS@ - -gecode.yap: $(srcdir)/gecode$(GECODE_MAJOR)_yap_hand_written.yap $(srcdir)/$(GECODE_VERSION)/gecode_yap_auto_generated.yap - cat $^ > $@ - -.PHONY: all clean install - -clean: - -rm -f *.o *.so *~ gecode.yap - -install: all - mkdir -p $(DESTDIR)$(YAPLIBDIR) - mkdir -p $(DESTDIR)$(SHAREDIR)/Yap - mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/gecode - $(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR) - $(INSTALL) gecode.yap $(DESTDIR)$(SHAREDIR)/Yap - $(INSTALL) $(srcdir)/clpfd.yap $(DESTDIR)$(SHAREDIR)/Yap/gecode diff --git a/library/gecode/Makefile.sav b/library/gecode/Makefile.sav deleted file mode 100644 index a2acd2056..000000000 --- a/library/gecode/Makefile.sav +++ /dev/null @@ -1,34 +0,0 @@ -CODEGEN=code-generator.py -DISJUNCTOR = -DDISJUNCTOR - -yap: gecode_yap.so gecode.yap - -gecode_yap.o: gecode_yap.cc gecode-common.icc \ - gecode_yap_cc_impl_auto_generated.icc \ - gecode_yap_cc_init_auto_generated.icc \ - gecode_yap_cc_forward_auto_generated.icc \ - disjunctor.icc disjunctor.hh - $(CXX) -Wall -ggdb -c -shared -fPIC $(DISJUNCTOR) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $< - -gecode_yap.so: gecode_yap.o - $(CXX) -shared $(LDFLAGS) -o $@ $< -lgecodeint -lgecodeset -lgecodesearch - -gecode_yap_cc_init_auto_generated.icc: $(CODEGEN) - python $< -t yap-cc-init > $@ - -gecode_yap_cc_impl_auto_generated.icc: $(CODEGEN) - python $< -t yap-cc-impl > $@ - -gecode_yap_cc_forward_auto_generated.icc: $(CODEGEN) - python $< -t yap-cc-forward > $@ - -gecode_yap_auto_generated.yap: $(CODEGEN) - python $< -t yap-prolog > $@ - -gecode.yap: gecode_yap_hand_written.yap gecode_yap_auto_generated.yap - cat $^ > $@ - -.PHONY: yap - -clean: - -rm -f *.o *.so *~ *_auto_generated* gecode.yap diff --git a/library/gecode/README b/library/gecode/README deleted file mode 100644 index c3bca8c57..000000000 --- a/library/gecode/README +++ /dev/null @@ -1,12 +0,0 @@ -Development of gecode/yap takes place in: - - git@github.com:denys-duchier/yap-6.3.git - -which tracks the official yap repository and is also regularly pulled into it. -see: - https://github.com/denys-duchier/yap-6.3 - -Enquiries/bug reports can be made either on the yap mailing list or to the -author denys.duchier /AT/ univ-orleans.fr. - -What litle documentation there is can be found in file DOC.txt. diff --git a/library/gecode/clp_examples/3jugs.yap b/library/gecode/clp_examples/3jugs.yap deleted file mode 100644 index 94dfaa918..000000000 --- a/library/gecode/clp_examples/3jugs.yap +++ /dev/null @@ -1,129 +0,0 @@ -% Example with matrices,based on: -% -% Three jugs problem in Minzinc modelled as a shortest path problem. -% -% Problem from Taha "Introduction to Operations Research", page 245 -% -% Model created by Hakan Kjellerstrand, hakank@bonetmail.com -% See also my MiniZinc page: http://www.hakank.org/minizinc - -% -% VSC: had to transpose the matrix, and change the constraints.... -% - -:- style_check( all ). - -:- use_module(library(gecode/clpfd)). -:- use_module(library(maplist)). -:- use_module(library(lists)). - -main :- - problem(Z, X, InFlow, OutFlow, N), - out(Z, X, InFlow, OutFlow, N), - fail. -main. - -problem(Z, X, InFlow, OutFlow, N) :- - N = 15, - Start = 1, - End = 15, - M = 999, - d( M, DD ), - D = array[1..N,1..N] of DD, % distance - RHS = array[1..N] of _, % requirements (right hand statement) - X = array[1..N, 1..N] of 0..1, % the resulting matrix, 1 if connected, 0 else - OutFlow = array[1..N] of 0..1, - InFlow = array[1..N] of 0..1, - -% objective to minimize - Z in 0..M, - Z #= sum( [I in 1..N, J in 1..N] where D[I,J] - RHS[I] <== 1 ; - I == End -> - RHS[I] <== -1 ; - RHS[I] <== 0 ) - ), - - - % must be larger than 0?? - foreach( [I in 1..N, J in 1..N], - ( D[J,I] = M -> - X[J,I] #= 0 ; - true ) - ), - % outflow constraint - foreach(I in 1..N, - OutFlow[I] #= sum(J in 1..N where D[J,I]. -%%============================================================================= - -:- use_module(library(gecode/clpfd)). -:- use_module(library(maplist)). - -% 5 people want to have a photograph together, but they have preferences. -photo(Ex, People, Amount) :- - ex(Ex, People, Preferences), - length(People, Len), - Len0 is Len-1, - People ins 0..Len0, - all_distinct(People), - % Bools are the satisfied constraints - maplist(preference_satisfied, Preferences, Bools), - length(Preferences, PLen), - Amount in 0..PLen, - sum( Bools ) #= Amount, - % add all satisfied constraints - maximize(Amount), - labeling([], People). - -%reification, use with care -preference_satisfied(X-Y, B) :- - abs(X - Y) #= 1 #<==> B. - -ex(s,[Alice,Bob,Carl,Deb,Evan], [Alice-Carl, - Carl-Deb, - Deb-Alice, - Evan-Alice, - Bob-Evan, - Carl-Evan, - Deb-Evan, - Evan-Bob]). - -ex(l,[Betty,Chris,Donald,Fred,Gary,Mary,Paul,Peter,Susan], - [Betty-Donald, - Betty-Gary, - Betty-Peter, - Chris-Gary, - Chris-Susan, - Donald-Fred, - Donald-Gary, - Fred-Betty, - Fred-Gary, - Gary-Mary, - Gary-Betty, - Mary-Betty, - Mary-Susan, - Paul-Donald, - Paul-Peter, - Peter-Susan, - Peter-Paul]). diff --git a/library/gecode/clp_examples/queens.yap b/library/gecode/clp_examples/queens.yap deleted file mode 100644 index 4131a68f5..000000000 --- a/library/gecode/clp_examples/queens.yap +++ /dev/null @@ -1,38 +0,0 @@ - -:- use_module(library(gecode/clpfd)). -:- use_module(library(maplist)). - -queens(N, Queens) :- - length(Queens, N), - Queens ins 1..N, - all_distinct(Queens), - foldl(inc, Queens, Inc, 0, _), % [0, 1, 2, .... ] - foldl(dec, Queens, Dec, 0, _), % [0, -1, -2, ... ] - all_distinct(Inc,Queens), - all_distinct(Dec,Queens), - labeling([], Queens). - -inc(_, I0, I0, I) :- - I is I0+1. - -dec(_, I0, I0, I) :- - I is I0-1. - -lqueens(N, Queens) :- - length(Queens, N), - Queens ins 1..N, - all_distinct(Queens), - lconstrain( Queens, 0 ), - labeling([], Queens). - -lconstrain([], _). -lconstrain( [Q|Queens], I0) :- - I is I0+1, - foldl(constrain(Q, I0), Queens, I, _), - lconstrain( Queens, I). - -constrain(Q, I, R, J, J1) :- - J1 is J+1, - Q + I #\= R + J, - Q - I #\= R - J. - diff --git a/library/gecode/clp_examples/send_more_money.yap b/library/gecode/clp_examples/send_more_money.yap deleted file mode 100644 index fc03a4337..000000000 --- a/library/gecode/clp_examples/send_more_money.yap +++ /dev/null @@ -1,34 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011, 2013 by Denys Duchier, Vitor Santos Costa -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -:- use_module(library(gecode/clpfd)). - -% S E N D -% + M O R E -% --------- -% M O N E Y -send_more_money(Letters) :- - [S,E,N,D,M,O,R,Y] = Letters, - Letters ins 0..9, - M #\= 0, - S #\= 0, - all_distinct(Letters), - 1000*S + 100*E + 10*N + D + - 1000*M + 100*O + 10*R + E #= - 10000*M + 1000*O + 100*N + 10*E + Y, - labeling([], Letters). diff --git a/library/gecode/clp_examples/send_most_money.yap b/library/gecode/clp_examples/send_most_money.yap deleted file mode 100644 index 9665b3eeb..000000000 --- a/library/gecode/clp_examples/send_most_money.yap +++ /dev/null @@ -1,36 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011, 2013 by Denys Duchier, Vitor Santos Costa -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -:- use_module(library(gecode/clpfd)). - -% S E N D -% + M O S T -% --------- -% M O N E Y -send_most_money(Letters, Money) :- - [S,E,N,D,M,O,T,Y] = Letters, - Letters ins 0..9, - Money in 0..99999, - M #\= 0, - S #\= 0, - all_distinct(Letters), - 1000*S + 100*E + 10*N + D + - 1000*M + 100*O + 10*S + T #= Money, - 10000*M + 1000*O + 100*N + 10*E + Y #= Money, - maximize(Money), - labeling([], Letters). diff --git a/library/gecode/clp_examples/sudoku.yap b/library/gecode/clp_examples/sudoku.yap deleted file mode 100644 index 34b5735d9..000000000 --- a/library/gecode/clp_examples/sudoku.yap +++ /dev/null @@ -1,79 +0,0 @@ - - -:- style_check(all). - -:- use_module(library(gecode/clpfd)). -:- use_module(library(maplist)). - - -sudoku( Ex ) :- - problem(Ex, Els), - output(Els). - -% -% gecode constraints -% -problem(Ex, Els) :- - length(Els, 81), - Els ins 1..9, - M <== matrix( Els, [dim=[9,9]] ), - % select rows - foreach( I in 0..8 , all_different(M[I,_]) ), - % select cols - foreach( J in 0..8, all_different(M[_,J]) ), - % select squares - foreach( [I,J] ins 0..2 , - all_different(M[I*3+(0..2),J*3+(0..2)]) ), - ex(Ex, Els), -% maplist( bound, Els, Exs), - labeling( [], Els ). - - -% The gecode interface doesn't support wake-ups on binding constained variables, this is the closest. -% -bound(El, X) :- - ( nonvar(X) -> El #= X ; true ). - -% -% output using matrix library -% -output(Els) :- - M <== matrix( Els, [dim=[9,9]] ), - foreach( I in 0..2 , output(M, I) ), - output_line. - -output(M, I) :- - output_line, - foreach( J in 0..2 , output_row(M, J+I*3) ). - -output_row( M, Row ) :- - L <== M[Row,_], - format('| ~d ~d ~d | ~d ~d ~d | ~d ~d ~d |~n', L). - -output_line :- - format(' ~|~`-t~24+~n', []). - -ex( 1, [ - _,6,_,1,_,4,_,5,_, - _,_,8,3,_,5,6,_,_, - 2,_,_,_,_,_,_,_,1, - 8,_,_,4,_,7,_,_,6, - _,_,6,_,_,_,3,_,_, - 7,_,_,9,_,1,_,_,4, - 5,_,_,_,_,_,_,_,2, - _,_,7,2,_,6,9,_,_, - _,4,_,5,_,8,_,7,_ - ] ). - - -ex(2, [ - _,_,1,_,8,_,6,_,4, - _,3,7,6,_,_,_,_,_, - 5,_,_,_,_,_,_,_,_, - _,_,_,_,_,5,_,_,_, - _,_,6,_,1,_,8,_,_, - _,_,_,4,_,_,_,_,_, - _,_,_,_,_,_,_,_,3, - _,_,_,_,_,7,5,2,_, - 8,_,2,_,9,_,7,_,_ - ] ). diff --git a/library/gecode/clp_examples/test.yap b/library/gecode/clp_examples/test.yap deleted file mode 100644 index 7a9862416a2773ef270f5e1c8bbab3f883a3787d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2807 zcmc&$VNau45Z$l#S4^^BZu72{+g7U^Yts73P2T56i-cf%t7It{z+K&6zh|ZtN|ma~ zOE$&=m*LKtbA~x|z8zCuyu>zGJlMq#MPVFMx7X=l{VBJ>I$b`+R>jd>7G^K%-Y(Lm zJz2z$t7R8qZ%3`e$2iIh4(JpPeLLdlq4rK<3w{@#NnNdqvT$B zz9!H01z*2P-fvG1m`73y$Gpz&(g_WvoVF~3D$Aff%Yd^;nt_^Z(oAR!q;9wc8RyMOqv02(HT(*J{O~iN=8SIe z8r_;0QlqQOR$@3hIKVRc$dTwgLOT1H2zr3)|g-vom z5945wCV7#e0SeVxgQjb)V!!5Vsjaa(MQF2P*U;BXa`E^KXSaBnn7%z8_E)CD%&1~! z)XvPPWM=eH*_NwN6muY2p+vQ=<`bjQScMYZ_~dwV#;?2Mzo+7Ph4s80>p8H>D|-I6 zj5_#_g=;8@wRhB%f<9MGE$EhwN=sSzUuC?gsJT%8Zg{*LkBLoSb6wAT6kks4i&EAL zuqn^GXzwt~!WR!CtdAjpU!T$yp{IFNG$)sMiR(d9U)m36eWup+`qff@yHrQ zYq@~~3wA`VccZ_{ORx@~qjmJ#syW};VQRH1x%$GcykpCUe7Q2_%9&%E+!qhZ)il`j zO6gjxF~;a+GwF^zwHKQMW^Cl60pAr8B%Sq6#;ayV)UWX$n*%Ovwl*w5@8Vg+AwEP^nrUwe@16KO!$DZR Nj3W4!EKfeh-XE5Rzw-b9 diff --git a/library/gecode/clpfd.yap b/library/gecode/clpfd.yap deleted file mode 100644 index e9a3c16f0..000000000 --- a/library/gecode/clpfd.yap +++ /dev/null @@ -1,1143 +0,0 @@ -:- module(clpfd, [ - op(100, yf, []), - op(760, yfx, #<==>), - op(750, xfy, #==>), - op(750, yfx, #<==), - op(740, yfx, #\/), - op(730, yfx, #\), - op(720, yfx, #/\), - op(710, fy, #\), - op(705, xfx, where), - op(700, xfx, #>), - op(700, xfx, #<), - op(700, xfx, #>=), - op(700, xfx, #=<), - op(700, xfx, #=), - op(700, xfx, #\=), - op(700, xf, #>), - op(700, xf, #<), - op(700, xf, #>=), - op(700, xf, #=<), - op(700, xf, #=), - op(700, xf, #\=), - op(700, xfx, in), - op(700, xfx, ins), - op(500, yfx, '<=>'), - op(500, yfx, '=>'), - op(450, xfx, ..), % should bind more tightly than \/ - (#>)/2, - (#<)/2, - (#>=)/2, - (#=<)/2, - (#=)/2, - (#\=)/2, - (#>)/1, - (#<)/1, - (#>=)/1, - (#=<)/1, - (#=)/1, - (#\=)/1, - (#<==>)/2, - (#==>)/2, - (#<==)/2, - (#\)/1, - (#\/)/2, - (#/\)/2, - in/2 , - ins/2, - boolvar/1, - boolvars/1, - all_different/1, - all_distinct/1, - all_distinct/2, - maximize/1, - minimize/1, - sum/3, - lex_chain/1, - minimum/2, - min/2, - maximum/2, - max/2, - scalar_product/4, - element/2, - extensional_constraint/2, - in_relation/2, - clause/4, - dfa/4, - in_dfa/2, - in_dfa/4, /* - tuples_in/2, */ - labeling/2 /*, - label/1, - indomain/1, - serialized/2, - global_cardinality/2, - global_cardinality/3, - circuit/1, - element/3, - automaton/3, - automaton/8, - transpose/2, - zcompare/3, - chain/2, - fd_var/1, - fd_inf/2, - fd_sup/2, - fd_size/2, - fd_dom/2 */ - ]). - -:- use_module(library(gecode)). -:- use_module(library(maplist)). -:- reexport(library(matrix), [(<==)/2, foreach/2, foreach/4, of/2]). - -% build array of constraints -% -matrix:array_extension(_.._ , clpfd:build). - -build( I..J, _, Size, L) :- - length( L, Size ), - L ins I..J. - -matrix:rhs_opaque(X) :- constraint(X). - -constraint( (_ #> _) ). -constraint( (_ #< _) ). -constraint( (_ #>= _) ). -constraint( (_ #=< _) ). -constraint( (_ #= _) ). -constraint( (_ #\= _) ). -constraint( (_ #\ _) ). -constraint( (_ #<==> _) ). -constraint( (_ #==> _) ). -constraint( (_ #<== _) ). -constraint( (_ #\/ _) ). -constraint( (_ #/\ _) ). -constraint( in(_, _) ). %2, -constraint( ins(_, _) ). %2, -constraint( all_different(_) ). %1, -constraint( all_distinct(_) ). %1, -constraint( all_distinct(_,_) ). %1, -constraint( sum(_, _, _) ). %3, -constraint( scalar_product(_, _, _, _) ). %4, -constraint( min(_, _) ). %2, -constraint( minimum(_, _) ). %2, -constraint( max(_, _) ). %2, -constraint( maximum(_, _) ). %2, -constraint( in_relation(_, _) ). %2, -constraint( in_dfa(_, _) ). %2, -constraint( in_dfa(_, _, _, _) ). %2, -constraint( tuples_in(_, _) ). %2, -constraint( labeling(_, _) ). %2, -constraint( label(_) ). %1, -constraint( indomain(_) ). %1, -constraint( lex_chain(_) ). %1, -constraint( serialized(_, _) ). %2, -constraint( global_cardinality(_, _) ). %2, -constraint( global_cardinality(_, _, _) ). %3, -constraint( circuit(_) ). %1, -constraint( element(_, _, _) ). %3, -constraint( automaton(_, _, _) ). %3, -constraint( automaton(_, _, _, _, _, _, _, _) ). %8, -constraint( transpose(_, _) ). %2, -constraint( zcompare(_, _, _) ). %3, -constraint( chain(_, _) ). %2, -constraint( element(_, _) ). %2, -constraint( fd_var(_) ). %1, -constraint( fd_inf(_, _) ). %2, -constraint( fd_sup(_, _) ). %2, -constraint( fd_size(_, _) ). %2, -constraint( fd_dom(_, _) ). %2 -constraint( clause(_, _, _, _) ). %2 - - -process_constraints((B0,B1), (NB0, NB1), Env) :- - process_constraints(B0, NB0, Env), - process_constraints(B1, NB1, Env). -process_constraints(B, B, env(_Space)) :- - constraint(B), !. -process_constraints(B, B, _Env). -% process_constraint(B, NB, Space). - -( A #= B) :- - get_home(Env), - check(A, NA), - check(B, NB), - post( rel(NA, (#=), NB), Env, _). -( A #\= B) :- - get_home(Env), - check(A, NA), - check(B, NB), - post( rel(NA, (#\=), NB), Env, _). -( A #< B) :- - get_home(Env), - check(A, NA), - check(B, NB), - post( rel(NA, (#<), NB), Env, _). -( A #> B) :- - get_home(Env), - check(A, NA), - check(B, NB), - post( rel(NA, (#>), NB), Env, _). -( A #=< B) :- - get_home(Env), - check(A, NA), - check(B, NB), - post( rel(NA, (#=<), NB), Env, _). -( A #>= B) :- - get_home(Env), - check(A, NA), - check(B, NB), - post( rel(NA, (#>=), NB), Env, _). -( A #= ) :- - get_home(Env), - check(A, NA), - post( rel(NA, (#=)), Env, _). -( A #\= ) :- - get_home(Env), - check(A, NA), - post( rel(NA, (#\=)), Env, _). -( A #< ) :- - get_home(Env), - check(A, NA), - post( rel(NA, (#<)), Env, _). -( A #> ) :- - get_home(Env), - check(A, NA), - post( rel(NA, (#>)), Env, _). -( A #=< ) :- - get_home(Env), - check(A, NA), - post( rel(NA, (#=<) ), Env, _). -( A #>= ) :- - get_home(Env), - check(A, NA), - post( rel(NA, (#>=)), Env, _). -sum( L, Op, V) :- - get_home( Env ), - check(L, NL), - check(V, NV), - post( rel(sum(NL), Op, NV), Env, _). -( A #<==> VBool) :- - get_home(Space-Map), - check(A, NA), - check(VBool, NVBool), - Bool := boolvar(Space), - m( NVBool, Bool, 0, 1, Map), - Space += reify(Bool, 'RM_EQV', R), - post(NA, Space-Map, R). -( A #==> VBool) :- - get_home(Space-Map), - check(A, NA), - check(VBool, NVBool), - Bool := boolvar(Space), - m( NVBool, Bool, 0, 1, Map), - Space += reify(Bool, 'RM_IMP', R), - post(NA, Space-Map, R). -( A #<== VBool) :- - get_home(Space-Map), - check(A, NA), - check(VBool, NVBool), - Bool := boolvar(Space), - m( NVBool, Bool, 0, 1, Map), - Space += reify(Bool, 'RM_PMI', R), - post(NA, Space-Map, R). -'#\\'(A) :- - get_home(Space-Map), - check(A, NA), - B := boolvar(Space), - Space += reify(B, 'RM_EQV', R), - Space += rel(B, 'BOT_EQV', 0), - post(NA, Space-Map, R). -( A1 #\/ A2 ) :- - get_home(Space-Map), - check(A1, NA1), - check(A2, NA2), - B1 := boolvar(Space), - B2 := boolvar(Space), - Space += reify(B1, 'RM_EQV', R1), - Space += reify(B2, 'RM_EQV', R2), - post(NA1, Space-Map, R1), - post(NA2, Space-Map, R2), - Space += rel(B1, B2, 'BOT_OR', 1). -( A1 #/\ A2 ) :- - get_home(Space-Map), - check(A1, NA1), - check(A2, NA2), - B1 := boolvar(Space), - B2 := boolvar(Space), - Space += reify(B1, 'RM_EQV', R1), - Space += reify(B2, 'RM_EQV', R2), - post(NA1, Space-Map, R1), - post(NA2, Space-Map, R2), - Space += rel(B1, B2, 'BOT_AND', 1). -( X in A..B) :- - get_home(Space-Map), - check(A, NA), - check(B, NB), - m(X, NX, NA, NB, Map), - NX := intvar(Space, NA, NB). -( Xs ins A..B) :- - get_home(Space-Map), - check(A, NA), - check(B, NB), - maplist(lm(NA, NB, Map), Xs, NXs), - length(Xs, N), - NXs := intvars(Space, N, NA, NB). -boolvar( X ) :- - get_home(Space-Map), - m(X, NX, 0, 1, Map), - NX := boolvar( Space ). -boolvars( Xs ) :- - get_home(Space-Map), - maplist(lm(0, 1, Map), Xs, NXs), - length(Xs, N), - NXs := boolvars( Space, N ). -all_different( Xs ) :- - get_home(Env), - check(Xs, NXs), - post( all_different( NXs ), Env, _ ). -all_distinct( Xs ) :- - get_home(Env), - check(Xs, NXs), - post( all_distinct( NXs ), Env, _ ). -all_distinct( Cs, Xs ) :- - get_home(Env), - check(Xs, NXs), - post( all_distinct( Cs, NXs ), Env, _ ). -scalar_product( Cs, Vs, Rels, X ) :- - get_home(Env), - check(Vs, NVs), - post( scalar_product( Cs, NVs, Rels, X ), Env, _ ). -lex_chain( Cs ) :- - get_home(Env), - check(Cs, NCs), - post( rel( NCs, '#=<' ), Env, _ ). -minimum( V, Xs ) :- - get_home(Env), - check(Xs, NXs), - check(V, NV), - post( rel( min(NXs), (#=), NV ), Env, _ ). -min( Xs, V ) :- - get_home(Env), - check(Xs, NXs), - check(V, NV), - post( rel( min(NXs), (#=), NV ), Env, _ ). -maximum( V, Xs ) :- - get_home(Env), - check(Xs, NXs), - check(V, NV), - post( rel( max(NXs), (#=), NV ), Env, _ ). -max( Xs, V ) :- - get_home(Env), - check(Xs, NXs), - check(V, NV), - post( rel( max(NXs), (#=), NV ), Env, _ ). -element( V, Xs ) :- - get_home(Env), - check(Xs, NXs), - check(V, NV), - post( element( NV, NXs ), Env, _ ). -in_relation( Xs, Rel ) :- - get_home(Env), - check(Xs, NXs), - post(in_tupleset(NXs, Rel), Env, _ ). -in_dfa( Xs, Rel ) :- - get_home(Env), - check(Xs, NXs), - post(in_dfa(NXs, Rel), Env, _ ). -in_dfa( Xs, S0, Ts, Fs ) :- - get_home(Env), - check(Xs, NXs), - post(in_dfa(NXs, S0, Ts, Fs), Env, _ ). -clause( and, Ps, Ns, V ) :- - get_home(Env), - check(Ps, NPs), - check(Ns, NNs), - check(V, NV), - post(clause( 'BOT_AND', NPs, NNs, NV), Env, _ ). -clause( or, Ps, Ns, V ) :- - get_home(Env), - check(Ps, NPs), - check(Ns, NNs), - check(V, NV), - post(clause( 'BOT_OR', NPs, NNs, NV), Env, _ ). - -labeling(Opts, Xs) :- - get_home(Space-Map), - foldl2( processs_lab_opt, Opts, 'INT_VAR_SIZE_MIN', BranchVar, 'INT_VAL_MIN', BranchVal), - term_variables(Xs, Vs), - check( Vs, X1s ), - ( X1s == [] -> true ; - maplist(ll(Map), X1s, NXs), - Space += branch(NXs, BranchVar, BranchVal) ). - -processs_lab_opt(leftmost, _, 'INT_VAR_NONE', BranchVal, BranchVal). -processs_lab_opt(min, _, 'INT_VAR_SIZE_MIN', BranchVal, BranchVal). -processs_lab_opt(max, _, 'INT_VAR_SIZE_MAX', BranchVal, BranchVal). -processs_lab_opt(ff, _, 'INT_VAR_DEGREE_MIN', BranchVal, BranchVal). -processs_lab_opt(min_step, BranchVar, BranchVar, _, 'INT_VAL_MIN'). -processs_lab_opt(max_step, BranchVar, BranchVar, _, 'INT_VAL_MIN'). -processs_lab_opt(bisect, BranchVar, BranchVar, _, 'INT_VAL_MED'). -processs_lab_opt(enum, BranchVar, BranchVar, _, 'INT_VALUES_MIN'). - - -maximize(V) :- - get_home(Space-Map), - l(V, I, Map), - Space += maximize(I). - -minimize(V) :- - get_home(Space-Map), - l(V, I, Map), - Space += minimize(I). - -extensional_constraint( Tuples, TupleSet) :- - TupleSet := tupleset( Tuples ). - -dfa( S0, Transitions, Finals, DFA) :- - DFA := dfa( S0, Transitions, Finals ). - - -check(V, NV) :- - ( var(V) -> V = NV ; - number(V) -> V = NV ; - is_list(V) -> maplist(check, V, NV) ; - V = sum(_,_) -> V = NV ; - V = '[]'(Indx, Mat) -> NV <== '[]'(Indx, Mat) ; - V = '$matrix'(_, _, _, _, C) -> C =.. [_|L], maplist(check, L, NV) ; - V = A+B -> check(A,NA), check(B, NB), NV = NB+NA ; - V = A-B -> check(A,NA), check(B, NB), NV = NB-NA ; - arith(V, _) -> V =.. [C|L], maplist(check, L, NL), NV =.. [C|NL] ; - constraint(V) -> V =.. [C|L], maplist(check, L, NL), NV =.. [C|NL] ). - -post( ( A #= B), Env, Reify) :- - post( rel( A, (#=), B), Env, Reify). -post( ( A #\= B), Env, Reify) :- - post( rel( A, (#\=), B), Env, Reify). -post( ( A #> B), Env, Reify) :- - post( rel( A, (#>), B), Env, Reify). -post( ( A #< B), Env, Reify) :- - post( rel( A, (#<), B), Env, Reify). -post( ( A #>= B), Env, Reify) :- - post( rel( A, (#>=), B), Env, Reify). -post( ( A #=< B), Env, Reify) :- - post( rel( A, (#=<), B), Env, Reify). -% [X,Y,Z] #< -post( rel( A, Op), Space-Map, Reify):- - ( var( A ) -> l(A, IA, Map) ; checklist( var, A ) -> maplist(ll(Map), A, IA ) ), - gecode_arith_op( Op, GOP ), - (var(Reify) -> Space += rel(IA, GOP) ; - Space += rel(IA, GOP, Reify) ). - -% X #< Y -% X #< 2 -post( rel( A, Op, B), Space-Map, Reify):- - var(A), - ( var(B) -> l(B, IB, Map) ; integer(B) -> IB = B ), !, - l(A, IA, Map), - gecode_arith_op( Op, GOP ), - (var(Reify) -> Space += rel(IA, GOP, IB) ; - Space += rel(IA, GOP, IB, Reify) ). - -% 2 #\= B -> reverse -post( rel( A, Op, B), Space-Map, Reify) :- - ( var(A) ; integer(A) ), !, - reverse_arith_op( Op, ROp ), - post( rel( B, ROp, A), Space-Map, Reify). - -% A is never unbound - -% [A,B,C,D] #< 3 -post( rel( A, Op, B ), Space-Map, Reify):- - checklist( var, A ), !, - maplist(ll(Map), A, IL ), - ( var(B) -> l(B, IB, Map) ; integer(B) -> IB = B ; equality(B, NB, Space-Map), l(NB, IB, Map) ), !, - gecode_arith_op( Op, GOP ), - (var(Reify) -> Space += rel(IL, GOP) ; - Space += rel(IL, GOP, IB) ). - -% sum([A,B,C]) #= X -post( rel( sum(L), Op, Out), Space-Map, Reify):- !, - checklist( var, L ), !, - maplist(ll(Map), L, IL ), - ( var(Out) -> l(Out, IOut, Map) ; integer(Out) -> IOut = Out ; equality(Out, NOut, Space-Map), l(NOut, IOut, Map) ), - gecode_arith_op( Op, GOP ), - (var(Reify) -> - Space += linear(IL, GOP, IOut); - Space += linear(IL, GOP, IOut, Reify) - ). - -% count([A,B,C], 3) #= X -post( rel( count(X, Y), Op, Out), Space-Map, Reify):- !, - ( checklist( var, X ) -> maplist(ll(Map), X, IX ) ), - ( var(Y) -> l(Y, IY, Map) ; integer(Y) -> IY = Y ; equality(Y, NY, Space-Map), l(NY, IY, Map) ), - ( var(Out) -> l(Out, IOut, Map) ; integer(Out) -> IOut = Out ; equality(Out, NOut, Space-Map), l(NOut, IOut, Map) ), !, - gecode_arith_op( Op, GOP ), - (var(Reify) -> - Space += count(IX, IY, GOP, IOut); - Space += count(IX, IY, GOP, IOut, Reify) - ). - - -% sum([I in 0..N-1, M[I]]) #= X -post( rel( sum(Foreach, Cond), Op, Out), Space-Map, Reify):- !, - ( var(Out) -> l(Out, IOut, Map) ; integer(Out) -> IOut = Out ; equality(Out, NOut, Space-Map), l(NOut, IOut, Map) ), - cond2list( Foreach, Cond, Cs, L), - maplist(ll(Map), [Out|L], [IOut|IL] ), - gecode_arith_op( Op, GOP ), - (L = [] -> true ; - var(Reify) -> - Space += linear(Cs, IL, GOP, IOut); - Space += linear(Cs, IL, GOP, IOut, Reify) - ). - -post( rel(A1+A2, Op, B), Space-Map, Reify):- - ( nonvar(B) ; B = _ + _ ; B = _-_), !, - linearize(A1+A2, 1, As, Bs, CAs, CBs, 0, A0, Space-Map), - linearize(B, -1, Bs, [], CBs, [], A0, B0, Space-Map), - gecode_arith_op( Op, GOP ), - (var(Reify) -> - ( checklist(is_one, CAs) -> - Space += linear(As, GOP, B0); - Space += linear(CAs, As, GOP, B0) - ) - ; - ( checklist(is_one, CAs) -> - Space += linear(As, GOP, B0, Reify); - Space += linear(CAs, As, GOP, B0, Reify) - ) - ). - -post( rel(A1-A2, Op, B), Space-Map, Reify):- - ( nonvar(B) ; B = _ + _ ; B = _-_), !, - linearize(A1-A2, 1, As, Bs, CAs, CBs, 0, A0, Space-Map), - linearize(B, -1, Bs, [], CBs, [], A0, B0, Space-Map), - gecode_arith_op( Op, GOP ), - (var(Reify) -> - ( checklist(is_one, CAs) -> - Space += linear(As, GOP, B0); - Space += linear(CAs, As, GOP, B0) - ) - ; - ( checklist(is_one, CAs) -> - Space += linear(As, GOP, B0, Reify); - Space += linear(CAs, As, GOP, B0, Reify) - ) - ). - -post( rel(A, Op, B), Space-Map, Reify):- - arith(A, Name), - A =.. [_Op,A1], - is_list(A1), !, - ( _Op = min -> true ; _Op = max ), - maplist(equality_l( Space-Map), A1, NA1), - maplist(in_c_l( Space-Map), NA1, VA1), - equality(B, B1, Space-Map), - out_c(Name, VA1, B1, Op, Space-Map, Reify). - -post( rel(A, Op, B), Space-Map, Reify):- - arith(A, Name), - A =.. [_Op,A1], !, - equality(A1, NA1, Space-Map), - in_c(NA1, VA1, Space-Map), !, - equality(B, B1, Space-Map), - out_c(Name, VA1, B1, Op, Space-Map, Reify). - -post( rel(A, Op, B), Space-Map, Reify):- - arith(A, Name), - A =.. [_Op,A1,A2], !, - equality(A1, NA1, Space-Map), - in_c(NA1, VA1, Space-Map), - equality(A2, NA2, Space-Map), - in_c(NA2, VA2, Space-Map), - equality(B, B1, Space-Map), - out_c(Name, VA1, VA2, B1, Op, Space-Map, Reify). - -post( scalar_product(Cs, L, Op, Out), Space-Map, Reify):- - var(Out), !, - maplist(ll(Map), [Out|L], [IOut|IL] ), - gecode_arith_op( Op, GOP ), - (var(Reify) -> - Space += linear(Cs, IL, GOP, IOut); - Space += linear(Cs, IL, GOP, IOut, Reify) - ). -post( scalar_product(Cs, L, Op, Out), Space-Map, Reify):- - integer(Out), !, - maplist(ll(Map), L, IL ), - gecode_arith_op( Op, GOP ), - (var(Reify) -> - Space += linear(Cs, IL, GOP, Out); - Space += linear(Cs, IL, GOP, Out, Reify) - ). -post( all_different( Xs ), Space-Map, Reify) :- - maplist(ll(Map), Xs, NXs), - (var(Reify) -> - Space += distinct(NXs) - ; - throw(error(domain(not_reifiable),all_different( Xs ))) - ). -post( all_distinct( Xs ), Space-Map, Reify) :- - maplist(ll(Map), Xs, NXs), - (var(Reify) -> - Space += distinct(NXs) - ; - throw(error(domain(not_reifiable),all_distinct( Xs ))) - ). -post( all_distinct( Cs , Xs ), Space-Map, Reify) :- - maplist(ll(Map), Xs, NXs), - (var(Reify) -> - Space += distinct(Cs,NXs) - ; - throw(error(domain(not_reifiable),all_distinct( Cs , Xs ))) - ). -post(in_tupleset(Xs, Tuples), Space-Map, Reify) :- - is_list( Tuples ), !, - TS := tupleset( Tuples ), - maplist(ll(Map), Xs, IXs), - (var(Reify) -> - Space += extensional(IXs, TS) - ; - throw(error(domain(not_reifiable),in_relation(Xs, Tuples))) - ). -post(in_tupleset(Xs, TS), Space-Map, Reify) :- - maplist(ll(Map), Xs, IXs), - (var(Reify) -> - Space += extensional(IXs, TS) - ; - throw(error(domain(not_reifiable),in_relation(Xs, TS))) - ). -post(in_dfa(Xs, S0, Trs, Fs), Space-Map, Reify) :- - TS := dfa( S0, Trs, Fs ), - maplist(ll(Map), Xs, IXs), - (var(Reify) -> - Space += extensional(IXs, TS) - ; - throw(error(domain(not_reifiable),in_dfa(Xs, S0, Trs, Fs))) - ). -post(in_dfa(Xs, TS), Space-Map, Reify) :- - maplist(ll(Map), Xs, IXs), - (var(Reify) -> - Space += extensional(IXs, TS) - ; - throw(error(domain(not_reifiable),in_dfa(Xs, TS))) - ). - -post(element(V, Xs), Space-Map, Reify) :- - l(V, IV, Map), - maplist(ll(Map), Xs, IXs), - (var(Reify) -> - Space += element(IV, IXs) - ; - Space += element(IV, IXs, Reify) - ). - -post(clause( Type, Ps, Ns, V), Space-Map, Reify) :- - (integer(V) -> V = IV ; l(V, IV, Map) ), - maplist(ll(Map), Ps, IPs), - maplist(ll(Map), Ns, INs), - (var(Reify) -> - Space += clause(Type, IPs, INs, IV) - ; - Space += clause(Type, IPs, INs, IV, Reify) - ). - -gecode_arith_op( (#=) , 'IRT_EQ' ). -gecode_arith_op( (#\=) , 'IRT_NQ' ). -gecode_arith_op( (#>) , 'IRT_GR' ). -gecode_arith_op( (#>=) , 'IRT_GQ' ). -gecode_arith_op( (#<) , 'IRT_LE' ). -gecode_arith_op( (#=<) , 'IRT_LQ' ). - -reverse_arith_op( (#=) , (#=) ). -reverse_arith_op( (#\=) , (#\=) ). -reverse_arith_op( (#>) , (#<) ). -reverse_arith_op( (#>=) , (#=<) ). -reverse_arith_op( (#<) , (#>) ). -reverse_arith_op( (#=<) , (#>=) ). - -linearize(V, C, [A|As], As, [C|CAs], CAs, I, I, _-Map) :- - var(V), !, - l(V, A, Map). -linearize(A+B, C, As, Bs, CAs, CBs, I, IF, Env) :- - linearize(A, C, As, A1s, CAs, CA1s, I, I1, Env), - linearize(B, C, A1s, Bs, CA1s, CBs, I1, IF, Env). -linearize(A-B, C, As, Bs, CAs, CBs, I, IF, Env) :- - NC is -C, - linearize(A, C, As, A1s, CAs, CA1s, I, I1, Env), - linearize(B, NC, A1s, Bs, CA1s, CBs, I1, IF, Env). -linearize(A, C, As, As, CAs, CAs, I, IF, _) :- - integer(A), !, - IF is I-C*A. -linearize(A, C, As, As, CAs, CAs, I, IF, _) :- - ground(A), - catch( (B is eval(A)), _, fail ), !, - IF is I-C*B. -linearize(C1*B, C, As, Bs, CAs, CBs, I, IF, Env) :- - integer(C1), !, - NC is C*C1, - linearize(B, NC, As, Bs, CAs, CBs, I, IF, Env). -linearize(B*C1, C, As, Bs, CAs, CBs, I, IF, Env) :- - integer(C1), !, - NC is C*C1, - linearize(B, NC, As, Bs, CAs, CBs, I, IF, Env). -linearize(AC, C, [A|Bs], Bs, [C|CBs], CBs, I, I, Env) :- - arith(AC, _), - equality(AC, V, Env), - Env = _-Map, - l(V, A, Map). - -arith('/\\'(_,_), (/\)). -arith('\\/'(_,_), (\/)). -arith('=>'(_,_), (=>)). -arith('<=>'(_,_), (<=>)). -arith(xor(_,_), xor). -arith(abs(_), abs). -arith(min(_), min). -arith(max(_), max). -arith(min(_,_), min). -arith(max(_,_), max). -arith((_ * _), times). -arith((_ / _), div). -arith(sum(_), sum). -arith(sum(_,_), sum). -arith(count(_,_), count). - -% replace abs(min(A,B)-max(A,B)) by -% min(A,B,A1), max(A,B,A2), linear([1,-1],[A1,B1],=,A3), abs(A3,AN) -equality(V, V, _Env) :- - var( V ), !. -equality(V, V, _Env) :- - integer( V ), !. -equality(abs(V), NV, Env) :- - equality(V, VA, Env), - new_arith(abs, VA, NV, Env). -equality(min(V), NV, Env) :- - maplist( equality_l(Env), V, VA ), - new_arith(min, VA, NV, Env). -equality(max(V), NV, Env) :- - maplist( equality_l(Env), V, VA ), - new_arith(max, VA, NV, Env). -equality(V1+V2, NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( plus, V1A, V2A, NV, Env). -equality(V1-V2, NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( minus, V1A, V2A, NV, Env). -equality(V1*V2, NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( times, V1A, V2A, NV, Env). -equality(V1/V2, NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( div, V1A, V2A, NV, Env). -equality(V1 mod V2, NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( (mod), V1A, V2A, NV, Env). -equality(max( V1 , V2), NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( (max), V1A, V2A, NV, Env). -equality(min( V1 , V2), NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( (min), V1A, V2A, NV, Env). -equality(sum( V ), NV, Env) :- - maplist( equality_l(Env), V, VA ), - new_arith(sum, VA, NV, Env). -equality(sum( C, G ), NV, Env) :- - new_arith(sum, C, G, NV, Env). -equality('/\\'( V1 , V2), NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( (/\), V1A, V2A, NV, Env). -equality('\\/'( V1 , V2), NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( (\/), V1A, V2A, NV, Env). -equality('<=>'( V1 , V2), NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( (<=>), V1A, V2A, NV, Env). -equality('=>'( V1 , V2), NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( (=>), V1A, V2A, NV, Env). -equality('xor'( V1 , V2), NV, Env) :- - equality(V1, V1A, Env), - equality(V2, V2A, Env), - new_arith( (xor), V1A, V2A, NV, Env). - -equality_l(Env, V0, V) :- - equality(V0, V, Env). - -% abs(X) #= 3 -out_c(Name, A1, B, Op, Space-Map, Reify) :- - integer(B), !, - new_arith( Name, A1, NB, Space-Map), - gecode_arith_op( Op, BOP ), - l(NB, IB, Map), - ( var(Reify) -> - Space += rel(IB, BOP, B) - ; - Space += rel(IB, BOP, B, Reify) - ). -% abs(X) #= Cin[..] -out_c(Name, A1, B, (#=), Space-Map, Reify) :- - var(Reify), - l(B, IB, Map), !, - l(A1, IA1, Map), - G =.. [Name, IA1, IB], - Space += G. -% abs(X) #= NEW -out_c(Name, A1, B, (#=), Space-Map, Reify) :- - var(Reify), !, - new_arith( Name, A1, B, Space-Map). -% abs(X) #> NEW -out_c(Name, A1, B, Op, Space-Map, Reify) :- - l(B, IB0, Map), !, - new_arith( Name, A1, NB, Space-Map), - l(NB, IB, Map), - gecode_arith_op( Op, BOP ), - ( - nonvar(Reify) -> - Space += rel(IB, BOP, IB0) - ; - Space += rel(IB, BOP, IB0, Reify) - ). - -% X*Y #= 3 -out_c(Name, A1, A2, B, Op, Space-Map, Reify) :- - integer(B), !, - new_arith( Name, A1, A2, NB, Space-Map), - l(NB, IB, Map), - gecode_arith_op( Op, BOP ), - ( var(Reify) -> - Space += rel(IB, BOP, B) - ; - Space += rel(IB, BOP, B, Reify) - ). -% X*Y #= Cin[..] -out_c(Name, A1, A2, B, (#=), Space-Map, Reify) :- - var(Reify), - l(B, IB, Map), !, - l(A1, IA1, Map), - l(A2, IA2, Map), - G =.. [Name, IA1, IA2, IB], - Space += G. -% abs(X) #= NEW, cannot be reified -out_c(Name, A1, A2, B, (#=), Space-Map, Reify) :- - var(Reify), !, - new_arith( Name, A1, A2, B, Space-Map). -% min(X,Y) #= Cin[..] <=> -out_c(Name, A1, A2, B, Op, Space-Map, Reify) :- - l(B, IB0, Map), !, - new_arith( Name, A1, A2, NB, Space-Map), - l(NB, IB, Map), - gecode_arith_op( Op, BOP ), - ( var(Reify) -> - Space += rel(IB, BOP, IB0) - ; - Space += rel(IB, BOP, IB0, Reify) - ). - -new_arith( abs, V, NV, Space-Map) :- - l(V, X, Min0, Max0, Map), - ( Min0 < 0 -> - ( Max0 < 0 -> Min is -Max0, Max is -Min0 ; - Min = 0 , Max is max( -Min0, Max0 ) ) - ; - Min = Min0, Max = Max0 - ), - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - Space += abs(X, NX). - -new_arith( min, V, NV, Space-Map) :- - V = [V1|RV], - l(V1, _X1, Min0, Max0, Map), - foldl2( min_l(Map), RV, Max0, Max, Min0, Min), - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - maplist(ll(Map), V, X), - Space += min(X, NX). - -new_arith( max, V, NV, Space-Map) :- - V = [V1|RV], - l(V1, _X1, Min0, Max0, Map), - foldl2( max_l(Map), RV, Max0, Max, Min0, Min), - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - maplist(ll(Map), V, X), - Space += min(X, NX). - -new_arith( sum, V, NV, Space-Map) :- - foldl2( sum_l(Map), V, 0, Max, 0, Min), - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - maplist(ll(Map), V, X), - Space += linear(X, 'IRT_EQ', NX). - -new_arith( minus, V1, V2, NV, Space-Map) :- - l(V1, X1, Min1, Max1, Map), - l(V2, X2, Min2, Max2, Map), - Min is Min1-Max2, - Max is Max1-Min2, - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - Space += linear([1,-1], [X1,X2], 'IRT_EQ', NX). - -new_arith( plus, V1, V2, NV, Space-Map) :- - l(V1, X1, Min1, Max1, Map), - l(V2, X2, Min2, Max2, Map), - Min is Min1+Min2, - Max is Max1+Max2, - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - Space += linear([1,1], [X1,X2], 'IRT_EQ', NX). - -new_arith( min, V1, V2, NV, Space-Map) :- - l(V1, X1, Min1, Max1, Map), - l(V2, X2, Min2, Max2, Map), - Min is min(Min1,Min2), - Max is min(Max1,Max2), - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - Space += min(X1, X2, NX). - -new_arith( max, V1, V2, NV, Space-Map) :- - l(V1, X1, Min1, Max1, Map), - l(V2, X2, Min2, Max2, Map), - Min is max(Min1,Min2), - Max is max(Max1,Max2), - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - Space += max(X1, X2, NX). - -new_arith( times, V1, V2, NV, Space-Map) :- - l(V1, X1, Min1, Max1, Map), - l(V2, X2, Min2, Max2, Map), - min_times(Min1,Min2,Max1,Max2,Min), - max_times(Min1,Min2,Max1,Max2,Max), - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - Space += times(X1, X2, NX). - -new_arith( (div), V1, V2, NV, Space-Map) :- - l(V1, X1, Min1, Max1, Map), - l(V2, X2, Min2, Max2, Map), - min_div(Min1,Min2,Max1,Max2,Min), - max_div(Min1,Min2,Max1,Max2,Max), - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - Space += div(X1, X2, NX). - -new_arith( (mod), V1, V2, NV, Space-Map) :- - l(V1, X1, _Min1, Max1, Map), - l(V2, X2, _Min2, Max2, Map), - Min is 0, - Max is min(abs(Max1), Max2-1), - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - Space += mod(X1, X2, NX). - -new_arith( sum, Foreach, Cond, NV, Space-Map) :- - cond2list( Foreach, Cond, Cs, V), - foldl2( sum_l(Map), V, 0, Max, 0, Min), - NX := intvar(Space, Min, Max), - m(NV, NX, Min, Max, Map), - maplist(ll(Map), V, X), - Space += linear(Cs, X, 'IRT_EQ', NX). - -new_arith( (/\), V1, V2, NV, Space-Map) :- - l(V1, X1, Map), - l(V2, X2, Map), - NX := boolvar(Space), - m(NV, NX, 0, 1, Map), - Space += rel(X1, 'BOT_AND', X2, NX). - -new_arith( (\/), V1, V2, NV, Space-Map) :- - l(V1, X1, Map), - l(V2, X2, Map), - NX := boolvar(Space), - m(NV, NX, 0, 1, Map), - Space += rel(X1, 'BOT_OR', X2, NX). - -new_arith( (=>), V1, V2, NV, Space-Map) :- - l(V1, X1, Map), - l(V2, X2, Map), - NX := boolvar(Space), - m(NV, NX, 0, 1, Map), - Space += rel(X1, 'BOT_IMP', X2, NX). - - -new_arith( (<=>), V1, V2, NV, Space-Map) :- - l(V1, X1, Map), - l(V2, X2, Map), - NX := boolvar(Space), - m(NV, NX, 0, 1, Map), - Space += rel(X1, 'BOT_EQV', X2, NX). - -new_arith( xor, V1, V2, NV, Space-Map) :- - l(V1, X1, Map), - l(V2, X2, Map), - NX := boolvar(Space), - m(NV, NX, 0, 1, Map), - Space += rel(X1, 'BOT_XOR', X2, NX). - - - -min_times(Min1,Min2,Max1,Max2,Min) :- - Min is min(Min1*Min2, min(Min1*Max2, min(Max1*Min2, Max1*Max2))). - -max_times(Min1,Min2,Max1,Max2,Max) :- - Max is max(Min1*Min2, max(Min1*Max2, max(Max1*Min2, Max1*Max2))). - -min_div(Min1,Min20,Max1,Max20,Min) :- - ( Min20 == 0 -> Min2 = 1 ; Min2 = Min20), - ( Max20 == 0 -> Max2 = -1; Max2 = Max20), - Min is min(Min1 div Min2, min(Min1 div Max2, min(Max1 div Min2, Max1 div Max2))). - -max_div(Min1,Min20,Max1,Max20,Max) :- - ( Min20 == 0 -> Min2 = 1 ; Min2 = Min20), - ( Max20 == 0 -> Max2 = -1; Max2 = Max20), - Max is max(Min1 div Min2, max(Min1 div Max2, max(Max1 div Min2, Max1 div Max2))). - -min_l(Map, V, Min0, Min, Max0, Max) :- - l(V, _, Min1, Max1, Map), - Min is min(Min0, Min1), - Max is min(Max0, Max1). - -max_l(Map, V, Min0, Min, Max0, Max) :- - l(V, _, Min1, Max1, Map), - Min is max(Min0, Min1), - Max is max(Max0, Max1). - -sum_l(Map, V, Min0, Min, Max0, Max) :- - l(V, _, Min1, Max1, Map), - Min is Min0 + Min1, - Max is Max0 + Max1. - - -in_c(A, A, _y) :- - var(A), !. -in_c(C, A, Space-Map) :- - integer(C), - Min is C-1, - NX := intvar(Space, Min, C), - m(A, NX, Min, C, Map), - Space += rel(NX, 'IRT_EQ', C). - -in_c_l(Env, V, IV) :- - in_c(V, IV, Env). - -user:term_expansion( ( H :- B), (H :- (clpfd:init_gecode(Space, Me), NB, clpfd:close_gecode(Space, Vs, Me)) ) ) :- - process_constraints(B, NB, Env), - term_variables(H, Vs), - nonvar( Env ), !, - Env = env( Space ). - -init_gecode(Space, old) :- - nb_current(gecode_space, Space), nonvar(Space), !. -init_gecode(Space-Map, new) :- - Space := space, - b_setval(gecode_done, false), - b_setval(gecode_space, Space-Map). - -close_gecode(_Space, _Vs, old) :- !. -close_gecode(Space-Map, Vs0, new) :- - term_variables(Vs0, Vs), - selectlist(intvar(Map), Vs, CVs), - maplist(ll(Map), CVs, IVs), - SolSpace := search(Space), - b_setval(gecode_done, true), - CVs := val(SolSpace,IVs). - -intvar(Map, V) :- - l(V, _IV, Map). - -get_home(Home) :- - b_getval(gecode_space, Home). - -cond2list((List where Goal), El, Cs, Vs) :- !, - foreach( List, add_el(Goal, El), ([])-([]), Cs-Vs ). -cond2list(List, El, Cs, Vs) :- !, - foreach( List, add_el(true, El), ([])-([]), Cs-Vs ). - -add_el(G0, El, Cs-Vs, [C|Cs]-[V|Vs]) :- - call(G0), !, - E <== El, - ( var(E) -> C = 1, E = V ; E = C*V, integer(C), var(V) -> true ; E = V*C, integer(C), var(V) ). -add_el(_G0, _El, Cs-Vs, Cs-Vs). - -% An attributed variable with attribute value Domain has been -% assigned the value Y - -attr_unify_hook(_, _) :- - b_getval(gecode_done, true), !. -attr_unify_hook(v(IV1,_,_), Y) :- - ( get_attr(Y, clpfd, v(IV2,_,_)) - -> - nb_getval(gecode_space, Space-_), - ( IV1 == IV2 -> true ; - Space += rel(IV1, 'IRT_EQ', IV2) ) - ; var(Y) - -> true - ; integer(Y) -> - nb_getval(gecode_space, Space-_), - Space += rel(IV1, 'IRT_EQ', Y) - ). - -% Translate attributes from this module to residual goals - -attribute_goals(X) --> - { get_attr(X, clpfd, v(_,A,B)) }, - [X in A..B]. - -m(X, Y, A, B, _Map) :- - put_attr(X, clpfd, v(Y, A, B)). -/* -m(NV, OV, NA, NB, Vs) :- - var(Vs), !, - Vs = [v(NV,OV,NA,NB)|_]. -m(NV, OV, NA, NB, [_|Vs]) :- - m(NV, OV, NA, NB, Vs). -*/ - -lm(A, B, Map, X, Y) :- - m(X, Y, A, B, Map). - -l(V, IV, _) :- - get_attr(V, clpfd, v(IV, _, _)). -/* -l(_NV, _OV, Vs) :- - var(Vs), !, - fail. -l(NV, OV, [v(V, OV, _A, _B)|_Vs]) :- - V == NV, !. -l(NV, OV, [_|Vs]) :- - l(NV, OV, Vs). -*/ - -ll(Map, X, Y) :- - l(X, Y, Map). - -l(V, IV, A, B, _) :- - get_attr(V, clpfd, v(IV, A, B)). - -/* -l(_NV, _OV, _, _, Vs) :- - var(Vs), !, - fail. -l(NV, OV, A, B, [v(V, OV, A, B)|_Vs]) :- - V == NV, !. -l(NV, OV, A, B, [_|Vs]) :- - l(NV, OV, A, B, Vs). -*/ - -is_one(1). - diff --git a/library/gecode/dev/Makefile b/library/gecode/dev/Makefile deleted file mode 100644 index 4464bb185..000000000 --- a/library/gecode/dev/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -all: - python code-generator.py - -clean: - -rm -f *~ *.pyc diff --git a/library/gecode/dev/code-generator.py b/library/gecode/dev/code-generator.py deleted file mode 100644 index fa71c8df9..000000000 --- a/library/gecode/dev/code-generator.py +++ /dev/null @@ -1,717 +0,0 @@ -# -*- python -*- -#============================================================================== -# Copyright (C) 2011 by Denys Duchier -# -# This program is free software: you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation, either version 3 of the License, or (at your option) any later -# version. -# -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -# details. -# -# You should have received a copy of the GNU General Public License along with -# this program. If not, see . -#============================================================================== - -import re - -NOTICE_CC = """// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= -""" - -NOTICE_PROLOG="""%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= -""" - -def prolog_print_notice(): - print NOTICE_PROLOG - -def cc_print_notice(): - print NOTICE_CC - -class Type(object): - - DEFAULT = re.compile("""^(.+)=(.+)$""") - CONST = re.compile("""^const\\b(.+)$""") - UNSIGNED = re.compile("""^unsigned\\b(.+)$""") - REFERENCE = re.compile("""^(.+)&$""") - - def __init__(self, text): - if isinstance(text, Type): - self.clone_from(text) - return - text = text.strip() - m = self.DEFAULT.match(text) - if m: - self.default = m.group(2).strip() - text = m.group(1).strip() - else: - self.default = None - m = self.CONST.match(text) - if m: - self.const = True - text = m.group(1).strip() - else: - self.const = False - m = self.UNSIGNED.match(text) - if m: - self.unsigned = True - text = m.group(1).strip() - else: - self.unsigned = False - m = self.REFERENCE.match(text) - if m: - self.reference = True - text = m.group(1).strip() - else: - self.reference = False - self.type = text - - def __str__(self): - l = [] - if self.const: l.append("const ") - if self.unsigned: l.append("unsigned ") - l.append(self.type) - if self.reference: l.append("&") - if self.default is not None: - l.append("=") - l.append(self.default) - return ''.join(l) - - def clone_from(self, other): - self.const = other.const - self.unsigned = other.unsigned - self.type = other.type - self.reference = other.reference - self.default = other.default - - def clone(self): - return type(self)(self) - - -class Constraint(object): - - DECL = re.compile("""^([^(]+)\\b(\w+)\((.*)\);$""") - ARG = re.compile("""((?:[^,<(]|<[^>]*>|\([^)]*\))+),?""") - - def __init__(self, line): - if isinstance(line, Constraint): - self.clone_from(line) - return - line = line.strip() - m = self.DECL.match(line) - self.rettype = Type(m.group(1).strip()) - self.name = m.group(2) - argtypes = [] - for x in self.ARG.finditer(m.group(3).strip()): - argtypes.append(Type(x.group(1))) - self.argtypes = tuple(argtypes) - self.api = None - - def __str__(self): - l = [] - l.append(str(self.rettype)) - l.append(" ") - l.append(self.name) - sep = "(" - for x in self.argtypes: - l.append(sep) - sep = ", " - l.append(str(x)) - l.append(")") - if self.api is not None: - l.append(" -> ") - l.append(self.api) - l.append(";") - return ''.join(l) - - def clone_from(self, other): - self.rettype = other.rettype.clone() - self.name = other.name - self.argtypes = tuple(t.clone() for t in other.argtypes) - - def clone(self): - return type(self)(self) - - -COMMENT = re.compile("""^\\s*//.*$""") - -def load_decls(filename): - decls = [] - for line in open(filename): - line = line.strip() - if not line: continue - m = COMMENT.match(line) - if m: continue - decls.append(Constraint(line)) - return decls - -class DeclsLoader(object): - - def __init__(self, filename): - self.decls = load_decls(filename) - - def print_decls(self): - for con in self.decls: - print str(con) - -class PredGenerator(DeclsLoader): - - OMIT = ("VarBranchOptions", - "ValBranchOptions", - "TieBreakVarBranch", - "TieBreak", - "TieBreak", - "TieBreak", - "TieBreakVarBranchOptions", - "TieBreakVarBranch") - - def __init__(self, filename): - super(PredGenerator, self).__init__(filename) - self._change_home_to_space() - self._change_intsharedarray_to_intargs() - self._generate() - self._number() - - def _change_home_to_space(self): - for p in self.decls: - for t in p.argtypes: - if t.type=="Home": - t.type="Space" - - def _change_intsharedarray_to_intargs(self): - for p in self.decls: - for t in p.argtypes: - if t.type=="IntSharedArray": - t.type="IntArgs" - - def _generate(self): - # drop the constraints and optional arguments we can't handle - preds = [] - for con in self.decls: - if self._con_ok(con): - con = con.clone() - con.argtypes = tuple(self._drop_deco(t) for t in con.argtypes - if t.type not in self.OMIT) - preds.append(con) - # for each pred that has an argument with a default produce - # 2 preds (1 without, 1 with). repeat until all defaults have - # been removed. - again = True - while again: - preds_ = [] - again = False - for con in preds: - i = self._defaulted(con.argtypes) - if i is None: - preds_.append(con) - else: - again = True - before = con.argtypes[:i] - # without the default argument - # and therefore without the args that follow - con1 = con.clone() - con1.argtypes = before - preds_.append(con1) - # with the default argument (not default anymore) - con2 = con.clone() - arg = con.argtypes[i].clone() - arg.default=None - after = con.argtypes[i+1:] - con2.argtypes = before + (arg,) + after - preds_.append(con2) - preds = preds_ - self.preds = preds - - def _con_ok(self, con): - for t in con.argtypes: - if (t.type in self.OMIT) and (t.default is None): - return False - return True - - def _drop_deco(self, t): - # drop const, ref, and unsigned indications - t.const = False - t.reference = False - t.unsigned = False - return t - - def _defaulted(self, argtypes): - i = 0 - for x in argtypes: - if x.default is not None: - return i - i += 1 - return None - - def _number(self): - i = 1 - for x in self.preds: - x.api = "%s_%d" % (x.name,i) - i += 1 - - def print_preds(self): - for p in self.preds: - print str(p) - -class Cluster(object): - - def __init__(self, name, arity): - self.name = name - self.arity = arity - self.preds = [] - -# discriminating tree based on argument types -class DTree(object): - - def __init__(self, i, preds, cluster): - self.index = i - self.cluster = cluster - if len(preds) == 1 and len(preds[0].argtypes) == i: - self.is_leaf = True - self.pred = preds[0] - return - self.is_leaf = False - # i is the index of the current arg - # preds are the predicates to be indexed under this tree node - dispatch = {} - for p in preds: - t = p.argtypes[i] - d = dispatch.get(t.type, None) - if d is None: - d = [] - dispatch[t.type] = d - d.append(p) - self.subtrees = tuple((t2,DTree(i+1,p2,cluster)) - for t2,p2 in dispatch.iteritems()) - - def _generate_body(self, user_vars, lib_vars): - if self.is_leaf: - return PrologLiteral("gecode_constraint_%s(%s)" % (self.pred.api, ",".join(lib_vars))) - X = user_vars[self.index] - Y = lib_vars[self.index] - return self._generate_dispatch(0, user_vars, lib_vars) - - def _generate_dispatch(self, i, user_vars, lib_vars): - if i == len(self.subtrees): - return PrologLiteral("throw(gecode_argument_error(%s(%s),arg=%d))" \ - % (self.cluster.name, ",".join(user_vars), - self.index+1)) - typ, dtree = self.subtrees[i] - idx = self.index - X = user_vars[idx] - Y = lib_vars[idx] - # hack for disjunctor support - if typ=="Space": - typ = "Space_or_Clause" - return PrologIF( - PrologLiteral("is_%s(%s,%s)" % (typ,X,Y)), - dtree._generate_body(user_vars, lib_vars), - self._generate_dispatch(i+1, user_vars, lib_vars)) - - def _cc_descriptors(self, name, argtypes): - if self.is_leaf: - return (CCDescriptor(name, argtypes, self.pred.api),) - descriptors = [] - for typ,dtree in self.subtrees: - descriptors.extend(dtree._cc_descriptors(name,(argtypes+(typ,)))) - return descriptors - -class YAPConstraintGeneratorBase(PredGenerator): - - def __init__(self, filename): - super(YAPConstraintGeneratorBase, self).__init__(filename) - self._classify() - self._dtreefy() - - # create clusters (predicate,arity) - def _classify(self): - clusters = {} - for pred in self.preds: - name = pred.name - arity = len(pred.argtypes) - key = (name,arity) - cluster = clusters.get(key, None) - if cluster is None: - cluster = Cluster(name, arity) - clusters[key] = cluster - cluster.preds.append(pred) - self.clusters = clusters - - # for each cluster, create a dtree - def _dtreefy(self): - dtrees = {} - for key, cluster in self.clusters.iteritems(): - dtree = DTree(0, cluster.preds, cluster) - dtrees[key] = dtree - self.dtrees = dtrees - - def _user_vars(self, arity): - return tuple(("X%d" % i) for i in range(arity)) - - def _lib_vars(self, arity): - return tuple(("Y%d" % i) for i in range(arity)) - -class YAPConstraintPrologGenerator(YAPConstraintGeneratorBase): - - def __init__(self, filename): - super(YAPConstraintPrologGenerator, self).__init__(filename) - - def _prolog_clauses(self): - clauses = [] - for (name, arity), dtree in self.dtrees.iteritems(): - user_vars = self._user_vars(arity) - lib_vars = self._lib_vars(arity) - head = "%s(%s)" % (name, ",".join(user_vars)) - body = dtree._generate_body(user_vars, lib_vars) - clause = PrologClause(head, body) - clauses.append(clause) - return clauses - - def generate(self): - out = OStream(sys.stdout) - for clause in self._prolog_clauses(): - clause.pp(out, 0) - -class YAPConstraintCCGenerator(YAPConstraintGeneratorBase): - - def __init__(self, filename): - super(YAPConstraintCCGenerator, self).__init__(filename) - - def _cc_descriptors(self): - descriptors = [] - for (name, arity), dtree in self.dtrees.iteritems(): - descriptors.extend(dtree._cc_descriptors(name,())) - return descriptors - - def generate_impl(self): - for d in self._cc_descriptors(): - d.generate_impl() - - def generate_init(self): - for d in self._cc_descriptors(): - d.generate_init() - -# output stream that keeps track of the current column -# to facilitate proper indentation - -import sys - -class OStream(object): - - def __init__(self, fd=sys.stdout): - self.file = fd - self.column = 0 - - def write(self, s): - reset = False - for x in s.split('\n'): - if reset: - self.newline() - else: - reset = True - self.file.write(x) - self.column += len(x) - - def newline(self): - self.file.write("\n") - self.column = 0 - - def writeln(self, s=None): - if s is not None: - self.write(s) - self.newline() - - def indent_to(self, n): - if n0: - self.write(' ') - n -= 1 - -# representation of prolog code that automatically supports proper indentation - -class PrologObject(object): - pass - -class PrologClause(PrologObject): - - def __init__(self, head, body): - self.head = head - self.body = body - - def pp(self, out, offset): - out.indent_to(offset) - out.write(self.head) - out.writeln(" :-") - self.body.pp(out, offset+8) - out.writeln(".") - out.writeln() - -class PrologLiteral(PrologObject): - - def __init__(self, lit): - self.literal = lit - - def pp(self, out, offset): - out.indent_to(offset) - out.write(self.literal) - -class PrologIF(PrologObject): - - def __init__(self, cond, left, right): - self.cond = cond - self.left = left - self.right = right - - def pp(self, out, offset): - out.indent_to(offset) - out.write("("), - indent = offset+1 - self.cond.pp(out, indent) - out.writeln() - out.indent_to(indent) - out.write("-> ") - self.left.pp(out, indent+3) - out.writeln() - out.indent_to(indent) - out.write("; ") - self.right.pp(out, indent+3) - out.write(")") - -ENUM_CLASSES = None -ENUM_CLASSES_AVOID = ('ScriptMode','ViewSelStatus','ExecStatus', - 'ActorProperty','SpaceStatus') - -def enum_classes(): - global ENUM_CLASSES - if ENUM_CLASSES is None: - filename = "gecode-enums-%s.py" % gecode_version() - import imp - ENUM_CLASSES = imp.load_source( - "gecode_enums", - filename).ENUM_CLASSES - ENUM_CLASSES = tuple(x for x in ENUM_CLASSES if x.TYPE not in ENUM_CLASSES_AVOID) - return ENUM_CLASSES - -class YAPEnumImpl(object): - - def generate(self): - self._generate_atoms() - self._generate_from_term() - - def _generate_atoms(self): - for x in self.ENUM: - print "static YAP_Term gecode_%s;" % x - print - - def _generate_from_term(self): - print "static %s gecode_%s_from_term(YAP_Term X)" % (self.TYPE,self.TYPE) - print "{" - for x in self.ENUM: - print " if (X==gecode_%s) return %s;" % (x,x) - print ' cerr << "this should never happen" << endl; exit(1);' - print "}" - print - - def _generate_from_term_forward_decl(self): - print "static %s gecode_%s_from_term(YAP_Term);" % (self.TYPE,self.TYPE) - -class YAPEnumImplGenerator(object): - - def generate(self): - for c in enum_classes(): - class C(c,YAPEnumImpl): pass - o = C() - o.generate() - -class YAPEnumForwardGenerator(object): - - def generate(self): - for c in enum_classes(): - class C(c,YAPEnumImpl): pass - o = C() - o._generate_from_term_forward_decl() - -class YAPEnumInit(object): - - def generate(self): - for x in self.ENUM: - print '{ YAP_Atom X= YAP_LookupAtom("%s");' % x - print ' gecode_%s = YAP_MkAtomTerm(X);' % x - print ' YAP_AtomGetHold(X); }' - print - -class YAPEnumInitGenerator(object): - - def generate(self): - for c in enum_classes(): - class C(c,YAPEnumInit): pass - o = C() - o.generate() - -class YAPEnumProlog(object): - - def generate(self): - for x in self.ENUM: - print "is_%s_('%s')." % (self.TYPE, x) - print - for x in self.ENUM: - print "is_%s_('%s','%s')." % (self.TYPE, x, x) - print - print "is_%s(X,Y) :- nonvar(X), is_%s_(X,Y)." % (self.TYPE,self.TYPE) - print "is_%s(X) :- is_%s(X,_)." % (self.TYPE,self.TYPE) - print - -class YAPEnumPrologGenerator(object): - - def generate(self): - for c in enum_classes(): - class C(c,YAPEnumProlog): pass - o = C() - o.generate() - -class CCDescriptor(object): - - def __init__(self, name, argtypes, api): - self.name = name - self.argtypes = argtypes - self.api = api - - def generate_impl(self): - print "static int gecode_constraint_%s(void)" % self.api - print "{" - i = 1 - args = [] - has_space = False - for t in self.argtypes: - v = "X%d" % i - a = "YAP_ARG%d" % i - if t=="Space": - v = "*space" - print " GenericSpace* space = gecode_Space_from_term(%s);" % a - has_space = True - else: - extra = "" - if t in ("IntVar","BoolVar","SetVar","FloatVar","IntVarArgs","BoolVarArgs","SetVarArgs","FloatVarArgs"): - extra = "space," - if has_space == False: - print " GenericSpace* space = gecode_Space_from_term(%s);" % a - has_space = True - print " %s %s = gecode_%s_from_term(%s%s);" % (t,v,t,extra,a) - args.append(v) - i += 1 - print " %s(%s);" % (self.name, ",".join(args)) - print " return TRUE;" - print "}" - print - - def generate_init(self): - print 'YAP_UserCPredicate("gecode_constraint_%s", gecode_constraint_%s, %d);' \ - % (self.api, self.api, len(self.argtypes)) - -GECODE_VERSION = None - -def gecode_version(): - global GECODE_VERSION - if GECODE_VERSION is not None: - return GECODE_VERSION - from distutils.ccompiler import new_compiler - try: - from distutils.ccompiler import customize_compiler - except: - from distutils.sysconfig import customize_compiler - import os - cxx = new_compiler() - customize_compiler(cxx) - pid = os.getpid() - file_hh = "_gecode_version_%d.hh" % pid - file_txt = "_gecode_version_%d.txt" % pid - f = file(file_hh,"w") - f.write("""#include "gecode/support/config.hpp" -@@GECODE_VERSION""") - f.close() - cxx.preprocess(file_hh,output_file=file_txt) - f = open(file_txt) - version = "" - for line in f: - if line.startswith("@@"): - version = line[3:-2] - break - f.close() - os.remove(file_hh) - os.remove(file_txt) - GECODE_VERSION = version - return version - -def generate_files(): - DIR = "../%s" % gecode_version() - import os, os.path - DIR = os.path.abspath(DIR) - if not os.path.exists(DIR): - os.mkdir(DIR) - filename = "gecode-prototypes-%s.hh" % gecode_version() - import sys - stdout = sys.stdout - try: - sys.stdout = file(os.path.join(DIR,"gecode-version.txt"),"w") - print gecode_version() - sys.stdout.close() - sys.stdout = file(os.path.join(DIR,"gecode_yap_auto_generated.yap"),"w") - prolog_print_notice() - YAPEnumPrologGenerator().generate() - YAPConstraintPrologGenerator(filename).generate() - sys.stdout.close() - sys.stdout = file(os.path.join(DIR,"gecode_yap_cc_impl_auto_generated.icc"),"w") - cc_print_notice() - YAPEnumImplGenerator().generate() - YAPConstraintCCGenerator(filename).generate_impl() - sys.stdout.close() - sys.stdout = file(os.path.join(DIR,"gecode_yap_cc_init_auto_generated.icc"),"w") - cc_print_notice() - YAPEnumInitGenerator().generate() - YAPConstraintCCGenerator(filename).generate_init() - sys.stdout.close() - sys.stdout = file(os.path.join(DIR,"gecode_yap_cc_forward_auto_generated.icc"),"w") - cc_print_notice() - YAPEnumForwardGenerator().generate() - sys.stdout.close() - finally: - sys.stdout = stdout - -if __name__ == '__main__': - generate_files() diff --git a/library/gecode/dev/extractor/Doxyfile.in b/library/gecode/dev/extractor/Doxyfile.in deleted file mode 100644 index e20ff3563..000000000 --- a/library/gecode/dev/extractor/Doxyfile.in +++ /dev/null @@ -1,1716 +0,0 @@ -# Doxyfile 1.7.4 - -# This file describes the settings to be used by the documentation system -# doxygen (www.doxygen.org) for a project. -# -# All text after a hash (#) is considered a comment and will be ignored. -# The format is: -# TAG = value [value, ...] -# For lists items can also be appended using: -# TAG += value [value, ...] -# Values that contain spaces should be placed between quotes (" "). - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- - -# This tag specifies the encoding used for all characters in the config file -# that follow. The default is UTF-8 which is also the encoding used for all -# text before the first occurrence of this tag. Doxygen uses libiconv (or the -# iconv built into libc) for the transcoding. See -# http://www.gnu.org/software/libiconv for the list of possible encodings. - -DOXYFILE_ENCODING = UTF-8 - -# The PROJECT_NAME tag is a single word (or a sequence of words surrounded -# by quotes) that should identify the project. - -PROJECT_NAME = Gecode - -# The PROJECT_NUMBER tag can be used to enter a project or revision number. -# This could be handy for archiving the generated documentation or -# if some version control system is used. - -PROJECT_NUMBER = - -# Using the PROJECT_BRIEF tag one can provide an optional one line description -# for a project that appears at the top of each page and should give viewer -# a quick idea about the purpose of the project. Keep the description short. - -PROJECT_BRIEF = - -# With the PROJECT_LOGO tag one can specify an logo or icon that is -# included in the documentation. The maximum height of the logo should not -# exceed 55 pixels and the maximum width should not exceed 200 pixels. -# Doxygen will copy the logo to the output directory. - -PROJECT_LOGO = - -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) -# base path where the generated documentation will be put. -# If a relative path is entered, it will be relative to the location -# where doxygen was started. If left blank the current directory will be used. - -OUTPUT_DIRECTORY = - -# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create -# 4096 sub-directories (in 2 levels) under the output directory of each output -# format and will distribute the generated files over these directories. -# Enabling this option can be useful when feeding doxygen a huge amount of -# source files, where putting all generated files in the same directory would -# otherwise cause performance problems for the file system. - -CREATE_SUBDIRS = NO - -# The OUTPUT_LANGUAGE tag is used to specify the language in which all -# documentation generated by doxygen is written. Doxygen will use this -# information to generate all constant output in the proper language. -# The default language is English, other supported languages are: -# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, -# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, -# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English -# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, -# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, -# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. - -OUTPUT_LANGUAGE = English - -# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will -# include brief member descriptions after the members that are listed in -# the file and class documentation (similar to JavaDoc). -# Set to NO to disable this. - -BRIEF_MEMBER_DESC = YES - -# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend -# the brief description of a member or function before the detailed description. -# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the -# brief descriptions will be completely suppressed. - -REPEAT_BRIEF = YES - -# This tag implements a quasi-intelligent brief description abbreviator -# that is used to form the text in various listings. Each string -# in this list, if found as the leading text of the brief description, will be -# stripped from the text and the result after processing the whole list, is -# used as the annotated text. Otherwise, the brief description is used as-is. -# If left blank, the following values are used ("$name" is automatically -# replaced with the name of the entity): "The $name class" "The $name widget" -# "The $name file" "is" "provides" "specifies" "contains" -# "represents" "a" "an" "the" - -ABBREVIATE_BRIEF = - -# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# Doxygen will generate a detailed section even if there is only a brief -# description. - -ALWAYS_DETAILED_SEC = NO - -# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all -# inherited members of a class in the documentation of that class as if those -# members were ordinary class members. Constructors, destructors and assignment -# operators of the base classes will not be shown. - -INLINE_INHERITED_MEMB = NO - -# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full -# path before files name in the file list and in the header files. If set -# to NO the shortest path that makes the file name unique will be used. - -FULL_PATH_NAMES = YES - -# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag -# can be used to strip a user-defined part of the path. Stripping is -# only done if one of the specified strings matches the left-hand part of -# the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the -# path to strip. - -STRIP_FROM_PATH = - -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of -# the path mentioned in the documentation of a class, which tells -# the reader which header file to include in order to use a class. -# If left blank only the name of the header file containing the class -# definition is used. Otherwise one should specify the include paths that -# are normally passed to the compiler using the -I flag. - -STRIP_FROM_INC_PATH = - -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter -# (but less readable) file names. This can be useful if your file system -# doesn't support long names like on DOS, Mac, or CD-ROM. - -SHORT_NAMES = NO - -# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen -# will interpret the first line (until the first dot) of a JavaDoc-style -# comment as the brief description. If set to NO, the JavaDoc -# comments will behave just like regular Qt-style comments -# (thus requiring an explicit @brief command for a brief description.) - -JAVADOC_AUTOBRIEF = NO - -# If the QT_AUTOBRIEF tag is set to YES then Doxygen will -# interpret the first line (until the first dot) of a Qt-style -# comment as the brief description. If set to NO, the comments -# will behave just like regular Qt-style comments (thus requiring -# an explicit \brief command for a brief description.) - -QT_AUTOBRIEF = NO - -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen -# treat a multi-line C++ special comment block (i.e. a block of //! or /// -# comments) as a brief description. This used to be the default behaviour. -# The new default is to treat a multi-line C++ comment block as a detailed -# description. Set this tag to YES if you prefer the old behaviour instead. - -MULTILINE_CPP_IS_BRIEF = NO - -# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented -# member inherits the documentation from any documented member that it -# re-implements. - -INHERIT_DOCS = YES - -# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce -# a new page for each member. If set to NO, the documentation of a member will -# be part of the file/class/namespace that contains it. - -SEPARATE_MEMBER_PAGES = NO - -# The TAB_SIZE tag can be used to set the number of spaces in a tab. -# Doxygen uses this value to replace tabs by spaces in code fragments. - -TAB_SIZE = 8 - -# This tag can be used to specify a number of aliases that acts -# as commands in the documentation. An alias has the form "name=value". -# For example adding "sideeffect=\par Side Effects:\n" will allow you to -# put the command \sideeffect (or @sideeffect) in the documentation, which -# will result in a user-defined paragraph with heading "Side Effects:". -# You can put \n's in the value part of an alias to insert newlines. - -ALIASES = - -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C -# sources only. Doxygen will then generate output that is more tailored for C. -# For instance, some of the names that are used will be different. The list -# of all members will be omitted, etc. - -OPTIMIZE_OUTPUT_FOR_C = NO - -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java -# sources only. Doxygen will then generate output that is more tailored for -# Java. For instance, namespaces will be presented as packages, qualified -# scopes will look different, etc. - -OPTIMIZE_OUTPUT_JAVA = NO - -# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran -# sources only. Doxygen will then generate output that is more tailored for -# Fortran. - -OPTIMIZE_FOR_FORTRAN = NO - -# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL -# sources. Doxygen will then generate output that is tailored for -# VHDL. - -OPTIMIZE_OUTPUT_VHDL = NO - -# Doxygen selects the parser to use depending on the extension of the files it -# parses. With this tag you can assign which parser to use for a given extension. -# Doxygen has a built-in mapping, but you can override or extend it using this -# tag. The format is ext=language, where ext is a file extension, and language -# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, -# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make -# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C -# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions -# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. - -EXTENSION_MAPPING = - -# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want -# to include (a tag file for) the STL sources as input, then you should -# set this tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. -# func(std::string) {}). This also makes the inheritance and collaboration -# diagrams that involve STL classes more complete and accurate. - -BUILTIN_STL_SUPPORT = NO - -# If you use Microsoft's C++/CLI language, you should set this option to YES to -# enable parsing support. - -CPP_CLI_SUPPORT = NO - -# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. -# Doxygen will parse them like normal C++ but will assume all classes use public -# instead of private inheritance when no explicit protection keyword is present. - -SIP_SUPPORT = NO - -# For Microsoft's IDL there are propget and propput attributes to indicate getter -# and setter methods for a property. Setting this option to YES (the default) -# will make doxygen replace the get and set methods by a property in the -# documentation. This will only work if the methods are indeed getting or -# setting a simple type. If this is not the case, or you want to show the -# methods anyway, you should set this option to NO. - -IDL_PROPERTY_SUPPORT = YES - -# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC -# tag is set to YES, then doxygen will reuse the documentation of the first -# member in the group (if any) for the other members of the group. By default -# all members of a group must be documented explicitly. - -DISTRIBUTE_GROUP_DOC = NO - -# Set the SUBGROUPING tag to YES (the default) to allow class member groups of -# the same type (for instance a group of public functions) to be put as a -# subgroup of that type (e.g. under the Public Functions section). Set it to -# NO to prevent subgrouping. Alternatively, this can be done per class using -# the \nosubgrouping command. - -SUBGROUPING = YES - -# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and -# unions are shown inside the group in which they are included (e.g. using -# @ingroup) instead of on a separate page (for HTML and Man pages) or -# section (for LaTeX and RTF). - -INLINE_GROUPED_CLASSES = NO - -# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum -# is documented as struct, union, or enum with the name of the typedef. So -# typedef struct TypeS {} TypeT, will appear in the documentation as a struct -# with name TypeT. When disabled the typedef will appear as a member of a file, -# namespace, or class. And the struct will be named TypeS. This can typically -# be useful for C code in case the coding convention dictates that all compound -# types are typedef'ed and only the typedef is referenced, never the tag name. - -TYPEDEF_HIDES_STRUCT = NO - -# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to -# determine which symbols to keep in memory and which to flush to disk. -# When the cache is full, less often used symbols will be written to disk. -# For small to medium size projects (<1000 input files) the default value is -# probably good enough. For larger projects a too small cache size can cause -# doxygen to be busy swapping symbols to and from disk most of the time -# causing a significant performance penalty. -# If the system has enough physical memory increasing the cache will improve the -# performance by keeping more symbols in memory. Note that the value works on -# a logarithmic scale so increasing the size by one will roughly double the -# memory usage. The cache size is given by this formula: -# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, -# corresponding to a cache size of 2^16 = 65536 symbols - -SYMBOL_CACHE_SIZE = 0 - -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- - -# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in -# documentation are documented, even if no documentation was available. -# Private class members and static file members will be hidden unless -# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES - -EXTRACT_ALL = NO - -# If the EXTRACT_PRIVATE tag is set to YES all private members of a class -# will be included in the documentation. - -EXTRACT_PRIVATE = NO - -# If the EXTRACT_STATIC tag is set to YES all static members of a file -# will be included in the documentation. - -EXTRACT_STATIC = NO - -# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) -# defined locally in source files will be included in the documentation. -# If set to NO only classes defined in header files are included. - -EXTRACT_LOCAL_CLASSES = YES - -# This flag is only useful for Objective-C code. When set to YES local -# methods, which are defined in the implementation section but not in -# the interface are included in the documentation. -# If set to NO (the default) only methods in the interface are included. - -EXTRACT_LOCAL_METHODS = NO - -# If this flag is set to YES, the members of anonymous namespaces will be -# extracted and appear in the documentation as a namespace called -# 'anonymous_namespace{file}', where file will be replaced with the base -# name of the file that contains the anonymous namespace. By default -# anonymous namespaces are hidden. - -EXTRACT_ANON_NSPACES = NO - -# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all -# undocumented members of documented classes, files or namespaces. -# If set to NO (the default) these members will be included in the -# various overviews, but no documentation section is generated. -# This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_MEMBERS = NO - -# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. -# If set to NO (the default) these classes will be included in the various -# overviews. This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_CLASSES = NO - -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all -# friend (class|struct|union) declarations. -# If set to NO (the default) these declarations will be included in the -# documentation. - -HIDE_FRIEND_COMPOUNDS = NO - -# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any -# documentation blocks found inside the body of a function. -# If set to NO (the default) these blocks will be appended to the -# function's detailed documentation block. - -HIDE_IN_BODY_DOCS = NO - -# The INTERNAL_DOCS tag determines if documentation -# that is typed after a \internal command is included. If the tag is set -# to NO (the default) then the documentation will be excluded. -# Set it to YES to include the internal documentation. - -INTERNAL_DOCS = NO - -# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate -# file names in lower-case letters. If set to YES upper-case letters are also -# allowed. This is useful if you have classes or files whose names only differ -# in case and if your file system supports case sensitive file names. Windows -# and Mac users are advised to set this option to NO. - -CASE_SENSE_NAMES = YES - -# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen -# will show members with their full class and namespace scopes in the -# documentation. If set to YES the scope will be hidden. - -HIDE_SCOPE_NAMES = NO - -# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen -# will put a list of the files that are included by a file in the documentation -# of that file. - -SHOW_INCLUDE_FILES = YES - -# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen -# will list include files with double quotes in the documentation -# rather than with sharp brackets. - -FORCE_LOCAL_INCLUDES = NO - -# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] -# is inserted in the documentation for inline members. - -INLINE_INFO = YES - -# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen -# will sort the (detailed) documentation of file and class members -# alphabetically by member name. If set to NO the members will appear in -# declaration order. - -SORT_MEMBER_DOCS = YES - -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the -# brief documentation of file, namespace and class members alphabetically -# by member name. If set to NO (the default) the members will appear in -# declaration order. - -SORT_BRIEF_DOCS = NO - -# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen -# will sort the (brief and detailed) documentation of class members so that -# constructors and destructors are listed first. If set to NO (the default) -# the constructors will appear in the respective orders defined by -# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. -# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO -# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. - -SORT_MEMBERS_CTORS_1ST = NO - -# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the -# hierarchy of group names into alphabetical order. If set to NO (the default) -# the group names will appear in their defined order. - -SORT_GROUP_NAMES = NO - -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be -# sorted by fully-qualified names, including namespaces. If set to -# NO (the default), the class list will be sorted only by class name, -# not including the namespace part. -# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the -# alphabetical list. - -SORT_BY_SCOPE_NAME = NO - -# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to -# do proper type resolution of all parameters of a function it will reject a -# match between the prototype and the implementation of a member function even -# if there is only one candidate or it is obvious which candidate to choose -# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen -# will still accept a match between prototype and implementation in such cases. - -STRICT_PROTO_MATCHING = NO - -# The GENERATE_TODOLIST tag can be used to enable (YES) or -# disable (NO) the todo list. This list is created by putting \todo -# commands in the documentation. - -GENERATE_TODOLIST = YES - -# The GENERATE_TESTLIST tag can be used to enable (YES) or -# disable (NO) the test list. This list is created by putting \test -# commands in the documentation. - -GENERATE_TESTLIST = YES - -# The GENERATE_BUGLIST tag can be used to enable (YES) or -# disable (NO) the bug list. This list is created by putting \bug -# commands in the documentation. - -GENERATE_BUGLIST = YES - -# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or -# disable (NO) the deprecated list. This list is created by putting -# \deprecated commands in the documentation. - -GENERATE_DEPRECATEDLIST= YES - -# The ENABLED_SECTIONS tag can be used to enable conditional -# documentation sections, marked by \if sectionname ... \endif. - -ENABLED_SECTIONS = - -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines -# the initial value of a variable or macro consists of for it to appear in -# the documentation. If the initializer consists of more lines than specified -# here it will be hidden. Use a value of 0 to hide initializers completely. -# The appearance of the initializer of individual variables and macros in the -# documentation can be controlled using \showinitializer or \hideinitializer -# command in the documentation regardless of this setting. - -MAX_INITIALIZER_LINES = 30 - -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated -# at the bottom of the documentation of classes and structs. If set to YES the -# list will mention the files that were used to generate the documentation. - -SHOW_USED_FILES = YES - -# If the sources in your project are distributed over multiple directories -# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy -# in the documentation. The default is NO. - -SHOW_DIRECTORIES = NO - -# Set the SHOW_FILES tag to NO to disable the generation of the Files page. -# This will remove the Files entry from the Quick Index and from the -# Folder Tree View (if specified). The default is YES. - -SHOW_FILES = YES - -# Set the SHOW_NAMESPACES tag to NO to disable the generation of the -# Namespaces page. -# This will remove the Namespaces entry from the Quick Index -# and from the Folder Tree View (if specified). The default is YES. - -SHOW_NAMESPACES = YES - -# The FILE_VERSION_FILTER tag can be used to specify a program or script that -# doxygen should invoke to get the current version for each file (typically from -# the version control system). Doxygen will invoke the program by executing (via -# popen()) the command , where is the value of -# the FILE_VERSION_FILTER tag, and is the name of an input file -# provided by doxygen. Whatever the program writes to standard output -# is used as the file version. See the manual for examples. - -FILE_VERSION_FILTER = - -# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed -# by doxygen. The layout file controls the global structure of the generated -# output files in an output format independent way. The create the layout file -# that represents doxygen's defaults, run doxygen with the -l option. -# You can optionally specify a file name after the option, if omitted -# DoxygenLayout.xml will be used as the name of the layout file. - -LAYOUT_FILE = - -#--------------------------------------------------------------------------- -# configuration options related to warning and progress messages -#--------------------------------------------------------------------------- - -# The QUIET tag can be used to turn on/off the messages that are generated -# by doxygen. Possible values are YES and NO. If left blank NO is used. - -QUIET = NO - -# The WARNINGS tag can be used to turn on/off the warning messages that are -# generated by doxygen. Possible values are YES and NO. If left blank -# NO is used. - -WARNINGS = YES - -# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings -# for undocumented members. If EXTRACT_ALL is set to YES then this flag will -# automatically be disabled. - -WARN_IF_UNDOCUMENTED = YES - -# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some -# parameters in a documented function, or documenting parameters that -# don't exist or using markup commands wrongly. - -WARN_IF_DOC_ERROR = YES - -# The WARN_NO_PARAMDOC option can be enabled to get warnings for -# functions that are documented, but have no documentation for their parameters -# or return value. If set to NO (the default) doxygen will only warn about -# wrong or incomplete parameter documentation, but not about the absence of -# documentation. - -WARN_NO_PARAMDOC = NO - -# The WARN_FORMAT tag determines the format of the warning messages that -# doxygen can produce. The string should contain the $file, $line, and $text -# tags, which will be replaced by the file and line number from which the -# warning originated and the warning text. Optionally the format may contain -# $version, which will be replaced by the version of the file (if it could -# be obtained via FILE_VERSION_FILTER) - -WARN_FORMAT = "$file:$line: $text" - -# The WARN_LOGFILE tag can be used to specify a file to which warning -# and error messages should be written. If left blank the output is written -# to stderr. - -WARN_LOGFILE = - -#--------------------------------------------------------------------------- -# configuration options related to the input files -#--------------------------------------------------------------------------- - -# The INPUT tag can be used to specify the files and/or directories that contain -# documented source files. You may enter file names like "myfile.cpp" or -# directories like "/usr/src/myproject". Separate the files or directories -# with spaces. - -INPUT = @GECODEDIR@ - -# This tag can be used to specify the character encoding of the source files -# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is -# also the default input encoding. Doxygen uses libiconv (or the iconv built -# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for -# the list of possible encodings. - -INPUT_ENCODING = ISO-8859-1 - -# If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank the following patterns are tested: -# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh -# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py -# *.f90 *.f *.for *.vhd *.vhdl - -FILE_PATTERNS = *.hh *.hpp - -# The RECURSIVE tag can be used to turn specify whether or not subdirectories -# should be searched for input files as well. Possible values are YES and NO. -# If left blank NO is used. - -RECURSIVE = YES - -# The EXCLUDE tag can be used to specify files and/or directories that should -# excluded from the INPUT source files. This way you can easily exclude a -# subdirectory from a directory tree whose root is specified with the INPUT tag. - -EXCLUDE = - -# The EXCLUDE_SYMLINKS tag can be used select whether or not files or -# directories that are symbolic links (a Unix file system feature) are excluded -# from the input. - -EXCLUDE_SYMLINKS = NO - -# If the value of the INPUT tag contains directories, you can use the -# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. Note that the wildcards are matched -# against the file with absolute path, so to exclude all test directories -# for example use the pattern */test/* - -EXCLUDE_PATTERNS = - -# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names -# (namespaces, classes, functions, etc.) that should be excluded from the -# output. The symbol name can be a fully qualified name, a word, or if the -# wildcard * is used, a substring. Examples: ANamespace, AClass, -# AClass::ANamespace, ANamespace::*Test - -EXCLUDE_SYMBOLS = - -# The EXAMPLE_PATH tag can be used to specify one or more files or -# directories that contain example code fragments that are included (see -# the \include command). - -EXAMPLE_PATH = - -# If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank all files are included. - -EXAMPLE_PATTERNS = - -# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude -# commands irrespective of the value of the RECURSIVE tag. -# Possible values are YES and NO. If left blank NO is used. - -EXAMPLE_RECURSIVE = NO - -# The IMAGE_PATH tag can be used to specify one or more files or -# directories that contain image that are included in the documentation (see -# the \image command). - -IMAGE_PATH = - -# The INPUT_FILTER tag can be used to specify a program that doxygen should -# invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command , where -# is the value of the INPUT_FILTER tag, and is the name of an -# input file. Doxygen will then use the output that the filter program writes -# to standard output. -# If FILTER_PATTERNS is specified, this tag will be -# ignored. - -INPUT_FILTER = - -# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. -# Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. -# The filters are a list of the form: -# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further -# info on how filters are used. If FILTER_PATTERNS is empty or if -# non of the patterns match the file name, INPUT_FILTER is applied. - -FILTER_PATTERNS = - -# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER) will be used to filter the input files when producing source -# files to browse (i.e. when SOURCE_BROWSER is set to YES). - -FILTER_SOURCE_FILES = NO - -# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file -# pattern. A pattern will override the setting for FILTER_PATTERN (if any) -# and it is also possible to disable source filtering for a specific pattern -# using *.ext= (so without naming a filter). This option only has effect when -# FILTER_SOURCE_FILES is enabled. - -FILTER_SOURCE_PATTERNS = - -#--------------------------------------------------------------------------- -# configuration options related to source browsing -#--------------------------------------------------------------------------- - -# If the SOURCE_BROWSER tag is set to YES then a list of source files will -# be generated. Documented entities will be cross-referenced with these sources. -# Note: To get rid of all source code in the generated output, make sure also -# VERBATIM_HEADERS is set to NO. - -SOURCE_BROWSER = NO - -# Setting the INLINE_SOURCES tag to YES will include the body -# of functions and classes directly in the documentation. - -INLINE_SOURCES = NO - -# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct -# doxygen to hide any special comment blocks from generated source code -# fragments. Normal C and C++ comments will always remain visible. - -STRIP_CODE_COMMENTS = YES - -# If the REFERENCED_BY_RELATION tag is set to YES -# then for each documented function all documented -# functions referencing it will be listed. - -REFERENCED_BY_RELATION = NO - -# If the REFERENCES_RELATION tag is set to YES -# then for each documented function all documented entities -# called/used by that function will be listed. - -REFERENCES_RELATION = NO - -# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) -# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from -# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will -# link to the source code. -# Otherwise they will link to the documentation. - -REFERENCES_LINK_SOURCE = YES - -# If the USE_HTAGS tag is set to YES then the references to source code -# will point to the HTML generated by the htags(1) tool instead of doxygen -# built-in source browser. The htags tool is part of GNU's global source -# tagging system (see http://www.gnu.org/software/global/global.html). You -# will need version 4.8.6 or higher. - -USE_HTAGS = NO - -# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen -# will generate a verbatim copy of the header file for each class for -# which an include is specified. Set to NO to disable this. - -VERBATIM_HEADERS = YES - -#--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- - -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index -# of all compounds will be generated. Enable this if the project -# contains a lot of classes, structs, unions or interfaces. - -ALPHABETICAL_INDEX = YES - -# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then -# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns -# in which this list will be split (can be a number in the range [1..20]) - -COLS_IN_ALPHA_INDEX = 5 - -# In case all classes in a project start with a common prefix, all -# classes will be put under the same header in the alphabetical index. -# The IGNORE_PREFIX tag can be used to specify one or more prefixes that -# should be ignored while generating the index headers. - -IGNORE_PREFIX = - -#--------------------------------------------------------------------------- -# configuration options related to the HTML output -#--------------------------------------------------------------------------- - -# If the GENERATE_HTML tag is set to YES (the default) Doxygen will -# generate HTML output. - -GENERATE_HTML = NO - -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `html' will be used as the default path. - -HTML_OUTPUT = html - -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for -# each generated HTML page (for example: .htm,.php,.asp). If it is left blank -# doxygen will generate files with .html extension. - -HTML_FILE_EXTENSION = .html - -# The HTML_HEADER tag can be used to specify a personal HTML header for -# each generated HTML page. If it is left blank doxygen will generate a -# standard header. Note that when using a custom header you are responsible -# for the proper inclusion of any scripts and style sheets that doxygen -# needs, which is dependent on the configuration options used. -# It is adviced to generate a default header using "doxygen -w html -# header.html footer.html stylesheet.css YourConfigFile" and then modify -# that header. Note that the header is subject to change so you typically -# have to redo this when upgrading to a newer version of doxygen or when changing the value of configuration settings such as GENERATE_TREEVIEW! - -HTML_HEADER = - -# The HTML_FOOTER tag can be used to specify a personal HTML footer for -# each generated HTML page. If it is left blank doxygen will generate a -# standard footer. - -HTML_FOOTER = - -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading -# style sheet that is used by each HTML page. It can be used to -# fine-tune the look of the HTML output. If the tag is left blank doxygen -# will generate a default style sheet. Note that doxygen will try to copy -# the style sheet file to the HTML output directory, so don't put your own -# stylesheet in the HTML output directory as well, or it will be erased! - -HTML_STYLESHEET = - -# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or -# other source files which should be copied to the HTML output directory. Note -# that these files will be copied to the base HTML output directory. Use the -# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these -# files. In the HTML_STYLESHEET file, use the file name only. Also note that -# the files will be copied as-is; there are no commands or markers available. - -HTML_EXTRA_FILES = - -# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. -# Doxygen will adjust the colors in the stylesheet and background images -# according to this color. Hue is specified as an angle on a colorwheel, -# see http://en.wikipedia.org/wiki/Hue for more information. -# For instance the value 0 represents red, 60 is yellow, 120 is green, -# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. -# The allowed range is 0 to 359. - -HTML_COLORSTYLE_HUE = 220 - -# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of -# the colors in the HTML output. For a value of 0 the output will use -# grayscales only. A value of 255 will produce the most vivid colors. - -HTML_COLORSTYLE_SAT = 100 - -# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to -# the luminance component of the colors in the HTML output. Values below -# 100 gradually make the output lighter, whereas values above 100 make -# the output darker. The value divided by 100 is the actual gamma applied, -# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, -# and 100 does not change the gamma. - -HTML_COLORSTYLE_GAMMA = 80 - -# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML -# page will contain the date and time when the page was generated. Setting -# this to NO can help when comparing the output of multiple runs. - -HTML_TIMESTAMP = YES - -# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, -# files or namespaces will be aligned in HTML using tables. If set to -# NO a bullet list will be used. - -HTML_ALIGN_MEMBERS = YES - -# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML -# documentation will contain sections that can be hidden and shown after the -# page has loaded. For this to work a browser that supports -# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox -# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). - -HTML_DYNAMIC_SECTIONS = NO - -# If the GENERATE_DOCSET tag is set to YES, additional index files -# will be generated that can be used as input for Apple's Xcode 3 -# integrated development environment, introduced with OSX 10.5 (Leopard). -# To create a documentation set, doxygen will generate a Makefile in the -# HTML output directory. Running make will produce the docset in that -# directory and running "make install" will install the docset in -# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find -# it at startup. -# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html -# for more information. - -GENERATE_DOCSET = NO - -# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the -# feed. A documentation feed provides an umbrella under which multiple -# documentation sets from a single provider (such as a company or product suite) -# can be grouped. - -DOCSET_FEEDNAME = "Doxygen generated docs" - -# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that -# should uniquely identify the documentation set bundle. This should be a -# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen -# will append .docset to the name. - -DOCSET_BUNDLE_ID = org.doxygen.Project - -# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify -# the documentation publisher. This should be a reverse domain-name style -# string, e.g. com.mycompany.MyDocSet.documentation. - -DOCSET_PUBLISHER_ID = org.doxygen.Publisher - -# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. - -DOCSET_PUBLISHER_NAME = Publisher - -# If the GENERATE_HTMLHELP tag is set to YES, additional index files -# will be generated that can be used as input for tools like the -# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) -# of the generated HTML documentation. - -GENERATE_HTMLHELP = NO - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can -# be used to specify the file name of the resulting .chm file. You -# can add a path in front of the file if the result should not be -# written to the html output directory. - -CHM_FILE = - -# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can -# be used to specify the location (absolute path including file name) of -# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run -# the HTML help compiler on the generated index.hhp. - -HHC_LOCATION = - -# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag -# controls if a separate .chi index file is generated (YES) or that -# it should be included in the master .chm file (NO). - -GENERATE_CHI = NO - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING -# is used to encode HtmlHelp index (hhk), content (hhc) and project file -# content. - -CHM_INDEX_ENCODING = - -# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag -# controls whether a binary table of contents is generated (YES) or a -# normal table of contents (NO) in the .chm file. - -BINARY_TOC = NO - -# The TOC_EXPAND flag can be set to YES to add extra items for group members -# to the contents of the HTML help documentation and to the tree view. - -TOC_EXPAND = NO - -# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and -# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated -# that can be used as input for Qt's qhelpgenerator to generate a -# Qt Compressed Help (.qch) of the generated HTML documentation. - -GENERATE_QHP = NO - -# If the QHG_LOCATION tag is specified, the QCH_FILE tag can -# be used to specify the file name of the resulting .qch file. -# The path specified is relative to the HTML output folder. - -QCH_FILE = - -# The QHP_NAMESPACE tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#namespace - -QHP_NAMESPACE = org.doxygen.Project - -# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#virtual-folders - -QHP_VIRTUAL_FOLDER = doc - -# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to -# add. For more information please see -# http://doc.trolltech.com/qthelpproject.html#custom-filters - -QHP_CUST_FILTER_NAME = - -# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the -# custom filter to add. For more information please see -# -# Qt Help Project / Custom Filters. - -QHP_CUST_FILTER_ATTRS = - -# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this -# project's -# filter section matches. -# -# Qt Help Project / Filter Attributes. - -QHP_SECT_FILTER_ATTRS = - -# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can -# be used to specify the location of Qt's qhelpgenerator. -# If non-empty doxygen will try to run qhelpgenerator on the generated -# .qhp file. - -QHG_LOCATION = - -# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files -# will be generated, which together with the HTML files, form an Eclipse help -# plugin. To install this plugin and make it available under the help contents -# menu in Eclipse, the contents of the directory containing the HTML and XML -# files needs to be copied into the plugins directory of eclipse. The name of -# the directory within the plugins directory should be the same as -# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before -# the help appears. - -GENERATE_ECLIPSEHELP = NO - -# A unique identifier for the eclipse help plugin. When installing the plugin -# the directory name containing the HTML and XML files should also have -# this name. - -ECLIPSE_DOC_ID = org.doxygen.Project - -# The DISABLE_INDEX tag can be used to turn on/off the condensed index at -# top of each HTML page. The value NO (the default) enables the index and -# the value YES disables it. - -DISABLE_INDEX = NO - -# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values -# (range [0,1..20]) that doxygen will group on one line in the generated HTML -# documentation. Note that a value of 0 will completely suppress the enum -# values from appearing in the overview section. - -ENUM_VALUES_PER_LINE = 4 - -# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index -# structure should be generated to display hierarchical information. -# If the tag value is set to YES, a side panel will be generated -# containing a tree-like index structure (just like the one that -# is generated for HTML Help). For this to work a browser that supports -# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). -# Windows users are probably better off using the HTML help feature. - -GENERATE_TREEVIEW = NO - -# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, -# and Class Hierarchy pages using a tree view instead of an ordered list. - -USE_INLINE_TREES = NO - -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be -# used to set the initial width (in pixels) of the frame in which the tree -# is shown. - -TREEVIEW_WIDTH = 250 - -# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open -# links to external symbols imported via tag files in a separate window. - -EXT_LINKS_IN_WINDOW = NO - -# Use this tag to change the font size of Latex formulas included -# as images in the HTML documentation. The default is 10. Note that -# when you change the font size after a successful doxygen run you need -# to manually remove any form_*.png images from the HTML output directory -# to force them to be regenerated. - -FORMULA_FONTSIZE = 10 - -# Use the FORMULA_TRANPARENT tag to determine whether or not the images -# generated for formulas are transparent PNGs. Transparent PNGs are -# not supported properly for IE 6.0, but are supported on all modern browsers. -# Note that when changing this option you need to delete any form_*.png files -# in the HTML output before the changes have effect. - -FORMULA_TRANSPARENT = YES - -# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax -# (see http://www.mathjax.org) which uses client side Javascript for the -# rendering instead of using prerendered bitmaps. Use this if you do not -# have LaTeX installed or if you want to formulas look prettier in the HTML -# output. When enabled you also need to install MathJax separately and -# configure the path to it using the MATHJAX_RELPATH option. - -USE_MATHJAX = NO - -# When MathJax is enabled you need to specify the location relative to the -# HTML output directory using the MATHJAX_RELPATH option. The destination -# directory should contain the MathJax.js script. For instance, if the mathjax -# directory is located at the same level as the HTML output directory, then -# MATHJAX_RELPATH should be ../mathjax. The default value points to the -# mathjax.org site, so you can quickly see the result without installing -# MathJax, but it is strongly recommended to install a local copy of MathJax -# before deployment. - -MATHJAX_RELPATH = http://www.mathjax.org/mathjax - -# When the SEARCHENGINE tag is enabled doxygen will generate a search box -# for the HTML output. The underlying search engine uses javascript -# and DHTML and should work on any modern browser. Note that when using -# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets -# (GENERATE_DOCSET) there is already a search function so this one should -# typically be disabled. For large projects the javascript based search engine -# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. - -SEARCHENGINE = YES - -# When the SERVER_BASED_SEARCH tag is enabled the search engine will be -# implemented using a PHP enabled web server instead of at the web client -# using Javascript. Doxygen will generate the search PHP script and index -# file to put on the web server. The advantage of the server -# based approach is that it scales better to large projects and allows -# full text search. The disadvantages are that it is more difficult to setup -# and does not have live searching capabilities. - -SERVER_BASED_SEARCH = NO - -#--------------------------------------------------------------------------- -# configuration options related to the LaTeX output -#--------------------------------------------------------------------------- - -# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will -# generate Latex output. - -GENERATE_LATEX = NO - -# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `latex' will be used as the default path. - -LATEX_OUTPUT = latex - -# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be -# invoked. If left blank `latex' will be used as the default command name. -# Note that when enabling USE_PDFLATEX this option is only used for -# generating bitmaps for formulas in the HTML output, but not in the -# Makefile that is written to the output directory. - -LATEX_CMD_NAME = latex - -# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to -# generate index for LaTeX. If left blank `makeindex' will be used as the -# default command name. - -MAKEINDEX_CMD_NAME = makeindex - -# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact -# LaTeX documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_LATEX = NO - -# The PAPER_TYPE tag can be used to set the paper type that is used -# by the printer. Possible values are: a4, letter, legal and -# executive. If left blank a4wide will be used. - -PAPER_TYPE = a4 - -# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX -# packages that should be included in the LaTeX output. - -EXTRA_PACKAGES = - -# The LATEX_HEADER tag can be used to specify a personal LaTeX header for -# the generated latex document. The header should contain everything until -# the first chapter. If it is left blank doxygen will generate a -# standard header. Notice: only use this tag if you know what you are doing! - -LATEX_HEADER = - -# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for -# the generated latex document. The footer should contain everything after -# the last chapter. If it is left blank doxygen will generate a -# standard footer. Notice: only use this tag if you know what you are doing! - -LATEX_FOOTER = - -# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated -# is prepared for conversion to pdf (using ps2pdf). The pdf file will -# contain links (just like the HTML output) instead of page references -# This makes the output suitable for online browsing using a pdf viewer. - -PDF_HYPERLINKS = YES - -# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of -# plain latex in the generated Makefile. Set this option to YES to get a -# higher quality PDF documentation. - -USE_PDFLATEX = YES - -# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. -# command to the generated LaTeX files. This will instruct LaTeX to keep -# running if errors occur, instead of asking the user for help. -# This option is also used when generating formulas in HTML. - -LATEX_BATCHMODE = NO - -# If LATEX_HIDE_INDICES is set to YES then doxygen will not -# include the index chapters (such as File Index, Compound Index, etc.) -# in the output. - -LATEX_HIDE_INDICES = NO - -# If LATEX_SOURCE_CODE is set to YES then doxygen will include -# source code with syntax highlighting in the LaTeX output. -# Note that which sources are shown also depends on other settings -# such as SOURCE_BROWSER. - -LATEX_SOURCE_CODE = NO - -#--------------------------------------------------------------------------- -# configuration options related to the RTF output -#--------------------------------------------------------------------------- - -# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output -# The RTF output is optimized for Word 97 and may not look very pretty with -# other RTF readers or editors. - -GENERATE_RTF = NO - -# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `rtf' will be used as the default path. - -RTF_OUTPUT = rtf - -# If the COMPACT_RTF tag is set to YES Doxygen generates more compact -# RTF documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_RTF = NO - -# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated -# will contain hyperlink fields. The RTF file will -# contain links (just like the HTML output) instead of page references. -# This makes the output suitable for online browsing using WORD or other -# programs which support those fields. -# Note: wordpad (write) and others do not support links. - -RTF_HYPERLINKS = NO - -# Load stylesheet definitions from file. Syntax is similar to doxygen's -# config file, i.e. a series of assignments. You only have to provide -# replacements, missing definitions are set to their default value. - -RTF_STYLESHEET_FILE = - -# Set optional variables used in the generation of an rtf document. -# Syntax is similar to doxygen's config file. - -RTF_EXTENSIONS_FILE = - -#--------------------------------------------------------------------------- -# configuration options related to the man page output -#--------------------------------------------------------------------------- - -# If the GENERATE_MAN tag is set to YES (the default) Doxygen will -# generate man pages - -GENERATE_MAN = NO - -# The MAN_OUTPUT tag is used to specify where the man pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `man' will be used as the default path. - -MAN_OUTPUT = man - -# The MAN_EXTENSION tag determines the extension that is added to -# the generated man pages (default is the subroutine's section .3) - -MAN_EXTENSION = .3 - -# If the MAN_LINKS tag is set to YES and Doxygen generates man output, -# then it will generate one additional man file for each entity -# documented in the real man page(s). These additional files -# only source the real man page, but without them the man command -# would be unable to find the correct page. The default is NO. - -MAN_LINKS = NO - -#--------------------------------------------------------------------------- -# configuration options related to the XML output -#--------------------------------------------------------------------------- - -# If the GENERATE_XML tag is set to YES Doxygen will -# generate an XML file that captures the structure of -# the code including all documentation. - -GENERATE_XML = YES - -# The XML_OUTPUT tag is used to specify where the XML pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `xml' will be used as the default path. - -XML_OUTPUT = xml - -# The XML_SCHEMA tag can be used to specify an XML schema, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_SCHEMA = - -# The XML_DTD tag can be used to specify an XML DTD, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_DTD = - -# If the XML_PROGRAMLISTING tag is set to YES Doxygen will -# dump the program listings (including syntax highlighting -# and cross-referencing information) to the XML output. Note that -# enabling this will significantly increase the size of the XML output. - -XML_PROGRAMLISTING = YES - -#--------------------------------------------------------------------------- -# configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- - -# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will -# generate an AutoGen Definitions (see autogen.sf.net) file -# that captures the structure of the code including all -# documentation. Note that this feature is still experimental -# and incomplete at the moment. - -GENERATE_AUTOGEN_DEF = NO - -#--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- - -# If the GENERATE_PERLMOD tag is set to YES Doxygen will -# generate a Perl module file that captures the structure of -# the code including all documentation. Note that this -# feature is still experimental and incomplete at the -# moment. - -GENERATE_PERLMOD = NO - -# If the PERLMOD_LATEX tag is set to YES Doxygen will generate -# the necessary Makefile rules, Perl scripts and LaTeX code to be able -# to generate PDF and DVI output from the Perl module output. - -PERLMOD_LATEX = NO - -# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be -# nicely formatted so it can be parsed by a human reader. -# This is useful -# if you want to understand what is going on. -# On the other hand, if this -# tag is set to NO the size of the Perl module output will be much smaller -# and Perl will parse it just the same. - -PERLMOD_PRETTY = YES - -# The names of the make variables in the generated doxyrules.make file -# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. -# This is useful so different doxyrules.make files included by the same -# Makefile don't overwrite each other's variables. - -PERLMOD_MAKEVAR_PREFIX = - -#--------------------------------------------------------------------------- -# Configuration options related to the preprocessor -#--------------------------------------------------------------------------- - -# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will -# evaluate all C-preprocessor directives found in the sources and include -# files. - -ENABLE_PREPROCESSING = YES - -# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro -# names in the source code. If set to NO (the default) only conditional -# compilation will be performed. Macro expansion can be done in a controlled -# way by setting EXPAND_ONLY_PREDEF to YES. - -MACRO_EXPANSION = NO - -# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES -# then the macro expansion is limited to the macros specified with the -# PREDEFINED and EXPAND_AS_DEFINED tags. - -EXPAND_ONLY_PREDEF = NO - -# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files -# pointed to by INCLUDE_PATH will be searched when a #include is found. - -SEARCH_INCLUDES = YES - -# The INCLUDE_PATH tag can be used to specify one or more directories that -# contain include files that are not input files but should be processed by -# the preprocessor. - -INCLUDE_PATH = - -# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard -# patterns (like *.h and *.hpp) to filter out the header-files in the -# directories. If left blank, the patterns specified with FILE_PATTERNS will -# be used. - -INCLUDE_FILE_PATTERNS = - -# The PREDEFINED tag can be used to specify one or more macro names that -# are defined before the preprocessor is started (similar to the -D option of -# gcc). The argument of the tag is a list of macros of the form: name -# or name=definition (no spaces). If the definition and the = are -# omitted =1 is assumed. To prevent a macro definition from being -# undefined via #undef or recursively expanded use the := operator -# instead of the = operator. - -PREDEFINED = - -# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then -# this tag can be used to specify a list of macro names that should be expanded. -# The macro definition that is found in the sources will be used. -# Use the PREDEFINED tag if you want to use a different macro definition that -# overrules the definition found in the source code. - -EXPAND_AS_DEFINED = - -# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then -# doxygen's preprocessor will remove all references to function-like macros -# that are alone on a line, have an all uppercase name, and do not end with a -# semicolon, because these will confuse the parser if not removed. - -SKIP_FUNCTION_MACROS = YES - -#--------------------------------------------------------------------------- -# Configuration::additions related to external references -#--------------------------------------------------------------------------- - -# The TAGFILES option can be used to specify one or more tagfiles. -# Optionally an initial location of the external documentation -# can be added for each tagfile. The format of a tag file without -# this location is as follows: -# -# TAGFILES = file1 file2 ... -# Adding location for the tag files is done as follows: -# -# TAGFILES = file1=loc1 "file2 = loc2" ... -# where "loc1" and "loc2" can be relative or absolute paths or -# URLs. If a location is present for each tag, the installdox tool -# does not have to be run to correct the links. -# Note that each tag file must have a unique name -# (where the name does NOT include the path) -# If a tag file is not located in the directory in which doxygen -# is run, you must also specify the path to the tagfile here. - -TAGFILES = - -# When a file name is specified after GENERATE_TAGFILE, doxygen will create -# a tag file that is based on the input files it reads. - -GENERATE_TAGFILE = - -# If the ALLEXTERNALS tag is set to YES all external classes will be listed -# in the class index. If set to NO only the inherited external classes -# will be listed. - -ALLEXTERNALS = NO - -# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed -# in the modules index. If set to NO, only the current project's groups will -# be listed. - -EXTERNAL_GROUPS = YES - -# The PERL_PATH should be the absolute path and name of the perl script -# interpreter (i.e. the result of `which perl'). - -PERL_PATH = /usr/bin/perl - -#--------------------------------------------------------------------------- -# Configuration options related to the dot tool -#--------------------------------------------------------------------------- - -# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will -# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base -# or super classes. Setting the tag to NO turns the diagrams off. Note that -# this option also works with HAVE_DOT disabled, but it is recommended to -# install and use dot, since it yields more powerful graphs. - -CLASS_DIAGRAMS = NO - -# You can define message sequence charts within doxygen comments using the \msc -# command. Doxygen will then run the mscgen tool (see -# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the -# documentation. The MSCGEN_PATH tag allows you to specify the directory where -# the mscgen tool resides. If left empty the tool is assumed to be found in the -# default search path. - -MSCGEN_PATH = - -# If set to YES, the inheritance and collaboration graphs will hide -# inheritance and usage relations if the target is undocumented -# or is not a class. - -HIDE_UNDOC_RELATIONS = YES - -# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is -# available from the path. This tool is part of Graphviz, a graph visualization -# toolkit from AT&T and Lucent Bell Labs. The other options in this section -# have no effect if this option is set to NO (the default) - -HAVE_DOT = NO - -# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is -# allowed to run in parallel. When set to 0 (the default) doxygen will -# base this on the number of processors available in the system. You can set it -# explicitly to a value larger than 0 to get control over the balance -# between CPU load and processing speed. - -DOT_NUM_THREADS = 0 - -# By default doxygen will write a font called Helvetica to the output -# directory and reference it in all dot files that doxygen generates. -# When you want a differently looking font you can specify the font name -# using DOT_FONTNAME. You need to make sure dot is able to find the font, -# which can be done by putting it in a standard location or by setting the -# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory -# containing the font. - -DOT_FONTNAME = Helvetica - -# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. -# The default size is 10pt. - -DOT_FONTSIZE = 10 - -# By default doxygen will tell dot to use the output directory to look for the -# FreeSans.ttf font (which doxygen will put there itself). If you specify a -# different font using DOT_FONTNAME you can set the path where dot -# can find it using this tag. - -DOT_FONTPATH = - -# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect inheritance relations. Setting this tag to YES will force the -# the CLASS_DIAGRAMS tag to NO. - -CLASS_GRAPH = YES - -# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect implementation dependencies (inheritance, containment, and -# class references variables) of the class with other documented classes. - -COLLABORATION_GRAPH = YES - -# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for groups, showing the direct groups dependencies - -GROUP_GRAPHS = YES - -# If the UML_LOOK tag is set to YES doxygen will generate inheritance and -# collaboration diagrams in a style similar to the OMG's Unified Modeling -# Language. - -UML_LOOK = NO - -# If set to YES, the inheritance and collaboration graphs will show the -# relations between templates and their instances. - -TEMPLATE_RELATIONS = NO - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT -# tags are set to YES then doxygen will generate a graph for each documented -# file showing the direct and indirect include dependencies of the file with -# other documented files. - -INCLUDE_GRAPH = YES - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and -# HAVE_DOT tags are set to YES then doxygen will generate a graph for each -# documented header file showing the documented files that directly or -# indirectly include this file. - -INCLUDED_BY_GRAPH = YES - -# If the CALL_GRAPH and HAVE_DOT options are set to YES then -# doxygen will generate a call dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable call graphs -# for selected functions only using the \callgraph command. - -CALL_GRAPH = NO - -# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then -# doxygen will generate a caller dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable caller -# graphs for selected functions only using the \callergraph command. - -CALLER_GRAPH = NO - -# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen -# will generate a graphical hierarchy of all classes instead of a textual one. - -GRAPHICAL_HIERARCHY = YES - -# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES -# then doxygen will show the dependencies a directory has on other directories -# in a graphical way. The dependency relations are determined by the #include -# relations between the files in the directories. - -DIRECTORY_GRAPH = YES - -# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images -# generated by dot. Possible values are svg, png, jpg, or gif. -# If left blank png will be used. - -DOT_IMAGE_FORMAT = png - -# The tag DOT_PATH can be used to specify the path where the dot tool can be -# found. If left blank, it is assumed the dot tool can be found in the path. - -DOT_PATH = - -# The DOTFILE_DIRS tag can be used to specify one or more directories that -# contain dot files that are included in the documentation (see the -# \dotfile command). - -DOTFILE_DIRS = - -# The MSCFILE_DIRS tag can be used to specify one or more directories that -# contain msc files that are included in the documentation (see the -# \mscfile command). - -MSCFILE_DIRS = - -# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of -# nodes that will be shown in the graph. If the number of nodes in a graph -# becomes larger than this value, doxygen will truncate the graph, which is -# visualized by representing a node as a red box. Note that doxygen if the -# number of direct children of the root node in a graph is already larger than -# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note -# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. - -DOT_GRAPH_MAX_NODES = 50 - -# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the -# graphs generated by dot. A depth value of 3 means that only nodes reachable -# from the root by following a path via at most 3 edges will be shown. Nodes -# that lay further from the root node will be omitted. Note that setting this -# option to 1 or 2 may greatly reduce the computation time needed for large -# code bases. Also note that the size of a graph can be further restricted by -# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. - -MAX_DOT_GRAPH_DEPTH = 0 - -# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent -# background. This is disabled by default, because dot on Windows does not -# seem to support this out of the box. Warning: Depending on the platform used, -# enabling this option may lead to badly anti-aliased labels on the edges of -# a graph (i.e. they become hard to read). - -DOT_TRANSPARENT = NO - -# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output -# files in one run (i.e. multiple -o and -T options on the command line). This -# makes dot run faster, but since only newer versions of dot (>1.8.10) -# support this, this feature is disabled by default. - -DOT_MULTI_TARGETS = NO - -# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will -# generate a legend page explaining the meaning of the various boxes and -# arrows in the dot generated graphs. - -GENERATE_LEGEND = YES - -# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will -# remove the intermediate dot files that are used to generate -# the various graphs. - -DOT_CLEANUP = YES diff --git a/library/gecode/dev/extractor/Makefile b/library/gecode/dev/extractor/Makefile deleted file mode 100644 index e45782ddc..000000000 --- a/library/gecode/dev/extractor/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -GECODEDIR := $(shell g++ $(CPPFLAGS) $(CXXFLAGS) -H -E gecodedir.hh 2>&1 >/dev/null | grep gecode/kernel.hh | awk '{print $$2}' | sed 's|/kernel.hh||') -GECODECONFIG := $(GECODEDIR)/support/config.hpp -GECODEVERSION := $(shell cat $(GECODECONFIG) | egrep '\' | awk '{print $$3}' | sed 's/"//g') -PROTOTYPES = ../gecode-prototypes-$(GECODEVERSION).hh -ENUMS = ../gecode-enums-$(GECODEVERSION).py - -all: $(PROTOTYPES) $(ENUMS) - -$(PROTOTYPES): % : xml/namespaceGecode.xml extract-prototypes.xsl - cat notice.hh > $@ || { rm -f $@; exit 1; } - xsltproc extract-prototypes.xsl $< \ - | grep EXPORT \ - | grep -v Symmetry \ - | sed 's/Gecode:://g' \ - | sed 's/< //>/g' \ - | sed 's/ \&/\&/g' \ - | sed 's/, /,/g' \ - | sed 's/forceinline //g' \ - | sed 's/GECODE_INT_EXPORT //g' \ - | sed 's/GECODE_FLOAT_EXPORT //g' \ - | sed 's/GECODE_SET_EXPORT //g' \ - | grep -v '*' | sort >> $@ || { rm -f $@; exit 1; } - -$(ENUMS): % : xml/namespaceGecode.xml extract-enums.xsl - cat notice.py > $@ || { rm -f $@; exit 1; } - xsltproc extract-enums.xsl $< >> $@ || { rm -f $@; exit 1; } - -xml/namespaceGecode.xml: Doxyfile - doxygen Doxyfile - -Doxyfile: Doxyfile.in - cat $< | sed "s#@GECODEDIR@#$(GECODEDIR)#" > $@ || { rm -f $@; exit 1; } - -clean: - -rm -rf *~ gecode-prototypes-*.hh gecode-enums-*.py Doxyfile xml diff --git a/library/gecode/dev/extractor/README b/library/gecode/dev/extractor/README deleted file mode 100644 index 6a098164e..000000000 --- a/library/gecode/dev/extractor/README +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains support code for automatically extracting -prototypes from the local Gecode installation. diff --git a/library/gecode/dev/extractor/extract-enums.xsl b/library/gecode/dev/extractor/extract-enums.xsl deleted file mode 100644 index 313e8d6f7..000000000 --- a/library/gecode/dev/extractor/extract-enums.xsl +++ /dev/null @@ -1,31 +0,0 @@ - - - - ENUM_CLASSES = [] - - - - class - - (object): - - TYPE = ' - - ' - ENUM = [ - - , - ' - - ' - - ] - -ENUM_CLASSES.append( - - ) - - - - - diff --git a/library/gecode/dev/extractor/extract-prototypes.xsl b/library/gecode/dev/extractor/extract-prototypes.xsl deleted file mode 100644 index 7ceacbaf7..000000000 --- a/library/gecode/dev/extractor/extract-prototypes.xsl +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - ( - , - - - = - - - - ); - - - - diff --git a/library/gecode/dev/extractor/gecodedir.hh b/library/gecode/dev/extractor/gecodedir.hh deleted file mode 100644 index b3cc63621..000000000 --- a/library/gecode/dev/extractor/gecodedir.hh +++ /dev/null @@ -1 +0,0 @@ -#include "gecode/kernel.hh" diff --git a/library/gecode/dev/extractor/notice.hh b/library/gecode/dev/extractor/notice.hh deleted file mode 100644 index 935fe8212..000000000 --- a/library/gecode/dev/extractor/notice.hh +++ /dev/null @@ -1,3 +0,0 @@ -// This file was automatically extracted from Gecode source files. -// It is subject to the same Copyright as the source files from which -// it is derived, and is distributed under the same Licensing conditions. diff --git a/library/gecode/dev/extractor/notice.py b/library/gecode/dev/extractor/notice.py deleted file mode 100644 index cdfd4d2cd..000000000 --- a/library/gecode/dev/extractor/notice.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was automatically extracted from Gecode source files. -# It is subject to the same Copyright as the source files from which -# it is derived, and is distributed under the same Licensing conditions. diff --git a/library/gecode/dev/gecode-enums-3.6.0.py b/library/gecode/dev/gecode-enums-3.6.0.py deleted file mode 100644 index 838a0deb2..000000000 --- a/library/gecode/dev/gecode-enums-3.6.0.py +++ /dev/null @@ -1,113 +0,0 @@ -# This file was automatically extracted from Gecode source files. -# It is subject to the same Copyright as the source files from which -# it is derived, and is distributed under the same Licensing conditions. -ENUM_CLASSES = [] - -class ScriptMode(object): - TYPE = 'ScriptMode' - ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] - -ENUM_CLASSES.append(ScriptMode) - -class IntRelType(object): - TYPE = 'IntRelType' - ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] - -ENUM_CLASSES.append(IntRelType) - -class BoolOpType(object): - TYPE = 'BoolOpType' - ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] - -ENUM_CLASSES.append(BoolOpType) - -class IntConLevel(object): - TYPE = 'IntConLevel' - ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] - -ENUM_CLASSES.append(IntConLevel) - -class TaskType(object): - TYPE = 'TaskType' - ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] - -ENUM_CLASSES.append(TaskType) - -class ExtensionalPropKind(object): - TYPE = 'ExtensionalPropKind' - ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] - -ENUM_CLASSES.append(ExtensionalPropKind) - -class IntVarBranch(object): - TYPE = 'IntVarBranch' - ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] - -ENUM_CLASSES.append(IntVarBranch) - -class IntValBranch(object): - TYPE = 'IntValBranch' - ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] - -ENUM_CLASSES.append(IntValBranch) - -class IntAssign(object): - TYPE = 'IntAssign' - ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] - -ENUM_CLASSES.append(IntAssign) - -class ViewSelStatus(object): - TYPE = 'ViewSelStatus' - ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] - -ENUM_CLASSES.append(ViewSelStatus) - -class ExecStatus(object): - TYPE = 'ExecStatus' - ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] - -ENUM_CLASSES.append(ExecStatus) - -class ActorProperty(object): - TYPE = 'ActorProperty' - ENUM = ['AP_DISPOSE','AP_WEAKLY'] - -ENUM_CLASSES.append(ActorProperty) - -class SpaceStatus(object): - TYPE = 'SpaceStatus' - ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] - -ENUM_CLASSES.append(SpaceStatus) - -class SetRelType(object): - TYPE = 'SetRelType' - ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL'] - -ENUM_CLASSES.append(SetRelType) - -class SetOpType(object): - TYPE = 'SetOpType' - ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] - -ENUM_CLASSES.append(SetOpType) - -class SetVarBranch(object): - TYPE = 'SetVarBranch' - ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] - -ENUM_CLASSES.append(SetVarBranch) - -class SetValBranch(object): - TYPE = 'SetValBranch' - ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] - -ENUM_CLASSES.append(SetValBranch) - -class SetAssign(object): - TYPE = 'SetAssign' - ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] - -ENUM_CLASSES.append(SetAssign) - diff --git a/library/gecode/dev/gecode-enums-3.7.0.py b/library/gecode/dev/gecode-enums-3.7.0.py deleted file mode 100644 index f2d84a057..000000000 --- a/library/gecode/dev/gecode-enums-3.7.0.py +++ /dev/null @@ -1,113 +0,0 @@ -# This file was automatically extracted from Gecode source files. -# It is subject to the same Copyright as the source files from which -# it is derived, and is distributed under the same Licensing conditions. -ENUM_CLASSES = [] - -class ScriptMode(object): - TYPE = 'ScriptMode' - ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] - -ENUM_CLASSES.append(ScriptMode) - -class IntRelType(object): - TYPE = 'IntRelType' - ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] - -ENUM_CLASSES.append(IntRelType) - -class BoolOpType(object): - TYPE = 'BoolOpType' - ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] - -ENUM_CLASSES.append(BoolOpType) - -class IntConLevel(object): - TYPE = 'IntConLevel' - ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] - -ENUM_CLASSES.append(IntConLevel) - -class TaskType(object): - TYPE = 'TaskType' - ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] - -ENUM_CLASSES.append(TaskType) - -class ExtensionalPropKind(object): - TYPE = 'ExtensionalPropKind' - ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] - -ENUM_CLASSES.append(ExtensionalPropKind) - -class IntVarBranch(object): - TYPE = 'IntVarBranch' - ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] - -ENUM_CLASSES.append(IntVarBranch) - -class IntValBranch(object): - TYPE = 'IntValBranch' - ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] - -ENUM_CLASSES.append(IntValBranch) - -class IntAssign(object): - TYPE = 'IntAssign' - ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] - -ENUM_CLASSES.append(IntAssign) - -class ViewSelStatus(object): - TYPE = 'ViewSelStatus' - ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] - -ENUM_CLASSES.append(ViewSelStatus) - -class ExecStatus(object): - TYPE = 'ExecStatus' - ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] - -ENUM_CLASSES.append(ExecStatus) - -class ActorProperty(object): - TYPE = 'ActorProperty' - ENUM = ['AP_DISPOSE','AP_WEAKLY'] - -ENUM_CLASSES.append(ActorProperty) - -class SpaceStatus(object): - TYPE = 'SpaceStatus' - ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] - -ENUM_CLASSES.append(SpaceStatus) - -class SetRelType(object): - TYPE = 'SetRelType' - ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] - -ENUM_CLASSES.append(SetRelType) - -class SetOpType(object): - TYPE = 'SetOpType' - ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] - -ENUM_CLASSES.append(SetOpType) - -class SetVarBranch(object): - TYPE = 'SetVarBranch' - ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] - -ENUM_CLASSES.append(SetVarBranch) - -class SetValBranch(object): - TYPE = 'SetValBranch' - ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] - -ENUM_CLASSES.append(SetValBranch) - -class SetAssign(object): - TYPE = 'SetAssign' - ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] - -ENUM_CLASSES.append(SetAssign) - diff --git a/library/gecode/dev/gecode-enums-3.7.1.py b/library/gecode/dev/gecode-enums-3.7.1.py deleted file mode 100644 index f2d84a057..000000000 --- a/library/gecode/dev/gecode-enums-3.7.1.py +++ /dev/null @@ -1,113 +0,0 @@ -# This file was automatically extracted from Gecode source files. -# It is subject to the same Copyright as the source files from which -# it is derived, and is distributed under the same Licensing conditions. -ENUM_CLASSES = [] - -class ScriptMode(object): - TYPE = 'ScriptMode' - ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] - -ENUM_CLASSES.append(ScriptMode) - -class IntRelType(object): - TYPE = 'IntRelType' - ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] - -ENUM_CLASSES.append(IntRelType) - -class BoolOpType(object): - TYPE = 'BoolOpType' - ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] - -ENUM_CLASSES.append(BoolOpType) - -class IntConLevel(object): - TYPE = 'IntConLevel' - ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] - -ENUM_CLASSES.append(IntConLevel) - -class TaskType(object): - TYPE = 'TaskType' - ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] - -ENUM_CLASSES.append(TaskType) - -class ExtensionalPropKind(object): - TYPE = 'ExtensionalPropKind' - ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] - -ENUM_CLASSES.append(ExtensionalPropKind) - -class IntVarBranch(object): - TYPE = 'IntVarBranch' - ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] - -ENUM_CLASSES.append(IntVarBranch) - -class IntValBranch(object): - TYPE = 'IntValBranch' - ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] - -ENUM_CLASSES.append(IntValBranch) - -class IntAssign(object): - TYPE = 'IntAssign' - ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] - -ENUM_CLASSES.append(IntAssign) - -class ViewSelStatus(object): - TYPE = 'ViewSelStatus' - ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] - -ENUM_CLASSES.append(ViewSelStatus) - -class ExecStatus(object): - TYPE = 'ExecStatus' - ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] - -ENUM_CLASSES.append(ExecStatus) - -class ActorProperty(object): - TYPE = 'ActorProperty' - ENUM = ['AP_DISPOSE','AP_WEAKLY'] - -ENUM_CLASSES.append(ActorProperty) - -class SpaceStatus(object): - TYPE = 'SpaceStatus' - ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] - -ENUM_CLASSES.append(SpaceStatus) - -class SetRelType(object): - TYPE = 'SetRelType' - ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] - -ENUM_CLASSES.append(SetRelType) - -class SetOpType(object): - TYPE = 'SetOpType' - ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] - -ENUM_CLASSES.append(SetOpType) - -class SetVarBranch(object): - TYPE = 'SetVarBranch' - ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] - -ENUM_CLASSES.append(SetVarBranch) - -class SetValBranch(object): - TYPE = 'SetValBranch' - ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] - -ENUM_CLASSES.append(SetValBranch) - -class SetAssign(object): - TYPE = 'SetAssign' - ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] - -ENUM_CLASSES.append(SetAssign) - diff --git a/library/gecode/dev/gecode-enums-3.7.2.py b/library/gecode/dev/gecode-enums-3.7.2.py deleted file mode 100644 index f2d84a057..000000000 --- a/library/gecode/dev/gecode-enums-3.7.2.py +++ /dev/null @@ -1,113 +0,0 @@ -# This file was automatically extracted from Gecode source files. -# It is subject to the same Copyright as the source files from which -# it is derived, and is distributed under the same Licensing conditions. -ENUM_CLASSES = [] - -class ScriptMode(object): - TYPE = 'ScriptMode' - ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] - -ENUM_CLASSES.append(ScriptMode) - -class IntRelType(object): - TYPE = 'IntRelType' - ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] - -ENUM_CLASSES.append(IntRelType) - -class BoolOpType(object): - TYPE = 'BoolOpType' - ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] - -ENUM_CLASSES.append(BoolOpType) - -class IntConLevel(object): - TYPE = 'IntConLevel' - ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] - -ENUM_CLASSES.append(IntConLevel) - -class TaskType(object): - TYPE = 'TaskType' - ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] - -ENUM_CLASSES.append(TaskType) - -class ExtensionalPropKind(object): - TYPE = 'ExtensionalPropKind' - ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] - -ENUM_CLASSES.append(ExtensionalPropKind) - -class IntVarBranch(object): - TYPE = 'IntVarBranch' - ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] - -ENUM_CLASSES.append(IntVarBranch) - -class IntValBranch(object): - TYPE = 'IntValBranch' - ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] - -ENUM_CLASSES.append(IntValBranch) - -class IntAssign(object): - TYPE = 'IntAssign' - ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] - -ENUM_CLASSES.append(IntAssign) - -class ViewSelStatus(object): - TYPE = 'ViewSelStatus' - ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] - -ENUM_CLASSES.append(ViewSelStatus) - -class ExecStatus(object): - TYPE = 'ExecStatus' - ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] - -ENUM_CLASSES.append(ExecStatus) - -class ActorProperty(object): - TYPE = 'ActorProperty' - ENUM = ['AP_DISPOSE','AP_WEAKLY'] - -ENUM_CLASSES.append(ActorProperty) - -class SpaceStatus(object): - TYPE = 'SpaceStatus' - ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] - -ENUM_CLASSES.append(SpaceStatus) - -class SetRelType(object): - TYPE = 'SetRelType' - ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] - -ENUM_CLASSES.append(SetRelType) - -class SetOpType(object): - TYPE = 'SetOpType' - ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] - -ENUM_CLASSES.append(SetOpType) - -class SetVarBranch(object): - TYPE = 'SetVarBranch' - ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] - -ENUM_CLASSES.append(SetVarBranch) - -class SetValBranch(object): - TYPE = 'SetValBranch' - ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] - -ENUM_CLASSES.append(SetValBranch) - -class SetAssign(object): - TYPE = 'SetAssign' - ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] - -ENUM_CLASSES.append(SetAssign) - diff --git a/library/gecode/dev/gecode-enums-3.7.3.py b/library/gecode/dev/gecode-enums-3.7.3.py deleted file mode 100644 index f2d84a057..000000000 --- a/library/gecode/dev/gecode-enums-3.7.3.py +++ /dev/null @@ -1,113 +0,0 @@ -# This file was automatically extracted from Gecode source files. -# It is subject to the same Copyright as the source files from which -# it is derived, and is distributed under the same Licensing conditions. -ENUM_CLASSES = [] - -class ScriptMode(object): - TYPE = 'ScriptMode' - ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] - -ENUM_CLASSES.append(ScriptMode) - -class IntRelType(object): - TYPE = 'IntRelType' - ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] - -ENUM_CLASSES.append(IntRelType) - -class BoolOpType(object): - TYPE = 'BoolOpType' - ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] - -ENUM_CLASSES.append(BoolOpType) - -class IntConLevel(object): - TYPE = 'IntConLevel' - ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] - -ENUM_CLASSES.append(IntConLevel) - -class TaskType(object): - TYPE = 'TaskType' - ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] - -ENUM_CLASSES.append(TaskType) - -class ExtensionalPropKind(object): - TYPE = 'ExtensionalPropKind' - ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] - -ENUM_CLASSES.append(ExtensionalPropKind) - -class IntVarBranch(object): - TYPE = 'IntVarBranch' - ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] - -ENUM_CLASSES.append(IntVarBranch) - -class IntValBranch(object): - TYPE = 'IntValBranch' - ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] - -ENUM_CLASSES.append(IntValBranch) - -class IntAssign(object): - TYPE = 'IntAssign' - ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] - -ENUM_CLASSES.append(IntAssign) - -class ViewSelStatus(object): - TYPE = 'ViewSelStatus' - ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] - -ENUM_CLASSES.append(ViewSelStatus) - -class ExecStatus(object): - TYPE = 'ExecStatus' - ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] - -ENUM_CLASSES.append(ExecStatus) - -class ActorProperty(object): - TYPE = 'ActorProperty' - ENUM = ['AP_DISPOSE','AP_WEAKLY'] - -ENUM_CLASSES.append(ActorProperty) - -class SpaceStatus(object): - TYPE = 'SpaceStatus' - ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] - -ENUM_CLASSES.append(SpaceStatus) - -class SetRelType(object): - TYPE = 'SetRelType' - ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] - -ENUM_CLASSES.append(SetRelType) - -class SetOpType(object): - TYPE = 'SetOpType' - ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] - -ENUM_CLASSES.append(SetOpType) - -class SetVarBranch(object): - TYPE = 'SetVarBranch' - ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] - -ENUM_CLASSES.append(SetVarBranch) - -class SetValBranch(object): - TYPE = 'SetValBranch' - ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] - -ENUM_CLASSES.append(SetValBranch) - -class SetAssign(object): - TYPE = 'SetAssign' - ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] - -ENUM_CLASSES.append(SetAssign) - diff --git a/library/gecode/dev/gecode-enums-4.0.0.py b/library/gecode/dev/gecode-enums-4.0.0.py deleted file mode 100644 index bebe9fa0d..000000000 --- a/library/gecode/dev/gecode-enums-4.0.0.py +++ /dev/null @@ -1,119 +0,0 @@ -# This file was automatically extracted from Gecode source files. -# It is subject to the same Copyright as the source files from which -# it is derived, and is distributed under the same Licensing conditions. -ENUM_CLASSES = [] - -class ScriptMode(object): - TYPE = 'ScriptMode' - ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] - -ENUM_CLASSES.append(ScriptMode) - -class ReifyMode(object): - TYPE = 'ReifyMode' - ENUM = ['RM_EQV','RM_IMP','RM_PMI'] - -ENUM_CLASSES.append(ReifyMode) - -class IntRelType(object): - TYPE = 'IntRelType' - ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] - -ENUM_CLASSES.append(IntRelType) - -class BoolOpType(object): - TYPE = 'BoolOpType' - ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] - -ENUM_CLASSES.append(BoolOpType) - -class IntConLevel(object): - TYPE = 'IntConLevel' - ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] - -ENUM_CLASSES.append(IntConLevel) - -class TaskType(object): - TYPE = 'TaskType' - ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] - -ENUM_CLASSES.append(TaskType) - -class ExtensionalPropKind(object): - TYPE = 'ExtensionalPropKind' - ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] - -ENUM_CLASSES.append(ExtensionalPropKind) - -class IntVarBranch(object): - TYPE = 'IntVarBranch' - ENUM = ['INT_VAR_NONE','INT_VAR_RND','INT_VAR_DEGREE_MIN','INT_VAR_DEGREE_MAX','INT_VAR_AFC_MIN','INT_VAR_AFC_MAX','INT_VAR_MIN_MIN','INT_VAR_MIN_MAX','INT_VAR_MAX_MIN','INT_VAR_MAX_MAX','INT_VAR_SIZE_MIN','INT_VAR_SIZE_MAX','INT_VAR_SIZE_DEGREE_MIN','INT_VAR_SIZE_DEGREE_MAX','INT_VAR_SIZE_AFC_MIN','INT_VAR_SIZE_AFC_MAX','INT_VAR_REGRET_MIN_MIN','INT_VAR_REGRET_MIN_MAX','INT_VAR_REGRET_MAX_MIN','INT_VAR_REGRET_MAX_MAX'] - -ENUM_CLASSES.append(IntVarBranch) - -class IntValBranch(object): - TYPE = 'IntValBranch' - ENUM = ['INT_VAL_MIN','INT_VAL_MED','INT_VAL_MAX','INT_VAL_RND','INT_VAL_SPLIT_MIN','INT_VAL_SPLIT_MAX','INT_VAL_RANGE_MIN','INT_VAL_RANGE_MAX','INT_VALUES_MIN','INT_VALUES_MAX'] - -ENUM_CLASSES.append(IntValBranch) - -class IntAssign(object): - TYPE = 'IntAssign' - ENUM = ['INT_ASSIGN_MIN','INT_ASSIGN_MED','INT_ASSIGN_MAX','INT_ASSIGN_RND'] - -ENUM_CLASSES.append(IntAssign) - -class ViewSelStatus(object): - TYPE = 'ViewSelStatus' - ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] - -ENUM_CLASSES.append(ViewSelStatus) - -class ExecStatus(object): - TYPE = 'ExecStatus' - ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] - -ENUM_CLASSES.append(ExecStatus) - -class ActorProperty(object): - TYPE = 'ActorProperty' - ENUM = ['AP_DISPOSE','AP_WEAKLY'] - -ENUM_CLASSES.append(ActorProperty) - -class SpaceStatus(object): - TYPE = 'SpaceStatus' - ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] - -ENUM_CLASSES.append(SpaceStatus) - -class SetRelType(object): - TYPE = 'SetRelType' - ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] - -ENUM_CLASSES.append(SetRelType) - -class SetOpType(object): - TYPE = 'SetOpType' - ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] - -ENUM_CLASSES.append(SetOpType) - -class SetVarBranch(object): - TYPE = 'SetVarBranch' - ENUM = ['SET_VAR_NONE','SET_VAR_RND','SET_VAR_DEGREE_MIN','SET_VAR_DEGREE_MAX','SET_VAR_AFC_MIN','SET_VAR_AFC_MAX','SET_VAR_MIN_MIN','SET_VAR_MIN_MAX','SET_VAR_MAX_MIN','SET_VAR_MAX_MAX','SET_VAR_SIZE_MIN','SET_VAR_SIZE_MAX','SET_VAR_SIZE_DEGREE_MIN','SET_VAR_SIZE_DEGREE_MAX','SET_VAR_SIZE_AFC_MIN','SET_VAR_SIZE_AFC_MAX'] - -ENUM_CLASSES.append(SetVarBranch) - -class SetValBranch(object): - TYPE = 'SetValBranch' - ENUM = ['SET_VAL_MIN_INC','SET_VAL_MIN_EXC','SET_VAL_MED_INC','SET_VAL_MED_EXC','SET_VAL_MAX_INC','SET_VAL_MAX_EXC','SET_VAL_RND_INC','SET_VAL_RND_EXC'] - -ENUM_CLASSES.append(SetValBranch) - -class SetAssign(object): - TYPE = 'SetAssign' - ENUM = ['SET_ASSIGN_MIN_INC','SET_ASSIGN_MIN_EXC','SET_ASSIGN_MED_INC','SET_ASSIGN_MED_EXC','SET_ASSIGN_MAX_INC','SET_ASSIGN_MAX_EXC','SET_ASSIGN_RND_INC','SET_ASSIGN_RND_EXC'] - -ENUM_CLASSES.append(SetAssign) - diff --git a/library/gecode/dev/gecode-enums-4.2.0.py b/library/gecode/dev/gecode-enums-4.2.0.py deleted file mode 100644 index c1c631ee2..000000000 --- a/library/gecode/dev/gecode-enums-4.2.0.py +++ /dev/null @@ -1,95 +0,0 @@ -# This file was automatically extracted from Gecode source files. -# It is subject to the same Copyright as the source files from which -# it is derived, and is distributed under the same Licensing conditions. -ENUM_CLASSES = [] - -class ScriptMode(object): - TYPE = 'ScriptMode' - ENUM = ['SM_SOLUTION','SM_TIME','SM_STAT','SM_GIST'] - -ENUM_CLASSES.append(ScriptMode) - -class RestartMode(object): - TYPE = 'RestartMode' - ENUM = ['RM_NONE','RM_CONSTANT','RM_LINEAR','RM_LUBY','RM_GEOMETRIC'] - -ENUM_CLASSES.append(RestartMode) - -class FloatRelType(object): - TYPE = 'FloatRelType' - ENUM = ['FRT_EQ','FRT_NQ','FRT_LQ','FRT_LE','FRT_GQ','FRT_GR'] - -ENUM_CLASSES.append(FloatRelType) - -class ReifyMode(object): - TYPE = 'ReifyMode' - ENUM = ['RM_EQV','RM_IMP','RM_PMI'] - -ENUM_CLASSES.append(ReifyMode) - -class IntRelType(object): - TYPE = 'IntRelType' - ENUM = ['IRT_EQ','IRT_NQ','IRT_LQ','IRT_LE','IRT_GQ','IRT_GR'] - -ENUM_CLASSES.append(IntRelType) - -class BoolOpType(object): - TYPE = 'BoolOpType' - ENUM = ['BOT_AND','BOT_OR','BOT_IMP','BOT_EQV','BOT_XOR'] - -ENUM_CLASSES.append(BoolOpType) - -class IntConLevel(object): - TYPE = 'IntConLevel' - ENUM = ['ICL_VAL','ICL_BND','ICL_DOM','ICL_DEF'] - -ENUM_CLASSES.append(IntConLevel) - -class TaskType(object): - TYPE = 'TaskType' - ENUM = ['TT_FIXP','TT_FIXS','TT_FIXE'] - -ENUM_CLASSES.append(TaskType) - -class ExtensionalPropKind(object): - TYPE = 'ExtensionalPropKind' - ENUM = ['EPK_DEF','EPK_SPEED','EPK_MEMORY'] - -ENUM_CLASSES.append(ExtensionalPropKind) - -class ViewSelStatus(object): - TYPE = 'ViewSelStatus' - ENUM = ['VSS_BEST','VSS_BETTER','VSS_TIE','VSS_WORSE'] - -ENUM_CLASSES.append(ViewSelStatus) - -class ExecStatus(object): - TYPE = 'ExecStatus' - ENUM = ['__ES_SUBSUMED','ES_FAILED','ES_NOFIX','ES_OK','ES_FIX','ES_NOFIX_FORCE','__ES_PARTIAL'] - -ENUM_CLASSES.append(ExecStatus) - -class ActorProperty(object): - TYPE = 'ActorProperty' - ENUM = ['AP_DISPOSE','AP_WEAKLY'] - -ENUM_CLASSES.append(ActorProperty) - -class SpaceStatus(object): - TYPE = 'SpaceStatus' - ENUM = ['SS_FAILED','SS_SOLVED','SS_BRANCH'] - -ENUM_CLASSES.append(SpaceStatus) - -class SetRelType(object): - TYPE = 'SetRelType' - ENUM = ['SRT_EQ','SRT_NQ','SRT_SUB','SRT_SUP','SRT_DISJ','SRT_CMPL','SRT_LQ','SRT_LE','SRT_GQ','SRT_GR'] - -ENUM_CLASSES.append(SetRelType) - -class SetOpType(object): - TYPE = 'SetOpType' - ENUM = ['SOT_UNION','SOT_DUNION','SOT_INTER','SOT_MINUS'] - -ENUM_CLASSES.append(SetOpType) - diff --git a/library/gecode/dev/gecode-prototypes-3.6.0.hh b/library/gecode/dev/gecode-prototypes-3.6.0.hh deleted file mode 100644 index 8e5189e4a..000000000 --- a/library/gecode/dev/gecode-prototypes-3.6.0.hh +++ /dev/null @@ -1,209 +0,0 @@ -// This file was automatically extracted from Gecode source files. -// It is subject to the same Copyright as the source files from which -// it is derived, and is distributed under the same Licensing conditions. -void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void atmostOne(Home,const SetVarArgs&,unsigned int); -void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); -void cardinality(Home,SetVar,IntVar); -void cardinality(Home,SetVar,unsigned int,unsigned int); -void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,SetVar); -void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void channel(Home,const IntVarArgs&,const SetVarArgs&); -void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); -void channelSorted(Home,const IntVarArgs&,SetVar); -void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void convex(Home,SetVar); -void convex(Home,SetVar,SetVar); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); -void dom(Home,SetVar,SetRelType,const IntSet&); -void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); -void dom(Home,SetVar,SetRelType,int); -void dom(Home,SetVar,SetRelType,int,BoolVar); -void dom(Home,SetVar,SetRelType,int,int); -void dom(Home,SetVar,SetRelType,int,int,BoolVar); -void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const IntSetArgs&,IntVar,SetVar); -void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const SetVarArgs&,IntVar,SetVar); -void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void max(Home,SetVar,IntVar); -void max(Home,SetVar,IntVar,BoolVar); -void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void min(Home,SetVar,IntVar); -void min(Home,SetVar,IntVar,BoolVar); -void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void notMax(Home,SetVar,IntVar); -void notMin(Home,SetVar,IntVar); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void precede(Home,const SetVarArgs&,const IntArgs&); -void precede(Home,const SetVarArgs&,int,int); -void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar,BoolVar); -void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const IntVarArgs&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,SetVar); -void rel(Home,SetVar,IntRelType,IntVar); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,IntVar); -void rel(Home,SetVar,SetRelType,IntVar,BoolVar); -void rel(Home,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,SetVar,BoolVar); -void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const SetVarArgs&); -void sequence(Home,const SetVarArgs&,SetVar); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); -void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); -void weights(Home,const IntArgs&,const IntArgs&,SetVar,IntVar); diff --git a/library/gecode/dev/gecode-prototypes-3.7.0.hh b/library/gecode/dev/gecode-prototypes-3.7.0.hh deleted file mode 100644 index a0120ac9d..000000000 --- a/library/gecode/dev/gecode-prototypes-3.7.0.hh +++ /dev/null @@ -1,221 +0,0 @@ -// This file was automatically extracted from Gecode source files. -// It is subject to the same Copyright as the source files from which -// it is derived, and is distributed under the same Licensing conditions. -void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void atmostOne(Home,const SetVarArgs&,unsigned int); -void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); -void cardinality(Home,SetVar,IntVar); -void cardinality(Home,SetVar,unsigned int,unsigned int); -void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,SetVar); -void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void channel(Home,const IntVarArgs&,const SetVarArgs&); -void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); -void channelSorted(Home,const IntVarArgs&,SetVar); -void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void convex(Home,SetVar); -void convex(Home,SetVar,SetVar); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); -void dom(Home,SetVar,SetRelType,const IntSet&); -void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); -void dom(Home,SetVar,SetRelType,int); -void dom(Home,SetVar,SetRelType,int,BoolVar); -void dom(Home,SetVar,SetRelType,int,int); -void dom(Home,SetVar,SetRelType,int,int,BoolVar); -void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const IntSetArgs&,IntVar,SetVar); -void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const SetVarArgs&,IntVar,SetVar); -void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void max(Home,SetVar,IntVar); -void max(Home,SetVar,IntVar,BoolVar); -void member(Home,const BoolVarArgs&,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void min(Home,SetVar,IntVar); -void min(Home,SetVar,IntVar,BoolVar); -void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void notMax(Home,SetVar,IntVar); -void notMin(Home,SetVar,IntVar); -void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void precede(Home,const SetVarArgs&,const IntArgs&); -void precede(Home,const SetVarArgs&,int,int); -void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar,BoolVar); -void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const IntVarArgs&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,SetVar); -void rel(Home,SetVar,IntRelType,IntVar); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,IntVar); -void rel(Home,SetVar,SetRelType,IntVar,BoolVar); -void rel(Home,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,SetVar,BoolVar); -void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const SetVarArgs&); -void sequence(Home,const SetVarArgs&,SetVar); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); -void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); -void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/library/gecode/dev/gecode-prototypes-3.7.1.hh b/library/gecode/dev/gecode-prototypes-3.7.1.hh deleted file mode 100644 index a0120ac9d..000000000 --- a/library/gecode/dev/gecode-prototypes-3.7.1.hh +++ /dev/null @@ -1,221 +0,0 @@ -// This file was automatically extracted from Gecode source files. -// It is subject to the same Copyright as the source files from which -// it is derived, and is distributed under the same Licensing conditions. -void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void atmostOne(Home,const SetVarArgs&,unsigned int); -void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); -void cardinality(Home,SetVar,IntVar); -void cardinality(Home,SetVar,unsigned int,unsigned int); -void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,SetVar); -void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void channel(Home,const IntVarArgs&,const SetVarArgs&); -void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); -void channelSorted(Home,const IntVarArgs&,SetVar); -void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void convex(Home,SetVar); -void convex(Home,SetVar,SetVar); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); -void dom(Home,SetVar,SetRelType,const IntSet&); -void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); -void dom(Home,SetVar,SetRelType,int); -void dom(Home,SetVar,SetRelType,int,BoolVar); -void dom(Home,SetVar,SetRelType,int,int); -void dom(Home,SetVar,SetRelType,int,int,BoolVar); -void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const IntSetArgs&,IntVar,SetVar); -void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const SetVarArgs&,IntVar,SetVar); -void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void max(Home,SetVar,IntVar); -void max(Home,SetVar,IntVar,BoolVar); -void member(Home,const BoolVarArgs&,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void min(Home,SetVar,IntVar); -void min(Home,SetVar,IntVar,BoolVar); -void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void notMax(Home,SetVar,IntVar); -void notMin(Home,SetVar,IntVar); -void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void precede(Home,const SetVarArgs&,const IntArgs&); -void precede(Home,const SetVarArgs&,int,int); -void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar,BoolVar); -void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const IntVarArgs&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,SetVar); -void rel(Home,SetVar,IntRelType,IntVar); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,IntVar); -void rel(Home,SetVar,SetRelType,IntVar,BoolVar); -void rel(Home,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,SetVar,BoolVar); -void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const SetVarArgs&); -void sequence(Home,const SetVarArgs&,SetVar); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); -void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); -void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/library/gecode/dev/gecode-prototypes-3.7.2.hh b/library/gecode/dev/gecode-prototypes-3.7.2.hh deleted file mode 100644 index a0120ac9d..000000000 --- a/library/gecode/dev/gecode-prototypes-3.7.2.hh +++ /dev/null @@ -1,221 +0,0 @@ -// This file was automatically extracted from Gecode source files. -// It is subject to the same Copyright as the source files from which -// it is derived, and is distributed under the same Licensing conditions. -void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void atmostOne(Home,const SetVarArgs&,unsigned int); -void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); -void cardinality(Home,SetVar,IntVar); -void cardinality(Home,SetVar,unsigned int,unsigned int); -void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,SetVar); -void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void channel(Home,const IntVarArgs&,const SetVarArgs&); -void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); -void channelSorted(Home,const IntVarArgs&,SetVar); -void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void convex(Home,SetVar); -void convex(Home,SetVar,SetVar); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); -void dom(Home,SetVar,SetRelType,const IntSet&); -void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); -void dom(Home,SetVar,SetRelType,int); -void dom(Home,SetVar,SetRelType,int,BoolVar); -void dom(Home,SetVar,SetRelType,int,int); -void dom(Home,SetVar,SetRelType,int,int,BoolVar); -void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const IntSetArgs&,IntVar,SetVar); -void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const SetVarArgs&,IntVar,SetVar); -void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void max(Home,SetVar,IntVar); -void max(Home,SetVar,IntVar,BoolVar); -void member(Home,const BoolVarArgs&,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void min(Home,SetVar,IntVar); -void min(Home,SetVar,IntVar,BoolVar); -void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void notMax(Home,SetVar,IntVar); -void notMin(Home,SetVar,IntVar); -void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void precede(Home,const SetVarArgs&,const IntArgs&); -void precede(Home,const SetVarArgs&,int,int); -void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar,BoolVar); -void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const IntVarArgs&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,SetVar); -void rel(Home,SetVar,IntRelType,IntVar); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,IntVar); -void rel(Home,SetVar,SetRelType,IntVar,BoolVar); -void rel(Home,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,SetVar,BoolVar); -void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const SetVarArgs&); -void sequence(Home,const SetVarArgs&,SetVar); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); -void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); -void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/library/gecode/dev/gecode-prototypes-3.7.3.hh b/library/gecode/dev/gecode-prototypes-3.7.3.hh deleted file mode 100644 index a0120ac9d..000000000 --- a/library/gecode/dev/gecode-prototypes-3.7.3.hh +++ /dev/null @@ -1,221 +0,0 @@ -// This file was automatically extracted from Gecode source files. -// It is subject to the same Copyright as the source files from which -// it is derived, and is distributed under the same Licensing conditions. -void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void atmostOne(Home,const SetVarArgs&,unsigned int); -void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); -void cardinality(Home,SetVar,IntVar); -void cardinality(Home,SetVar,unsigned int,unsigned int); -void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,SetVar); -void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void channel(Home,const IntVarArgs&,const SetVarArgs&); -void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); -void channelSorted(Home,const IntVarArgs&,SetVar); -void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void convex(Home,SetVar); -void convex(Home,SetVar,SetVar); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); -void dom(Home,SetVar,SetRelType,const IntSet&); -void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); -void dom(Home,SetVar,SetRelType,int); -void dom(Home,SetVar,SetRelType,int,BoolVar); -void dom(Home,SetVar,SetRelType,int,int); -void dom(Home,SetVar,SetRelType,int,int,BoolVar); -void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const IntSetArgs&,IntVar,SetVar); -void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const SetVarArgs&,IntVar,SetVar); -void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void max(Home,SetVar,IntVar); -void max(Home,SetVar,IntVar,BoolVar); -void member(Home,const BoolVarArgs&,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void min(Home,SetVar,IntVar); -void min(Home,SetVar,IntVar,BoolVar); -void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void notMax(Home,SetVar,IntVar); -void notMin(Home,SetVar,IntVar); -void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void precede(Home,const SetVarArgs&,const IntArgs&); -void precede(Home,const SetVarArgs&,int,int); -void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar,BoolVar); -void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const IntVarArgs&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,SetVar); -void rel(Home,SetVar,IntRelType,IntVar); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,IntVar); -void rel(Home,SetVar,SetRelType,IntVar,BoolVar); -void rel(Home,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,SetVar,BoolVar); -void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const SetVarArgs&); -void sequence(Home,const SetVarArgs&,SetVar); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); -void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); -void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/library/gecode/dev/gecode-prototypes-4.0.0.hh b/library/gecode/dev/gecode-prototypes-4.0.0.hh deleted file mode 100644 index 8828b6cf3..000000000 --- a/library/gecode/dev/gecode-prototypes-4.0.0.hh +++ /dev/null @@ -1,222 +0,0 @@ -// This file was automatically extracted from Gecode source files. -// It is subject to the same Copyright as the source files from which -// it is derived, and is distributed under the same Licensing conditions. -void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void assign(Home,BoolVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const BoolVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const IntVarArgs&,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,const SetVarArgs&,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,IntVar,IntAssign,const ValBranchOptions&=ValBranchOptions::def); -void assign(Home,SetVar,SetAssign,const ValBranchOptions&=ValBranchOptions::def); -void atmostOne(Home,const SetVarArgs&,unsigned int); -void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void branch(Home,BoolVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,const TieBreakVarBranch&,IntValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,const TieBreakVarBranch&,SetValBranch,const TieBreakVarBranchOptions&=TieBreakVarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const VarBranchOptions&=VarBranchOptions::def,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,IntVar,IntValBranch,const ValBranchOptions&=ValBranchOptions::def); -void branch(Home,SetVar,SetValBranch,const ValBranchOptions&=ValBranchOptions::def); -void cardinality(Home,SetVar,IntVar); -void cardinality(Home,SetVar,unsigned int,unsigned int); -void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,SetVar); -void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void channel(Home,const IntVarArgs&,const SetVarArgs&); -void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void channel(Home,const SetVarArgs&,const SetVarArgs&); -void channel(Home,IntVar,BoolVar,IntConLevel=ICL_DEF); -void channelSorted(Home,const IntVarArgs&,SetVar); -void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void convex(Home,SetVar); -void convex(Home,SetVar,SetVar); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,Reify,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,Reify,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,Reify,IntConLevel=ICL_DEF); -void dom(Home,SetVar,SetRelType,const IntSet&); -void dom(Home,SetVar,SetRelType,const IntSet&,BoolVar); -void dom(Home,SetVar,SetRelType,int); -void dom(Home,SetVar,SetRelType,int,BoolVar); -void dom(Home,SetVar,SetRelType,int,int); -void dom(Home,SetVar,SetRelType,int,int,BoolVar); -void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const IntSetArgs&,IntVar,SetVar); -void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const SetVarArgs&,IntVar,SetVar); -void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); -void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void max(Home,SetVar,IntVar); -void max(Home,SetVar,IntVar,BoolVar); -void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const BoolVarArgs&,BoolVar,Reify,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,Reify,IntConLevel=ICL_DEF); -void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void min(Home,SetVar,IntVar); -void min(Home,SetVar,IntVar,BoolVar); -void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void notMax(Home,SetVar,IntVar); -void notMin(Home,SetVar,IntVar); -void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void precede(Home,const SetVarArgs&,const IntArgs&); -void precede(Home,const SetVarArgs&,int,int); -void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,Reify,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar,BoolVar); -void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const IntVarArgs&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,SetVar); -void rel(Home,SetVar,IntRelType,IntVar); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,IntVar); -void rel(Home,SetVar,SetRelType,IntVar,BoolVar); -void rel(Home,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,SetVar,BoolVar); -void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const SetVarArgs&); -void sequence(Home,const SetVarArgs&,SetVar); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); -void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); -void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/library/gecode/dev/gecode-prototypes-4.2.0.hh b/library/gecode/dev/gecode-prototypes-4.2.0.hh deleted file mode 100644 index 8fe67ddf5..000000000 --- a/library/gecode/dev/gecode-prototypes-4.2.0.hh +++ /dev/null @@ -1,280 +0,0 @@ -// This file was automatically extracted from Gecode source files. -// It is subject to the same Copyright as the source files from which -// it is derived, and is distributed under the same Licensing conditions. -BrancherHandle assign(Home,BoolVar,IntAssign,BoolVarValPrint=NULL); -BrancherHandle assign(Home,const BoolVarArgs&,IntAssign,BoolBranchFilter=NULL,BoolVarValPrint=NULL); -BrancherHandle assign(Home,const FloatVarArgs&,FloatAssign,FloatBranchFilter=NULL,FloatVarValPrint=NULL); -BrancherHandle assign(Home,const IntVarArgs&,IntAssign,IntBranchFilter=NULL,IntVarValPrint=NULL); -BrancherHandle assign(Home,const SetVarArgs&,SetAssign,SetBranchFilter=NULL,SetVarValPrint=NULL); -BrancherHandle assign(Home,FloatVar,FloatAssign,FloatVarValPrint=NULL); -BrancherHandle assign(Home,IntVar,IntAssign,IntVarValPrint=NULL); -BrancherHandle assign(Home,SetVar,SetAssign,SetVarValPrint=NULL); -BrancherHandle branch(Home,BoolVar,IntValBranch,BoolVarValPrint=NULL); -BrancherHandle branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,BoolBranchFilter=NULL,BoolVarValPrint=NULL); -BrancherHandle branch(Home,const BoolVarArgs&,IntVarBranch,IntValBranch,const Symmetries&,BoolBranchFilter=NULL,BoolVarValPrint=NULL); -BrancherHandle branch(Home,const BoolVarArgs&,TieBreak,IntValBranch,BoolBranchFilter=NULL,BoolVarValPrint=NULL); -BrancherHandle branch(Home,const BoolVarArgs&,TieBreak,IntValBranch,const Symmetries&,BoolBranchFilter=NULL,BoolVarValPrint=NULL); -BrancherHandle branch(Home,const FloatVarArgs&,FloatVarBranch,FloatValBranch,FloatBranchFilter=NULL,FloatVarValPrint=NULL); -BrancherHandle branch(Home,const FloatVarArgs&,TieBreak,FloatValBranch,FloatBranchFilter=NULL,FloatVarValPrint=NULL); -BrancherHandle branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,const Symmetries&,IntBranchFilter=NULL,IntVarValPrint=NULL); -BrancherHandle branch(Home,const IntVarArgs&,IntVarBranch,IntValBranch,IntBranchFilter=NULL,IntVarValPrint=NULL); -BrancherHandle branch(Home,const IntVarArgs&,TieBreak,IntValBranch,const Symmetries&,IntBranchFilter=NULL,IntVarValPrint=NULL); -BrancherHandle branch(Home,const IntVarArgs&,TieBreak,IntValBranch,IntBranchFilter=NULL,IntVarValPrint=NULL); -BrancherHandle branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,const Symmetries&,SetBranchFilter=NULL,SetVarValPrint=NULL); -BrancherHandle branch(Home,const SetVarArgs&,SetVarBranch,SetValBranch,SetBranchFilter=NULL,SetVarValPrint=NULL); -BrancherHandle branch(Home,const SetVarArgs&,TieBreak,SetValBranch,const Symmetries&,SetBranchFilter=NULL,SetVarValPrint=NULL); -BrancherHandle branch(Home,const SetVarArgs&,TieBreak,SetValBranch,SetBranchFilter=NULL,SetVarValPrint=NULL); -BrancherHandle branch(Home,FloatVar,FloatValBranch,FloatVarValPrint=NULL); -BrancherHandle branch(Home,IntVar,IntValBranch,IntVarValPrint=NULL); -BrancherHandle branch(Home,SetVar,SetValBranch,SetVarValPrint=NULL); -void abs(Home,FloatVar,FloatVar); -void abs(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void atmostOne(Home,const SetVarArgs&,unsigned int); -void binpacking(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cardinality(Home,const SetVarArgs&,unsigned int,unsigned int); -void cardinality(Home,SetVar,IntVar); -void cardinality(Home,SetVar,unsigned int,unsigned int); -void channel(Home,BoolVar,IntVar,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,IntVar,int=0,IntConLevel=ICL_DEF); -void channel(Home,const BoolVarArgs&,SetVar); -void channel(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void channel(Home,const IntVarArgs&,const SetVarArgs&); -void channel(Home,const IntVarArgs&,int,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void channel(Home,const SetVarArgs&,const SetVarArgs&); -void channel(Home,FloatVar,IntVar); -void channel(Home,IntVar,FloatVar); -void channelSorted(Home,const IntVarArgs&,SetVar); -void circuit(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void circuit(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void circuit(Home,int,const IntVarArgs&,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void clause(Home,BoolOpType,const BoolVarArgs&,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void convex(Home,SetVar); -void convex(Home,SetVar,SetVar); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSetArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntSet&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,int,IntRelType,IntVar,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void count(Home,const IntVarArgs&,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,int,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void cumulative(Home,IntVar,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void cumulatives(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntArgs&,bool,IntConLevel=ICL_DEF); -void distinct(Home,const IntArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void distinct(Home,const IntVarArgs&,IntConLevel=ICL_DEF); -void div(Home,FloatVar,FloatVar,FloatVar); -void div(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void divmod(Home,IntVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void dom(Home,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void dom(Home,const BoolVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void dom(Home,const FloatVarArgs&,const FloatVarArgs&); -void dom(Home,const FloatVarArgs&,FloatNum,FloatNum); -void dom(Home,const FloatVarArgs&,FloatVal); -void dom(Home,const IntVarArgs&,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,IntConLevel=ICL_DEF); -void dom(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void dom(Home,const SetVarArgs&,const SetVarArgs&); -void dom(Home,const SetVarArgs&,SetRelType,const IntSet&); -void dom(Home,const SetVarArgs&,SetRelType,int); -void dom(Home,const SetVarArgs&,SetRelType,int,int); -void dom(Home,FloatVar,FloatNum,FloatNum); -void dom(Home,FloatVar,FloatNum,FloatNum,Reify); -void dom(Home,FloatVar,FloatVal); -void dom(Home,FloatVar,FloatVal,Reify); -void dom(Home,FloatVar,FloatVar); -void dom(Home,IntVar,const IntSet&,IntConLevel=ICL_DEF); -void dom(Home,IntVar,const IntSet&,Reify,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,int,Reify,IntConLevel=ICL_DEF); -void dom(Home,IntVar,int,Reify,IntConLevel=ICL_DEF); -void dom(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void dom(Home,SetVar,SetRelType,const IntSet&); -void dom(Home,SetVar,SetRelType,const IntSet&,Reify); -void dom(Home,SetVar,SetRelType,int); -void dom(Home,SetVar,SetRelType,int,int); -void dom(Home,SetVar,SetRelType,int,int,Reify); -void dom(Home,SetVar,SetRelType,int,Reify); -void dom(Home,SetVar,SetVar); -void element(Home,const BoolVarArgs&,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const BoolVarArgs&,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,const IntSetArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const IntSetArgs&,IntVar,SetVar); -void element(Home,const IntVarArgs&,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,const SetVarArgs&,IntVar,int,IntVar,int,SetVar); -void element(Home,const SetVarArgs&,IntVar,SetVar); -void element(Home,IntSharedArray,IntVar,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,BoolVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,int,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void element(Home,IntSharedArray,IntVar,IntVar,IntConLevel=ICL_DEF); -void element(Home,SetOpType,const IntArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntSetArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const IntVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void element(Home,SetOpType,const SetVarArgs&,SetVar,SetVar,const IntSet&=IntSet(Set::Limits::min,Set::Limits::max)); -void extensional(Home,const BoolVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const BoolVarArgs&,DFA,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,const TupleSet&,ExtensionalPropKind=EPK_DEF,IntConLevel=ICL_DEF); -void extensional(Home,const IntVarArgs&,DFA,IntConLevel=ICL_DEF); -void ite(Home,BoolVar,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const BoolVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); -void linear(Home,const FloatValArgs&,const FloatVarArgs&,FloatRelType,FloatNum); -void linear(Home,const FloatValArgs&,const FloatVarArgs&,FloatRelType,FloatNum,Reify); -void linear(Home,const FloatValArgs&,const FloatVarArgs&,FloatRelType,FloatVar); -void linear(Home,const FloatValArgs&,const FloatVarArgs&,FloatRelType,FloatVar,Reify); -void linear(Home,const FloatVarArgs&,FloatRelType,FloatNum); -void linear(Home,const FloatVarArgs&,FloatRelType,FloatNum,Reify); -void linear(Home,const FloatVarArgs&,FloatRelType,FloatVar); -void linear(Home,const FloatVarArgs&,FloatRelType,FloatVar,Reify); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const BoolVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntArgs&,const IntVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void linear(Home,const IntVarArgs&,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); -void max(Home,const FloatVarArgs&,FloatVar); -void max(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void max(Home,FloatVar,FloatVar,FloatVar); -void max(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void max(Home,SetVar,IntVar); -void max(Home,SetVar,IntVar,Reify); -void member(Home,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void member(Home,const BoolVarArgs&,BoolVar,Reify,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void member(Home,const IntVarArgs&,IntVar,Reify,IntConLevel=ICL_DEF); -void min(Home,const FloatVarArgs&,FloatVar); -void min(Home,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void min(Home,FloatVar,FloatVar,FloatVar); -void min(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void min(Home,SetVar,IntVar); -void min(Home,SetVar,IntVar,Reify); -void mod(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void mult(Home,FloatVar,FloatVar,FloatVar); -void mult(Home,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void nooverlap(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void notMax(Home,SetVar,IntVar); -void notMin(Home,SetVar,IntVar); -void nroot(Home,FloatVar,int,FloatVar); -void nroot(Home,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void nvalues(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const BoolVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void nvalues(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,const IntVarArgs&,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntArgs&,int,const IntVarArgs&,IntVar,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void path(Home,int,const IntVarArgs&,IntVar,IntVar,IntConLevel=ICL_DEF); -void pow(Home,FloatVar,int,FloatVar); -void pow(Home,IntVar,int,IntVar,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void precede(Home,const IntVarArgs&,int,int,IntConLevel=ICL_DEF); -void precede(Home,const SetVarArgs&,const IntArgs&); -void precede(Home,const SetVarArgs&,int,int); -void rel(Home,BoolOpType,const BoolVarArgs&,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolOpType,const BoolVarArgs&,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,BoolOpType,BoolVar,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,BoolVar,Reify,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,BoolVar,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,BoolVar,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,const BoolVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const BoolVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const FloatVarArgs&,FloatRelType,FloatVal); -void rel(Home,const FloatVarArgs&,FloatRelType,FloatVar); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,const IntSet&,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,const IntVarArgs&,IntRelType,const IntVarArgs&,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,const IntVarArgs&,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,FloatVar,FloatRelType,FloatVal); -void rel(Home,FloatVar,FloatRelType,FloatVal,Reify); -void rel(Home,FloatVar,FloatRelType,FloatVar); -void rel(Home,FloatVar,FloatRelType,FloatVar,Reify); -void rel(Home,IntVar,IntRelType,int,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,int,Reify,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,IntVar,Reify,IntConLevel=ICL_DEF); -void rel(Home,IntVar,IntRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar); -void rel(Home,IntVar,SetRelType,SetVar,Reify); -void rel(Home,SetOpType,const IntVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const IntVarArgs&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,const IntSet&,SetVar); -void rel(Home,SetOpType,const SetVarArgs&,SetVar); -void rel(Home,SetVar,IntRelType,IntVar); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,const IntSet&,SetRelType,SetVar); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,const IntSet&); -void rel(Home,SetVar,SetOpType,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,IntVar); -void rel(Home,SetVar,SetRelType,IntVar,Reify); -void rel(Home,SetVar,SetRelType,SetVar); -void rel(Home,SetVar,SetRelType,SetVar,Reify); -void sequence(Home,const BoolVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const IntVarArgs&,const IntSet&,int,int,int,IntConLevel=ICL_DEF); -void sequence(Home,const SetVarArgs&); -void sequence(Home,const SetVarArgs&,SetVar); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sorted(Home,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void sqr(Home,FloatVar,FloatVar); -void sqr(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void sqrt(Home,FloatVar,FloatVar); -void sqrt(Home,IntVar,IntVar,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const IntVarArgs&,const IntVarArgs&,const IntVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,const BoolVarArgs&,IntConLevel=ICL_DEF); -void unary(Home,const TaskTypeArgs&,const IntVarArgs&,const IntArgs&,IntConLevel=ICL_DEF); -void unshare(Home,BoolVarArgs&,IntConLevel=ICL_DEF); -void unshare(Home,IntVarArgs&,IntConLevel=ICL_DEF); -void weights(Home,IntSharedArray,IntSharedArray,SetVar,IntVar); diff --git a/library/gecode/disjunctor.hh b/library/gecode/disjunctor.hh deleted file mode 100644 index 6fc2d445d..000000000 --- a/library/gecode/disjunctor.hh +++ /dev/null @@ -1,156 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -#ifndef __GECODE_DISJUNCTOR_HH__ -#define __GECODE_DISJUNCTOR_HH__ - -#include -#include -#include - -namespace Gecode { namespace Disjunctor_ { - - using namespace generic_gecode; - - //========================================================================= - // from a user perspective, a Disjunctor corresponds to a set of - // speculative clauses: - // - // - when a non-committed clause fails, it is simply discarded - // - when a single clause remains, it is committed - // - // from an implementation perspective, a Disjunctor is an object shared by - // several clauses, that contains a counter keeping track of how many - // clauses remain. when the counter reaches 1, the remaining clause - // becomes committed. - //========================================================================= - - // following the example in MPG - struct Disjunctor: public LocalHandle - { - Disjunctor(); - Disjunctor(Space& home); - Disjunctor(const Disjunctor& d); - int get() const; - void incr(); - void decr(); - void dispose(Space& home); - }; - - //========================================================================= - // a Clause encapsulates the speculative execution of a set of propagators. - // Therefore, these propagators must be posted in a separate (sub)space. - // However they normally want to constrain variables of the original home - // space: for each such variable X, a variable Y local to the subspace must - // be created and used instead, and a forwarder must be created from X to - // Y. A Clause is then a Propagator that subscribes to the Xs. Whenever a - // X changes, the domains of the Xs are forwarded into the Ys and - // constraint propagation is run in the subspace. When a clause is - // committed, after propagation, the domains of Ys are forwarded back into - // the Xs. - //========================================================================= - - // TODO: copy (difficulty is forwarder list) - - class SubSpace; - - class Clause: public Propagator { - Disjunctor disj; - SubSpace*const subhome; - public: - Clause(Space& home_, Disjunctor disj_); - Clause(Space& home, bool share, Clause& c); - virtual Propagator* copy(Space& home, bool share); - virtual size_t dispose(Space& home); - virtual PropCost cost(const Space&, const ModEventDelta&) const; - virtual ExecStatus propagate(Space& home, const ModEventDelta&); - // user API - operator GenericSpace&(); - operator Space&(); - operator Home(); - GenericSpace* generic_space() const; - Space* space() const; - void forward(Space& home, IntVar outer, IntVar inner); - void forward(Space& home, BoolVar outer, BoolVar inner); - void forward(Space& home, SetVar outer, SetVar inner); - protected: - ExecStatus forward_in(); - ExecStatus forward_out(Space& outer_home); - bool committed() const; - }; - - //========================================================================= - // a SubSpace is the Space associated with a Clause. It also contains the - // forwarder linked-list because we want it to manage the memory for that - // list. - //========================================================================= - - class BasicForwarder; - using Int::IntView; - using Int::BoolView; - using Set::SetView; - - class SubSpace: public GenericSpace - { - private: - Space* homeDuringCloning; - // linked-list of pairs of a variable in the parent space and a - // corresponding variable in the subspace - BasicForwarder* forwarder; - // auxiliary methods for adding an entry to the forwarder list - void forward(IntView outer, IntView inner); - void forward(BoolView outer, BoolView inner); - void forward(SetView outer, SetView inner); - // for forwarding domains into and out of the subhome - ExecStatus forward_in(); - ExecStatus forward_out(Space&); - // for cancelling subscriptions - void cancel(Space& home, Clause&); - // allow Clause to use this private API - friend class Clause; - public: - SubSpace(); - SubSpace(bool share, SubSpace& s); - virtual Space* copy(bool share); - SubSpace* copy(Space& home, bool share); - }; -}} - -namespace Gecode -{ - using Disjunctor_::Disjunctor; - - class Clause - { - generic_gecode::GenericSpace& _home; - Disjunctor_::Clause* _clause; - public: - Clause(generic_gecode::GenericSpace& home, Disjunctor disj); - operator generic_gecode::GenericSpace&(); - operator Space&(); - operator Home(); - generic_gecode::GenericSpace* generic_space(); - generic_gecode::GenericSpace* generic_parent(); - Space* space(); - void forward(IntVar outer, IntVar inner); - void forward(BoolVar outer, BoolVar inner); - void forward(SetVar outer, SetVar inner); - }; -} - -#endif diff --git a/library/gecode/disjunctor.icc b/library/gecode/disjunctor.icc deleted file mode 100644 index 3e1d41285..000000000 --- a/library/gecode/disjunctor.icc +++ /dev/null @@ -1,380 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= -#include "disjunctor.hh" - -namespace Gecode { namespace Disjunctor_ { - - //========================================================================= - // Disjunctor (following example in MPG) - //========================================================================= - - struct DisjunctorObject: public LocalObject - { - int n; - DisjunctorObject(Space& home) : LocalObject(home), n(0) {} - DisjunctorObject(Space& home, bool share, DisjunctorObject& d) - : LocalObject(home, share, d), n(d.n) {} - virtual LocalObject* copy(Space& home, bool share) - { return new (home) DisjunctorObject(home, share, *this); } - virtual size_t dispose(Space&) { return sizeof(*this); } - }; - - Disjunctor::Disjunctor(): LocalHandle() {} - Disjunctor::Disjunctor(Space& home) - : LocalHandle(new (home) DisjunctorObject(home)) {} - Disjunctor::Disjunctor(const Disjunctor& d): LocalHandle(d) {} - int Disjunctor::get() const { return static_cast(object())->n; } - void Disjunctor::incr() { static_cast(object())->n += 1; } - void Disjunctor::decr() { static_cast(object())->n -= 1; } - void Disjunctor::dispose(Space& home) - { static_cast(object())->dispose(home); } - - //========================================================================= - // Forwarder - // used to forward the domain of a view V1 into a view V2 located in a - // subspace (the subspace of a speculative clause). V2 represents V1 in - // that space. - // - // BasicForwarder - // base class of all Forwarders. It declares the virtual functions - // that must be implemented to do the actual work, and contains the pointer - // implementing the singly-linked list of Forwarders associated with each - // clause. It also redefines new and delete to manage memory in the - // subspace. - //========================================================================= - - struct BasicForwarder - { - BasicForwarder* next; - - BasicForwarder() : next(NULL) {} - - // forward V1's domain into V2. This is used each time the Clause (as a - // a propagator) is woken to perform propagation. - - virtual ExecStatus forward_in(Space& inner_home) = 0; - - // forward V2's domain into V1. This is used after propagation in the - // case where the Clause has been committed to (because it is the last - // one remaining). - - virtual void forward_out(Space& outer_home) = 0; - - // needed by delete to know how much to free - virtual size_t size() const = 0; - - // usage: new (home) FRWRDR(...); - // to allocate the instance of FRWRDR on home's heap - - static void* operator new(size_t n, Space& home) - { return home.ralloc(n); } - - // usage: delete (home) PTR; - // to free the instance pointed to by PTR from home's heap - - static void operator delete(void* ptr, Space& home) - { home.rfree(ptr, ((BasicForwarder*)ptr)->size()); } - - virtual BasicForwarder* - copy(Space& outer_home, Space& inner_home, bool share) = 0; - - virtual void cancel(Space& home, Clause&) = 0; - }; - - // Forwarder parametrized by View - - template - struct Forwarder: public BasicForwarder - { - View outer; - View inner; - Forwarder(View v1, View v2): outer(v1), inner(v2) {} - Forwarder() {} - virtual ExecStatus forward_in(Space& home); - virtual void forward_out(Space& home); - virtual size_t size() const { return sizeof(*this); } - virtual BasicForwarder* copy(Space& outer_home, Space& inner_home, bool share) - { - Forwarder* fwd = new (inner_home) Forwarder(); - fwd->outer.update(outer_home, share, outer); - fwd->inner.update(inner_home, share, inner); - return fwd; - } - virtual void cancel(Space& home, Clause& c); - }; - - // instances of Forwarder that we actually use - - typedef Forwarder IntForwarder; - typedef Forwarder BoolForwarder; - typedef Forwarder SetForwarder; - - //========================================================================= - // IntForwarder - //========================================================================= - - template <> - ExecStatus IntForwarder::forward_in(Space& home) // inner home - { - Int::ViewRanges r(outer); - GECODE_ME_CHECK(inner.inter_r(home,r)); - return ES_OK; - } - - template <> - void IntForwarder::forward_out(Space& home) // outer home - { - // it is guaranteed by design that after successful propagation the - // domain of the inner variable is a non-empty narrowing of the domain of - // the outer variable. therefore, we can simply replace the domain of - // the outer variable with the domain of the inner variable. - Int::ViewRanges r(inner); - outer.narrow_r(home, r, false); - } - - template <> - void IntForwarder::cancel(Space& home, Clause& c) - { outer.cancel(home, c, Int::PC_INT_DOM); } - - //========================================================================= - // BoolForwarder - //========================================================================= - - template <> - ExecStatus BoolForwarder::forward_in(Space& home) - { - Int::ViewRanges r(outer); - GECODE_ME_CHECK(inner.inter_r(home,r)); - return ES_OK; - } - - template <> - void BoolForwarder::forward_out(Space& home) - { - Int::ViewRanges r(inner); - outer.narrow_r(home, r, false); - } - - template <> - void BoolForwarder::cancel(Space& home, Clause& c) - { outer.cancel(home, c, Int::PC_INT_DOM); } - - //========================================================================= - // SetForwarder - //========================================================================= - - template <> - ExecStatus SetForwarder::forward_in(Space& home) - { - Set::GlbRanges gr(outer); - GECODE_ME_CHECK(inner.includeI(home,gr)); - Set::LubRanges lr(outer); - GECODE_ME_CHECK(inner.intersectI(home,lr)); - GECODE_ME_CHECK(inner.cardMin(home, outer.cardMin())); - GECODE_ME_CHECK(inner.cardMax(home, outer.cardMax())); - return ES_OK; - } - - template <> - void SetForwarder::forward_out(Space& home) - { - Set::GlbRanges gr(inner); - outer.includeI(home, gr); - Set::LubRanges lr(inner); - outer.intersectI(home, lr); - outer.cardMin(home, inner.cardMin()); - outer.cardMax(home, inner.cardMax()); - } - - template <> - void SetForwarder::cancel(Space& home, Clause& c) - { outer.cancel(home, c, Set::PC_SET_ANY); } - - //========================================================================= - // SubSpace - //========================================================================= - - void SubSpace::forward(IntView outer, IntView inner) - { - BasicForwarder* fwd = new (*this) IntForwarder(outer, inner); - fwd->next = forwarder; - forwarder = fwd; - } - - void SubSpace::forward(BoolView outer, BoolView inner) - { - BasicForwarder* fwd = new (*this) BoolForwarder(outer, inner); - fwd->next = forwarder; - forwarder = fwd; - } - - void SubSpace::forward(SetView outer, SetView inner) - { - BasicForwarder* fwd = new (*this) SetForwarder(outer, inner); - fwd->next = forwarder; - forwarder = fwd; - } - - ExecStatus SubSpace::forward_in() - { - for (BasicForwarder* p=forwarder; p!=NULL; p=p->next) - GECODE_ES_CHECK(p->forward_in(*this)); - return ES_OK; - } - - ExecStatus SubSpace::forward_out(Space& home) // outer home - { - for (BasicForwarder* p=forwarder; p!=NULL; p=p->next) - p->forward_out(home); - return ES_OK; - } - - SubSpace::SubSpace(): GenericSpace(), forwarder(NULL) {} - - SubSpace::SubSpace(bool share, SubSpace& s) - : GenericSpace(share, s), forwarder(NULL) - { - BasicForwarder** prev = &forwarder; - for (BasicForwarder* p=s.forwarder; p!=NULL; p=p->next) - { - BasicForwarder* fwd = p->copy(*s.homeDuringCloning, *this, share); - *prev = fwd; - prev = &fwd->next; - } - } - - Space* SubSpace::copy(bool share) - { return new SubSpace(share,*this); } - - SubSpace* SubSpace::copy(Space& home, bool share) - { homeDuringCloning = &home; return static_cast(clone(share)); } - - void SubSpace::cancel(Space& home, Clause& c) - { - for (BasicForwarder*p = forwarder; p!=NULL; p=p->next) - p->cancel(home, c); - } - - //========================================================================= - // Clause - //========================================================================= - - Clause::operator GenericSpace&() { return *subhome; } - Clause::operator Space&() { return *subhome; } - Clause::operator Home() { return *subhome; } - - GenericSpace* Clause::generic_space() const { return subhome; } - Space* Clause::space() const { return subhome; } - - Clause::Clause(Space& home_, Disjunctor disj_) - : Propagator(home_), disj(disj_), subhome(new SubSpace()) - { - disj.incr(); - } - - Clause::Clause(Space& home, bool share, Clause& c) - : Propagator(home, share, c), subhome(c.subhome->copy(home, share)) - { - disj.update(home, share, c.disj); - } - - Propagator* Clause::copy(Space& home, bool share) - { return new (home) Clause(home, share, *this); } - - void Clause::forward(Space& home, IntVar outer, IntVar inner) - { - IntView oview(outer); - IntView iview(inner); - subhome->forward(oview, iview); - oview.subscribe(home, *this, Int::PC_INT_DOM); - } - - void Clause::forward(Space& home, BoolVar outer, BoolVar inner) - { - BoolView oview(outer); - BoolView iview(inner); - subhome->forward(oview, iview); - oview.subscribe(home, *this, Int::PC_INT_DOM); - } - - void Clause::forward(Space& home, SetVar outer, SetVar inner) - { - SetView oview(outer); - SetView iview(inner); - subhome->forward(oview, iview); - oview.subscribe(home, *this, Set::PC_SET_ANY); - } - - ExecStatus Clause::forward_in() - { return subhome->forward_in(); } - - ExecStatus Clause::forward_out(Space& home) // outer home - { return subhome->forward_out(home); } - - inline bool Clause::committed() const { return disj.get() == 1; } - - ExecStatus Clause::propagate(Space& home, const ModEventDelta&) - { - if (forward_in() == ES_FAILED || - subhome->status() == SS_FAILED ) - { - if (committed()) return ES_FAILED; - disj.decr(); - return home.ES_SUBSUMED(*this); - } - if (committed()) forward_out(home); - // maybe do something clever about subsumption later - return ES_FIX; - } - - size_t Clause::dispose(Space& home) - { - subhome->cancel(home, *this); - delete subhome; - // the memory for the disj's LocalObject is not recovered - (void) Propagator::dispose(home); - return sizeof(*this); - } - - PropCost Clause::cost(const Space&, const ModEventDelta&) const - { - // consider a clause to be crazy expensive - return PropCost::crazy(PropCost::HI,10); - } -} - - //=========================================================================== - // Clause (user API) - //=========================================================================== - - Clause::Clause(generic_gecode::GenericSpace& home, Disjunctor disj) - : _home(home), _clause(new (home) Disjunctor_::Clause(home, disj)) {} - Clause::operator generic_gecode::GenericSpace&() { return *_clause; } - Clause::operator Space&() { return *_clause; } - Clause::operator Home() { return *_clause; } - generic_gecode::GenericSpace* Clause::generic_space() { return _clause->generic_space(); } - generic_gecode::GenericSpace* Clause::generic_parent() { return &_home; } - Space* Clause::space() { return _clause->space(); } - void Clause::forward(IntVar outer, IntVar inner) - { _clause->forward(_home, outer, inner); } - void Clause::forward(BoolVar outer, BoolVar inner) - { _clause->forward(_home, outer, inner); } - void Clause::forward(SetVar outer, SetVar inner) - { _clause->forward(_home, outer, inner); } - -} diff --git a/library/gecode/disjunctor1.yap b/library/gecode/disjunctor1.yap deleted file mode 100644 index 4c8eae91f..000000000 --- a/library/gecode/disjunctor1.yap +++ /dev/null @@ -1,37 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -:- use_module(library(gecode)). - -disjunctor1(X_,Y_) :- - Space := space, - [X,Y] := intvars(Space,2,0,3), - D := disjunctor(Space), - C1 := clause(D), - [X1,Y1] := intvars(C1,2,0,3), - C1 += rel(X1,'IRT_EQ',1), - C1 += rel(Y1,'IRT_EQ',1), - C1 += forward([X,Y],[X1,Y1]), - C2 := clause(D), - [X2,Y2] := intvars(C2,2,0,3), - C2 += rel(X2,'IRT_EQ',2), - C2 += rel(Y2,'IRT_EQ',2), - C2 += forward([X,Y],[X2,Y2]), - Space += branch([X,Y],'INT_VAR_SIZE_MIN','INT_VAL_MIN'), - SolSpace := search(Space), - [X_,Y_] := val(SolSpace,[X,Y]). diff --git a/library/gecode/disjunctor2.yap b/library/gecode/disjunctor2.yap deleted file mode 100644 index bfbbdc13b..000000000 --- a/library/gecode/disjunctor2.yap +++ /dev/null @@ -1,37 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -:- use_module(library(gecode)). - -disjunctor2(X_,Y_) :- - Space := space, - [X,Y] := intvars(Space,2,0,3), - D := disjunctor(Space), - C1 := clause(D), - [X1,Y1] := intvars(C1,2,0,3), - C1 += forward([X,Y],[X1,Y1]), - C1 += rel(X1,'IRT_EQ',0), - C1 += rel(Y1,'IRT_EQ',0), - C2 := clause(D), - [X2,Y2] := intvars(C2,2,0,3), - C2 += forward([X,Y],[X2,Y2]), - Z2 := intvar(C2,1,2), - C2 += linear([-1,1,1],[X2,Y2,Z2],'IRT_EQ',0), - Space += branch([X,Y],'INT_VAR_SIZE_MIN','INT_VAL_MIN'), - SolSpace := search(Space), - [X_,Y_] := val(SolSpace,[X,Y]). diff --git a/library/gecode/examples/photo.yap b/library/gecode/examples/photo.yap deleted file mode 100644 index da33819b9..000000000 --- a/library/gecode/examples/photo.yap +++ /dev/null @@ -1,80 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -:- use_module(library(gecode)). -:- use_module(library(maplist)). - -% 5 people want to have a photograph together, but they have preferences. -photo(Ex, Solution,Amount) :- - db(Ex, People, Preferences), - Space := space, - length(People, Len), - Len0 is Len-1, - People := intvars(Space,Len,0,Len0), - Space += distinct(People), - % Bools are the satisfied constraints - maplist(preferences(Space, Len), Preferences, Bools), - length(Preferences, PLen), - Sum := intvar(Space,0,PLen), - Space += linear(Bools,'IRT_EQ',Sum), - % add all satisfied constraints - Space += maximize(Sum), - Space += branch(People,'INT_VAR_SIZE_MIN','INT_VAL_MIN'), - SolSpace := search(Space), - Solution := val(SolSpace,People), - Amount := val(SolSpace,Sum). - -%reification, use with care -preferences(Space, Len, X-Y, B) :- - NLen is -Len, - I0 := intvar(Space, NLen, Len), - I := intvar(Space, 0, Len), - B := boolvar(Space), - Space += reify(B, 'RM_EQV', R), - Space += linear([1,-1],[X,Y],'IRT_EQ', I0), - Space += abs(I0, I), - Space += rel(I, 'IRT_EQ', 1, R). - - -db(s,[Alice,Bob,Carl,Deb,Evan], [Alice-Carl, - Carl-Deb, - Deb-Alice, - Evan-Alice, - Bob-Evan, - Carl-Evan, - Deb-Evan, - Evan-Bob]). - -db(l,[Betty,Chris,Donald,Fred,Gary,Mary,Paul,Peter,Susan], - [Betty-Donald, - Betty-Gary, - Betty-Peter, - Chris-Gary, - Chris-Susan, - Donald-Fred, - Donald-Gary, - Fred-Betty, - Fred-Gary, - Gary-Mary, - Gary-Betty, - Mary-Betty, - Mary-Susan, - Paul-Donald, - Paul-Peter, - Peter-Susan, - Peter-Paul]). diff --git a/library/gecode/examples/queens.yap b/library/gecode/examples/queens.yap deleted file mode 100644 index 3167babbf..000000000 --- a/library/gecode/examples/queens.yap +++ /dev/null @@ -1,67 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -:- use_module(library(gecode)). -:- use_module(library(maplist)). - -% use alldiff constraints -queens(N, Solution) :- - Space := space, - length(Queens, N), - Queens := intvars(Space,N,1,N), - Space += distinct(Queens), - foldl(inc, Queens, Inc, 0, _), - foldl(dec, Queens, Dec, 0, _), - Space += distinct(Inc,Queens), - Space += distinct(Dec,Queens), - Space += branch(Queens, 'INT_VAR_SIZE_MIN', 'INT_VAL_MIN'), - SolSpace := search(Space), - Solution := val(SolSpace,Queens). - -inc(_, I0, I0, I) :- - I is I0+1. - -dec(_, I0, I0, I) :- - I is I0-1. - -% -% Using gecode linear constraints for diagonals. -% -lqueens(N, Solution) :- - Space := space, - length(Queens, N), - Queens := intvars(Space,N,1,N), - Space += distinct(Queens), - lconstrain( Queens, Space, 0), - Space += branch(Queens, 'INT_VAR_SIZE_MIN', 'INT_VAL_MIN'), - SolSpace := search(Space), - Solution := val(SolSpace,Queens). - -lconstrain([], _, _). -lconstrain( [Q|Queens], Space, I0) :- - I is I0+1, - foldl(constrain(Q, I0, Space), Queens, I, _), - lconstrain( Queens, Space, I). - -constrain(Q, I, Space, R, J, J1) :- - % Q+I != R+J, Q-I != R-J <=> Q-R != J-I, Q-R != I-J, - J1 is J+1, - Sum is I-J, - Diff is J-I, - Space += linear([1,-1], [Q,R], 'IRT_NQ', Diff), - Space += linear([1,-1], [Q,R], 'IRT_NQ', Sum). \ No newline at end of file diff --git a/library/gecode/examples/send_more_money.yap b/library/gecode/examples/send_more_money.yap deleted file mode 100644 index cf4d298be..000000000 --- a/library/gecode/examples/send_more_money.yap +++ /dev/null @@ -1,41 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -:- use_module(library(gecode)). - -% S E N D -% + M O R E -% --------- -% M O N E Y -send_more_money(Solution) :- - Space := space, - Letters := intvars(Space,8,0,9), - [S,E,N,D,M,O,R,Y] = Letters, - Space += rel(M,'IRT_NQ',0), - Space += rel(S,'IRT_NQ',0), - Space += distinct(Letters), - C = [1000, 100, 10, 1, - 1000, 100, 10, 1, - -10000, -1000, -100, -10, -1], - X = [S,E,N,D, - M,O,R,E, - M,O,N,E,Y], - Space += linear(C, X, 'IRT_EQ', 0), - Space += branch(Letters, 'INT_VAR_SIZE_MIN', 'INT_VAL_MIN'), - SolSpace := search(Space), - Solution := val(SolSpace,Letters). diff --git a/library/gecode/examples/send_most_money.yap b/library/gecode/examples/send_most_money.yap deleted file mode 100644 index ad37eec96..000000000 --- a/library/gecode/examples/send_most_money.yap +++ /dev/null @@ -1,45 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -:- use_module(library(gecode)). - -% S E N D -% + M O S T -% --------- -% M O N E Y -send_most_money(Solution,Amount) :- - Space := space, - Letters := intvars(Space,8,0,9), - [S,E,N,D,M,O,T,Y] = Letters, - Space += rel(M,'IRT_NQ',0), - Space += rel(S,'IRT_NQ',0), - Space += distinct(Letters), - C = [1000, 100, 10, 1, - 1000, 100, 10, 1, - -10000, -1000, -100, -10, -1], - X = [S,E,N,D, - M,O,S,T, - M,O,N,E,Y], - Space += linear(C, X, 'IRT_EQ', 0), - Money := intvar(Space,0,99999), - Space += linear([10000,1000,100,10,1],[M,O,N,E,Y],'IRT_EQ',Money), - Space += maximize(Money), - Space += branch(Letters,'INT_VAR_SIZE_MIN','INT_VAL_MIN'), - SolSpace := search(Space), - Solution := val(SolSpace,Letters), - Amount := val(SolSpace,Money). diff --git a/library/gecode/gecode3-common.icc b/library/gecode/gecode3-common.icc deleted file mode 100644 index a0ce80175..000000000 --- a/library/gecode/gecode3-common.icc +++ /dev/null @@ -1,358 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -#ifndef GECODE_COMMON -#define GECODE_COMMON - -#include "gecode/int.hh" -#include "gecode/set.hh" -#include "gecode/search.hh" -#include - -namespace generic_gecode -{ - using namespace std; - using namespace Gecode; - - // description of the optimization criterion - struct Optimizing - { - enum What { OPT_NONE, OPT_INT, OPT_RATIO }; - enum How { OPT_MIN, OPT_MAX }; - int num; - int den; - What what; - How how; - Optimizing(): num(-1), den(-1), what(OPT_NONE), how(OPT_MAX) {} - Optimizing(Optimizing& o) - : num(o.num), den(o.den), what(o.what), how(o.how) {} - void check_ok() const - { if (what!=OPT_NONE) - throw Exception("gecode-python","too many optimization criteria"); } - void maximize(int i) - { check_ok(); what = OPT_INT; how = OPT_MAX; num = i; }; - void maximize(int i,int j) - { check_ok(); what = OPT_RATIO; how = OPT_MAX; num = i; den = j; }; - void minimize(int i) - { check_ok(); what = OPT_INT; how = OPT_MIN; num = i; }; - void minimize(int i,int j) - { check_ok(); what = OPT_RATIO; how = OPT_MIN; num = i; den = j; }; - }; - - struct GenericSpace; - - struct GenericEngine - { - virtual GenericSpace* next(void)=0; - virtual ~GenericEngine() {}; - }; - - struct GenericDFS: GenericEngine - { - DFS engine; - GenericDFS(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} - virtual GenericSpace* next(void) { return engine.next(); } - }; - - struct GenericBAB: GenericEngine - { - BAB engine; - GenericBAB(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} - virtual GenericSpace* next(void) { return engine.next(); } - }; - - struct GenericRestart: GenericEngine - { - Restart engine; - GenericRestart(GenericSpace* s,Search::Options& opt): engine(s,opt) {} - virtual GenericSpace* next(void) { return engine.next(); } - }; - - struct LoadingDock - { - vector ivars; - vector bvars; - vector svars; - vector ikeep; - vector bkeep; - vector skeep; - - bool keeping_some() const - { - return (ikeep.size() != 0) - || (bkeep.size() != 0) - || (skeep.size() != 0); - } - - IntVar get_ivar(int i) const { return ivars[i]; } - BoolVar get_bvar(int i) const { return bvars[i]; } - SetVar get_svar(int i) const { return svars[i]; } - - int enter_ivar(const IntVar& v) - { ivars.push_back(v); return static_cast(ivars.size()-1); } - - int enter_bvar(const BoolVar& v) - { bvars.push_back(v); return static_cast(bvars.size()-1); } - - int enter_svar(const SetVar& v) - { svars.push_back(v); return static_cast(svars.size()-1); } - - int keep_ivar(int i) { ikeep.push_back(i); return static_cast(ikeep.size()-1); } - int keep_bvar(int i) { bkeep.push_back(i); return static_cast(bkeep.size()-1); } - int keep_svar(int i) { skeep.push_back(i); return static_cast(skeep.size()-1); } - - void freeze(Space& home, - IntVarArray& iarr, BoolVarArray& barr, SetVarArray& sarr, - int& num, int& den) - { - if (keeping_some()) - { - // make sure that optimization vars (if any) are kept - if (num != -1) - { - const int _num(num); - const int _den(den); - int n = static_cast(ikeep.size()); - bool num_found(false); - bool den_found(false); - for (;n--;) - { - const int idx(ikeep[n]); - if (idx==_num) - { num_found=true; if (den_found) break; } - if (idx==_den) - { den_found=true; if (num_found) break; } - } - if (!num_found) - { ikeep.push_back(_num); - num=static_cast(ikeep.size()-1); } - if (_den != -1 && !den_found) - { ikeep.push_back(_den); - den=static_cast(ikeep.size()-1); } - } - { int n = static_cast(ikeep.size()); - iarr = IntVarArray(home, n); - for (;n--;) iarr[n]=ivars[ikeep[n]]; } - { int n = static_cast(bkeep.size()); - barr = BoolVarArray(home, n); - for (;n--;) barr[n]=bvars[bkeep[n]]; } - { int n = static_cast(skeep.size()); - sarr = SetVarArray(home, n); - for (;n--;) sarr[n]=svars[skeep[n]]; } - } - else - { - { int n = static_cast(ivars.size()); - iarr = IntVarArray(home, n); - for (;n--;) iarr[n]=ivars[n]; } - { int n = static_cast(bvars.size()); - barr = BoolVarArray(home, n); - for (;n--;) barr[n]=bvars[n]; } - { int n = static_cast(svars.size()); - sarr = SetVarArray(home, n); - for (;n--;) sarr[n]=svars[n]; } - } - } - }; - - struct GenericSpace: Space - { - Optimizing optim; - IntVarArray ivars; - BoolVarArray bvars; - SetVarArray svars; - LoadingDock* dock; - bool keeping_some; // iff only SOME of the vars are kept - - Space* space() { return this; } - - GenericSpace(bool share, GenericSpace& s) - : Space(share, s), optim(s.optim), dock(NULL), keeping_some(s.keeping_some) - { - ivars.update(*this, share, s.ivars); - bvars.update(*this, share, s.bvars); - svars.update(*this, share, s.svars); - } - - Space* copy(bool share) - { freeze(); return new GenericSpace(share, *this); } - - GenericSpace() : dock(new LoadingDock()), keeping_some(false) {} - ~GenericSpace() { delete dock; } - - // throw some C++ exception on behalf of glue code - void kaboom(const char* s) - { throw Exception("gecode-python", s); } - int ikaboom(const char* s) - { kaboom(s); return 0; } - - // freeze the space before handing it off to a search engine - void freeze() - { - if (dock) - { - keeping_some = dock->keeping_some(); - dock->freeze(*this, ivars, bvars, svars, optim.num, optim.den); - delete dock; - dock = NULL; - } - } - - IntVar get_ivar(int i) const { return (dock)?dock->get_ivar(i):ivars[i]; } - BoolVar get_bvar(int i) const { return (dock)?dock->get_bvar(i):bvars[i]; } - SetVar get_svar(int i) const { return (dock)?dock->get_svar(i):svars[i]; } - - int keep_ivar(int i) - { - if (dock) return dock->keep_ivar(i); - else return ikaboom("too late to keep"); - } - - int keep_bvar(int i) - { - if (dock) return dock->keep_bvar(i); - else return ikaboom("too late to keep"); - } - - int keep_svar(int i) - { - if (dock) return dock->keep_svar(i); - else return ikaboom("too late to keep"); - } - - bool frozen() const { return dock==NULL; } - bool has_keepers() const { return keeping_some; } - // when frozen and has_keepers: which is just has_keepers actually - bool use_keep_index() const { return has_keepers(); } - - GenericEngine* new_engine(bool restart, Search::Options& opt) - { - freeze(); - return (optim.what == Optimizing::OPT_NONE) - ? static_cast(new GenericDFS(this,opt)) - : (restart - ? static_cast(new GenericRestart(this,opt)) - : static_cast(new GenericBAB(this,opt))); - } - - int _new_ivar(IntVar& v) - { - if (dock) return dock->enter_ivar(v); - else return ikaboom("too late to create vars"); - } - - int new_ivar(int lo, int hi) - { - IntVar v(*this, lo, hi); - return _new_ivar(v); - } - - int new_ivar(IntSet& s) - { - IntVar v(*this, s); - return _new_ivar(v); - } - - int _new_bvar(BoolVar& v) - { - if (dock) return dock->enter_bvar(v); - else return ikaboom("too late to create vars"); - } - - int new_bvar() - { - BoolVar v(*this, 0, 1); - return _new_bvar(v); - } - - int _new_svar(SetVar& v) - { - if (dock) return dock->enter_svar(v); - else return ikaboom("too late to create vars"); - } - - int new_svar(int glbMin, int glbMax, int lubMin, int lubMax, - unsigned int cardMin=0, - unsigned int cardMax=Set::Limits::card) - { - SetVar v(*this, glbMin, glbMax, lubMin, lubMax, cardMin, cardMax); - return _new_svar(v); - } - - int new_svar(IntSet glb, int lubMin, int lubMax, - unsigned int cardMin=0, - unsigned int cardMax=Set::Limits::card) - { - SetVar v(*this, glb, lubMin, lubMax, cardMin, cardMax); - return _new_svar(v); - } - - int new_svar(int glbMin, int glbMax, IntSet lub, - unsigned int cardMin=0, - unsigned int cardMax=Set::Limits::card) - { - SetVar v(*this, glbMin, glbMax, lub, cardMin, cardMax); - return _new_svar(v); - } - - int new_svar(IntSet glb, IntSet lub, - unsigned int cardMin=0, - unsigned int cardMax=Set::Limits::card) - { - SetVar v(*this, glb, lub, cardMin, cardMax); - return _new_svar(v); - } - - void minimize(int i) { optim.minimize(i); } - void minimize(int i, int j) { optim.minimize(i,j); } - void maximize(int i) { optim.maximize(i); } - void maximize(int i, int j) { optim.maximize(i,j); } - - virtual void constrain(const Space& s) - { - const GenericSpace& sol = static_cast(s); - switch (optim.what) - { - case Optimizing::OPT_NONE: - break; - case Optimizing::OPT_INT: - rel(*this, ivars[optim.num], - ((optim.how==Optimizing::OPT_MIN) ? IRT_LE : IRT_GR), - sol.ivars[optim.num].val()); - break; - case Optimizing::OPT_RATIO: - { - IntArgs c(2, sol.ivars[optim.den].val(), - - sol.ivars[optim.num].val()); - IntVarArgs v(2); - v[0] = ivars[optim.num]; - v[1] = ivars[optim.den]; - linear(*this, c, v, - ((optim.how==Optimizing::OPT_MIN) ? IRT_LE : IRT_GR), 0); - break; - } - } - } - }; -} - -#ifdef DISJUNCTOR -#include "disjunctor.icc" -#endif - -#endif diff --git a/library/gecode/gecode3_yap.cc b/library/gecode/gecode3_yap.cc deleted file mode 100644 index 9cd3c67a8..000000000 --- a/library/gecode/gecode3_yap.cc +++ /dev/null @@ -1,1183 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -#include "gecode3-common.icc" -#include -using namespace std; -using namespace generic_gecode; -using namespace Gecode; - -extern "C" -{ -#include "config.h" -} - -namespace generic_gecode -{ -#ifndef HAVE_DYNARRAY - template struct DynArray - { - T* _array; - DynArray(int n): _array(new T[n]) {} - ~DynArray() { delete[] _array; } - T& operator[](int i) { return _array[i]; } - }; -#define DYNARRAY(T,A,N) DynArray A(N) -#else -#define DYNARRAY(T,A,N) T A[N] -#endif - -#ifndef HAVE_DYNARRAY - struct SpecArray - { - int (*_array)[2]; - SpecArray(int n): _array((int (*)[2]) new int[n*2]) {} - ~SpecArray() { delete[] _array; } - int& operator()(int i,int j) { return _array[i][j]; } - }; -#define SPECARRAY(A,N) SpecArray A(N) -#define SPECARRAYELEM(A,I,J) A(I,J) -#define SPECARRAYDEREF(A) A._array -#else -#define SPECARRAY(A,N) int A[N][2] -#define SPECARRAYELEM(A,I,J) A[I][J] -#define SPECARRAYDEREF(A) A -#endif -} - -extern "C" -{ -#include "SWI-Stream.h" -#include "YapInterface.h" - - static YAP_opaque_tag_t gecode_space_tag; - static YAP_opaque_handler_t gecode_space_handler; - - static int gecode_space_fail_handler(void* p) - { - delete *(GenericSpace**)p; - return TRUE; - } - - static int - gecode_space_write_handler - (void *stream_, YAP_opaque_tag_t type, void *p, int flags) - { - IOSTREAM* stream = (IOSTREAM*) stream_; - Sfprintf(stream,"", p); - return TRUE; - } - - static YAP_Term gecode_term_from_space(GenericSpace* s) - { - YAP_Term term = - YAP_NewOpaqueObject(gecode_space_tag, sizeof(GenericSpace*)); - GenericSpace** ptr = - (GenericSpace**) YAP_OpaqueObjectFromTerm(term); - *ptr = s; - return term; - } - - static int gecode_new_space(void) - { - YAP_Term term = gecode_term_from_space(new GenericSpace); - return YAP_Unify(YAP_ARG1, term); - } - -#ifndef DISJUNCTOR - static inline GenericSpace* - gecode_Space_from_term(YAP_Term t) - { - return * (GenericSpace**) YAP_OpaqueObjectFromTerm(t); - } -#else - struct YapDisjunctor - { - GenericSpace* home; - Disjunctor disj; - YapDisjunctor(GenericSpace* home_) - : home(home_), disj(*home_) {} - }; - - static YAP_opaque_tag_t gecode_disjunctor_tag; - static YAP_opaque_handler_t gecode_disjunctor_handler; - static YAP_opaque_tag_t gecode_disjunctor_clause_tag; - static YAP_opaque_handler_t gecode_disjunctor_clause_handler; - - static inline Disjunctor& - gecode_Disjunctor_from_term(YAP_Term t) - { - return ((YapDisjunctor*) YAP_OpaqueObjectFromTerm(t))->disj; - } - - static inline YapDisjunctor& - gecode_YapDisjunctor_from_term(YAP_Term t) - { - return * (YapDisjunctor*) YAP_OpaqueObjectFromTerm(t); - } - - static inline Clause& - gecode_Clause_from_term(YAP_Term t) - { - return * (Clause*) YAP_OpaqueObjectFromTerm(t); - } - - static inline GenericSpace* - gecode_Space_from_term(YAP_Term t) - { - if (YAP_IsOpaqueObjectTerm(t, gecode_disjunctor_clause_tag)) - { - Clause& c = gecode_Clause_from_term(t); - return & (GenericSpace&) c; - } - return * (GenericSpace**) YAP_OpaqueObjectFromTerm(t); - } -#endif - - static YAP_opaque_tag_t gecode_engine_tag; - static YAP_opaque_handler_t gecode_engine_handler; - - static int gecode_new_engine(void) - { - YAP_Term arg1 = YAP_ARG1; - YAP_Term arg2 = YAP_ARG2; - YAP_Term arg3 = YAP_ARG3; - bool restart = YAP_IntOfTerm(YAP_ArgOfTerm(1, arg3)); - double threads = YAP_FloatOfTerm(YAP_ArgOfTerm(2, arg3)); - unsigned int c_d = YAP_IntOfTerm(YAP_ArgOfTerm(3, arg3)); - unsigned int a_d = YAP_IntOfTerm(YAP_ArgOfTerm(4, arg3)); - Search::Options opt; - opt.threads = threads; - opt.c_d = c_d; - opt.a_d = a_d; - GenericSpace* space = gecode_Space_from_term(arg1); - GenericEngine* engine = space->new_engine(restart,opt); - YAP_Term y_engine = - YAP_NewOpaqueObject(gecode_engine_tag, sizeof(GenericEngine*)); - GenericEngine** ptr = - (GenericEngine**) YAP_OpaqueObjectFromTerm(y_engine); - *ptr = engine; - return YAP_Unify(arg2, y_engine); - } - - static inline GenericEngine* - gecode_engine_from_term(YAP_Term t) - { - return * (GenericEngine**) YAP_OpaqueObjectFromTerm(t); - } - - static int gecode_engine_fail_handler(void* p) - { - delete *(GenericEngine**)p; - return TRUE; - } - - static int - gecode_engine_write_handler - (void *stream_, YAP_opaque_tag_t type, void *p, int flags) - { - IOSTREAM* stream = (IOSTREAM*) stream_; - Sfprintf(stream,"", p); - return TRUE; - } - - static int gecode_engine_search(void) - { - GenericEngine* engine = gecode_engine_from_term(YAP_ARG1); - GenericSpace* space = engine->next(); - if (space) - { - YAP_Term term = gecode_term_from_space(space); - return YAP_Unify(YAP_ARG2, term); - } - else YAP_cut_fail(); - } - -#ifdef DISJUNCTOR - static int gecode_new_disjunctor(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - YAP_Term term = - YAP_NewOpaqueObject(gecode_disjunctor_tag, sizeof(YapDisjunctor)); - new (YAP_OpaqueObjectFromTerm(term)) YapDisjunctor(space); - return YAP_Unify(result, term); - } - - static int - gecode_disjunctor_write_handler - (void *stream_, YAP_opaque_tag_t type, void *p, int flags) - { - IOSTREAM* stream = (IOSTREAM*) stream_; - Sfprintf(stream,"", p); - return TRUE; - } - - static int gecode_new_clause(void) - { - YAP_Term result = YAP_ARG1; - YapDisjunctor& disj = gecode_YapDisjunctor_from_term(YAP_ARG2); - YAP_Term term = - YAP_NewOpaqueObject(gecode_disjunctor_clause_tag, sizeof(Clause)); - new (YAP_OpaqueObjectFromTerm(term)) Clause(*disj.home,disj.disj); - return YAP_Unify(result, term); - } - - static int - gecode_clause_write_handler - (void *stream_, YAP_opaque_tag_t type, void *p, int flags) - { - IOSTREAM* stream = (IOSTREAM*) stream_; - Sfprintf(stream,"", p); - return TRUE; - } - - static IntVar gecode_IntVar_from_term(GenericSpace*,YAP_Term); - static BoolVar gecode_BoolVar_from_term(GenericSpace*,YAP_Term); - static SetVar gecode_SetVar_from_term(GenericSpace*,YAP_Term); - - static int gecode_clause_intvar_forward(void) - { - Clause& clause = gecode_Clause_from_term(YAP_ARG1); - GenericSpace* outer = clause.generic_parent(); - GenericSpace* inner = clause.generic_space(); - IntVar outer_var = gecode_IntVar_from_term(outer, YAP_ARG2); - IntVar inner_var = gecode_IntVar_from_term(inner, YAP_ARG3); - clause.forward(outer_var,inner_var); - return TRUE; - } - - static int gecode_clause_boolvar_forward(void) - { - Clause& clause = gecode_Clause_from_term(YAP_ARG1); - GenericSpace* outer = clause.generic_parent(); - GenericSpace* inner = clause.generic_space(); - BoolVar outer_var = gecode_BoolVar_from_term(outer, YAP_ARG2); - BoolVar inner_var = gecode_BoolVar_from_term(inner, YAP_ARG3); - clause.forward(outer_var,inner_var); - return TRUE; - } - - static int gecode_clause_setvar_forward(void) - { - Clause& clause = gecode_Clause_from_term(YAP_ARG1); - GenericSpace* outer = clause.generic_parent(); - GenericSpace* inner = clause.generic_space(); - SetVar outer_var = gecode_SetVar_from_term(outer, YAP_ARG2); - SetVar inner_var = gecode_SetVar_from_term(inner, YAP_ARG3); - clause.forward(outer_var,inner_var); - return TRUE; - } -#endif - - static int gecode_new_intvar_from_bounds(void) - { - YAP_Term ivar = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int lo = YAP_IntOfTerm(YAP_ARG3); - int hi = YAP_IntOfTerm(YAP_ARG4); - int i = space->new_ivar(lo, hi); - YAP_Term y_i = YAP_MkIntTerm(i); - return YAP_Unify(ivar, y_i); - } - - static int - gecode_list_length(YAP_Term l) - { - int n = 0; - while (YAP_IsPairTerm(l)) - { - n += 1; - l = YAP_TailOfTerm(l); - } - return n; - } - - static IntSet - gecode_IntSet_from_term(YAP_Term specs) - { - int n = gecode_list_length(specs); - SPECARRAY(r,n); - int i = 0; - while (YAP_IsPairTerm(specs)) - { - YAP_Term head = YAP_HeadOfTerm(specs); - specs = YAP_TailOfTerm(specs); - SPECARRAYELEM(r,i,0) = YAP_IntOfTerm(YAP_ArgOfTerm(1, head)); - SPECARRAYELEM(r,i,1) = YAP_IntOfTerm(YAP_ArgOfTerm(2, head)); - i += 1; - } - return IntSet(SPECARRAYDEREF(r), n); - } - - static int gecode_new_intvar_from_intset(void) - { - YAP_Term ivar = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - YAP_Term specs = YAP_ARG3; - IntSet iset = gecode_IntSet_from_term(specs); - int i = space->new_ivar(iset); - return YAP_Unify(ivar, YAP_MkIntTerm(i)); - } - - static int gecode_new_boolvar(void) - { - YAP_Term bvar = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int i = space->new_bvar(); - return YAP_Unify(bvar, YAP_MkIntTerm(i)); - } - - static int gecode_new_setvar_1(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - int LubMin = YAP_IntOfTerm(YAP_ARG5); - int LubMax = YAP_IntOfTerm(YAP_ARG6); - int CardMin= YAP_IntOfTerm(YAP_ARG7); - int CardMax= YAP_IntOfTerm(YAP_ARG8); - int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_2(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - int LubMin = YAP_IntOfTerm(YAP_ARG5); - int LubMax = YAP_IntOfTerm(YAP_ARG6); - int CardMin= YAP_IntOfTerm(YAP_ARG7); - int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax,CardMin); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_3(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - int LubMin = YAP_IntOfTerm(YAP_ARG5); - int LubMax = YAP_IntOfTerm(YAP_ARG6); - int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_4(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - int LubMin = YAP_IntOfTerm(YAP_ARG4); - int LubMax = YAP_IntOfTerm(YAP_ARG5); - int CardMin = YAP_IntOfTerm(YAP_ARG6); - int CardMax = YAP_IntOfTerm(YAP_ARG7); - int idx = space->new_svar(Glb,LubMin,LubMax,CardMin,CardMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_5(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - int LubMin = YAP_IntOfTerm(YAP_ARG4); - int LubMax = YAP_IntOfTerm(YAP_ARG5); - int CardMin = YAP_IntOfTerm(YAP_ARG6); - int idx = space->new_svar(Glb,LubMin,LubMax,CardMin); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_6(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - int LubMin = YAP_IntOfTerm(YAP_ARG4); - int LubMax = YAP_IntOfTerm(YAP_ARG5); - int idx = space->new_svar(Glb,LubMin,LubMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_7(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); - int CardMin = YAP_IntOfTerm(YAP_ARG6); - int CardMax = YAP_IntOfTerm(YAP_ARG7); - int idx = space->new_svar(GlbMin,GlbMax,Lub,CardMin,CardMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_8(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); - int CardMin = YAP_IntOfTerm(YAP_ARG6); - int idx = space->new_svar(GlbMin,GlbMax,Lub,CardMin); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_9(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); - int idx = space->new_svar(GlbMin,GlbMax,Lub); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_10(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); - int CardMin = YAP_IntOfTerm(YAP_ARG5); - int CardMax = YAP_IntOfTerm(YAP_ARG6); - int idx = space->new_svar(Glb,Lub,CardMin,CardMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_11(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); - int CardMin = YAP_IntOfTerm(YAP_ARG5); - int idx = space->new_svar(Glb,Lub,CardMin); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_12(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); - int idx = space->new_svar(Glb,Lub); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_space_minimize(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int i = YAP_IntOfTerm(YAP_ARG2); - space->minimize(i); - return TRUE; - } - - static int gecode_space_maximize(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int i = YAP_IntOfTerm(YAP_ARG2); - space->maximize(i); - return TRUE; - } - - static int gecode_space_minimize_ratio(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int i = YAP_IntOfTerm(YAP_ARG2); - int j = YAP_IntOfTerm(YAP_ARG3); - space->minimize(i,j); - return TRUE; - } - - static int gecode_space_maximize_ratio(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int i = YAP_IntOfTerm(YAP_ARG2); - int j = YAP_IntOfTerm(YAP_ARG3); - space->maximize(i,j); - return TRUE; - } - - static IntVar - gecode_IntVar_from_term(GenericSpace* space, YAP_Term x) - { - int i = YAP_IntOfTerm(x); - return space->get_ivar(i); - } - - static BoolVar - gecode_BoolVar_from_term(GenericSpace* space, YAP_Term x) - { - int i = YAP_IntOfTerm(x); - return space->get_bvar(i); - } - - static SetVar - gecode_SetVar_from_term(GenericSpace* space, YAP_Term x) - { - int i = YAP_IntOfTerm(x); - return space->get_svar(i); - } - - static IntVarArgs - gecode_IntVarArgs_from_term(GenericSpace* space, YAP_Term l) - { - int n = gecode_list_length(l); - IntVarArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); - v[i] = space->get_ivar(idx); - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static BoolVarArgs - gecode_BoolVarArgs_from_term(GenericSpace* space, YAP_Term l) - { - int n = gecode_list_length(l); - BoolVarArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); - v[i] = space->get_bvar(idx); - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static SetVarArgs - gecode_SetVarArgs_from_term(GenericSpace* space, YAP_Term l) - { - int n = gecode_list_length(l); - SetVarArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); - v[i] = space->get_svar(idx); - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static IntArgs - gecode_IntArgs_from_term(YAP_Term l) - { - int n = gecode_list_length(l); - IntArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); - v[i] = idx; - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static IntSetArgs - gecode_IntSetArgs_from_term(YAP_Term l) - { - int n = gecode_list_length(l); - IntSetArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - IntSet s = gecode_IntSet_from_term(YAP_HeadOfTerm(l)); - v[i] = s; - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static TaskType gecode_TaskType_from_term(YAP_Term); - - static TaskTypeArgs - gecode_TaskTypeArgs_from_term(YAP_Term l) - { - int n = gecode_list_length(l); - TaskTypeArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - TaskType tt = gecode_TaskType_from_term(YAP_HeadOfTerm(l)); - v[i] = tt; - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static YAP_Term gecode_TRUE; - static YAP_Term gecode_FALSE; - - static bool - gecode_bool_from_term(YAP_Term X) - { - if (X==gecode_TRUE) return true; - if (X==gecode_FALSE) return false; - cerr << "this should never happen" << endl; exit(1); - } - - static int gecode_space_use_keep_index(void) - { - YAP_Term arg1 = YAP_ARG1; - YAP_Term arg2 = YAP_ARG2; - GenericSpace* space = gecode_Space_from_term(arg1); - return YAP_Unify(arg2,(space->use_keep_index() - ?gecode_TRUE:gecode_FALSE)); - } - - static int gecode_intvar_keep(void) - { - YAP_Term arg1 = YAP_ARG1; - YAP_Term arg2 = YAP_ARG2; - YAP_Term arg3 = YAP_ARG3; - GenericSpace* space = gecode_Space_from_term(arg1); - int idx = YAP_IntOfTerm(arg2); - int kidx = space->keep_ivar(idx); - return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); - } - - static int gecode_boolvar_keep(void) - { - YAP_Term arg1 = YAP_ARG1; - YAP_Term arg2 = YAP_ARG2; - YAP_Term arg3 = YAP_ARG3; - GenericSpace* space = gecode_Space_from_term(arg1); - int idx = YAP_IntOfTerm(arg2); - int kidx = space->keep_bvar(idx); - return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); - } - - static int gecode_setvar_keep(void) - { - YAP_Term arg1 = YAP_ARG1; - YAP_Term arg2 = YAP_ARG2; - YAP_Term arg3 = YAP_ARG3; - GenericSpace* space = gecode_Space_from_term(arg1); - int idx = YAP_IntOfTerm(arg2); - int kidx = space->keep_svar(idx); - return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); - } - - // INFO ON INTVARS - static int gecode_intvar_assigned(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG2); - return (x.assigned()) ? TRUE : FALSE; - } - - static int gecode_intvar_min(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.min())); - } - - static int gecode_intvar_max(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.max())); - } - - static int gecode_intvar_med(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.med())); - } - - static int gecode_intvar_val(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.val())); - } - - static int gecode_intvar_size(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.size())); - } - - static int gecode_intvar_width(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.width())); - } - - static int gecode_intvar_regret_min(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.regret_min())); - } - - static int gecode_intvar_regret_max(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.regret_max())); - } - - static YAP_Functor gecode_COMMA2; - - static int gecode_intvar_ranges(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - int n = 0; - { IntVarRanges it(x); while (it()) { ++n; ++it; } } - DYNARRAY(int,min,n); - DYNARRAY(int,max,n); - { IntVarRanges it(x); int i=0; - while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } - YAP_Term lst = YAP_TermNil(); - for (;n--;) - { - YAP_Term args[2]; - args[0] = YAP_MkIntTerm(min[n]); - args[1] = YAP_MkIntTerm(max[n]); - YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); - lst = YAP_MkPairTerm(range,lst); - } - return YAP_Unify(result,lst); - } - - static int gecode_intvar_values(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - int n = x.size(); - DYNARRAY(int,a,n); - { IntVarValues it(x); int i=0; - while (it()) { a[i]=it.val(); ++it; ++i; } } - YAP_Term lst = YAP_TermNil(); - for (;n--;) - { - lst = YAP_MkPairTerm(YAP_MkIntTerm(a[n]),lst); - } - return YAP_Unify(result,lst); - } - - // INFO ON BOOLVARS - static int gecode_boolvar_assigned(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG2); - return (x.assigned()) ? TRUE : FALSE; - } - - static int gecode_boolvar_min(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.min())); - } - - static int gecode_boolvar_max(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.max())); - } - - static int gecode_boolvar_med(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.med())); - } - - static int gecode_boolvar_val(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.val())); - } - - static int gecode_boolvar_size(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.size())); - } - - static int gecode_boolvar_width(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.width())); - } - - static int gecode_boolvar_regret_min(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.regret_min())); - } - - static int gecode_boolvar_regret_max(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.regret_max())); - } - - // INFO ON SETVARS - static int gecode_setvar_assigned(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG2); - return (x.assigned()) ? TRUE : FALSE; - } - - static int gecode_setvar_glbSize(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.glbSize())); - } - - static int gecode_setvar_lubSize(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.lubSize())); - } - - static int gecode_setvar_unknownSize(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.unknownSize())); - } - - static int gecode_setvar_cardMin(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.cardMin())); - } - - static int gecode_setvar_cardMax(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.cardMax())); - } - - static int gecode_setvar_lubMin(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.lubMin())); - } - - static int gecode_setvar_lubMax(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.lubMax())); - } - - static int gecode_setvar_glbMin(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.glbMin())); - } - - static int gecode_setvar_glbMax(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.glbMax())); - } - - static int gecode_setvar_glb_ranges(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - int n = 0; - { SetVarGlbRanges it(x); while (it()) { ++n; ++it; } } - DYNARRAY(int,min,n); - DYNARRAY(int,max,n); - { SetVarGlbRanges it(x); int i=0; - while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } - YAP_Term lst = YAP_TermNil(); - for (;n--;) - { - YAP_Term args[2]; - args[0] = YAP_MkIntTerm(min[n]); - args[1] = YAP_MkIntTerm(max[n]); - YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); - lst = YAP_MkPairTerm(range,lst); - } - return YAP_Unify(result,lst); - } - - static int gecode_setvar_lub_ranges(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - int n = 0; - { SetVarLubRanges it(x); while (it()) { ++n; ++it; } } - DYNARRAY(int,min,n); - DYNARRAY(int,max,n); - { SetVarLubRanges it(x); int i=0; - while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } - YAP_Term lst = YAP_TermNil(); - for (;n--;) - { - YAP_Term args[2]; - args[0] = YAP_MkIntTerm(min[n]); - args[1] = YAP_MkIntTerm(max[n]); - YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); - lst = YAP_MkPairTerm(range,lst); - } - return YAP_Unify(result,lst); - } - - static int gecode_setvar_unknown_ranges(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - int n = 0; - { SetVarUnknownRanges it(x); while (it()) { ++n; ++it; } } - DYNARRAY(int,min,n); - DYNARRAY(int,max,n); - { SetVarUnknownRanges it(x); int i=0; - while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } - YAP_Term lst = YAP_TermNil(); - for (;n--;) - { - YAP_Term args[2]; - args[0] = YAP_MkIntTerm(min[n]); - args[1] = YAP_MkIntTerm(max[n]); - YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); - lst = YAP_MkPairTerm(range,lst); - } - return YAP_Unify(result,lst); - } - - static int gecode_setvar_glb_values(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - DYNARRAY(YAP_Term,elems,x.glbSize()); - SetVarGlbValues it(x); - int n = 0; - while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } - YAP_Term lst = YAP_TermNil(); - for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); - return YAP_Unify(result,lst); - } - - static int gecode_setvar_lub_values(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - DYNARRAY(YAP_Term,elems,x.lubSize()); - SetVarLubValues it(x); - int n = 0; - while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } - YAP_Term lst = YAP_TermNil(); - for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); - return YAP_Unify(result,lst); - } - - static int gecode_setvar_unknown_values(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - DYNARRAY(YAP_Term,elems,x.unknownSize()); - SetVarUnknownValues it(x); - int n = 0; - while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } - YAP_Term lst = YAP_TermNil(); - for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); - return YAP_Unify(result,lst); - } - -#define gecode_int_from_term YAP_IntOfTerm - -#include "gecode_yap_cc_forward_auto_generated.icc" -#include "gecode_yap_cc_impl_auto_generated.icc" - - void gecode_init(void) - { - { YAP_Atom X= YAP_LookupAtom("true"); - gecode_TRUE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("false"); - gecode_FALSE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom(","); - YAP_AtomGetHold(X); - gecode_COMMA2 = YAP_MkFunctor(X,2); } -#include "gecode_yap_cc_init_auto_generated.icc" - // opaque spaces - gecode_space_handler.fail_handler = gecode_space_fail_handler; - gecode_space_handler.write_handler = gecode_space_write_handler; - gecode_space_tag = YAP_NewOpaqueType(&gecode_space_handler); - YAP_UserCPredicate("gecode_new_space", gecode_new_space, 1); - // opaque engines - gecode_engine_handler.fail_handler = gecode_engine_fail_handler; - gecode_engine_handler.write_handler = gecode_engine_write_handler; - gecode_engine_tag = YAP_NewOpaqueType(&gecode_engine_handler); - YAP_UserCPredicate("gecode_new_engine", gecode_new_engine, 3); -#ifdef DISJUNCTOR - // opaque disjunctors and clauses - gecode_disjunctor_handler.write_handler = gecode_disjunctor_write_handler; - gecode_disjunctor_tag = YAP_NewOpaqueType(&gecode_disjunctor_handler); - gecode_disjunctor_clause_handler.write_handler = gecode_clause_write_handler; - gecode_disjunctor_clause_tag = - YAP_NewOpaqueType(&gecode_disjunctor_clause_handler); - YAP_UserCPredicate("gecode_new_disjunctor", gecode_new_disjunctor, 2); - YAP_UserCPredicate("gecode_new_clause", gecode_new_clause, 2); - YAP_UserCPredicate("gecode_clause_intvar_forward", gecode_clause_intvar_forward, 3); - YAP_UserCPredicate("gecode_clause_boolvar_forward", gecode_clause_boolvar_forward, 3); - YAP_UserCPredicate("gecode_clause_setvar_forward", gecode_clause_setvar_forward, 3); -#endif - // backtracking search using an engine - YAP_UserBackCutCPredicate("gecode_engine_search", - gecode_engine_search, gecode_engine_search, - NULL, 2, 0); - // creating variables - YAP_UserCPredicate("gecode_new_intvar_from_bounds", - gecode_new_intvar_from_bounds, 4); - YAP_UserCPredicate("gecode_new_intvar_from_intset", - gecode_new_intvar_from_intset, 3); - YAP_UserCPredicate("gecode_new_boolvar", gecode_new_boolvar, 2); - YAP_UserCPredicate("gecode_new_setvar_1", gecode_new_setvar_1, 8); - YAP_UserCPredicate("gecode_new_setvar_2", gecode_new_setvar_2, 7); - YAP_UserCPredicate("gecode_new_setvar_3", gecode_new_setvar_3, 6); - YAP_UserCPredicate("gecode_new_setvar_4", gecode_new_setvar_4, 7); - YAP_UserCPredicate("gecode_new_setvar_5", gecode_new_setvar_5, 6); - YAP_UserCPredicate("gecode_new_setvar_6", gecode_new_setvar_6, 5); - YAP_UserCPredicate("gecode_new_setvar_7", gecode_new_setvar_7, 7); - YAP_UserCPredicate("gecode_new_setvar_8", gecode_new_setvar_8, 6); - YAP_UserCPredicate("gecode_new_setvar_9", gecode_new_setvar_9, 5); - YAP_UserCPredicate("gecode_new_setvar_10", gecode_new_setvar_10, 6); - YAP_UserCPredicate("gecode_new_setvar_11", gecode_new_setvar_11, 5); - YAP_UserCPredicate("gecode_new_setvar_12", gecode_new_setvar_12, 4); - YAP_UserCPredicate("gecode_space_minimize", gecode_space_minimize, 2); - YAP_UserCPredicate("gecode_space_maximize", gecode_space_maximize, 2); - YAP_UserCPredicate("gecode_space_minimize_ratio", gecode_space_minimize_ratio, 3); - YAP_UserCPredicate("gecode_space_maximize_ratio", gecode_space_maximize_ratio, 3); - // INFO ON INTVARS - YAP_UserCPredicate("gecode_intvar_assigned", gecode_intvar_assigned, 2); - YAP_UserCPredicate("gecode_intvar_min", gecode_intvar_min, 3); - YAP_UserCPredicate("gecode_intvar_max", gecode_intvar_max, 3); - YAP_UserCPredicate("gecode_intvar_med", gecode_intvar_med, 3); - YAP_UserCPredicate("gecode_intvar_val", gecode_intvar_val, 3); - YAP_UserCPredicate("gecode_intvar_size", gecode_intvar_size, 3); - YAP_UserCPredicate("gecode_intvar_width", gecode_intvar_width, 3); - YAP_UserCPredicate("gecode_intvar_regret_min", gecode_intvar_regret_min, 3); - YAP_UserCPredicate("gecode_intvar_regret_max", gecode_intvar_regret_max, 3); - YAP_UserCPredicate("gecode_intvar_ranges", gecode_intvar_ranges, 3); - YAP_UserCPredicate("gecode_intvar_values", gecode_intvar_values, 3); - // INFO ON BOOLVARS - YAP_UserCPredicate("gecode_boolvar_assigned", gecode_boolvar_assigned, 2); - YAP_UserCPredicate("gecode_boolvar_min", gecode_boolvar_min, 3); - YAP_UserCPredicate("gecode_boolvar_max", gecode_boolvar_max, 3); - YAP_UserCPredicate("gecode_boolvar_med", gecode_boolvar_med, 3); - YAP_UserCPredicate("gecode_boolvar_val", gecode_boolvar_val, 3); - YAP_UserCPredicate("gecode_boolvar_size", gecode_boolvar_size, 3); - YAP_UserCPredicate("gecode_boolvar_width", gecode_boolvar_width, 3); - YAP_UserCPredicate("gecode_boolvar_regret_min", gecode_boolvar_regret_min, 3); - YAP_UserCPredicate("gecode_boolvar_regret_max", gecode_boolvar_regret_max, 3); - // INFO ON SETVARS - YAP_UserCPredicate("gecode_setvar_assigned", gecode_setvar_assigned, 2); - YAP_UserCPredicate("gecode_setvar_glbSize", gecode_setvar_glbSize, 3); - YAP_UserCPredicate("gecode_setvar_lubSize", gecode_setvar_lubSize, 3); - YAP_UserCPredicate("gecode_setvar_unknownSize", gecode_setvar_unknownSize, 3); - YAP_UserCPredicate("gecode_setvar_cardMin", gecode_setvar_cardMin, 3); - YAP_UserCPredicate("gecode_setvar_cardMax", gecode_setvar_cardMax, 3); - YAP_UserCPredicate("gecode_setvar_lubMin", gecode_setvar_lubMin, 3); - YAP_UserCPredicate("gecode_setvar_lubMax", gecode_setvar_lubMax, 3); - YAP_UserCPredicate("gecode_setvar_glbMin", gecode_setvar_glbMin, 3); - YAP_UserCPredicate("gecode_setvar_glbMax", gecode_setvar_glbMax, 3); - YAP_UserCPredicate("gecode_setvar_glb_ranges", gecode_setvar_glb_ranges, 3); - YAP_UserCPredicate("gecode_setvar_lub_ranges", gecode_setvar_lub_ranges, 3); - YAP_UserCPredicate("gecode_setvar_unknown_ranges", gecode_setvar_unknown_ranges, 3); - YAP_UserCPredicate("gecode_setvar_glb_values", gecode_setvar_glb_values, 3); - YAP_UserCPredicate("gecode_setvar_lub_values", gecode_setvar_lub_values, 3); - YAP_UserCPredicate("gecode_setvar_unknown_values", gecode_setvar_unknown_values, 3); - YAP_UserCPredicate("gecode_space_use_keep_index", gecode_space_use_keep_index, 2); - YAP_UserCPredicate("gecode_intvar_keep", gecode_intvar_keep, 3); - YAP_UserCPredicate("gecode_boolvar_keep", gecode_boolvar_keep, 3); - YAP_UserCPredicate("gecode_setvar_keep", gecode_setvar_keep, 3); - } -} diff --git a/library/gecode/gecode3_yap_hand_written.yap b/library/gecode/gecode3_yap_hand_written.yap deleted file mode 100644 index 44316aca3..000000000 --- a/library/gecode/gecode3_yap_hand_written.yap +++ /dev/null @@ -1,848 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -:- module(gecode, [(:=)/2, op(500, xfx, ':='), - (+=)/2, op(500, xfx, '+=')]). - -:- op(500, xfx, ':='). -:- op(500, xfx, '+='). -:- load_foreign_files([gecode_yap],[],gecode_init). - -is_int(X,Y) :- integer(X), Y=X. -is_int(X) :- integer(X). - -is_bool_(true,true). -is_bool_(false,false). -is_bool(X,Y) :- nonvar(X), Y=X. -is_bool(X) :- is_bool(X,_). - -is_IntVar_('IntVar'(I,K),N) :- - integer(I), - integer(K), - nb_getval(gecode_space_use_keep_index,B), - (B=true -> N=K ; N=I). -is_BoolVar_('BoolVar'(I,K),N) :- - integer(I), - integer(K), - nb_getval(gecode_space_use_keep_index,B), - (B=true -> N=K ; N=I). -is_SetVar_('SetVar'(I,K),N) :- - integer(I), - integer(K), - nb_getval(gecode_space_use_keep_index,B), - (B=true -> N=K ; N=I). - -is_IntVar(X,I) :- nonvar(X), is_IntVar_(X,I). -is_BoolVar(X,I) :- nonvar(X), is_BoolVar_(X,I). -is_SetVar(X,I) :- nonvar(X), is_SetVar_(X,I). - -is_IntVar(X) :- is_IntVar(X,_). -is_BoolVar(X) :- is_BoolVar(X,_). -is_SetVar(X) :- is_SetVar(X,_). - -is_IntVarArgs_([],[]). -is_IntVarArgs_([H|T],[H2|T2]) :- is_IntVar(H,H2), is_IntVarArgs(T,T2). -is_IntVarArgs(X,Y) :- nonvar(X), is_IntVarArgs_(X,Y). -is_IntVarArgs(X) :- \+ \+ is_IntVarArgs(X,_). - -is_BoolVarArgs_([],[]). -is_BoolVarArgs_([H|T],[H2|T2]) :- is_BoolVar(H,H2), is_BoolVarArgs(T,T2). -is_BoolVarArgs(X,Y) :- nonvar(X), is_BoolVarArgs_(X,Y). -is_BoolVarArgs(X) :- \+ \+ is_BoolVarArgs(X,_). - -is_SetVarArgs_([],[]). -is_SetVarArgs_([H|T],[H2|T2]) :- is_SetVar(H,H2), is_SetVarArgs(T,T2). -is_SetVarArgs(X,Y) :- nonvar(X), is_SetVarArgs_(X,Y). -is_SetVarArgs(X) :- \+ \+ is_SetVarArgs(X,_). - -is_IntArgs_([],[]). -is_IntArgs_([H|T],[H|T2]) :- integer(H), is_IntArgs(T,T2). -is_IntArgs(X,Y) :- nonvar(X), is_IntArgs_(X,Y). -is_IntArgs(X) :- \+ \+ is_IntArgs(X,_). - -is_IntSharedArray(X) :- is_IntArgs(X). -is_IntSharedArray(X,Y) :- is_IntArgs(X,Y). - -is_TaskTypeArgs_([],[]). -is_TaskTypeArgs_([H|T],[H2|T2]) :- is_TaskType(H,H2), is_TaskTypeArgs(T,T2). -is_TaskTypeArgs(X,Y) :- nonvar(X), is_TaskTypeArgs_(X,Y). -is_TaskTypeArgs(X) :- \+ \+ is_TaskTypeArgs(X,_). - -is_IntSet_('IntSet'(L),L). -is_IntSet(X,Y) :- nonvar(X), is_IntSet_(X,Y). -is_IntSet(X) :- is_IntSet(X,_). - -is_IntSetArgs_([],[]). -is_IntSetArgs_([H|T],[H2|T2]) :- is_IntSet(H,H2), is_IntSetArgs(T,T2). -is_IntSetArgs(X,Y) :- nonvar(X), is_IntSetArgs_(X,Y). -is_IntSetArgs(X) :- \+ \+ is_IntSetArgs(X,_). - -new_intset(X,I,J) :- intset(X,I,J). -new_intset(X,L) :- intset(X,L). - -intset(X, I, J) :- - integer(I), - integer(J), - X='IntSet'([(I,J)]). -intset(X, L) :- - is_list_of_intset_specs(L,L2), - X='IntSet'(L2). - -is_list_of_intset_specs(X,Y) :- - nonvar(X), is_list_of_intset_specs_(X,Y). -is_list_of_intset_specs_([],[]). -is_list_of_intset_specs_([H|T],[H2|T2]) :- - is_intset_spec(H,H2), - is_list_of_intset_specs(T,T2). - -is_intset_spec(X,Y) :- nonvar(X), is_intset_spec_(X,Y). -is_intset_spec_((I,J),(I,J)) :- !, integer(I), integer(J). -is_intset_spec_(I,(I,I)) :- integer(I). - -assert_var(X,Y) :- - var(X) -> X=Y; throw(gecode_error(expected(var))). -assert_is_int(X,Y) :- - integer(X) -> X=Y ; throw(gecode_error(expected(int))). -assert_is_Space(X,Y) :- - is_Space(X,Y) -> true ; throw(gecode_error(expected(space))). -assert_is_IntSet(X,Y) :- - is_IntSet(X,Y) -> true ; throw(gecode_error(expected(intset))). -assert_is_IntVar(X,Y) :- - is_IntVar(X,Y) -> true ; throw(gecode_error(expected(intvar))). -assert_is_BoolVar(X,Y) :- - is_BoolVar(X,Y) -> true ; throw(gecode_error(expected(boolvar))). -assert_is_SetVar(X,Y) :- - is_SetVar(X,Y) -> true ; throw(gecode_error(expected(setvar))). -assert_is_IntArgs(X,Y) :- - is_IntArgs(X,Y) -> true ; throw(gecode_error(expected(intargs))). -assert_is_IntVarArgs(X,Y) :- - is_IntVarArgs(X,Y) -> true ; throw(gecode_error(expected(intvarargs))). -assert_is_BoolVarArgs(X,Y) :- - is_BoolVarArgs(X,Y) -> true ; throw(gecode_error(expected(boolvarargs))). -assert_is_SetVarArgs(X,Y) :- - is_SetVarArgs(X,Y) -> true ; throw(gecode_error(expected(setvarargs))). - -assert_var(X) :- assert_var(X,_). -assert_is_int(X) :- assert_is_int(X,_). -assert_is_Space(X) :- assert_is_Space(X,_). -assert_is_IntSet(X) :- assert_is_IntSet(X,_). -assert_is_IntVar(X) :- assert_is_IntVar(X,_). -assert_is_BoolVar(X) :- assert_is_BoolVar(X,_). -assert_is_SetVar(X) :- assert_is_SetVar(X,_). -assert_is_IntArgs(X) :- assert_is_IntArgs(X,_). -assert_is_IntVarArgs(X) :- assert_is_IntVarArgs(X,_). -assert_is_BoolVarArgs(X) :- assert_is_BoolVarArgs(X,_). -assert_is_SetVarArgs(X) :- assert_is_SetVarArgs(X,_). - -new_space(Space) :- - assert_var(Space), - gecode_new_space(Space_), - Space='Space'(Space_). - -%% checking that an argument is a space sets a global variable -%% indicating whether variables need to be translated to their -%% original index or to their "keep" index. -%% -%% these bindings are going to take advantage of the fact that, -%% when a space is involved, it is checked first, thus setting -%% this global variable. subsequent accesses to variables are -%% then correctly translated. - -is_Space_('Space'(X),X) :- - gecode_space_use_keep_index(X,B), - nb_setval(gecode_space_use_keep_index,B). -is_Space(X,Y) :- nonvar(X), is_Space_(X,Y). -is_Space(X) :- is_Space(X,_). - -%% AUTOGENERATE ALL VARIANTS LATER! - -new_intvars([], Space, Lo, Hi). -new_intvars([IVar|IVars], Space, Lo, Hi) :- - new_intvar(IVar, Space, Lo, Hi), - new_intvars(IVars, Space, Lo, Hi). - -new_intvars([], Space, IntSet). -new_intvars([IVar|IVars], Space, IntSet) :- - new_intvar(IVar, Space, IntSet), - new_intvars(IVars, Space, IntSet). - -new_boolvars([], Space). -new_boolvars([BVar|BVars], Space) :- - new_boolvar(BVar, Space), - new_boolvars(BVars, Space). - -new_setvars([], Space, X1, X2, X3, X4, X5, X6). -new_setvars([SVar|SVars], Space, X1, X2, X3, X4, X5, X6) :- - new_setvar(SVar, Space, X1, X2, X3, X4, X5, X6), - new_setvars(SVars, Space, X1, X2, X3, X4, X5, X6). - -new_setvars([], Space, X1, X2, X3, X4, X5). -new_setvars([SVar|SVars], Space, X1, X2, X3, X4, X5) :- - new_setvar(SVar, Space, X1, X2, X3, X4, X5), - new_setvars(SVars, Space, X1, X2, X3, X4, X5). - -new_setvars([], Space, X1, X2, X3, X4). -new_setvars([SVar|SVars], Space, X1, X2, X3, X4) :- - new_setvar(SVar, Space, X1, X2, X3, X4), - new_setvars(SVars, Space, X1, X2, X3, X4). - -new_setvars([], Space, X1, X2, X3). -new_setvars([SVar|SVars], Space, X1, X2, X3) :- - new_setvar(SVar, Space, X1, X2, X3), - new_setvars(SVars, Space, X1, X2, X3). - -new_setvars([], Space, X1, X2). -new_setvars([SVar|SVars], Space, X1, X2) :- - new_setvar(SVar, Space, X1, X2), - new_setvars(SVars, Space, X1, X2). - -%% AUTOGENERATE LATER - -assert_integer(X) :- assert_is_int(X). - -new_intvar(IVar, Space, Lo, Hi) :- !, - assert_var(IVar), - assert_is_Space_or_Clause(Space,Space_), - assert_integer(Lo), - assert_integer(Hi), - gecode_new_intvar_from_bounds(Idx,Space_,Lo,Hi), - IVar='IntVar'(Idx,-1). -new_intvar(IVar, Space, IntSet) :- !, - assert_var(IVar), - assert_is_Space_or_Clause(Space,Space_), - assert_is_IntSet(IntSet, L), - gecode_new_intvar_from_intset(Idx,Space_,L), - IVar='IntVar'(Idx,-1). - -new_boolvar(BVar, Space) :- !, - assert_var(BVar), - assert_is_Space_or_Clause(Space,Space_), - gecode_new_boolvar(Idx,Space_), - BVar='BoolVar'(Idx,-1). - -%% (GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax) 6 new_setvar_1 -%% (GlbMin,GlbMax,LubMin,LubMax,CardMin) 5 new_setvar_2 -%% (GlbMin,GlbMax,LubMin,LubMax) 4 new_setvar_3 -%% (Glb,LubMin,LubMax,CardMin,CardMax) 5 new_setvar_4 -%% (Glb,LubMin,LubMax,CardMin) 4 new_setvar_5 -%% (Glb,LubMin,LubMax) 3 new_setvar_6 -%% (GlbMin,GlbMax,Lub,CardMin,CardMax) 5 new_setvar_7 -%% (GlbMin,GlbMax,Lub,CardMin) 4 new_setvar_8 -%% (GlbMin,GlbMax,Lub) 3 new_setvar_9 -%% (Glb,Lub,CardMin,CardMax) 4 new_setvar_10 -%% (Glb,Lub,CardMin) 3 new_setvar_11 -%% (Glb,Lub) 2 new_setvar_12 - -%% 6 arguments -%% (GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax) 6 new_setvar_1 -new_setvar(SVar, Space, GlbMin, GlbMax, LubMin, LubMax, CardMin, CardMax) :- - assert_var(SVar), - assert_is_Space_or_Clause(Space,Space_), - assert_integer(GlbMin), - assert_integer(GlbMax), - assert_integer(LubMin), - assert_integer(LubMax), - assert_integer(CardMin), - assert_integer(CardMax), - gecode_new_setvar(Idx, Space_, GlbMin, GlbMax, LubMib, LubMax, CardMin, CardMax), - SVar='SetVar'(Idx,-1). - -%% 5 arguments -%% (GlbMin,GlbMax,LubMin,LubMax,CardMin) 5 new_setvar_2 -%% (Glb,LubMin,LubMax,CardMin,CardMax) 5 new_setvar_4 -%% (GlbMin,GlbMax,Lub,CardMin,CardMax) 5 new_setvar_7 -new_setvar(SVar, Space, X1, X2, X3, X4, X5) :- - assert_var(SVar), - assert_is_Space_or_Clause(Space,Space_), - (integer(X1) - -> - assert_integer(X2), - assert_integer(X4), - assert_integer(X5), - (is_IntSet(X3,X3_) - -> gecode_new_setvar_7(Idx,Space_,X1,X2,X3_,X4,X5) - ; gecode_new_setvar_2(Idx,Space_,X1,X2,X3,X4,X5)) - ; - assert_is_IntSet(X1,X1_), - assert_integer(X2), - assert_integer(X3), - assert_integer(X4), - assert_integer(X5), - gecode_new_setvar_4(Idx,Space_,X1_,X2,X3,X4,X5)), - SVar='SetVar'(Idx,-1). - -%% 4 arguments -%% (GlbMin,GlbMax,LubMin,LubMax) 4 new_setvar_3 -%% (Glb,LubMin,LubMax,CardMin) 4 new_setvar_5 -%% (GlbMin,GlbMax,Lub,CardMin) 4 new_setvar_8 -%% (Glb,Lub,CardMin,CardMax) 4 new_setvar_10 -new_setvar(SVar,Space,X1,X2,X3,X4) :- - assert_var(SVar), - assert_is_Space_or_Clause(Space,Space_), - assert_integer(X4), - (is_IntSet(X1,X1_) - -> (is_IntSet(X2,X2_) - -> - assert_integer(X3), - gecode_new_setvar_10(Idx,Space_,X1_,X2_,X3,X4) - ; - assert_integer(X2), - assert_integer(X3), - gecode_new_setvar_5(Idx,Space_,X1_,X2,X3,X4)) - ; - assert_integer(X1), - assert_integer(X2), - (is_IntSet(X3,X3_) - -> - gecode_new_setvar_8(Idx,Space_,X1,X2,X3_,X4) - ; - assert_integer(X3), - gecode_new_setvar_3(Idx,Space_,X1,X2,X3,X4))), - SVar='SetVar'(Idx,-1). - -%% 3 arguments -%% (Glb,LubMin,LubMax) 3 new_setvar_6 -%% (GlbMin,GlbMax,Lub) 3 new_setvar_9 -%% (Glb,Lub,CardMin) 3 new_setvar_11 -new_setvar(SVar,Space,X1,X2,X3) :- - assert_var(SVar), - assert_is_Space_or_Clause(Space,Space_), - (is_IntSet(X1,X1_) - -> (is_IntSet(X2,X2_) - -> - assert_integer(X3), - gecode_new_setvar_11(Idx,Space_,X1_,X2_,X3) - ; - assert_integer(X2), - assert_integer(X3), - gecode_new_setvar_6(Idx,Space_,X1_,X2,X3)) - ; - assert_integer(X1), - assert_integer(X2), - assert_is_IntSet(X3,X3_), - gecode_new_setvar_9(Idx,Space_,X1,X2,X3_)), - SVar='SetVar'(Idx,-1). - -%% 2 arguments -%% (Glb,Lub) 2 new_setvar_12 -new_setvar(SVar,Space,X1,X2) :- - assert_var(SVar), - assert_is_Space_or_Clause(Space,Space_), - assert_is_IntSet(X1,X1_), - assert_is_IntSet(X2,X2_), - gecode_new_setvar_12(Idx,Space_,X1_,X2_), - SVar='SetVar'(Idx,-1). - -minimize(Space,IVar) :- - assert_is_Space(Space,Space_), - assert_is_IntVar(IVar,IVar_), - gecode_space_minimize(Space_,IVar_). -maximize(Space,IVar) :- - assert_is_Space(Space,Space_), - assert_is_IntVar(IVar,IVar_), - gecode_space_maximize(Space_,IVar_). -minimize(Space,IVar1,IVar2) :- - assert_is_Space(Space,Space_), - assert_is_IntVar(IVar1,IVar1_), - assert_is_IntVar(IVar2,IVar2_), - gecode_space_minimize_ratio(Space_,IVar1_,IVar2_). -maximize(Space,IVar1,IVar2) :- - assert_is_Space(Space,Space_), - assert_is_IntVar(IVar1,IVar1_), - assert_is_IntVar(IVar2,IVar2_), - gecode_space_maximize_ratio(Space_,IVar1_,IVar2_). - -gecode_search_options_init(search_options(0,1.0,8,2)). -gecode_search_options_offset(restart,1). -gecode_search_options_offset(threads,2). -gecode_search_options_offset(c_d ,3). -gecode_search_options_offset(a_d ,4). - -gecode_search_option_set(O,V,R) :- - gecode_search_options_offset(O,I), - setarg(I,R,V). - -gecode_search_options_from_alist(L,R) :- - gecode_search_options_init(R), - gecode_search_options_process_alist(L,R). - -gecode_search_options_process_alist([],R). -gecode_search_options_process_alist([H|T],R) :- !, - gecode_search_options_process1(H,R), - gecode_search_options_process_alist(T,R). - -gecode_search_options_process1(restart,R) :- !, - gecode_search_option_set(restart,1,R). -gecode_search_options_process1(threads=N,R) :- !, - (integer(N) -> V is float(N) - ; (float(N) -> V=N - ; throw(bad_search_option_value(threads=N)))), - gecode_search_option_set(threads,V,R). -gecode_search_options_process1(c_d=N,R) :- !, - (integer(N) -> V=N - ; throw(bad_search_option_value(c_d=N))), - gecode_search_option_set(c_d,V,R). -gecode_search_options_process1(a_d=N,R) :- !, - (integer(N) -> V=N - ; throw(bad_search_option_value(a_d=N))), - gecode_search_option_set(a_d,V,R). -gecode_search_options_process1(O,_) :- - throw(gecode_error(unrecognized_search_option(O))). - -search(Space, Solution) :- - search(Space, Solution, []). - -search(Space, Solution, Alist) :- - assert_is_Space(Space,Space_), - assert_var(Solution), - gecode_search_options_from_alist(Alist,O), - gecode_new_engine(Space_,Engine_,O), - gecode_engine_search(Engine_,Solution_), - Solution='Space'(Solution_). - - -%% INSPECTING VARIABLES - -get_for_vars([],Space,[],F). -get_for_vars([V|Vs],Space,[V2|V2s],F) :- - call_with_args(F,V,Space,V2), - get_for_vars(Vs,Space,V2s,F). - -get_assigned(Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_assigned(Space_,Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_assigned(Space_,Var_) - ; is_SetVar(Var,Var_) - -> gecode_setvar_assigned(Space_,Var_) - ; throw(gecode_error(expected(variable)))). - -get_min(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_min(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_min(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_min)). - -get_max(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_max(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_max(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_max)). - -get_med(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_med(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_med(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_med)). - -get_val(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_val(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_val(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_val)). - -get_size(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_size(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_size(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_size)). - -get_width(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_width(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_width(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_width)). - -get_regret_min(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_regret_min(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_regret_min(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_regret_min)). - -get_regret_max(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_regret_max(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_regret_max(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_regret_max)). - -get_glbSize(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_glbSize(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_glbSize)). - -get_lubSize(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_lubSize(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_lubSize)). - -get_unknownSize(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_unknownSize(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_unknownSize)). - -get_cardMin(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_cardMin(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_cardMin)). - -get_cardMax(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_cardMax(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_cardMax)). - -get_lubMin(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_lubMin(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_lubMin)). - -get_lubMax(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_lubMax(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_lubMax)). - -get_glbMin(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_glbMin(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_glbMin)). - -get_glbMax(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_glbMax(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_glbMax)). - -get_glb_ranges(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_glb_ranges(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_glb_ranges)). - -get_lub_ranges(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_lub_ranges(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_lub_ranges)). - -get_unknown_ranges(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_unknown_ranges(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_unknown_ranges)). - -get_glb_values(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_glb_values(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_glb_values)). - -get_lub_values(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_lub_values(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_lub_values)). - -get_unknown_values(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_unknown_values(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_unknown_values)). - -get_ranges(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_ranges(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_ranges)). - -get_values(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_values(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_values)). - -new_disjunctor(X, Space) :- - assert_is_Space(Space,Space_), - gecode_new_disjunctor(D,Space_), - X='Disjunctor'(D). - -is_Disjunctor_('Disjunctor'(D),D). -is_Disjunctor(X,Y) :- nonvar(X), is_Disjunctor_(X,Y). -is_Disjunctor(X) :- is_Disjunctor(X,_). - -assert_is_Disjunctor(X,Y) :- - is_Disjunctor(X,Y) -> true ; throw(gecode_error(expected(disjunctor))). - -new_clause(X, Disj) :- - assert_is_Disjunctor(Disj,Disj_), - gecode_new_clause(C, Disj_), - X='Clause'(C). - -is_Clause_('Clause'(C),C) :- - gecode_space_use_keep_index(C,B), - nb_setval(gecode_space_use_keep_index,B). -is_Clause(X,Y) :- nonvar(X), is_Clause_(X,Y). -is_Clause(X) :- is_Clause(X,_). - -assert_is_Clause(X,Y) :- - is_Clause(X,Y) -> true ; throw(gecode_error(expected(clause))). - -is_Space_or_Clause(X,Y) :- - (is_Space(X,Y);is_Clause(X,Y)), !. -assert_is_Space_or_Clause(X,Y) :- - is_Space_or_Clause(X,Y) -> true - ; throw(gecode_error(expected(space,clause))). - -new_forward(Clause, X, Y) :- - assert_is_Clause(Clause, Clause_), - (is_IntVar(X,X_) - -> (is_IntVar(Y,Y_) - -> gecode_clause_intvar_forward(Clause_,X_,Y_) - ; throw(gecode_error(forward))) - ; (is_BoolVar(X,X_) - -> (is_BoolVar(Y,Y_) - -> gecode_clause_boolvar_forward(Clause_,X_,Y_) - ; throw(gecode_error(forward))) - ; (is_SetVar(X,X_) - -> (is_SetVar(Y,Y_) - -> gecode_clause_setvar_forward(Clause_,X_,Y_) - ; throw(gecode_error(forward))) - ; (X=[] - -> Y=[] - ;(X=[H1|T1],Y=[H2|T2]) - -> (new_forward(Clause,H1,H2), - new_forward(Clause,T1,T2)) - ; throw(gecode_error(forward)))))). - -new_intvars_(L,Space,N,I,J) :- length(L,N), new_intvars(L,Space,I,J). -new_intvars_(L,Space,N,IntSet) :- length(L,N), new_intvars(L,Space,IntSet). -new_boolvars_(L,Space,N) :- length(L,N), new_boolvars(L,Space). -new_setvars_(L,Space,N,X1,X2,X3,X4,X5,X6) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4,X5,X6). -new_setvars_(L,Space,N,X1,X2,X3,X4,X5) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4,X5). -new_setvars_(L,Space,N,X1,X2,X3,X4) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4). -new_setvars_(L,Space,N,X1,X2,X3) :- length(L,N), new_setvars(L,Space,X1,X2,X3). -new_setvars_(L,Space,N,X1,X2) :- length(L,N), new_setvars(L,Space,X1,X2). - -keep_(Space, Var) :- - (Var = 'IntVar'(I,J) - -> (J = -1 -> (gecode_intvar_keep(Space,I,K),setarg(2,Var,K)) - ; throw(gecode_error(variable_already_kept(Var)))) - ; (Var = 'BoolVar'(I,J) - -> (J = -1 -> (gecode_boolvar_keep(Space,I,K),setarg(2,Var,K)) - ; throw(gecode_error(variable_already_kept(Var)))) - ; (Var = 'SetVar'(I,J) - -> (J = -1 -> (gecode_setvar_keep(Space,I,K),setarg(2,Var,K)) - ; throw(gecode_error(variable_already_kept(Var)))) - ; keep_list_(Space,Var)))). - -keep_list_(Space, []) :- !. -keep_list_(Space, [H|T]) :- !, - keep_(Space,H), keep_list_(Space,T). -keep_list_(_, X) :- - throw(gecode_error(not_a_variable(X))). - -%% more concise interface: -(X := Y) :- var(Y), !, throw(gecode_error((X := Y))). -(X := intset(I,J)) :- !, new_intset(X,I,J). -(X := intset(L)) :- !, new_intset(X,L). -(X := space) :- !, new_space(X). -(X := intvar(Space,I,J)) :- !, new_intvar(X,Space,I,J). -(X := intvar(Space,IntSet)) :- !, new_intvar(X,Space,IntSet). -(X := boolvar(Space)) :- !, new_boolvar(X,Space). -(X := setvar(Space,X1,X2,X3,X4,X5,X6)) :- !, new_setvar(X,Space,X1,X2,X3,X4,X5,X6). -(X := setvar(Space,X1,X2,X3,X4,X5)) :- !, new_setvar(X,Space,X1,X2,X3,X4,X5). -(X := setvar(Space,X1,X2,X3,X4)) :- !, new_setvar(X,Space,X1,X2,X3,X4). -(X := setvar(Space,X1,X2,X3)) :- !, new_setvar(X,Space,X1,X2,X3). -(X := setvar(Space,X1,X2)) :- !, new_setvar(X,Space,X1,X2). -(X := intvars(Space,N,I,J)) :- !, new_intvars_(X,Space,N,I,J). -(X := intvars(Space,N,IntSet)) :- !, new_intvars_(X,Space,N,IntSet). -(X := boolvars(Space,N)) :- !, new_boolvars_(X,Space,N). -(X := setvars(Space,N,X1,X2,X3,X4,X5,X6)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4,X5,X6). -(X := setvars(Space,N,X1,X2,X3,X4,X5)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4,X5). -(X := setvars(Space,N,X1,X2,X3,X4)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4). -(X := setvars(Space,N,X1,X2,X3)) :- !, new_setvars_(X,Space,N,X1,X2,X3). -(X := setvars(Space,N,X1,X2)) :- !, new_setvars_(X,Space,N,X1,X2). - -(X := min(Space,Var)) :- !, get_min(X,Space,Var). -(X := max(Space,Var)) :- !, get_max(X,Space,Var). -(X := med(Space,Var)) :- !, get_med(X,Space,Var). -(X := val(Space,Var)) :- !, get_val(X,Space,Var). -(X := size(Space,Var)) :- !, get_size(X,Space,Var). -(X := width(Space,Var)) :- !, get_width(X,Space,Var). -(X := regret_min(Space,Var)) :- !, get_regret_min(X,Space,Var). -(X := regret_max(Space,Var)) :- !, get_regret_max(X,Space,Var). -(X := ranges(Space,Var)) :- !, get_ranges(X,Space,Var). -(X := values(Space,Var)) :- !, get_values(X,Space,Var). - -(X := glbSize(Space,Var)) :- !, get_glbSize(X,Space,Var). -(X := lubSize(Space,Var)) :- !, get_lubSize(X,Space,Var). -(X := unknownSize(Space,Var)) :- !, get_unknownSize(X,Space,Var). -(X := cardMin(Space,Var)) :- !, get_cardMin(X,Space,Var). -(X := cardMax(Space,Var)) :- !, get_cardMax(X,Space,Var). -(X := lubMin(Space,Var)) :- !, get_lubMin(X,Space,Var). -(X := lubMax(Space,Var)) :- !, get_lubMax(X,Space,Var). -(X := glbMin(Space,Var)) :- !, get_glbMin(X,Space,Var). -(X := glbMax(Space,Var)) :- !, get_glbMax(X,Space,Var). -(X := glb_ranges(Space,Var)) :- !, get_glb_ranges(X,Space,Var). -(X := lub_ranges(Space,Var)) :- !, get_lub_ranges(X,Space,Var). -(X := unknown_ranges(Space,Var)) :- !, get_unknown_ranges(X,Space,Var). -(X := glb_values(Space,Var)) :- !, get_glb_values(X,Space,Var). -(X := lub_values(Space,Var)) :- !, get_lub_values(X,Space,Var). -(X := unknown_values(Space,Var)) :- !, get_unknown_values(X,Space,Var). - -(X := disjunctor(Space)) :- !, new_disjunctor(X,Space). -(X := clause(Disj)) :- !, new_clause(X,Disj). - -(X := search(Y)) :- !, search(Y,X). -(X := search(Y,L)) :- !, search(Y,X,L). - -% these should be autogenerated: -(C += forward(X,Y)) :- !, new_forward(C,X,Y). -(Space += abs(X1,X2)) :- !, abs(Space,X1,X2). -(Space += abs(X1,X2,X3)) :- !, abs(Space,X1,X2,X3). -(Space += assign(X1,X2)) :- !, assign(Space,X1,X2). -(Space += atmostOne(X1,X2)) :- !, atmostOne(Space,X1,X2). -(Space += binpacking(X1,X2,X3)) :- !, binpacking(Space,X1,X2,X3). -(Space += binpacking(X1,X2,X3,X4)) :- !, binpacking(Space,X1,X2,X3,X4). -(Space += branch(X1,X2)) :- !, branch(Space,X1,X2). -(Space += branch(X1,X2,X3)) :- !, branch(Space,X1,X2,X3). -(Space += cardinality(X1,X2)) :- !, cardinality(Space,X1,X2). -(Space += cardinality(X1,X2,X3)) :- !, cardinality(Space,X1,X2,X3). -(Space += channel(X1,X2)) :- !, channel(Space,X1,X2). -(Space += channel(X1,X2,X3)) :- !, channel(Space,X1,X2,X3). -(Space += channel(X1,X2,X3,X4)) :- !, channel(Space,X1,X2,X3,X4). -(Space += channel(X1,X2,X3,X4,X5)) :- !, channel(Space,X1,X2,X3,X4,X5). -(Space += channelSorted(X1,X2)) :- !, channelSorted(Space,X1,X2). -(Space += circuit(X1)) :- !, circuit(Space,X1). -(Space += circuit(X1,X2)) :- !, circuit(Space,X1,X2). -(Space += circuit(X1,X2,X3)) :- !, circuit(Space,X1,X2,X3). -(Space += circuit(X1,X2,X3,X4)) :- !, circuit(Space,X1,X2,X3,X4). -(Space += circuit(X1,X2,X3,X4,X5)) :- !, circuit(Space,X1,X2,X3,X4,X5). -(Space += circuit(X1,X2,X3,X4,X5,X6)) :- !, circuit(Space,X1,X2,X3,X4,X5,X6). -(Space += clause(X1,X2,X3,X4)) :- !, clause(Space,X1,X2,X3,X4). -(Space += clause(X1,X2,X3,X4,X5)) :- !, clause(Space,X1,X2,X3,X4,X5). -(Space += convex(X1)) :- !, convex(Space,X1). -(Space += convex(X1,X2)) :- !, convex(Space,X1,X2). -(Space += count(X1,X2)) :- !, count(Space,X1,X2). -(Space += count(X1,X2,X3)) :- !, count(Space,X1,X2,X3). -(Space += count(X1,X2,X3,X4)) :- !, count(Space,X1,X2,X3,X4). -(Space += count(X1,X2,X3,X4,X5)) :- !, count(Space,X1,X2,X3,X4,X5). -(Space += cumulative(X1,X2,X3,X4)) :- !, cumulative(Space,X1,X2,X3,X4). -(Space += cumulative(X1,X2,X3,X4,X5)) :- !, cumulative(Space,X1,X2,X3,X4,X5). -(Space += cumulative(X1,X2,X3,X4,X5,X6)) :- !, cumulative(Space,X1,X2,X3,X4,X5,X6). -(Space += cumulative(X1,X2,X3,X4,X5,X6,X7)) :- !, cumulative(Space,X1,X2,X3,X4,X5,X6,X7). -(Space += cumulatives(X1,X2,X3,X4,X5,X6,X7)) :- !, cumulatives(Space,X1,X2,X3,X4,X5,X6,X7). -(Space += cumulatives(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, cumulatives(Space,X1,X2,X3,X4,X5,X6,X7,X8). -(Space += distinct(X1)) :- !, distinct(Space,X1). -(Space += distinct(X1,X2)) :- !, distinct(Space,X1,X2). -(Space += distinct(X1,X2,X3)) :- !, distinct(Space,X1,X2,X3). -(Space += div(X1,X2,X3)) :- !, div(Space,X1,X2,X3). -(Space += div(X1,X2,X3,X4)) :- !, div(Space,X1,X2,X3,X4). -(Space += divmod(X1,X2,X3,X4)) :- !, divmod(Space,X1,X2,X3,X4). -(Space += divmod(X1,X2,X3,X4,X5)) :- !, divmod(Space,X1,X2,X3,X4,X5). -(Space += dom(X1,X2)) :- !, dom(Space,X1,X2). -(Space += dom(X1,X2,X3)) :- !, dom(Space,X1,X2,X3). -(Space += dom(X1,X2,X3,X4)) :- !, dom(Space,X1,X2,X3,X4). -(Space += dom(X1,X2,X3,X4,X5)) :- !, dom(Space,X1,X2,X3,X4,X5). -(Space += element(X1,X2,X3)) :- !, element(Space,X1,X2,X3). -(Space += element(X1,X2,X3,X4)) :- !, element(Space,X1,X2,X3,X4). -(Space += element(X1,X2,X3,X4,X5)) :- !, element(Space,X1,X2,X3,X4,X5). -(Space += element(X1,X2,X3,X4,X5,X6)) :- !, element(Space,X1,X2,X3,X4,X5,X6). -(Space += element(X1,X2,X3,X4,X5,X6,X7)) :- !, element(Space,X1,X2,X3,X4,X5,X6,X7). -(Space += linear(X1,X2,X3)) :- !, linear(Space,X1,X2,X3). -(Space += linear(X1,X2,X3,X4)) :- !, linear(Space,X1,X2,X3,X4). -(Space += linear(X1,X2,X3,X4,X5)) :- !, linear(Space,X1,X2,X3,X4,X5). -(Space += linear(X1,X2,X3,X4,X5,X6)) :- !, linear(Space,X1,X2,X3,X4,X5,X6). -(Space += max(X1,X2)) :- !, max(Space,X1,X2). -(Space += max(X1,X2,X3)) :- !, max(Space,X1,X2,X3). -(Space += max(X1,X2,X3,X4)) :- !, max(Space,X1,X2,X3,X4). -(Space += min(X1,X2)) :- !, min(Space,X1,X2). -(Space += min(X1,X2,X3)) :- !, min(Space,X1,X2,X3). -(Space += min(X1,X2,X3,X4)) :- !, min(Space,X1,X2,X3,X4). -(Space += mod(X1,X2,X3)) :- !, mod(Space,X1,X2,X3). -(Space += mod(X1,X2,X3,X4)) :- !, mod(Space,X1,X2,X3,X4). -(Space += mult(X1,X2,X3)) :- !, mult(Space,X1,X2,X3). -(Space += mult(X1,X2,X3,X4)) :- !, mult(Space,X1,X2,X3,X4). -(Space += nooverlap(X1,X2,X3,X4)) :- !, nooverlap(Space,X1,X2,X3,X4). -(Space += nooverlap(X1,X2,X3,X4,X5)) :- !, nooverlap(Space,X1,X2,X3,X4,X5). -(Space += nooverlap(X1,X2,X3,X4,X5,X6)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6). -(Space += nooverlap(X1,X2,X3,X4,X5,X6,X7)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6,X7). -(Space += nooverlap(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6,X7,X8). -(Space += notMax(X1,X2)) :- !, notMax(Space,X1,X2). -(Space += notMin(X1,X2)) :- !, notMin(Space,X1,X2). -(Space += path(X1,X2,X3)) :- !, path(Space,X1,X2,X3). -(Space += path(X1,X2,X3,X4)) :- !, path(Space,X1,X2,X3,X4). -(Space += path(X1,X2,X3,X4,X5)) :- !, path(Space,X1,X2,X3,X4,X5). -(Space += path(X1,X2,X3,X4,X5,X6)) :- !, path(Space,X1,X2,X3,X4,X5,X6). -(Space += path(X1,X2,X3,X4,X5,X6,X7)) :- !, path(Space,X1,X2,X3,X4,X5,X6,X7). -(Space += path(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, path(Space,X1,X2,X3,X4,X5,X6,X7,X8). -(Space += precede(X1,X2)) :- !, precede(Space,X1,X2). -(Space += precede(X1,X2,X3)) :- !, precede(Space,X1,X2,X3). -(Space += precede(X1,X2,X3,X4)) :- !, precede(Space,X1,X2,X3,X4). -(Space += rel(X1,X2)) :- !, rel(Space,X1,X2). -(Space += rel(X1,X2,X3)) :- !, rel(Space,X1,X2,X3). -(Space += rel(X1,X2,X3,X4)) :- !, rel(Space,X1,X2,X3,X4). -(Space += rel(X1,X2,X3,X4,X5)) :- !, rel(Space,X1,X2,X3,X4,X5). -(Space += sequence(X1)) :- !, sequence(Space,X1). -(Space += sequence(X1,X2)) :- !, sequence(Space,X1,X2). -(Space += sequence(X1,X2,X3,X4,X5)) :- !, sequence(Space,X1,X2,X3,X4,X5). -(Space += sequence(X1,X2,X3,X4,X5,X6)) :- !, sequence(Space,X1,X2,X3,X4,X5,X6). -(Space += sorted(X1,X2)) :- !, sorted(Space,X1,X2). -(Space += sorted(X1,X2,X3)) :- !, sorted(Space,X1,X2,X3). -(Space += sorted(X1,X2,X3,X4)) :- !, sorted(Space,X1,X2,X3,X4). -(Space += sqr(X0,X1,X2,X3)) :- !, sqr(Space,X0,X1,X2,X3). -(Space += sqr(X1,X2)) :- !, sqr(Space,X1,X2). -(Space += sqrt(X1,X2)) :- !, sqrt(Space,X1,X2). -(Space += sqrt(X1,X2,X3)) :- !, sqrt(Space,X1,X2,X3). -(Space += unary(X1,X2)) :- !, unary(Space,X1,X2). -(Space += unary(X1,X2,X3)) :- !, unary(Space,X1,X2,X3). -(Space += unary(X1,X2,X3,X4)) :- !, unary(Space,X1,X2,X3,X4). -(Space += unary(X1,X2,X3,X4,X5)) :- !, unary(Space,X1,X2,X3,X4,X5). -(Space += unshare(X1)) :- !, unshare(Space,X1). -(Space += unshare(X1,X2)) :- !, unshare(Space,X1,X2). -(Space += weights(X1,X2,X3,X4)) :- !; weights(Space,X1,X2,X3,X4). - -(Space += minimize(X)) :- !, minimize(Space,X). -(Space += maximize(X)) :- !, maximize(Space,X). -(Space += minimize(X,Y)) :- !, minimize(Space,X,Y). -(Space += maximize(X,Y)) :- !, maximize(Space,X,Y). - -(Space += keep(X)) :- !, keep_(Space,X). diff --git a/library/gecode/gecode4-common.icc b/library/gecode/gecode4-common.icc deleted file mode 100644 index 678a61957..000000000 --- a/library/gecode/gecode4-common.icc +++ /dev/null @@ -1,413 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -#ifndef GECODE_COMMON -#define GECODE_COMMON - -#include "gecode/driver.hh" -#include "gecode/int.hh" -#include "gecode/set.hh" -#include "gecode/search.hh" -#include - -namespace generic_gecode -{ - using namespace std; - using namespace Gecode; - - // description of the optimization criterion - struct Optimizing - { - enum What { OPT_NONE, OPT_INT, OPT_RATIO }; - enum How { OPT_MIN, OPT_MAX }; - int num; - int den; - What what; - How how; - Optimizing(): num(-1), den(-1), what(OPT_NONE), how(OPT_MAX) {} - Optimizing(Optimizing& o) - : num(o.num), den(o.den), what(o.what), how(o.how) {} - void check_ok() const - { if (what!=OPT_NONE) - throw Exception("gecode-python","too many optimization criteria"); } - void maximize(int i) - { check_ok(); what = OPT_INT; how = OPT_MAX; num = i; }; - void maximize(int i,int j) - { check_ok(); what = OPT_RATIO; how = OPT_MAX; num = i; den = j; }; - void minimize(int i) - { check_ok(); what = OPT_INT; how = OPT_MIN; num = i; }; - void minimize(int i,int j) - { check_ok(); what = OPT_RATIO; how = OPT_MIN; num = i; den = j; }; - }; - - struct GenericSpace; - - struct GenericEngine - { - virtual GenericSpace* next(void)=0; - virtual ~GenericEngine() {}; - }; - - struct GenericDFS: GenericEngine - { - DFS engine; - GenericDFS(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} - virtual GenericSpace* next(void) { return engine.next(); } - }; - - struct GenericRestartDFS: GenericEngine - { - RBS engine; - GenericRestartDFS(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} - virtual GenericSpace* next(void) { return engine.next(); } - }; - - struct GenericBAB: GenericEngine - { - BAB engine; - GenericBAB(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} - virtual GenericSpace* next(void) { return engine.next(); } - }; - - struct GenericRestartBAB: GenericEngine - { - RBS engine; - GenericRestartBAB(GenericSpace* s,Search::Options& opt) : engine(s,opt) {} - virtual GenericSpace* next(void) { return engine.next(); } - }; - -#ifdef OLD - struct GenericRestart: GenericEngine - { - Restart engine; - GenericRestart(GenericSpace* s,Search::Options& opt): engine(s,opt) {} - virtual GenericSpace* next(void) { return engine.next(); } - }; -#endif - - struct LoadingDock - { - vector ivars; - vector bvars; - vector fvars; - vector svars; - vector ikeep; - vector bkeep; - vector fkeep; - vector skeep; - - bool keeping_some() const - { - return (ikeep.size() != 0) - || (bkeep.size() != 0) - || (fkeep.size() != 0) - || (skeep.size() != 0); - } - - IntVar get_ivar(int i) const { return ivars[i]; } - BoolVar get_bvar(int i) const { return bvars[i]; } - FloatVar get_fvar(int i) const { return fvars[i]; } - SetVar get_svar(int i) const { return svars[i]; } - - int enter_ivar(const IntVar& v) - { ivars.push_back(v); return static_cast(ivars.size()-1); } - - int enter_bvar(const BoolVar& v) - { bvars.push_back(v); return static_cast(bvars.size()-1); } - - int enter_fvar(const FloatVar& v) - { fvars.push_back(v); return static_cast(fvars.size()-1); } - - int enter_svar(const SetVar& v) - { svars.push_back(v); return static_cast(svars.size()-1); } - - int keep_ivar(int i) { ikeep.push_back(i); return static_cast(ikeep.size()-1); } - int keep_bvar(int i) { bkeep.push_back(i); return static_cast(bkeep.size()-1); } - int keep_fvar(int i) { fkeep.push_back(i); return static_cast(fkeep.size()-1); } - int keep_svar(int i) { skeep.push_back(i); return static_cast(skeep.size()-1); } - - void freeze(Space& home, - IntVarArray& iarr, BoolVarArray& barr, SetVarArray& sarr, FloatVarArray& farr, - int& num, int& den) - { - if (keeping_some()) - { - // make sure that optimization vars (if any) are kept - if (num != -1) - { - const int _num(num); - const int _den(den); - int n = static_cast(ikeep.size()); - bool num_found(false); - bool den_found(false); - for (;n--;) - { - const int idx(ikeep[n]); - if (idx==_num) - { num_found=true; if (den_found) break; } - if (idx==_den) - { den_found=true; if (num_found) break; } - } - if (!num_found) - { ikeep.push_back(_num); - num=static_cast(ikeep.size()-1); } - if (_den != -1 && !den_found) - { ikeep.push_back(_den); - den=static_cast(ikeep.size()-1); } - } - { int n = static_cast(ikeep.size()); - iarr = IntVarArray(home, n); - for (;n--;) iarr[n]=ivars[ikeep[n]]; } - { int n = static_cast(bkeep.size()); - barr = BoolVarArray(home, n); - for (;n--;) barr[n]=bvars[bkeep[n]]; } - { int n = static_cast(skeep.size()); - sarr = SetVarArray(home, n); - for (;n--;) sarr[n]=svars[skeep[n]]; } - { int n = static_cast(fkeep.size()); - farr = FloatVarArray(home, n); - for (;n--;) farr[n]=fvars[skeep[n]]; } - } - else - { - { int n = static_cast(ivars.size()); - iarr = IntVarArray(home, n); - for (;n--;) iarr[n]=ivars[n]; } - { int n = static_cast(bvars.size()); - barr = BoolVarArray(home, n); - for (;n--;) barr[n]=bvars[n]; } - { int n = static_cast(svars.size()); - sarr = SetVarArray(home, n); - for (;n--;) sarr[n]=svars[n]; } - { int n = static_cast(fvars.size()); - farr = FloatVarArray(home, n); - for (;n--;) farr[n]=fvars[n]; } - } - } - }; - - struct GenericSpace: Space - { - Optimizing optim; - IntVarArray ivars; - BoolVarArray bvars; - FloatVarArray fvars; - SetVarArray svars; - LoadingDock* dock; - bool keeping_some; // iff only SOME of the vars are kept - - Space* space() { return this; } - - GenericSpace(bool share, GenericSpace& s) - : Space(share, s), optim(s.optim), dock(NULL), keeping_some(s.keeping_some) - { - ivars.update(*this, share, s.ivars); - bvars.update(*this, share, s.bvars); - svars.update(*this, share, s.svars); - fvars.update(*this, share, s.fvars); - } - - Space* copy(bool share) - { freeze(); return new GenericSpace(share, *this); } - - GenericSpace() : dock(new LoadingDock()), keeping_some(false) {} - ~GenericSpace() { delete dock; } - - // throw some C++ exception on behalf of glue code - void kaboom(const char* s) - { throw Exception("gecode-python", s); } - int ikaboom(const char* s) - { kaboom(s); return 0; } - - // freeze the space before handing it off to a search engine - void freeze() - { - if (dock) - { - keeping_some = dock->keeping_some(); - dock->freeze(*this, ivars, bvars, svars, fvars, optim.num, optim.den); - delete dock; - dock = NULL; - } - } - - IntVar get_ivar(int i) const { return (dock)?dock->get_ivar(i):ivars[i]; } - BoolVar get_bvar(int i) const { return (dock)?dock->get_bvar(i):bvars[i]; } - SetVar get_svar(int i) const { return (dock)?dock->get_svar(i):svars[i]; } - FloatVar get_fvar(int i) const { return (dock)?dock->get_fvar(i):fvars[i]; } - - int keep_ivar(int i) - { - if (dock) return dock->keep_ivar(i); - else return ikaboom("too late to keep"); - } - - int keep_bvar(int i) - { - if (dock) return dock->keep_bvar(i); - else return ikaboom("too late to keep"); - } - - int keep_svar(int i) - { - if (dock) return dock->keep_svar(i); - else return ikaboom("too late to keep"); - } - - int keep_fvar(int i) - { - if (dock) return dock->keep_fvar(i); - else return ikaboom("too late to keep"); - } - - bool frozen() const { return dock==NULL; } - bool has_keepers() const { return keeping_some; } - // when frozen and has_keepers: which is just has_keepers actually - bool use_keep_index() const { return has_keepers(); } - - GenericEngine* new_engine(bool restart, Search::Options& opt) - { - freeze(); - return (optim.what == Optimizing::OPT_NONE) - ? ( restart - ? static_cast(new GenericRestartDFS(this,opt)) - : static_cast(new GenericDFS(this,opt)) ) - : (restart - ? static_cast(new GenericRestartBAB(this,opt)) - : - static_cast(new GenericBAB(this,opt)) ); - } - - int _new_ivar(IntVar& v) - { - if (dock) return dock->enter_ivar(v); - else return ikaboom("too late to create vars"); - } - - int new_ivar(int lo, int hi) - { - IntVar v(*this, lo, hi); - return _new_ivar(v); - } - - int new_ivar(IntSet& s) - { - IntVar v(*this, s); - return _new_ivar(v); - } - - int _new_fvar(FloatVar& v) - { - if (dock) return dock->enter_fvar(v); - else return ikaboom("too late to create vars"); - } - - int new_fvar(double lo, double hi) - { - FloatVar v(*this, lo, hi); - return _new_fvar(v); - } - - int _new_bvar(BoolVar& v) - { - if (dock) return dock->enter_bvar(v); - else return ikaboom("too late to create vars"); - } - - int new_bvar() - { - BoolVar v(*this, 0, 1); - return _new_bvar(v); - } - - int _new_svar(SetVar& v) - { - if (dock) return dock->enter_svar(v); - else return ikaboom("too late to create vars"); - } - - int new_svar(int glbMin, int glbMax, int lubMin, int lubMax, - unsigned int cardMin=0, - unsigned int cardMax=Set::Limits::card) - { - SetVar v(*this, glbMin, glbMax, lubMin, lubMax, cardMin, cardMax); - return _new_svar(v); - } - - int new_svar(IntSet glb, int lubMin, int lubMax, - unsigned int cardMin=0, - unsigned int cardMax=Set::Limits::card) - { - SetVar v(*this, glb, lubMin, lubMax, cardMin, cardMax); - return _new_svar(v); - } - - int new_svar(int glbMin, int glbMax, IntSet lub, - unsigned int cardMin=0, - unsigned int cardMax=Set::Limits::card) - { - SetVar v(*this, glbMin, glbMax, lub, cardMin, cardMax); - return _new_svar(v); - } - - int new_svar(IntSet glb, IntSet lub, - unsigned int cardMin=0, - unsigned int cardMax=Set::Limits::card) - { - SetVar v(*this, glb, lub, cardMin, cardMax); - return _new_svar(v); - } - - void minimize(int i) { optim.minimize(i); } - void minimize(int i, int j) { optim.minimize(i,j); } - void maximize(int i) { optim.maximize(i); } - void maximize(int i, int j) { optim.maximize(i,j); } - - virtual void constrain(const Space& s) - { - const GenericSpace& sol = static_cast(s); - switch (optim.what) - { - case Optimizing::OPT_NONE: - break; - case Optimizing::OPT_INT: - rel(*this, ivars[optim.num], - ((optim.how==Optimizing::OPT_MIN) ? IRT_LE : IRT_GR), - sol.ivars[optim.num].val()); - break; - case Optimizing::OPT_RATIO: - { - IntArgs c(2, sol.ivars[optim.den].val(), - - sol.ivars[optim.num].val()); - IntVarArgs v(2); - v[0] = ivars[optim.num]; - v[1] = ivars[optim.den]; - linear(*this, c, v, - ((optim.how==Optimizing::OPT_MIN) ? IRT_LE : IRT_GR), 0); - break; - } - } - } - }; -} - -#ifdef DISJUNCTOR -#include "disjunctor.icc" -#endif - -#endif diff --git a/library/gecode/gecode4_yap.cc b/library/gecode/gecode4_yap.cc deleted file mode 100644 index 077145c3e..000000000 --- a/library/gecode/gecode4_yap.cc +++ /dev/null @@ -1,1979 +0,0 @@ -// -*- c++ -*- -//============================================================================= -// Copyright (C) 2011 by Denys Duchier -// -// This program is free software: you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published by the -// Free Software Foundation, either version 3 of the License, or (at your -// option) any later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -//============================================================================= - -#include "gecode4-common.icc" -#include -using namespace std; -using namespace generic_gecode; -using namespace Gecode; - -extern "C" -{ -#include "config.h" -} - -namespace generic_gecode -{ -#ifndef HAVE_DYNARRAY - template struct DynArray - { - T* _array; - DynArray(int n): _array(new T[n]) {} - ~DynArray() { delete[] _array; } - T& operator[](int i) { return _array[i]; } - }; -#define DYNARRAY(T,A,N) DynArray A(N) -#else -#define DYNARRAY(T,A,N) T A[N] -#endif - -#ifndef HAVE_DYNARRAY - struct SpecArray - { - int (*_array)[2]; - SpecArray(int n): _array((int (*)[2]) new int[n*2]) {} - ~SpecArray() { delete[] _array; } - int& operator()(int i,int j) { return _array[i][j]; } - }; -#define SPECARRAY(A,N) SpecArray A(N) -#define SPECARRAYELEM(A,I,J) A(I,J) -#define SPECARRAYDEREF(A) A._array -#else -#define SPECARRAY(A,N) int A[N][2] -#define SPECARRAYELEM(A,I,J) A[I][J] -#define SPECARRAYDEREF(A) A -#endif -} - -extern "C" -{ -#include "SWI-Stream.h" -#include "YapInterface.h" - - static YAP_opaque_tag_t gecode_space_tag; - static YAP_opaque_handler_t gecode_space_handler; - - static int gecode_space_fail_handler(void* p) - { - delete *(GenericSpace**)p; - return TRUE; - } - - static int - gecode_space_write_handler - (void *stream_, YAP_opaque_tag_t type, void *p, int flags) - { - IOSTREAM* stream = (IOSTREAM*) stream_; - Sfprintf(stream,"", p); - return TRUE; - } - - static YAP_Term gecode_term_from_space(GenericSpace* s) - { - YAP_Term term = - YAP_NewOpaqueObject(gecode_space_tag, sizeof(GenericSpace*)); - GenericSpace** ptr = - (GenericSpace**) YAP_OpaqueObjectFromTerm(term); - *ptr = s; - return term; - } - - static int gecode_new_space(void) - { - YAP_Term term = gecode_term_from_space(new GenericSpace); - return YAP_Unify(YAP_ARG1, term); - } - - -#ifndef DISJUNCTOR - static inline GenericSpace* - gecode_Space_from_term(YAP_Term t) - { - return * (GenericSpace**) YAP_OpaqueObjectFromTerm(t); - } -#else - struct YapDisjunctor - { - GenericSpace* home; - Disjunctor disj; - YapDisjunctor(GenericSpace* home_) - : home(home_), disj(*home_) {} - }; - - static YAP_opaque_tag_t gecode_disjunctor_tag; - static YAP_opaque_handler_t gecode_disjunctor_handler; - static YAP_opaque_tag_t gecode_disjunctor_clause_tag; - static YAP_opaque_handler_t gecode_disjunctor_clause_handler; - - static inline Disjunctor& - gecode_Disjunctor_from_term(YAP_Term t) - { - return ((YapDisjunctor*) YAP_OpaqueObjectFromTerm(t))->disj; - } - - static inline YapDisjunctor& - gecode_YapDisjunctor_from_term(YAP_Term t) - { - return * (YapDisjunctor*) YAP_OpaqueObjectFromTerm(t); - } - - static inline Clause& - gecode_Clause_from_term(YAP_Term t) - { - return * (Clause*) YAP_OpaqueObjectFromTerm(t); - } - - static inline GenericSpace* - gecode_Space_from_term(YAP_Term t) - { - if (YAP_IsOpaqueObjectTerm(t, gecode_disjunctor_clause_tag)) - { - Clause& c = gecode_Clause_from_term(t); - return & (GenericSpace&) c; - } - return * (GenericSpace**) YAP_OpaqueObjectFromTerm(t); - } -#endif - - static inline FloatAssign& - gecode_FloatAssign_from_term(YAP_Term t) - { - return * (FloatAssign*) YAP_OpaqueObjectFromTerm(t); - } - - static inline IntAssign& - gecode_IntAssign_from_term(YAP_Term t) - { - return * (IntAssign*) YAP_OpaqueObjectFromTerm(t); - } - - static inline SetAssign& - gecode_SetAssign_from_term(YAP_Term t) - { - return * (SetAssign*) YAP_OpaqueObjectFromTerm(t); - } - - static inline TupleSet& - gecode_TupleSet_from_term(YAP_Term t) - { - return *(TupleSet *) YAP_OpaqueObjectFromTerm(t); - } - - static inline DFA& - gecode_DFA_from_term(YAP_Term t) - { - return *(DFA *) YAP_OpaqueObjectFromTerm(t); - } - - static inline FloatNum - gecode_FloatNum_from_term(YAP_Term t) - { - return (FloatNum) YAP_FloatOfTerm(t); - } - - static YAP_Term gecode_SET_VAR_NONE; - static YAP_Term gecode_SET_VAR_DEGREE_MIN; - static YAP_Term gecode_SET_VAR_DEGREE_MAX; - static YAP_Term gecode_SET_VAR_MIN_MIN; - static YAP_Term gecode_SET_VAR_MIN_MAX; - static YAP_Term gecode_SET_VAR_MAX_MIN; - static YAP_Term gecode_SET_VAR_MAX_MAX; - static YAP_Term gecode_SET_VAR_SIZE_MIN; - static YAP_Term gecode_SET_VAR_SIZE_MAX; - static YAP_Term gecode_SET_VAR_DEGREE_SIZE_MIN; - static YAP_Term gecode_SET_VAR_DEGREE_SIZE_MAX; - - static inline SetVarBranch - gecode_SetVarBranch_from_term(YAP_Term t) - { - - if (YAP_IsAtomTerm(t)) { - if ( t == gecode_SET_VAR_SIZE_MIN) - return SET_VAR_SIZE_MIN(); - if ( t == gecode_SET_VAR_SIZE_MAX) - return SET_VAR_SIZE_MAX(); - if ( t == gecode_SET_VAR_NONE) - return SET_VAR_NONE(); - if ( t == gecode_SET_VAR_DEGREE_MIN) - return SET_VAR_DEGREE_MIN(); - if ( t == gecode_SET_VAR_DEGREE_MAX) - return SET_VAR_DEGREE_MAX(); - if ( t == gecode_SET_VAR_MIN_MIN) - return SET_VAR_MIN_MIN(); - if ( t == gecode_SET_VAR_MIN_MAX) - return SET_VAR_MIN_MAX(); - if ( t == gecode_SET_VAR_MAX_MIN) - return SET_VAR_MAX_MIN(); - if ( t == gecode_SET_VAR_MAX_MAX) - return SET_VAR_MAX_MAX(); - if ( t == gecode_SET_VAR_DEGREE_SIZE_MIN) - return SET_VAR_DEGREE_SIZE_MIN(); - if ( t == gecode_SET_VAR_DEGREE_SIZE_MAX) - return SET_VAR_DEGREE_SIZE_MAX(); - } - cerr << "unsupported SET VAR" << endl; exit(1); - } - - static YAP_Term gecode_SET_VAL_MIN_INC; - static YAP_Term gecode_SET_VAL_MIN_EXC; - static YAP_Term gecode_SET_VAL_MED_INC; - static YAP_Term gecode_SET_VAL_MED_EXC; - static YAP_Term gecode_SET_VAL_MAX_INC; - static YAP_Term gecode_SET_VAL_MAX_EXC; - - static inline SetValBranch - gecode_SetValBranch_from_term(YAP_Term t) - { - if (YAP_IsAtomTerm(t)) { - if ( t == gecode_SET_VAL_MIN_INC) - return SET_VAL_MIN_INC(); - if ( t == gecode_SET_VAL_MIN_EXC) - return SET_VAL_MIN_EXC(); - if ( t == gecode_SET_VAL_MED_INC) - return SET_VAL_MED_INC(); - if ( t == gecode_SET_VAL_MED_EXC) - return SET_VAL_MED_EXC(); - if ( t == gecode_SET_VAL_MAX_INC) - return SET_VAL_MAX_INC(); - if ( t == gecode_SET_VAL_MAX_EXC) - return SET_VAL_MAX_EXC(); - } - cerr << "unsupported INT VAL" << endl; exit(1); - } - - static inline SetBranchFilter& - gecode_SetBranchFilter_from_term(YAP_Term t) - { - return * (SetBranchFilter*) YAP_OpaqueObjectFromTerm(t); - } - - static YAP_Term gecode_INT_VAR_NONE; - static YAP_Term gecode_INT_VAR_DEGREE_MIN; - static YAP_Term gecode_INT_VAR_DEGREE_MAX; - static YAP_Term gecode_INT_VAR_MIN_MIN; - static YAP_Term gecode_INT_VAR_MIN_MAX; - static YAP_Term gecode_INT_VAR_MAX_MIN; - static YAP_Term gecode_INT_VAR_MAX_MAX; - static YAP_Term gecode_INT_VAR_SIZE_MIN; - static YAP_Term gecode_INT_VAR_SIZE_MAX; - static YAP_Term gecode_INT_VAR_DEGREE_SIZE_MIN; - static YAP_Term gecode_INT_VAR_DEGREE_SIZE_MAX; - static YAP_Term gecode_INT_VAR_REGRET_MIN_MIN; - static YAP_Term gecode_INT_VAR_REGRET_MIN_MAX; - static YAP_Term gecode_INT_VAR_REGRET_MAX_MIN; - static YAP_Term gecode_INT_VAR_REGRET_MAX_MAX; - - static inline IntVarBranch - gecode_IntVarBranch_from_term(YAP_Term t) - { - if (YAP_IsAtomTerm(t)) { - if ( t == gecode_INT_VAR_SIZE_MIN) - return INT_VAR_SIZE_MIN(); - if ( t == gecode_INT_VAR_SIZE_MAX) - return INT_VAR_SIZE_MAX(); - if ( t == gecode_INT_VAR_NONE) - return INT_VAR_NONE(); - if ( t == gecode_INT_VAR_DEGREE_MIN) - return INT_VAR_DEGREE_MIN(); - if ( t == gecode_INT_VAR_DEGREE_MAX) - return INT_VAR_DEGREE_MAX(); - if ( t == gecode_INT_VAR_MIN_MIN) - return INT_VAR_MIN_MIN(); - if ( t == gecode_INT_VAR_MIN_MAX) - return INT_VAR_MIN_MAX(); - if ( t == gecode_INT_VAR_MAX_MIN) - return INT_VAR_MAX_MIN(); - if ( t == gecode_INT_VAR_MAX_MAX) - return INT_VAR_MAX_MAX(); - if ( t == gecode_INT_VAR_DEGREE_SIZE_MIN) - return INT_VAR_DEGREE_SIZE_MIN(); - if ( t == gecode_INT_VAR_DEGREE_SIZE_MAX) - return INT_VAR_DEGREE_SIZE_MAX(); - if ( t == gecode_INT_VAR_REGRET_MIN_MIN) - return INT_VAR_REGRET_MIN_MIN(); - if ( t == gecode_INT_VAR_REGRET_MIN_MAX) - return INT_VAR_REGRET_MIN_MAX(); - if ( t == gecode_INT_VAR_REGRET_MAX_MIN) - return INT_VAR_REGRET_MAX_MIN(); - if ( t == gecode_INT_VAR_REGRET_MAX_MAX) - return INT_VAR_REGRET_MAX_MAX(); - } - cerr << "unsupported INT VAR" << endl; exit(1); - } - - static YAP_Term gecode_FLOAT_VAR_NONE; - static YAP_Term gecode_FLOAT_VAR_DEGREE_MIN; - static YAP_Term gecode_FLOAT_VAR_DEGREE_MAX; - static YAP_Term gecode_FLOAT_VAR_MIN_MIN; - static YAP_Term gecode_FLOAT_VAR_MIN_MAX; - static YAP_Term gecode_FLOAT_VAR_MAX_MIN; - static YAP_Term gecode_FLOAT_VAR_MAX_MAX; - static YAP_Term gecode_FLOAT_VAR_SIZE_MIN; - static YAP_Term gecode_FLOAT_VAR_SIZE_MAX; - static YAP_Term gecode_FLOAT_VAR_DEGREE_SIZE_MIN; - static YAP_Term gecode_FLOAT_VAR_DEGREE_SIZE_MAX; - - static inline FloatVarBranch - gecode_FloatVarBranch_from_term(YAP_Term t) - { - if (YAP_IsAtomTerm(t)) { - if ( t == gecode_FLOAT_VAR_SIZE_MIN) - return FLOAT_VAR_SIZE_MIN(); - if ( t == gecode_FLOAT_VAR_SIZE_MAX) - return FLOAT_VAR_SIZE_MAX(); - if ( t == gecode_FLOAT_VAR_NONE) - return FLOAT_VAR_NONE(); - if ( t == gecode_FLOAT_VAR_DEGREE_MIN) - return FLOAT_VAR_DEGREE_MIN(); - if ( t == gecode_FLOAT_VAR_DEGREE_MAX) - return FLOAT_VAR_DEGREE_MAX(); - if ( t == gecode_FLOAT_VAR_MIN_MIN) - return FLOAT_VAR_MIN_MIN(); - if ( t == gecode_FLOAT_VAR_MIN_MAX) - return FLOAT_VAR_MIN_MAX(); - if ( t == gecode_FLOAT_VAR_MAX_MIN) - return FLOAT_VAR_MAX_MIN(); - if ( t == gecode_FLOAT_VAR_MAX_MAX) - return FLOAT_VAR_MAX_MAX(); - if ( t == gecode_FLOAT_VAR_DEGREE_SIZE_MIN) - return FLOAT_VAR_DEGREE_SIZE_MIN(); - if ( t == gecode_FLOAT_VAR_DEGREE_SIZE_MAX) - return FLOAT_VAR_DEGREE_SIZE_MAX(); - } - cerr << "unsupported FLOAT VAR" << endl; exit(1); - } - - static YAP_Term gecode_INT_VAL_MIN; - static YAP_Term gecode_INT_VAL_MED; - static YAP_Term gecode_INT_VAL_MAX; - static YAP_Term gecode_INT_VAL_SPLIT_MIN; - static YAP_Term gecode_INT_VAL_SPLIT_MAX; - static YAP_Term gecode_INT_VAL_RANGE_MIN; - static YAP_Term gecode_INT_VAL_RANGE_MAX; - static YAP_Term gecode_INT_VALUES_MIN; - static YAP_Term gecode_INT_VALUES_MAX; - - static inline IntValBranch - gecode_IntValBranch_from_term(YAP_Term t) - { - if (YAP_IsAtomTerm(t)) { - if ( t == gecode_INT_VAL_MIN) - return INT_VAL_MIN(); - if ( t == gecode_INT_VAL_MED) - return INT_VAL_MED(); - if ( t == gecode_INT_VAL_MAX) - return INT_VAL_MAX(); - if ( t == gecode_INT_VAL_SPLIT_MIN) - return INT_VAL_SPLIT_MIN(); - if ( t == gecode_INT_VAL_SPLIT_MAX) - return INT_VAL_SPLIT_MAX(); - if ( t == gecode_INT_VAL_RANGE_MIN) - return INT_VAL_RANGE_MIN(); - if ( t == gecode_INT_VAL_RANGE_MAX) - return INT_VAL_RANGE_MAX(); - if ( t == gecode_INT_VALUES_MIN) - return INT_VALUES_MIN(); - if ( t == gecode_INT_VALUES_MAX) - return INT_VALUES_MAX(); - } - cerr << "unsupported INT VAL" << endl; exit(1); - } - - static YAP_Term gecode_FLOAT_VAL_SPLIT_MIN; - static YAP_Term gecode_FLOAT_VAL_SPLIT_MAX; - - static inline FloatValBranch - gecode_FloatValBranch_from_term(YAP_Term t) - { - if (YAP_IsAtomTerm(t)) { - if ( t == gecode_FLOAT_VAL_SPLIT_MIN) - return FLOAT_VAL_SPLIT_MIN(); - if ( t == gecode_FLOAT_VAL_SPLIT_MAX) - return FLOAT_VAL_SPLIT_MAX(); - } - cerr << "unsupported FLOAT VAL" << endl; exit(1); - } - - static inline FloatVal& - gecode_FloatVal_from_term(YAP_Term t) - { - return * (FloatVal*) YAP_OpaqueObjectFromTerm(t); - } - - static inline Symmetries& - gecode_Symmetries_from_term(YAP_Term t) - { - return * (Symmetries*) YAP_OpaqueObjectFromTerm(t); - } - - static inline IntBranchFilter& - gecode_IntBranchFilter_from_term(YAP_Term t) - { - return * (IntBranchFilter*) YAP_OpaqueObjectFromTerm(t); - } - - static inline BoolBranchFilter& - gecode_BoolBranchFilter_from_term(YAP_Term t) - { - return * (BoolBranchFilter*) YAP_OpaqueObjectFromTerm(t); - } - - static inline FloatBranchFilter& - gecode_FloatBranchFilter_from_term(YAP_Term t) - { - return * (FloatBranchFilter*) YAP_OpaqueObjectFromTerm(t); - } - - static inline SetVarValPrint& - gecode_SetVarValPrint_from_term(YAP_Term t) - { - return * (SetVarValPrint*) YAP_OpaqueObjectFromTerm(t); - } - - static inline IntVarValPrint& - gecode_IntVarValPrint_from_term(YAP_Term t) - { - return * (IntVarValPrint*) YAP_OpaqueObjectFromTerm(t); - } - - static inline BoolVarValPrint& - gecode_BoolVarValPrint_from_term(YAP_Term t) - { - return * (BoolVarValPrint*) YAP_OpaqueObjectFromTerm(t); - } - - static inline FloatVarValPrint& - gecode_FloatVarValPrint_from_term(YAP_Term t) - { - return * (FloatVarValPrint*) YAP_OpaqueObjectFromTerm(t); - } - - static YAP_opaque_tag_t gecode_engine_tag; - static YAP_opaque_handler_t gecode_engine_handler; - - static RestartMode gecode_RestartMode_from_term(YAP_Term t); - - static int gecode_new_engine(void) - { - YAP_Term arg1 = YAP_ARG1; - YAP_Term arg2 = YAP_ARG2; - YAP_Term arg3 = YAP_ARG3; - bool restart = YAP_IntOfTerm(YAP_ArgOfTerm(1, arg3)); - double threads = YAP_FloatOfTerm(YAP_ArgOfTerm(2, arg3)); - unsigned int c_d = YAP_IntOfTerm(YAP_ArgOfTerm(3, arg3)); - unsigned int a_d = YAP_IntOfTerm(YAP_ArgOfTerm(4, arg3)); - unsigned int nogoods_limit = YAP_IntOfTerm(YAP_ArgOfTerm(6, arg3)); - bool clone = ( YAP_IntOfTerm(YAP_ArgOfTerm(7, arg3)) == 0 ? FALSE : TRUE ); - RestartMode md; - YAP_Term t = YAP_ArgOfTerm(5, arg3); - if (YAP_IsAtomTerm(t)) { - md = gecode_RestartMode_from_term(t); - } else if (YAP_IsApplTerm(t)) { - md = gecode_RestartMode_from_term(YAP_MkAtomTerm(YAP_NameOfFunctor(YAP_FunctorOfTerm(t)))); - } else { - cerr << "bad engine cutoff option" << endl; exit(1); - } - Search::Cutoff* cutoff; - YAP_Term t_s, t_b; - switch (md) { - case RM_CONSTANT: - YAP_Term t_a; - if (YAP_ArityOfFunctor(YAP_FunctorOfTerm(t)) == 1 && - YAP_IsIntTerm(t_a = YAP_ArgOfTerm(1,t))) { - unsigned long int a = YAP_IntOfTerm(t_a); - cutoff = Search::Cutoff::constant(a); - } else { - cerr << "bad parameter for constant" << endl; exit(1); - } - break; - case RM_GEOMETRIC: - if (YAP_ArityOfFunctor(YAP_FunctorOfTerm(t)) == 2 && - YAP_IsIntTerm(t_s = YAP_ArgOfTerm(1,t)) && - YAP_IsIntTerm(t_b = YAP_ArgOfTerm(2,t))) { - unsigned long int s = YAP_IntOfTerm(t_s); - unsigned long int b = YAP_IntOfTerm(t_b); - cutoff = Search::Cutoff::geometric(s,b); - } else { - cerr << "bad parameter for geometric" << endl; exit(1); - } - break; - case RM_LUBY: - if (YAP_ArityOfFunctor(YAP_FunctorOfTerm(t)) == 1 && - YAP_IsIntTerm(t_s = YAP_ArgOfTerm(1,t))) { - unsigned long int s = YAP_IntOfTerm(t_s); - cutoff = Search::Cutoff::luby(s); - } else { - cerr << "bad parameter for luby" << endl; exit(1); - } - break; - case RM_LINEAR: - if (YAP_ArityOfFunctor(YAP_FunctorOfTerm(t)) == 1 && - YAP_IsIntTerm(t_s = YAP_ArgOfTerm(1,t))) { - unsigned long int s = YAP_IntOfTerm(t_s); - cutoff = Search::Cutoff::linear(s); - } else { - cerr << "bad parameter for linear" << endl; exit(1); - } - break; - default: - cutoff = NULL; - } - Search::Options opt; - opt.threads = threads; - opt.c_d = c_d; - opt.a_d = a_d; - opt.cutoff = cutoff; - opt.nogoods_limit = nogoods_limit; - opt.clone = clone; - opt.stop = NULL; - GenericSpace* space = gecode_Space_from_term(arg1); - GenericEngine* engine = space->new_engine(restart,opt); - YAP_Term y_engine = - YAP_NewOpaqueObject(gecode_engine_tag, sizeof(GenericEngine*)); - GenericEngine** ptr = - (GenericEngine**) YAP_OpaqueObjectFromTerm(y_engine); - *ptr = engine; - return YAP_Unify(arg2, y_engine); - } - - static inline GenericEngine* - gecode_engine_from_term(YAP_Term t) - { - return * (GenericEngine**) YAP_OpaqueObjectFromTerm(t); - } - - static int gecode_engine_fail_handler(void* p) - { - delete *(GenericEngine**)p; - return TRUE; - } - - static int - gecode_engine_write_handler - (void *stream_, YAP_opaque_tag_t type, void *p, int flags) - { - IOSTREAM* stream = (IOSTREAM*) stream_; - Sfprintf(stream,"", p); - return TRUE; - } - - static int gecode_engine_search(void) - { - GenericEngine* engine = gecode_engine_from_term(YAP_ARG1); - GenericSpace* space = engine->next(); - if (space) - { - YAP_Term term = gecode_term_from_space(space); - return YAP_Unify(YAP_ARG2, term); - } - else YAP_cut_fail(); - } - -#ifdef DISJUNCTOR - static int gecode_new_disjunctor(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - YAP_Term term = - YAP_NewOpaqueObject(gecode_disjunctor_tag, sizeof(YapDisjunctor)); - new (YAP_OpaqueObjectFromTerm(term)) YapDisjunctor(space); - return YAP_Unify(result, term); - } - - static int - gecode_disjunctor_write_handler - (void *stream_, YAP_opaque_tag_t type, void *p, int flags) - { - IOSTREAM* stream = (IOSTREAM*) stream_; - Sfprintf(stream,"", p); - return TRUE; - } - - static int gecode_new_clause(void) - { - YAP_Term result = YAP_ARG1; - YapDisjunctor& disj = gecode_YapDisjunctor_from_term(YAP_ARG2); - YAP_Term term = - YAP_NewOpaqueObject(gecode_disjunctor_clause_tag, sizeof(Clause)); - new (YAP_OpaqueObjectFromTerm(term)) Clause(*disj.home,disj.disj); - return YAP_Unify(result, term); - } - - static int - gecode_clause_write_handler - (void *stream_, YAP_opaque_tag_t type, void *p, int flags) - { - IOSTREAM* stream = (IOSTREAM*) stream_; - Sfprintf(stream,"", p); - return TRUE; - } - - static IntVar gecode_IntVar_from_term(GenericSpace*,YAP_Term); - static BoolVar gecode_BoolVar_from_term(GenericSpace*,YAP_Term); - static FloatVar gecode_FloatVar_from_term(GenericSpace*,YAP_Term); - static SetVar gecode_SetVar_from_term(GenericSpace*,YAP_Term); - - static int gecode_clause_intvar_forward(void) - { - Clause& clause = gecode_Clause_from_term(YAP_ARG1); - GenericSpace* outer = clause.generic_parent(); - GenericSpace* inner = clause.generic_space(); - IntVar outer_var = gecode_IntVar_from_term(outer, YAP_ARG2); - IntVar inner_var = gecode_IntVar_from_term(inner, YAP_ARG3); - clause.forward(outer_var,inner_var); - return TRUE; - } - - static int gecode_clause_boolvar_forward(void) - { - Clause& clause = gecode_Clause_from_term(YAP_ARG1); - GenericSpace* outer = clause.generic_parent(); - GenericSpace* inner = clause.generic_space(); - BoolVar outer_var = gecode_BoolVar_from_term(outer, YAP_ARG2); - BoolVar inner_var = gecode_BoolVar_from_term(inner, YAP_ARG3); - clause.forward(outer_var,inner_var); - return TRUE; - } - - static int gecode_clause_setvar_forward(void) - { - Clause& clause = gecode_Clause_from_term(YAP_ARG1); - GenericSpace* outer = clause.generic_parent(); - GenericSpace* inner = clause.generic_space(); - SetVar outer_var = gecode_SetVar_from_term(outer, YAP_ARG2); - SetVar inner_var = gecode_SetVar_from_term(inner, YAP_ARG3); - clause.forward(outer_var,inner_var); - return TRUE; - } -#endif - - static int gecode_new_intvar_from_bounds(void) - { - YAP_Term ivar = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int lo = YAP_IntOfTerm(YAP_ARG3); - int hi = YAP_IntOfTerm(YAP_ARG4); - int i = space->new_ivar(lo, hi); - YAP_Term y_i = YAP_MkIntTerm(i); - return YAP_Unify(ivar, y_i); - } - - static int gecode_new_floatvar_from_bounds(void) - { - YAP_Term ivar = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - double lo = YAP_FloatOfTerm(YAP_ARG3); - double hi = YAP_FloatOfTerm(YAP_ARG4); - int i = space->new_fvar(lo, hi); - YAP_Term y_i = YAP_MkIntTerm(i); - return YAP_Unify(ivar, y_i); - } - - static int - gecode_list_length(YAP_Term l) - { - int n = 0; - while (YAP_IsPairTerm(l)) - { - n += 1; - l = YAP_TailOfTerm(l); - } - return n; - } - - static IntSet - gecode_IntSet_from_term(YAP_Term specs) - { - int n = gecode_list_length(specs); - SPECARRAY(r,n); - int i = 0; - while (YAP_IsPairTerm(specs)) - { - YAP_Term head = YAP_HeadOfTerm(specs); - specs = YAP_TailOfTerm(specs); - SPECARRAYELEM(r,i,0) = YAP_IntOfTerm(YAP_ArgOfTerm(1, head)); - SPECARRAYELEM(r,i,1) = YAP_IntOfTerm(YAP_ArgOfTerm(2, head)); - i += 1; - } - return IntSet(SPECARRAYDEREF(r), n); - } - - static int gecode_new_intvar_from_intset(void) - { - YAP_Term ivar = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - YAP_Term specs = YAP_ARG3; - IntSet iset = gecode_IntSet_from_term(specs); - int i = space->new_ivar(iset); - return YAP_Unify(ivar, YAP_MkIntTerm(i)); - } - - static int gecode_new_boolvar(void) - { - YAP_Term bvar = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int i = space->new_bvar(); - return YAP_Unify(bvar, YAP_MkIntTerm(i)); - } - - static int gecode_new_setvar_1(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - int LubMin = YAP_IntOfTerm(YAP_ARG5); - int LubMax = YAP_IntOfTerm(YAP_ARG6); - int CardMin= YAP_IntOfTerm(YAP_ARG7); - int CardMax= YAP_IntOfTerm(YAP_ARG8); - int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_2(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - int LubMin = YAP_IntOfTerm(YAP_ARG5); - int LubMax = YAP_IntOfTerm(YAP_ARG6); - int CardMin= YAP_IntOfTerm(YAP_ARG7); - int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax,CardMin); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_3(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - int LubMin = YAP_IntOfTerm(YAP_ARG5); - int LubMax = YAP_IntOfTerm(YAP_ARG6); - int idx = space->new_svar(GlbMin,GlbMax,LubMin,LubMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_4(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - int LubMin = YAP_IntOfTerm(YAP_ARG4); - int LubMax = YAP_IntOfTerm(YAP_ARG5); - int CardMin = YAP_IntOfTerm(YAP_ARG6); - int CardMax = YAP_IntOfTerm(YAP_ARG7); - int idx = space->new_svar(Glb,LubMin,LubMax,CardMin,CardMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_5(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - int LubMin = YAP_IntOfTerm(YAP_ARG4); - int LubMax = YAP_IntOfTerm(YAP_ARG5); - int CardMin = YAP_IntOfTerm(YAP_ARG6); - int idx = space->new_svar(Glb,LubMin,LubMax,CardMin); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_6(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - int LubMin = YAP_IntOfTerm(YAP_ARG4); - int LubMax = YAP_IntOfTerm(YAP_ARG5); - int idx = space->new_svar(Glb,LubMin,LubMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_7(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); - int CardMin = YAP_IntOfTerm(YAP_ARG6); - int CardMax = YAP_IntOfTerm(YAP_ARG7); - int idx = space->new_svar(GlbMin,GlbMax,Lub,CardMin,CardMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_8(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); - int CardMin = YAP_IntOfTerm(YAP_ARG6); - int idx = space->new_svar(GlbMin,GlbMax,Lub,CardMin); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_9(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - int GlbMin = YAP_IntOfTerm(YAP_ARG3); - int GlbMax = YAP_IntOfTerm(YAP_ARG4); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG5); - int idx = space->new_svar(GlbMin,GlbMax,Lub); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_10(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); - int CardMin = YAP_IntOfTerm(YAP_ARG5); - int CardMax = YAP_IntOfTerm(YAP_ARG6); - int idx = space->new_svar(Glb,Lub,CardMin,CardMax); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_11(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); - int CardMin = YAP_IntOfTerm(YAP_ARG5); - int idx = space->new_svar(Glb,Lub,CardMin); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_new_setvar_12(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntSet Glb = gecode_IntSet_from_term(YAP_ARG3); - IntSet Lub = gecode_IntSet_from_term(YAP_ARG4); - int idx = space->new_svar(Glb,Lub); - return YAP_Unify(result, YAP_MkIntTerm(idx)); - } - - static int gecode_space_minimize(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int i = YAP_IntOfTerm(YAP_ARG2); - space->minimize(i); - return TRUE; - } - - static int gecode_space_maximize(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int i = YAP_IntOfTerm(YAP_ARG2); - space->maximize(i); - return TRUE; - } - - static int gecode_space_minimize_ratio(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int i = YAP_IntOfTerm(YAP_ARG2); - int j = YAP_IntOfTerm(YAP_ARG3); - space->minimize(i,j); - return TRUE; - } - - static int gecode_space_maximize_ratio(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - int i = YAP_IntOfTerm(YAP_ARG2); - int j = YAP_IntOfTerm(YAP_ARG3); - space->maximize(i,j); - return TRUE; - } - - static IntVar - gecode_IntVar_from_term(GenericSpace* space, YAP_Term x) - { - int i = YAP_IntOfTerm(x); - return space->get_ivar(i); - } - - static BoolVar - gecode_BoolVar_from_term(GenericSpace* space, YAP_Term x) - { - int i = YAP_IntOfTerm(x); - return space->get_bvar(i); - } - - static SetVar - gecode_SetVar_from_term(GenericSpace* space, YAP_Term x) - { - int i = YAP_IntOfTerm(x); - return space->get_svar(i); - } - - static IntVarArgs - gecode_IntVarArgs_from_term(GenericSpace* space, YAP_Term l) - { - int n = gecode_list_length(l); - IntVarArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); - v[i] = space->get_ivar(idx); - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static BoolVarArgs - gecode_BoolVarArgs_from_term(GenericSpace* space, YAP_Term l) - { - int n = gecode_list_length(l); - BoolVarArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); - v[i] = space->get_bvar(idx); - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static FloatVar - gecode_FloatVar_from_term(GenericSpace* space, YAP_Term x) - { - int i = YAP_IntOfTerm(x); - return space->get_fvar(i); - } - - static FloatVarArgs - gecode_FloatVarArgs_from_term(GenericSpace* space, YAP_Term l) - { - int n = gecode_list_length(l); - FloatVarArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); - v[i] = space->get_fvar(idx); - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static FloatValArgs - gecode_FloatValArgs_from_term(YAP_Term l) - { - int n = gecode_list_length(l); - FloatValArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - YAP_Term t = YAP_HeadOfTerm(l); - v[i] = * (FloatVal*) YAP_OpaqueObjectFromTerm(t); - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static SetVarArgs - gecode_SetVarArgs_from_term(GenericSpace* space, YAP_Term l) - { - int n = gecode_list_length(l); - SetVarArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); - v[i] = space->get_svar(idx); - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static IntArgs - gecode_IntArgs_from_term(YAP_Term l) - { - int n = gecode_list_length(l); - IntArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - int idx = YAP_IntOfTerm(YAP_HeadOfTerm(l)); - v[i] = idx; - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static IntSetArgs - gecode_IntSetArgs_from_term(YAP_Term l) - { - int n = gecode_list_length(l); - IntSetArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - IntSet s = gecode_IntSet_from_term(YAP_HeadOfTerm(l)); - v[i] = s; - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static TaskType gecode_TaskType_from_term(YAP_Term); - - static TaskTypeArgs - gecode_TaskTypeArgs_from_term(YAP_Term l) - { - int n = gecode_list_length(l); - TaskTypeArgs v(n); - int i = 0; - while (YAP_IsPairTerm(l)) - { - TaskType tt = gecode_TaskType_from_term(YAP_HeadOfTerm(l)); - v[i] = tt; - l = YAP_TailOfTerm(l); - i += 1; - } - return v; - } - - static YAP_Term gecode_TRUE; - static YAP_Term gecode_FALSE; - - static bool - gecode_bool_from_term(YAP_Term X) - { - if (X==gecode_TRUE) return true; - if (X==gecode_FALSE) return false; - cerr << "this should never happen" << endl; exit(1); - } - - static int gecode_space_use_keep_index(void) - { - YAP_Term arg1 = YAP_ARG1; - YAP_Term arg2 = YAP_ARG2; - GenericSpace* space = gecode_Space_from_term(arg1); - return YAP_Unify(arg2,(space->use_keep_index() - ?gecode_TRUE:gecode_FALSE)); - } - - static int gecode_intvar_keep(void) - { - YAP_Term arg1 = YAP_ARG1; - YAP_Term arg2 = YAP_ARG2; - YAP_Term arg3 = YAP_ARG3; - GenericSpace* space = gecode_Space_from_term(arg1); - int idx = YAP_IntOfTerm(arg2); - int kidx = space->keep_ivar(idx); - return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); - } - - static int gecode_boolvar_keep(void) - { - YAP_Term arg1 = YAP_ARG1; - YAP_Term arg2 = YAP_ARG2; - YAP_Term arg3 = YAP_ARG3; - GenericSpace* space = gecode_Space_from_term(arg1); - int idx = YAP_IntOfTerm(arg2); - int kidx = space->keep_bvar(idx); - return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); - } - - static int gecode_setvar_keep(void) - { - YAP_Term arg1 = YAP_ARG1; - YAP_Term arg2 = YAP_ARG2; - YAP_Term arg3 = YAP_ARG3; - GenericSpace* space = gecode_Space_from_term(arg1); - int idx = YAP_IntOfTerm(arg2); - int kidx = space->keep_svar(idx); - return YAP_Unify(arg3,YAP_MkIntTerm(kidx)); - } - - // INFO ON INTVARS - static int gecode_intvar_assigned(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG2); - return (x.assigned()) ? TRUE : FALSE; - } - - static int gecode_intvar_min(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.min())); - } - - static int gecode_intvar_max(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.max())); - } - - static int gecode_intvar_med(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.med())); - } - - static int gecode_intvar_val(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.val())); - } - - static int gecode_intvar_size(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.size())); - } - - static int gecode_intvar_width(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.width())); - } - - static int gecode_intvar_regret_min(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.regret_min())); - } - - static int gecode_intvar_regret_max(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.regret_max())); - } - - static YAP_Functor gecode_COMMA2; - - static int gecode_intvar_ranges(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - int n = 0; - { IntVarRanges it(x); while (it()) { ++n; ++it; } } - DYNARRAY(int,min,n); - DYNARRAY(int,max,n); - { IntVarRanges it(x); int i=0; - while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } - YAP_Term lst = YAP_TermNil(); - for (;n--;) - { - YAP_Term args[2]; - args[0] = YAP_MkIntTerm(min[n]); - args[1] = YAP_MkIntTerm(max[n]); - YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); - lst = YAP_MkPairTerm(range,lst); - } - return YAP_Unify(result,lst); - } - - static int gecode_intvar_values(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - IntVar x = gecode_IntVar_from_term(space, YAP_ARG3); - int n = x.size(); - DYNARRAY(int,a,n); - { IntVarValues it(x); int i=0; - while (it()) { a[i]=it.val(); ++it; ++i; } } - YAP_Term lst = YAP_TermNil(); - for (;n--;) - { - lst = YAP_MkPairTerm(YAP_MkIntTerm(a[n]),lst); - } - return YAP_Unify(result,lst); - } - - // INFO ON BOOLVARS - static int gecode_boolvar_assigned(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG2); - return (x.assigned()) ? TRUE : FALSE; - } - - static int gecode_boolvar_min(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.min())); - } - - static int gecode_boolvar_max(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.max())); - } - - static int gecode_boolvar_med(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.med())); - } - - static int gecode_boolvar_val(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.val())); - } - - static int gecode_boolvar_size(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.size())); - } - - static int gecode_boolvar_width(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.width())); - } - - static int gecode_boolvar_regret_min(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.regret_min())); - } - - static int gecode_boolvar_regret_max(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - BoolVar x = gecode_BoolVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.regret_max())); - } - - // INFO ON SETVARS - static int gecode_setvar_assigned(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG2); - return (x.assigned()) ? TRUE : FALSE; - } - - static int gecode_setvar_glbSize(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.glbSize())); - } - - static int gecode_setvar_lubSize(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.lubSize())); - } - - static int gecode_setvar_unknownSize(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.unknownSize())); - } - - static int gecode_setvar_cardMin(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.cardMin())); - } - - static int gecode_setvar_cardMax(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.cardMax())); - } - - static int gecode_setvar_lubMin(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.lubMin())); - } - - static int gecode_setvar_lubMax(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.lubMax())); - } - - static int gecode_setvar_glbMin(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.glbMin())); - } - - static int gecode_setvar_glbMax(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkIntTerm(x.glbMax())); - } - - static int gecode_setvar_glb_ranges(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - int n = 0; - { SetVarGlbRanges it(x); while (it()) { ++n; ++it; } } - DYNARRAY(int,min,n); - DYNARRAY(int,max,n); - { SetVarGlbRanges it(x); int i=0; - while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } - YAP_Term lst = YAP_TermNil(); - for (;n--;) - { - YAP_Term args[2]; - args[0] = YAP_MkIntTerm(min[n]); - args[1] = YAP_MkIntTerm(max[n]); - YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); - lst = YAP_MkPairTerm(range,lst); - } - return YAP_Unify(result,lst); - } - - static int gecode_setvar_lub_ranges(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - int n = 0; - { SetVarLubRanges it(x); while (it()) { ++n; ++it; } } - DYNARRAY(int,min,n); - DYNARRAY(int,max,n); - { SetVarLubRanges it(x); int i=0; - while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } - YAP_Term lst = YAP_TermNil(); - for (;n--;) - { - YAP_Term args[2]; - args[0] = YAP_MkIntTerm(min[n]); - args[1] = YAP_MkIntTerm(max[n]); - YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); - lst = YAP_MkPairTerm(range,lst); - } - return YAP_Unify(result,lst); - } - - static int gecode_setvar_unknown_ranges(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - int n = 0; - { SetVarUnknownRanges it(x); while (it()) { ++n; ++it; } } - DYNARRAY(int,min,n); - DYNARRAY(int,max,n); - { SetVarUnknownRanges it(x); int i=0; - while (it()) { min[i]=it.min(); max[i]=it.max(); ++it; ++i; } } - YAP_Term lst = YAP_TermNil(); - for (;n--;) - { - YAP_Term args[2]; - args[0] = YAP_MkIntTerm(min[n]); - args[1] = YAP_MkIntTerm(max[n]); - YAP_Term range = YAP_MkApplTerm(gecode_COMMA2,2,args); - lst = YAP_MkPairTerm(range,lst); - } - return YAP_Unify(result,lst); - } - - static int gecode_setvar_glb_values(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - DYNARRAY(YAP_Term,elems,x.glbSize()); - SetVarGlbValues it(x); - int n = 0; - while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } - YAP_Term lst = YAP_TermNil(); - for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); - return YAP_Unify(result,lst); - } - - static int gecode_setvar_lub_values(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - DYNARRAY(YAP_Term,elems,x.lubSize()); - SetVarLubValues it(x); - int n = 0; - while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } - YAP_Term lst = YAP_TermNil(); - for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); - return YAP_Unify(result,lst); - } - - static int gecode_setvar_unknown_values(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - SetVar x = gecode_SetVar_from_term(space, YAP_ARG3); - DYNARRAY(YAP_Term,elems,x.unknownSize()); - SetVarUnknownValues it(x); - int n = 0; - while (it()) { elems[n] = YAP_MkIntTerm(it.val()); ++it; ++n; } - YAP_Term lst = YAP_TermNil(); - for (;n--;) lst = YAP_MkPairTerm(elems[n],lst); - return YAP_Unify(result,lst); - } - - // INFO ON FLOATVARS - static int gecode_floatvar_assigned(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - FloatVar x = gecode_FloatVar_from_term(space, YAP_ARG2); - return (x.assigned()) ? TRUE : FALSE; - } - - static int gecode_floatvar_min(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - FloatVar x = gecode_FloatVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkFloatTerm(x.min())); - } - - static int gecode_floatvar_max(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - FloatVar x = gecode_FloatVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkFloatTerm(x.max())); - } - - static int gecode_floatvar_med(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - FloatVar x = gecode_FloatVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkFloatTerm(x.med())); - } - - static int gecode_floatvar_size(void) - { - YAP_Term result = YAP_ARG1; - GenericSpace* space = gecode_Space_from_term(YAP_ARG2); - FloatVar x = gecode_FloatVar_from_term(space, YAP_ARG3); - return YAP_Unify(result, YAP_MkFloatTerm(x.size())); - } - - static inline Reify - gecode_Reify_from_term(YAP_Term t) - { - return * (Reify*) YAP_OpaqueObjectFromTerm(t); - } - -#define gecode_int_from_term YAP_IntOfTerm - -#include "gecode_yap_cc_forward_auto_generated.icc" -#include "gecode_yap_cc_impl_auto_generated.icc" - - static YAP_opaque_tag_t gecode_reify_tag; - static YAP_opaque_handler_t gecode_reify_handler; - - static int - gecode_reify_write_handler - (void *stream_, YAP_opaque_tag_t type, void *p, int flags) - { - IOSTREAM* stream = (IOSTREAM*) stream_; - Sfprintf(stream,"", p); - return TRUE; - } - - static YAP_Term gecode_term_from_reify(Reify r) - { - YAP_Term term = - YAP_NewOpaqueObject(gecode_reify_tag, sizeof(Reify)); - Reify *ptr = - (Reify*) YAP_OpaqueObjectFromTerm(term); - *ptr = r; - return term; - } - - static int gecode_new_reify(void) - { - GenericSpace* space = gecode_Space_from_term(YAP_ARG1); - BoolVar b = gecode_BoolVar_from_term(space, YAP_ARG2); - ReifyMode flag = gecode_ReifyMode_from_term(YAP_ARG3); - Reify r = Reify(b,flag); - - YAP_Term term = gecode_term_from_reify(r); - return YAP_Unify(YAP_ARG4, term); - } - - static YAP_opaque_tag_t gecode_tupleset_tag; - static YAP_opaque_handler_t gecode_tupleset_handler; - - static int gecode_tupleset_fail_handler(void* p) - { - return TRUE; - } - - static int - gecode_tupleset_write_handler - (void *stream_, YAP_opaque_tag_t type, void *p, int flags) - { - IOSTREAM* stream = (IOSTREAM*) stream_; - Sfprintf(stream,"", p); - return TRUE; - } - - static int gecode_new_tupleset(void) - { - YAP_Term term = - YAP_NewOpaqueObject(gecode_tupleset_tag, sizeof(TupleSet)); - TupleSet *ts = new (YAP_OpaqueObjectFromTerm(term)) TupleSet; - YAP_Term t = YAP_ARG1; - while (YAP_IsPairTerm( t ) ) { - YAP_Term l = YAP_HeadOfTerm(t); - int n = gecode_list_length(l); - int i = 0; - IntArgs is(n); - while (YAP_IsPairTerm( l ) ) { - YAP_Term ll = YAP_HeadOfTerm(l); - if (!YAP_IsIntTerm(ll)) { - cerr << "non-integer on tuple set" << endl; exit(1); - } - is[i++] = YAP_IntOfTerm(ll); - l = YAP_TailOfTerm(l); - } - ts->add(is); - if (l != YAP_TermNil()) { - cerr << "non-list on tuple set" << endl; exit(1); - } - t = YAP_TailOfTerm(t); - } - if (t != YAP_TermNil()) { - cerr << "non-list on tuple set" << endl; exit(1); - } - ts->finalize(); - return YAP_Unify(YAP_ARG2, term); - } - - static YAP_opaque_tag_t gecode_dfa_tag; - static YAP_opaque_handler_t gecode_dfa_handler; - - static int gecode_dfa_fail_handler(void* p) - { - return TRUE; - } - - static int - gecode_dfa_write_handler - (void *stream_, YAP_opaque_tag_t type, void *p, int flags) - { - IOSTREAM* stream = (IOSTREAM*) stream_; - Sfprintf(stream,"", p); - return TRUE; - } - - static int gecode_new_dfa(void) - { - YAP_Term term = - YAP_NewOpaqueObject(gecode_dfa_tag, sizeof(DFA)); - // DFA ts = new (YAP_OpaqueObjectFromTerm(term)) DFA; - YAP_Term t2 = YAP_ARG2; - int s0 = YAP_IntOfTerm(t2); - YAP_Term t3 = YAP_ARG3; - int n = gecode_list_length(t3), i=0; - DFA::Transition t[n]; - while (YAP_IsPairTerm( t3 ) ) { - YAP_Term tt = YAP_HeadOfTerm(t3); - int is, sy, os; - is = YAP_IntOfTerm(YAP_ArgOfTerm(1,tt)); - sy = YAP_IntOfTerm(YAP_ArgOfTerm(2,tt)); - os = YAP_IntOfTerm(YAP_ArgOfTerm(3,tt)); - t[i++] = DFA::Transition(is, sy, os); - t3 = YAP_TailOfTerm(t3); - } - if (t3 != YAP_TermNil()) { - cerr << "non-list on DFA" << endl; exit(1); - } - YAP_Term t4 = YAP_ARG4; - n = gecode_list_length(t4)+1; - i=0; - int s[n]; - s[n-1] = -1; - while (YAP_IsPairTerm( t4 ) ) { - YAP_Term tt = YAP_HeadOfTerm(t4); - s[i++] = YAP_IntOfTerm(tt); - t4 = YAP_TailOfTerm(t4); - } - if (t4 != YAP_TermNil()) { - cerr << "non-list on DFA" << endl; exit(1); - } - new (YAP_OpaqueObjectFromTerm(term)) DFA(s0, t, s); - return YAP_Unify(YAP_ARG1, term); - } - - void gecode_init(void) - { - { YAP_Atom X= YAP_LookupAtom("true"); - gecode_TRUE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("false"); - gecode_FALSE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom(","); - YAP_AtomGetHold(X); - gecode_COMMA2 = YAP_MkFunctor(X,2); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_NONE"); - gecode_INT_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MIN"); - gecode_INT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_MAX"); - gecode_INT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MIN"); - gecode_INT_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_MIN_MAX"); - gecode_INT_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MIN"); - gecode_INT_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_MAX_MAX"); - gecode_INT_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MIN"); - gecode_INT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_SIZE_MAX"); - gecode_INT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_SIZE_MIN"); - gecode_INT_VAR_DEGREE_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_DEGREE_SIZE_MAX"); - gecode_INT_VAR_DEGREE_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MIN"); - gecode_INT_VAR_REGRET_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MIN_MAX"); - gecode_INT_VAR_REGRET_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MIN"); - gecode_INT_VAR_REGRET_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAR_REGRET_MAX_MAX"); - gecode_INT_VAR_REGRET_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAL_MIN"); - gecode_INT_VAL_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAL_MED"); - gecode_INT_VAL_MED = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAL_MAX"); - gecode_INT_VAL_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MIN"); - gecode_INT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAL_SPLIT_MAX"); - gecode_INT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MIN"); - gecode_INT_VAL_RANGE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VAL_RANGE_MAX"); - gecode_INT_VAL_RANGE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VALUES_MIN"); - gecode_INT_VALUES_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("INT_VALUES_MAX"); - gecode_INT_VALUES_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAR_NONE"); - gecode_SET_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MIN"); - gecode_SET_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_MAX"); - gecode_SET_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MIN"); - gecode_SET_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAR_MIN_MAX"); - gecode_SET_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MIN"); - gecode_SET_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAR_MAX_MAX"); - gecode_SET_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MIN"); - gecode_SET_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAR_SIZE_MAX"); - gecode_SET_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_SIZE_MIN"); - gecode_SET_VAR_DEGREE_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAR_DEGREE_SIZE_MAX"); - gecode_SET_VAR_DEGREE_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_INC"); - gecode_SET_VAL_MIN_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_INC"); - gecode_SET_VAL_MED_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_INC"); - gecode_SET_VAL_MAX_INC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAL_MIN_EXC"); - gecode_SET_VAL_MIN_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAL_MED_EXC"); - gecode_SET_VAL_MED_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("SET_VAL_MAX_EXC"); - gecode_SET_VAL_MAX_EXC = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_NONE"); - gecode_FLOAT_VAR_NONE = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_DEGREE_MIN"); - gecode_FLOAT_VAR_DEGREE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_DEGREE_MAX"); - gecode_FLOAT_VAR_DEGREE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_MIN_MIN"); - gecode_FLOAT_VAR_MIN_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_MIN_MAX"); - gecode_FLOAT_VAR_MIN_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_MAX_MIN"); - gecode_FLOAT_VAR_MAX_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_MAX_MAX"); - gecode_FLOAT_VAR_MAX_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_SIZE_MIN"); - gecode_FLOAT_VAR_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_SIZE_MAX"); - gecode_FLOAT_VAR_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_DEGREE_SIZE_MIN"); - gecode_FLOAT_VAR_DEGREE_SIZE_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAR_DEGREE_SIZE_MAX"); - gecode_FLOAT_VAR_DEGREE_SIZE_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAL_SPLIT_MIN"); - gecode_FLOAT_VAL_SPLIT_MIN = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } - { YAP_Atom X= YAP_LookupAtom("FLOAT_VAL_SPLIT_MAX"); - gecode_FLOAT_VAL_SPLIT_MAX = YAP_MkAtomTerm(X); - YAP_AtomGetHold(X); } -#include "gecode_yap_cc_init_auto_generated.icc" - // opaque spaces - gecode_space_handler.fail_handler = gecode_space_fail_handler; - gecode_space_handler.write_handler = gecode_space_write_handler; - gecode_space_tag = YAP_NewOpaqueType(&gecode_space_handler); - YAP_UserCPredicate("gecode_new_space", gecode_new_space, 1); - // opaque engines - gecode_engine_handler.fail_handler = gecode_engine_fail_handler; - gecode_engine_handler.write_handler = gecode_engine_write_handler; - gecode_engine_tag = YAP_NewOpaqueType(&gecode_engine_handler); - YAP_UserCPredicate("gecode_new_engine", gecode_new_engine, 3); - // opaque reifications - gecode_reify_handler.fail_handler = NULL; - gecode_reify_handler.write_handler = gecode_reify_write_handler; - gecode_reify_tag = YAP_NewOpaqueType(&gecode_reify_handler); - YAP_UserCPredicate("gecode_new_reify", gecode_new_reify, 4); - // Opaque TupleSet - gecode_tupleset_handler.fail_handler = gecode_tupleset_fail_handler; - gecode_tupleset_handler.write_handler = gecode_tupleset_write_handler; - gecode_tupleset_tag = YAP_NewOpaqueType(&gecode_tupleset_handler); - YAP_UserCPredicate("gecode_new_tupleset", gecode_new_tupleset, 2); - // Opaque DFA - gecode_dfa_handler.fail_handler = gecode_dfa_fail_handler; - gecode_dfa_handler.write_handler = gecode_dfa_write_handler; - gecode_dfa_tag = YAP_NewOpaqueType(&gecode_dfa_handler); - YAP_UserCPredicate("gecode_new_dfa", gecode_new_dfa, 4); -#ifdef DISJUNCTOR - // opaque disjunctors and clauses - gecode_disjunctor_handler.write_handler = gecode_disjunctor_write_handler; - gecode_disjunctor_tag = YAP_NewOpaqueType(&gecode_disjunctor_handler); - gecode_disjunctor_clause_handler.write_handler = gecode_clause_write_handler; - gecode_disjunctor_clause_tag = - YAP_NewOpaqueType(&gecode_disjunctor_clause_handler); - YAP_UserCPredicate("gecode_new_disjunctor", gecode_new_disjunctor, 2); - YAP_UserCPredicate("gecode_new_clause", gecode_new_clause, 2); - YAP_UserCPredicate("gecode_clause_intvar_forward", gecode_clause_intvar_forward, 3); - YAP_UserCPredicate("gecode_clause_boolvar_forward", gecode_clause_boolvar_forward, 3); - YAP_UserCPredicate("gecode_clause_setvar_forward", gecode_clause_setvar_forward, 3); -#endif - // backtracking search using an engine - YAP_UserBackCutCPredicate("gecode_engine_search", - gecode_engine_search, gecode_engine_search, - NULL, 2, 0); - // creating variables - YAP_UserCPredicate("gecode_new_intvar_from_bounds", - gecode_new_intvar_from_bounds, 4); - YAP_UserCPredicate("gecode_new_intvar_from_intset", - gecode_new_intvar_from_intset, 3); - YAP_UserCPredicate("gecode_new_floatvar_from_bounds", - gecode_new_floatvar_from_bounds, 4); - YAP_UserCPredicate("gecode_new_boolvar", gecode_new_boolvar, 2); - YAP_UserCPredicate("gecode_new_setvar_1", gecode_new_setvar_1, 8); - YAP_UserCPredicate("gecode_new_setvar_2", gecode_new_setvar_2, 7); - YAP_UserCPredicate("gecode_new_setvar_3", gecode_new_setvar_3, 6); - YAP_UserCPredicate("gecode_new_setvar_4", gecode_new_setvar_4, 7); - YAP_UserCPredicate("gecode_new_setvar_5", gecode_new_setvar_5, 6); - YAP_UserCPredicate("gecode_new_setvar_6", gecode_new_setvar_6, 5); - YAP_UserCPredicate("gecode_new_setvar_7", gecode_new_setvar_7, 7); - YAP_UserCPredicate("gecode_new_setvar_8", gecode_new_setvar_8, 6); - YAP_UserCPredicate("gecode_new_setvar_9", gecode_new_setvar_9, 5); - YAP_UserCPredicate("gecode_new_setvar_10", gecode_new_setvar_10, 6); - YAP_UserCPredicate("gecode_new_setvar_11", gecode_new_setvar_11, 5); - YAP_UserCPredicate("gecode_new_setvar_12", gecode_new_setvar_12, 4); - YAP_UserCPredicate("gecode_space_minimize", gecode_space_minimize, 2); - YAP_UserCPredicate("gecode_space_maximize", gecode_space_maximize, 2); - YAP_UserCPredicate("gecode_space_minimize_ratio", gecode_space_minimize_ratio, 3); - YAP_UserCPredicate("gecode_space_maximize_ratio", gecode_space_maximize_ratio, 3); - // INFO ON INTVARS - YAP_UserCPredicate("gecode_intvar_assigned", gecode_intvar_assigned, 2); - YAP_UserCPredicate("gecode_intvar_min", gecode_intvar_min, 3); - YAP_UserCPredicate("gecode_intvar_max", gecode_intvar_max, 3); - YAP_UserCPredicate("gecode_intvar_med", gecode_intvar_med, 3); - YAP_UserCPredicate("gecode_intvar_val", gecode_intvar_val, 3); - YAP_UserCPredicate("gecode_intvar_size", gecode_intvar_size, 3); - YAP_UserCPredicate("gecode_intvar_width", gecode_intvar_width, 3); - YAP_UserCPredicate("gecode_intvar_regret_min", gecode_intvar_regret_min, 3); - YAP_UserCPredicate("gecode_intvar_regret_max", gecode_intvar_regret_max, 3); - YAP_UserCPredicate("gecode_intvar_ranges", gecode_intvar_ranges, 3); - YAP_UserCPredicate("gecode_intvar_values", gecode_intvar_values, 3); - // INFO ON BOOLVARS - YAP_UserCPredicate("gecode_boolvar_assigned", gecode_boolvar_assigned, 2); - YAP_UserCPredicate("gecode_boolvar_min", gecode_boolvar_min, 3); - YAP_UserCPredicate("gecode_boolvar_max", gecode_boolvar_max, 3); - YAP_UserCPredicate("gecode_boolvar_med", gecode_boolvar_med, 3); - YAP_UserCPredicate("gecode_boolvar_val", gecode_boolvar_val, 3); - YAP_UserCPredicate("gecode_boolvar_size", gecode_boolvar_size, 3); - YAP_UserCPredicate("gecode_boolvar_width", gecode_boolvar_width, 3); - YAP_UserCPredicate("gecode_boolvar_regret_min", gecode_boolvar_regret_min, 3); - YAP_UserCPredicate("gecode_boolvar_regret_max", gecode_boolvar_regret_max, 3); - // INFO ON SETVARS - YAP_UserCPredicate("gecode_setvar_assigned", gecode_setvar_assigned, 2); - YAP_UserCPredicate("gecode_setvar_glbSize", gecode_setvar_glbSize, 3); - YAP_UserCPredicate("gecode_setvar_lubSize", gecode_setvar_lubSize, 3); - YAP_UserCPredicate("gecode_setvar_unknownSize", gecode_setvar_unknownSize, 3); - YAP_UserCPredicate("gecode_setvar_cardMin", gecode_setvar_cardMin, 3); - YAP_UserCPredicate("gecode_setvar_cardMax", gecode_setvar_cardMax, 3); - YAP_UserCPredicate("gecode_setvar_lubMin", gecode_setvar_lubMin, 3); - YAP_UserCPredicate("gecode_setvar_lubMax", gecode_setvar_lubMax, 3); - YAP_UserCPredicate("gecode_setvar_glbMin", gecode_setvar_glbMin, 3); - YAP_UserCPredicate("gecode_setvar_glbMax", gecode_setvar_glbMax, 3); - YAP_UserCPredicate("gecode_setvar_glb_ranges", gecode_setvar_glb_ranges, 3); - YAP_UserCPredicate("gecode_setvar_lub_ranges", gecode_setvar_lub_ranges, 3); - YAP_UserCPredicate("gecode_setvar_unknown_ranges", gecode_setvar_unknown_ranges, 3); - YAP_UserCPredicate("gecode_setvar_glb_values", gecode_setvar_glb_values, 3); - YAP_UserCPredicate("gecode_setvar_lub_values", gecode_setvar_lub_values, 3); - YAP_UserCPredicate("gecode_setvar_unknown_values", gecode_setvar_unknown_values, 3); - YAP_UserCPredicate("gecode_space_use_keep_index", gecode_space_use_keep_index, 2); - YAP_UserCPredicate("gecode_intvar_keep", gecode_intvar_keep, 3); - YAP_UserCPredicate("gecode_boolvar_keep", gecode_boolvar_keep, 3); - YAP_UserCPredicate("gecode_setvar_keep", gecode_setvar_keep, 3); - // INFO ON FLOATVARS - YAP_UserCPredicate("gecode_floatvar_assigned", gecode_floatvar_assigned, 2); - YAP_UserCPredicate("gecode_floatvar_min", gecode_floatvar_min, 3); - YAP_UserCPredicate("gecode_floatvar_max", gecode_floatvar_max, 3); - YAP_UserCPredicate("gecode_floatvar_med", gecode_floatvar_med, 3); - YAP_UserCPredicate("gecode_floatvar_size", gecode_floatvar_size, 3); - } -} diff --git a/library/gecode/gecode4_yap_hand_written.yap b/library/gecode/gecode4_yap_hand_written.yap deleted file mode 100644 index 2db8d68c9..000000000 --- a/library/gecode/gecode4_yap_hand_written.yap +++ /dev/null @@ -1,1094 +0,0 @@ -%% -*- prolog -*- -%%============================================================================= -%% Copyright (C) 2011 by Denys Duchier -%% -%% This program is free software: you can redistribute it and/or modify it -%% under the terms of the GNU Lesser General Public License as published by the -%% Free Software Foundation, either version 3 of the License, or (at your -%% option) any later version. -%% -%% This program is distributed in the hope that it will be useful, but WITHOUT -%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -%% more details. -%% -%% You should have received a copy of the GNU Lesser General Public License -%% along with this program. If not, see . -%%============================================================================= - -:- module(gecode, [(:=)/2, op(500, xfx, ':='), - (+=)/2, op(500, xfx, '+=')]). - -:- use_module(library(debug)). - -:- op(500, xfx, ':='). -:- op(500, xfx, '+='). -:- load_foreign_files([gecode_yap],[],gecode_init). - -is_int(X,Y) :- integer(X), Y=X. -is_int(X) :- integer(X). - -is_bool_(true,true). -is_bool_(false,false). -is_bool(X,Y) :- nonvar(X), Y=X. -is_bool(X) :- is_bool(X,_). - -is_IntVar_('IntVar'(I,K),N) :- - integer(I), - integer(K), - nb_getval(gecode_space_use_keep_index,B), - (B=true -> N=K ; N=I). -is_FloatVar_('FloatVar'(I,K),N) :- - integer(I), - integer(K), - nb_getval(gecode_space_use_keep_index,B), - (B=true -> N=K ; N=I). -is_BoolVar_('BoolVar'(I,K),N) :- - integer(I), - integer(K), - nb_getval(gecode_space_use_keep_index,B), - (B=true -> N=K ; N=I). -is_SetVar_('SetVar'(I,K),N) :- - integer(I), - integer(K), - nb_getval(gecode_space_use_keep_index,B), - (B=true -> N=K ; N=I). - -is_IntVar(X,I) :- nonvar(X), is_IntVar_(X,I). -is_BoolVar(X,I) :- nonvar(X), is_BoolVar_(X,I). -is_FloatVar(X,I) :- nonvar(X), is_FloatVar_(X,I). -is_SetVar(X,I) :- nonvar(X), is_SetVar_(X,I). - -is_IntVar(X) :- is_IntVar(X,_). -is_BoolVar(X) :- is_BoolVar(X,_). -is_FloatVar(X) :- is_FloatVar(X,_). -is_SetVar(X) :- is_SetVar(X,_). - -is_IntVarArgs_([],[]). -is_IntVarArgs_([H|T],[H2|T2]) :- is_IntVar(H,H2), is_IntVarArgs(T,T2). -is_IntVarArgs(X,Y) :- nonvar(X), is_IntVarArgs_(X,Y). -is_IntVarArgs(X) :- \+ \+ is_IntVarArgs(X,_). - -is_BoolVarArgs_([],[]). -is_BoolVarArgs_([H|T],[H2|T2]) :- is_BoolVar(H,H2), is_BoolVarArgs(T,T2). -is_BoolVarArgs(X,Y) :- nonvar(X), is_BoolVarArgs_(X,Y). -is_BoolVarArgs(X) :- \+ \+ is_BoolVarArgs(X,_). - -is_FloatVarArgs_([],[]). -is_FloatVarArgs_([H|T],[H2|T2]) :- is_FloatVar(H,H2), is_FloatVarArgs(T,T2). -is_FloatVarArgs(X,Y) :- nonvar(X), is_FloatVarArgs_(X,Y). -is_FloatVarArgs(X) :- \+ \+ is_FloatVarArgs(X,_). - -is_FloatValArgs_([],[]). -is_FloatValArgs_([H|T],[H2|T2]) :- is_FloatVar(H,H2), is_FloatValArgs(T,T2). -is_FloatValArgs(X,Y) :- nonvar(X), is_FloatValArgs_(X,Y). -is_FloatValArgs(X) :- \+ \+ is_FloatValArgs(X,_). - -is_SetVarArgs_([],[]). -is_SetVarArgs_([H|T],[H2|T2]) :- is_SetVar(H,H2), is_SetVarArgs(T,T2). -is_SetVarArgs(X,Y) :- nonvar(X), is_SetVarArgs_(X,Y). -is_SetVarArgs(X) :- \+ \+ is_SetVarArgs(X,_). - -is_IntArgs_([],[]). -is_IntArgs_([H|T],[H|T2]) :- integer(H), is_IntArgs(T,T2). -is_IntArgs(X,Y) :- nonvar(X), is_IntArgs_(X,Y). -is_IntArgs(X) :- \+ \+ is_IntArgs(X,_). - -is_IntSharedArray(X) :- is_IntArgs(X). -is_IntSharedArray(X,Y) :- is_IntArgs(X,Y). - -is_TaskTypeArgs_([],[]). -is_TaskTypeArgs_([H|T],[H2|T2]) :- is_TaskType(H,H2), is_TaskTypeArgs(T,T2). -is_TaskTypeArgs(X,Y) :- nonvar(X), is_TaskTypeArgs_(X,Y). -is_TaskTypeArgs(X) :- \+ \+ is_TaskTypeArgs(X,_). - -is_IntSet_('IntSet'(L),L). -is_IntSet(X,Y) :- nonvar(X), is_IntSet_(X,Y). -is_IntSet(X) :- is_IntSet(X,_). - -is_IntSetArgs_([],[]). -is_IntSetArgs_([H|T],[H2|T2]) :- is_IntSet(H,H2), is_IntSetArgs(T,T2). -is_IntSetArgs(X,Y) :- nonvar(X), is_IntSetArgs_(X,Y). -is_IntSetArgs(X) :- \+ \+ is_IntSetArgs(X,_). - -is_TupleSet_('TupleSet'(TS),TS). -is_TupleSet(X,Y) :- nonvar(X), is_TupleSet_(X,Y). -is_TupleSet(X) :- is_TupleSet(X,_). - -is_DFA_('DFA'(TS),TS). -is_DFA(X,Y) :- nonvar(X), is_DFA_(X,Y). -is_DFA(X) :- is_DFA(X,_). - -new_intset(X,I,J) :- intset(X,I,J). -new_intset(X,L) :- intset(X,L). - -intset(X, I, J) :- - integer(I), - integer(J), - X='IntSet'([(I,J)]). -intset(X, L) :- - is_list_of_intset_specs(L,L2), - X='IntSet'(L2). - -is_list_of_intset_specs(X,Y) :- - nonvar(X), is_list_of_intset_specs_(X,Y). -is_list_of_intset_specs_([],[]). -is_list_of_intset_specs_([H|T],[H2|T2]) :- - is_intset_spec(H,H2), - is_list_of_intset_specs(T,T2). - -is_intset_spec(X,Y) :- nonvar(X), is_intset_spec_(X,Y). -is_intset_spec_((I,J),(I,J)) :- !, integer(I), integer(J). -is_intset_spec_(I,(I,I)) :- integer(I). - -assert_var(X,Y) :- - var(X) -> X=Y; throw(gecode_error(expected(var))). -assert_is_int(X,Y) :- - integer(X) -> X=Y ; throw(gecode_error(expected(int))). -assert_is_float(X,Y) :- - float(X) -> X=Y ; throw(gecode_error(expected(int))). -assert_is_Space(X,Y) :- - is_Space(X,Y) -> true ; throw(gecode_error(expected(space))). -assert_is_IntSet(X,Y) :- - is_IntSet(X,Y) -> true ; throw(gecode_error(expected(intset))). -assert_is_TupleSet(X,Y) :- - is_TupleSet(X,Y) -> true ; throw(gecode_error(expected(tupleset))). -assert_is_DFA(X,Y) :- - is_DFA(X,Y) -> true ; throw(gecode_error(expected(dfa))). -assert_is_IntVar(X,Y) :- - is_IntVar(X,Y) -> true ; throw(gecode_error(expected(intvar))). -assert_is_BoolVar(X,Y) :- - is_BoolVar(X,Y) -> true ; throw(gecode_error(expected(boolvar))). -assert_is_FloatVar(X,Y) :- - is_FloatVar(X,Y) -> true ; throw(gecode_error(expected(floatvar))). -assert_is_SetVar(X,Y) :- - is_SetVar(X,Y) -> true ; throw(gecode_error(expected(setvar))). -assert_is_IntArgs(X,Y) :- - is_IntArgs(X,Y) -> true ; throw(gecode_error(expected(intargs))). -assert_is_IntVarArgs(X,Y) :- - is_IntVarArgs(X,Y) -> true ; throw(gecode_error(expected(intvarargs))). -assert_is_BoolVarArgs(X,Y) :- - is_BoolVarArgs(X,Y) -> true ; throw(gecode_error(expected(boolvarargs))). -assert_is_FloatVarArgs(X,Y) :- - is_FloatVarArgs(X,Y) -> true ; throw(gecode_error(expected(floatvarargs))). -assert_is_FloatValArgs(X,Y) :- - is_FloatValArgs(X,Y) -> true ; throw(gecode_error(expected(floatvarargs))). -assert_is_SetVarArgs(X,Y) :- - is_SetVarArgs(X,Y) -> true ; throw(gecode_error(expected(setvarargs))). -assert_is_ReifyMode(X,Y) :- - is_ReifyMode(X,Y) -> true ; throw(gecode_error(expected(reifymode))). - -assert_var(X) :- assert_var(X,_). -assert_is_int(X) :- assert_is_int(X,_). -assert_is_float(X) :- assert_is_float(X,_). -assert_is_Space(X) :- assert_is_Space(X,_). -assert_is_IntSet(X) :- assert_is_IntSet(X,_). -assert_is_IntVar(X) :- assert_is_IntVar(X,_). -assert_is_BoolVar(X) :- assert_is_BoolVar(X,_). -assert_is_FloatVar(X) :- assert_is_FloatVar(X,_). -assert_is_SetVar(X) :- assert_is_SetVar(X,_). -assert_is_IntArgs(X) :- assert_is_IntArgs(X,_). -assert_is_IntVarArgs(X) :- assert_is_IntVarArgs(X,_). -assert_is_BoolVarArgs(X) :- assert_is_BoolVarArgs(X,_). -assert_is_FloatVarArgs(X) :- assert_is_FloatVarArgs(X,_). -assert_is_FloatValArgs(X) :- assert_is_FloatValArgs(X,_). -assert_is_SetVarArgs(X) :- assert_is_SetVarArgs(X,_). - -%% Var and Val Branching changed in Gecode 4 to be done as a set of functions, -%% not as an enum. - -is_IntVarBranch_('INT_VAR_NONE'). -is_IntVarBranch_('INT_VAR_RND'(_)). -is_IntVarBranch_('INT_VAR_MERIT_MIN'(_)). -is_IntVarBranch_('INT_VAR_MERIT_MAX'(_)). -is_IntVarBranch_('INT_VAR_DEGREE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_MIN'(_)). -is_IntVarBranch_('INT_VAR_AFC_MAX'(_)). -is_IntVarBranch_('INT_VAR_ACTIVITY_MIN'(_)). -is_IntVarBranch_('INT_VAR_ACTIVITY_MAX'(_)). -is_IntVarBranch_('INT_VAR_MIN_MIN'). -is_IntVarBranch_('INT_VAR_MIN_MAX'). -is_IntVarBranch_('INT_VAR_MAX_MIN'). -is_IntVarBranch_('INT_VAR_MAX_MAX'). -is_IntVarBranch_('INT_VAR_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_DEGREE_SIZE_MIN'). -is_IntVarBranch_('INT_VAR_DEGREE_SIZE_MAX'). -is_IntVarBranch_('INT_VAR_AFC_SIZE_MIN'(_)). -is_IntVarBranch_('INT_VAR_AFC_SIZE_MAX'(_)). -is_IntVarBranch_('INT_VAR_ACTIVITY_SIZE_MIN'(_)). -is_IntVarBranch_('INT_VAR_ACTIVITY_SIZE_MAX'(_)). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MIN_MAX'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MIN'). -is_IntVarBranch_('INT_VAR_REGRET_MAX_MAX'). - -is_IntVarBranch_(X, X) :- - is_IntVarBranch_(X). - -is_IntVarBranch(X,Y) :- nonvar(X), is_IntVarBranch_(X,Y). -is_IntVarBranch(X) :- is_IntVarBranch(X,_). - -is_SetVarBranch_('SET_VAR_NONE'). -is_SetVarBranch_('SET_VAR_RND'(_)). -is_SetVarBranch_('SET_VAR_MERIT_MIN'(_)). -is_SetVarBranch_('SET_VAR_MERIT_MAX'(_)). -is_SetVarBranch_('SET_VAR_DEGREE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_MIN'(_)). -is_SetVarBranch_('SET_VAR_AFC_MAX'(_)). -is_SetVarBranch_('SET_VAR_ACTIVITY_MIN'(_)). -is_SetVarBranch_('SET_VAR_ACTIVITY_MAX'(_)). -is_SetVarBranch_('SET_VAR_MIN_MIN'). -is_SetVarBranch_('SET_VAR_MIN_MAX'). -is_SetVarBranch_('SET_VAR_MAX_MIN'). -is_SetVarBranch_('SET_VAR_MAX_MAX'). -is_SetVarBranch_('SET_VAR_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_DEGREE_SIZE_MIN'). -is_SetVarBranch_('SET_VAR_DEGREE_SIZE_MAX'). -is_SetVarBranch_('SET_VAR_AFC_SIZE_MIN'(_)). -is_SetVarBranch_('SET_VAR_AFC_SIZE_MAX'(_)). -is_SetVarBranch_('SET_VAR_ACTIVITY_SIZE_MIN'(_)). -is_SetVarBranch_('SET_VAR_ACTIVITY_SIZE_MAX'(_)). - -is_SetVarBranch_(X, X) :- - is_SetVarBranch_(X). - -is_SetVarBranch(X,Y) :- nonvar(X), is_SetVarBranch_(X,Y). -is_SetVarBranch(X) :- is_SetVarBranch(X,_). - -is_FloatVarBranch_('FLOAT_VAR_NONE'). -is_FloatVarBranch_('FLOAT_VAR_RND'(_)). -is_FloatVarBranch_('FLOAT_VAR_MERIT_MIN'(_)). -is_FloatVarBranch_('FLOAT_VAR_MERIT_MAX'(_)). -is_FloatVarBranch_('FLOAT_VAR_DEGREE_MIN'). -is_FloatVarBranch_('FLOAT_VAR_DEGREE_MAX'). -is_FloatVarBranch_('FLOAT_VAR_AFC_MIN'(_)). -is_FloatVarBranch_('FLOAT_VAR_AFC_MAX'(_)). -is_FloatVarBranch_('FLOAT_VAR_ACTIVITY_MIN'(_)). -is_FloatVarBranch_('FLOAT_VAR_ACTIVITY_MAX'(_)). -is_FloatVarBranch_('FLOAT_VAR_MIN_MIN'). -is_FloatVarBranch_('FLOAT_VAR_MIN_MAX'). -is_FloatVarBranch_('FLOAT_VAR_MAX_MIN'). -is_FloatVarBranch_('FLOAT_VAR_MAX_MAX'). -is_FloatVarBranch_('FLOAT_VAR_SIZE_MIN'). -is_FloatVarBranch_('FLOAT_VAR_SIZE_MAX'). -is_FloatVarBranch_('FLOAT_VAR_DEGREE_SIZE_MIN'). -is_FloatVarBranch_('FLOAT_VAR_DEGREE_SIZE_MAX'). -is_FloatVarBranch_('FLOAT_VAR_AFC_SIZE_MIN'(_)). -is_FloatVarBranch_('FLOAT_VAR_AFC_SIZE_MAX'(_)). -is_FloatVarBranch_('FLOAT_VAR_ACTIVITY_SIZE_MIN'(_)). -is_FloatVarBranch_('FLOAT_VAR_ACTIVITY_SIZE_MAX'(_)). - -is_FloatVarBranch_(X, X) :- - is_FloatVarBranch_(X). - -is_FloatVarBranch(X,Y) :- nonvar(X), is_FloatVarBranch_(X,Y). -is_FloatVarBranch(X) :- is_FloatVarBranch(X,_). - -is_IntValBranch_('INT_VAL_RND'(_)). -is_IntValBranch_('INT_VAL'(_,_)). -is_IntValBranch_('INT_VAL_MIN'). -is_IntValBranch_('INT_VAL_MED'). -is_IntValBranch_('INT_VAL_MAX'). -is_IntValBranch_('INT_VAL_SPLIT_MIN'). -is_IntValBranch_('INT_VAL_SPLIT_MAX'). -is_IntValBranch_('INT_VAL_RANGE_MIN'). -is_IntValBranch_('INT_VAL_RANGE_MAX'). -is_IntValBranch_('INT_VALUES_MIN'). -is_IntValBranch_('INT_NEAR_MIN'(_)). -is_IntValBranch_('INT_NEAR_MAX'(_)). -is_IntValBranch_('INT_NEAR_INC'(_)). -is_IntValBranch_('INT_NEAR_DEC'(_)). - -is_IntValBranch_(X,X) :- is_IntValBranch_(X). - -is_IntValBranch(X,Y) :- nonvar(X), is_IntValBranch_(X,Y). -is_IntValBranch(X) :- is_IntValBranch(X,_). - -is_SetValBranch_('SET_VAL_RND_INC'(_)). -is_SetValBranch_('SET_VAL_RND_EXC'(_)). -is_SetValBranch_('SET_VAL'(_,_)). -is_SetValBranch_('SET_VAL_MIN_INC'). -is_SetValBranch_('SET_VAL_MIN_EXC'). -is_SetValBranch_('SET_VAL_MED_INC'). -is_SetValBranch_('SET_VAL_MED_EXC'). -is_SetValBranch_('SET_VAL_MAX_INC'). -is_SetValBranch_('SET_VAL_MAX_EXC'). - -is_SetValBranch_(X,X) :- is_SetValBranch_(X). - -is_SetValBranch(X,Y) :- nonvar(X), is_SetValBranch_(X,Y). -is_SetValBranch(X) :- is_SetValBranch(X,_). - -is_FloatValBranch_('FLOAT_VAL'(_,_)). -is_FloatValBranch_('FLOAT_VAL_SPLIT_RND'(_)). -is_FloatValBranch_('FLOAT_VAL_SPLIT_MIN'). -is_FloatValBranch_('FLOAT_VAL_SLIT_MAX'). - -is_FloatValBranch_(X,X) :- is_FloatValBranch_(X). - -is_FloatValBranch(X,Y) :- nonvar(X), is_FloatValBranch_(X,Y). -is_FloatValBranch(X) :- is_FloatValBranch(X,_). - - -new_space(Space) :- - assert_var(Space), - gecode_new_space(Space_), - Space='Space'(Space_). - -%% checking that an argument is a space sets a global variable -%% indicating whether variables need to be translated to their -%% original index or to their "keep" index. -%% -%% these bindings are going to take advantage of the fact that, -%% when a space is involved, it is checked first, thus setting -%% this global variable. subsequent accesses to variables are -%% then correctly translated. - -is_Space_('Space'(X),X) :- - gecode_space_use_keep_index(X,B), - nb_setval(gecode_space_use_keep_index,B). -is_Space(X,Y) :- nonvar(X), is_Space_(X,Y). -is_Space(X) :- is_Space(X,_). - -is_Reify_('Reify'(X),X). -is_Reify(X,Y) :- nonvar(X), is_Reify_(X,Y). -is_Reify(X) :- is_Reify(X,_). - -%% AUTOGENERATE ALL VARIANTS LATER! - -new_intvars([], _Space, _Lo, _Hi). -new_intvars([IVar|IVars], Space, Lo, Hi) :- - new_intvar(IVar, Space, Lo, Hi), - new_intvars(IVars, Space, Lo, Hi). - -new_intvars([], _Space, _IntSet). -new_intvars([IVar|IVars], Space, IntSet) :- - new_intvar(IVar, Space, IntSet), - new_intvars(IVars, Space, IntSet). - -new_boolvars([], _Space). -new_boolvars([BVar|BVars], Space) :- - new_boolvar(BVar, Space), - new_boolvars(BVars, Space). - -new_setvars([], _Space, _X1, _X2, _X3, _X4, _X5, _X6). -new_setvars([SVar|SVars], Space, X1, X2, X3, X4, X5, X6) :- - new_setvar(SVar, Space, X1, X2, X3, X4, X5, X6), - new_setvars(SVars, Space, X1, X2, X3, X4, X5, X6). - -new_setvars([], _Space, _X1, _X2, _X3, _X4, _X5). -new_setvars([SVar|SVars], Space, X1, X2, X3, X4, X5) :- - new_setvar(SVar, Space, X1, X2, X3, X4, X5), - new_setvars(SVars, Space, X1, X2, X3, X4, X5). - -new_setvars([], _Space, _X1, _X2, _X3, _X4). -new_setvars([SVar|SVars], Space, X1, X2, X3, X4) :- - new_setvar(SVar, Space, X1, X2, X3, X4), - new_setvars(SVars, Space, X1, X2, X3, X4). - -new_setvars([], _Space, _X1, _X2, _X3). -new_setvars([SVar|SVars], Space, X1, X2, X3) :- - new_setvar(SVar, Space, X1, X2, X3), - new_setvars(SVars, Space, X1, X2, X3). - -new_setvars([], _Space, _X1, _X2). -new_setvars([SVar|SVars], Space, X1, X2) :- - new_setvar(SVar, Space, X1, X2), - new_setvars(SVars, Space, X1, X2). - -%% AUTOGENERATE LATER - -assert_integer(X) :- assert_is_int(X). - -new_intvar(IVar, Space, Lo, Hi) :- !, - assert_var(IVar), - assert_is_Space_or_Clause(Space,Space_), - assert_integer(Lo), - assert_integer(Hi), - gecode_new_intvar_from_bounds(Idx,Space_,Lo,Hi), - IVar='IntVar'(Idx,-1). -new_intvar(IVar, Space, IntSet) :- !, - assert_var(IVar), - assert_is_Space_or_Clause(Space,Space_), - assert_is_IntSet(IntSet, L), - gecode_new_intvar_from_intset(Idx,Space_,L), - IVar='IntVar'(Idx,-1). - -new_floatvar(FVar, Space, Lo, Hi) :- !, - assert_var(FVar), - assert_is_Space_or_Clause(Space,Space_), - assert_float(Lo), - assert_float(Hi), - gecode_new_floatvar_from_bounds(Idx,Space_,Lo,Hi), - FVar='FloatVar'(Idx,-1). - -new_boolvar(BVar, Space) :- !, - assert_var(BVar), - assert_is_Space_or_Clause(Space,Space_), - gecode_new_boolvar(Idx,Space_), - BVar='BoolVar'(Idx,-1). - -%% (GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax) 6 new_setvar_1 -%% (GlbMin,GlbMax,LubMin,LubMax,CardMin) 5 new_setvar_2 -%% (GlbMin,GlbMax,LubMin,LubMax) 4 new_setvar_3 -%% (Glb,LubMin,LubMax,CardMin,CardMax) 5 new_setvar_4 -%% (Glb,LubMin,LubMax,CardMin) 4 new_setvar_5 -%% (Glb,LubMin,LubMax) 3 new_setvar_6 -%% (GlbMin,GlbMax,Lub,CardMin,CardMax) 5 new_setvar_7 -%% (GlbMin,GlbMax,Lub,CardMin) 4 new_setvar_8 -%% (GlbMin,GlbMax,Lub) 3 new_setvar_9 -%% (Glb,Lub,CardMin,CardMax) 4 new_setvar_10 -%% (Glb,Lub,CardMin) 3 new_setvar_11 -%% (Glb,Lub) 2 new_setvar_12 - -%% 6 arguments -%% (GlbMin,GlbMax,LubMin,LubMax,CardMin,CardMax) 6 new_setvar_1 -new_setvar(SVar, Space, GlbMin, GlbMax, LubMin, LubMax, CardMin, CardMax) :- - assert_var(SVar), - assert_is_Space_or_Clause(Space,Space_), - assert_integer(GlbMin), - assert_integer(GlbMax), - assert_integer(LubMin), - assert_integer(LubMax), - assert_integer(CardMin), - assert_integer(CardMax), - gecode_new_setvar(Idx, Space_, GlbMin, GlbMax, LubMin, LubMax, CardMin, CardMax), - SVar='SetVar'(Idx,-1). - -%% 5 arguments -%% (GlbMin,GlbMax,LubMin,LubMax,CardMin) 5 new_setvar_2 -%% (Glb,LubMin,LubMax,CardMin,CardMax) 5 new_setvar_4 -%% (GlbMin,GlbMax,Lub,CardMin,CardMax) 5 new_setvar_7 -new_setvar(SVar, Space, X1, X2, X3, X4, X5) :- - assert_var(SVar), - assert_is_Space_or_Clause(Space,Space_), - (integer(X1) - -> - assert_integer(X2), - assert_integer(X4), - assert_integer(X5), - (is_IntSet(X3,X3_) - -> gecode_new_setvar_7(Idx,Space_,X1,X2,X3_,X4,X5) - ; gecode_new_setvar_2(Idx,Space_,X1,X2,X3,X4,X5)) - ; - assert_is_IntSet(X1,X1_), - assert_integer(X2), - assert_integer(X3), - assert_integer(X4), - assert_integer(X5), - gecode_new_setvar_4(Idx,Space_,X1_,X2,X3,X4,X5)), - SVar='SetVar'(Idx,-1). - -%% 4 arguments -%% (GlbMin,GlbMax,LubMin,LubMax) 4 new_setvar_3 -%% (Glb,LubMin,LubMax,CardMin) 4 new_setvar_5 -%% (GlbMin,GlbMax,Lub,CardMin) 4 new_setvar_8 -%% (Glb,Lub,CardMin,CardMax) 4 new_setvar_10 -new_setvar(SVar,Space,X1,X2,X3,X4) :- - assert_var(SVar), - assert_is_Space_or_Clause(Space,Space_), - assert_integer(X4), - (is_IntSet(X1,X1_) - -> (is_IntSet(X2,X2_) - -> - assert_integer(X3), - gecode_new_setvar_10(Idx,Space_,X1_,X2_,X3,X4) - ; - assert_integer(X2), - assert_integer(X3), - gecode_new_setvar_5(Idx,Space_,X1_,X2,X3,X4)) - ; - assert_integer(X1), - assert_integer(X2), - (is_IntSet(X3,X3_) - -> - gecode_new_setvar_8(Idx,Space_,X1,X2,X3_,X4) - ; - assert_integer(X3), - gecode_new_setvar_3(Idx,Space_,X1,X2,X3,X4))), - SVar='SetVar'(Idx,-1). - -%% 3 arguments -%% (Glb,LubMin,LubMax) 3 new_setvar_6 -%% (GlbMin,GlbMax,Lub) 3 new_setvar_9 -%% (Glb,Lub,CardMin) 3 new_setvar_11 -new_setvar(SVar,Space,X1,X2,X3) :- - assert_var(SVar), - assert_is_Space_or_Clause(Space,Space_), - (is_IntSet(X1,X1_) - -> (is_IntSet(X2,X2_) - -> - assert_integer(X3), - gecode_new_setvar_11(Idx,Space_,X1_,X2_,X3) - ; - assert_integer(X2), - assert_integer(X3), - gecode_new_setvar_6(Idx,Space_,X1_,X2,X3)) - ; - assert_integer(X1), - assert_integer(X2), - assert_is_IntSet(X3,X3_), - gecode_new_setvar_9(Idx,Space_,X1,X2,X3_)), - SVar='SetVar'(Idx,-1). - -%% 2 arguments -%% (Glb,Lub) 2 new_setvar_12 -new_setvar(SVar,Space,X1,X2) :- - assert_var(SVar), - assert_is_Space_or_Clause(Space,Space_), - assert_is_IntSet(X1,X1_), - assert_is_IntSet(X2,X2_), - gecode_new_setvar_12(Idx,Space_,X1_,X2_), - SVar='SetVar'(Idx,-1). - -new_tupleset( TupleSet, List ) :- - gecode_new_tupleset(List, TupleSet_), - TupleSet = 'TupleSet'(TupleSet_). - -new_dfa( DFA, S0, List, Finals ) :- - gecode_new_dfa(DFA_, S0, List, Finals), - DFA = 'DFA'(DFA_). - - -minimize(Space,IVar) :- - assert_is_Space(Space,Space_), - assert_is_IntVar(IVar,IVar_), - gecode_space_minimize(Space_,IVar_). -maximize(Space,IVar) :- - assert_is_Space(Space,Space_), - assert_is_IntVar(IVar,IVar_), - gecode_space_maximize(Space_,IVar_). -minimize(Space,IVar1,IVar2) :- - assert_is_Space(Space,Space_), - assert_is_IntVar(IVar1,IVar1_), - assert_is_IntVar(IVar2,IVar2_), - gecode_space_minimize_ratio(Space_,IVar1_,IVar2_). -maximize(Space,IVar1,IVar2) :- - assert_is_Space(Space,Space_), - assert_is_IntVar(IVar1,IVar1_), - assert_is_IntVar(IVar2,IVar2_), - gecode_space_maximize_ratio(Space_,IVar1_,IVar2_). - -reify(Space,BVar,Mode,R) :- - assert_is_Space(Space,Space_), - assert_is_BoolVar(BVar,BVar_), - assert_is_ReifyMode(Mode,Mode_), - assert_var(R), - gecode_new_reify(Space_,BVar_,Mode_,R_), - R = 'Reify'(R_). - -gecode_search_options_init(search_options(0,1.0,8,2,'RM_NONE',0,1,0)). -gecode_search_options_offset(restart,1). -gecode_search_options_offset(threads,2). -gecode_search_options_offset(c_d ,3). -gecode_search_options_offset(a_d ,4). -gecode_search_options_offset(cutoff, 5). -gecode_search_options_offset(nogoods_limit, 6). -gecode_search_options_offset(clone, 7). -gecode_search_options_offset(stop, 8). % unimplemented - -gecode_search_option_set(O,V,R) :- - gecode_search_options_offset(O,I), - setarg(I,R,V). - -gecode_search_options_from_alist(L,R) :- - gecode_search_options_init(R), - gecode_search_options_process_alist(L,R). - -gecode_search_options_process_alist([], _R). -gecode_search_options_process_alist([H|T], R) :- !, - gecode_search_options_process1(H, R), - gecode_search_options_process_alist(T, R). - -gecode_search_options_process1(restart,R) :- !, - gecode_search_option_set(restart,1,R). -gecode_search_options_process1(threads=N,R) :- !, - (integer(N) -> V is float(N) - ; (float(N) -> V=N - ; throw(bad_search_option_value(threads=N)))), - gecode_search_option_set(threads,V,R). -gecode_search_options_process1(c_d=N,R) :- !, - (integer(N) -> V=N - ; throw(bad_search_option_value(c_d=N))), - gecode_search_option_set(c_d,V,R). -gecode_search_options_process1(a_d=N,R) :- !, - (integer(N) -> V=N - ; throw(bad_search_option_value(a_d=N))), - gecode_search_option_set(a_d,V,R). -gecode_search_options_process1(cutoff=C,R) :- !, - (is_RestartMode(C,C_) -> V=C_ - ; throw(bad_search_option_value(cutoff=C))), - gecode_search_option_set(cutoff,V,R). -gecode_search_options_process1(nogoods_limit=N,R) :- !, - (integer(N), N >= 0 -> V=N - ; throw(bad_search_option_value(nogoods_limit=N))), - gecode_search_option_set(nogoods_limit,V,R). -gecode_search_options_process1(clone=N,R) :- !, - ((N == 0 ; N == 1)-> V=N - ; throw(bad_search_option_value(clone=N))), - gecode_search_option_set(clone,V,R). -gecode_search_options_process1(O,_) :- - throw(gecode_error(unrecognized_search_option(O))). - -search(Space, Solution) :- - search(Space, Solution, []). - -search(Space, Solution, Alist) :- - assert_is_Space(Space,Space_), - assert_var(Solution), - gecode_search_options_from_alist(Alist,O), - gecode_new_engine(Space_,Engine_,O), - gecode_engine_search(Engine_,Solution_), - Solution='Space'(Solution_). - - -%% INSPECTING VARIABLES - -get_for_vars([],_Space,[],_F). -get_for_vars([V|Vs],Space,[V2|V2s],F) :- - call_with_args(F,V,Space,V2), - get_for_vars(Vs,Space,V2s,F). - -get_assigned(Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_assigned(Space_,Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_assigned(Space_,Var_) - ; is_FloatVar(Var,Var_) - -> gecode_floatvar_assigned(Space_,Var_) - ; is_SetVar(Var,Var_) - -> gecode_setvar_assigned(Space_,Var_) - ; throw(gecode_error(expected(variable)))). - -get_min(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_min(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_min(X, Space_, Var_) - ; is_FloatVar(Var,Var_) - -> gecode_floatvar_min(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_min)). - -get_max(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_max(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_max(X, Space_, Var_) - ; is_FloatVar(Var,Var_) - -> gecode_floatvar_max(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_max)). - -get_med(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_med(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_med(X, Space_, Var_) - ; is_FloatVar(Var,Var_) - -> gecode_floatvar_med(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_med)). - -get_val(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_val(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_val(X, Space_, Var_) - ; is_FloatVar(Var,Var_) - -> gecode_floatvar_val(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_val)). - -get_size(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_size(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_size(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_size)). - -get_width(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_width(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_width(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_width)). - -get_regret_min(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_regret_min(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_regret_min(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_regret_min)). - -get_regret_max(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_regret_max(X, Space_, Var_) - ; is_BoolVar(Var,Var_) - -> gecode_boolvar_regret_max(X, Space_, Var_) - ; get_for_vars(X, Space, Var, gecode:get_regret_max)). - -get_glbSize(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_glbSize(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_glbSize)). - -get_lubSize(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_lubSize(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_lubSize)). - -get_unknownSize(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_unknownSize(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_unknownSize)). - -get_cardMin(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_cardMin(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_cardMin)). - -get_cardMax(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_cardMax(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_cardMax)). - -get_lubMin(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_lubMin(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_lubMin)). - -get_lubMax(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_lubMax(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_lubMax)). - -get_glbMin(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_glbMin(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_glbMin)). - -get_glbMax(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_glbMax(X,Space_,Var_) - ; get_for_vars(X, Space, Var, gecode:get_glbMax)). - -get_glb_ranges(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_glb_ranges(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_glb_ranges)). - -get_lub_ranges(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_lub_ranges(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_lub_ranges)). - -get_unknown_ranges(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_unknown_ranges(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_unknown_ranges)). - -get_glb_values(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_glb_values(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_glb_values)). - -get_lub_values(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_lub_values(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_lub_values)). - -get_unknown_values(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_SetVar(Var,Var_) - -> gecode_setvar_unknown_values(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_unknown_values)). - -get_ranges(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_ranges(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_ranges)). - -get_values(X, Space, Var) :- - assert_is_Space(Space,Space_), - (is_IntVar(Var,Var_) - -> gecode_intvar_values(X,Space_,Var_) - ; get_for_vars(X,Space,Var,gecode:get_values)). - -new_disjunctor(X, Space) :- - assert_is_Space(Space,Space_), - gecode_new_disjunctor(D,Space_), - X='Disjunctor'(D). - -is_Disjunctor_('Disjunctor'(D),D). -is_Disjunctor(X,Y) :- nonvar(X), is_Disjunctor_(X,Y). -is_Disjunctor(X) :- is_Disjunctor(X,_). - -assert_is_Disjunctor(X,Y) :- - is_Disjunctor(X,Y) -> true ; throw(gecode_error(expected(disjunctor))). - -new_clause(X, Disj) :- - assert_is_Disjunctor(Disj,Disj_), - gecode_new_clause(C, Disj_), - X='Clause'(C). - -is_Clause_('Clause'(C),C) :- - gecode_space_use_keep_index(C,B), - nb_setval(gecode_space_use_keep_index,B). -is_Clause(X,Y) :- nonvar(X), is_Clause_(X,Y). -is_Clause(X) :- is_Clause(X,_). - -assert_is_Clause(X,Y) :- - is_Clause(X,Y) -> true ; throw(gecode_error(expected(clause))). - -is_Space_or_Clause(X,Y) :- - (is_Space(X,Y);is_Clause(X,Y)), !. -assert_is_Space_or_Clause(X,Y) :- - is_Space_or_Clause(X,Y) -> true - ; throw(gecode_error(expected(space,clause))). - -new_forward(Clause, X, Y) :- - assert_is_Clause(Clause, Clause_), - (is_IntVar(X,X_) - -> (is_IntVar(Y,Y_) - -> gecode_clause_intvar_forward(Clause_,X_,Y_) - ; throw(gecode_error(forward))) - ; (is_BoolVar(X,X_) - -> (is_BoolVar(Y,Y_) - -> gecode_clause_boolvar_forward(Clause_,X_,Y_) - ; throw(gecode_error(forward))) - ; (is_SetVar(X,X_) - -> (is_SetVar(Y,Y_) - -> gecode_clause_setvar_forward(Clause_,X_,Y_) - ; throw(gecode_error(forward))) - ; (X=[] - -> Y=[] - ;(X=[H1|T1],Y=[H2|T2]) - -> (new_forward(Clause,H1,H2), - new_forward(Clause,T1,T2)) - ; throw(gecode_error(forward)))))). - -new_intvars_(L,Space,N,I,J) :- length(L,N), new_intvars(L,Space,I,J). -new_intvars_(L,Space,N,IntSet) :- length(L,N), new_intvars(L,Space,IntSet). -new_boolvars_(L,Space,N) :- length(L,N), new_boolvars(L,Space). -new_setvars_(L,Space,N,X1,X2,X3,X4,X5,X6) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4,X5,X6). -new_setvars_(L,Space,N,X1,X2,X3,X4,X5) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4,X5). -new_setvars_(L,Space,N,X1,X2,X3,X4) :- length(L,N), new_setvars(L,Space,X1,X2,X3,X4). -new_setvars_(L,Space,N,X1,X2,X3) :- length(L,N), new_setvars(L,Space,X1,X2,X3). -new_setvars_(L,Space,N,X1,X2) :- length(L,N), new_setvars(L,Space,X1,X2). - -keep_(Space, Var) :- - (Var = 'IntVar'(I,J) - -> (J = -1 -> (gecode_intvar_keep(Space,I,K),setarg(2,Var,K)) - ; throw(gecode_error(variable_already_kept(Var)))) - ; (Var = 'BoolVar'(I,J) - -> (J = -1 -> (gecode_boolvar_keep(Space,I,K),setarg(2,Var,K)) - ; throw(gecode_error(variable_already_kept(Var)))) - ; (Var = 'SetVar'(I,J) - -> (J = -1 -> (gecode_setvar_keep(Space,I,K),setarg(2,Var,K)) - ; throw(gecode_error(variable_already_kept(Var)))) - ; keep_list_(Space,Var)))). - -keep_list_(_Space, []) :- !. -keep_list_(Space, [H|T]) :- !, - keep_(Space,H), keep_list_(Space,T). -keep_list_(_, X) :- - throw(gecode_error(not_a_variable(X))). - -%% more concise interface: -(X := Y) :- var(Y), !, throw(gecode_error((X := Y))). -(X := intset(I,J)) :- !, new_intset(X,I,J). -(X := intset(L)) :- !, new_intset(X,L). -(X := space) :- !, new_space(X). -(X := intvar(Space,I,J)) :- !, new_intvar(X,Space,I,J). -(X := intvar(Space,IntSet)) :- !, new_intvar(X,Space,IntSet). -(X := boolvar(Space)) :- !, new_boolvar(X,Space). -(X := setvar(Space,X1,X2,X3,X4,X5,X6)) :- !, new_setvar(X,Space,X1,X2,X3,X4,X5,X6). -(X := setvar(Space,X1,X2,X3,X4,X5)) :- !, new_setvar(X,Space,X1,X2,X3,X4,X5). -(X := setvar(Space,X1,X2,X3,X4)) :- !, new_setvar(X,Space,X1,X2,X3,X4). -(X := setvar(Space,X1,X2,X3)) :- !, new_setvar(X,Space,X1,X2,X3). -(X := setvar(Space,X1,X2)) :- !, new_setvar(X,Space,X1,X2). -(X := intvars(Space,N,I,J)) :- !, new_intvars_(X,Space,N,I,J). -(X := intvars(Space,N,IntSet)) :- !, new_intvars_(X,Space,N,IntSet). -(X := boolvars(Space,N)) :- !, new_boolvars_(X,Space,N). -(X := setvars(Space,N,X1,X2,X3,X4,X5,X6)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4,X5,X6). -(X := setvars(Space,N,X1,X2,X3,X4,X5)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4,X5). -(X := setvars(Space,N,X1,X2,X3,X4)) :- !, new_setvars_(X,Space,N,X1,X2,X3,X4). -(X := setvars(Space,N,X1,X2,X3)) :- !, new_setvars_(X,Space,N,X1,X2,X3). -(X := setvars(Space,N,X1,X2)) :- !, new_setvars_(X,Space,N,X1,X2). -(X := tupleset(Set)) :- !, new_tupleset(X, Set). -(X := dfa(S0, Transitions, Finals)) :- !, new_dfa(X, S0, Transitions, Finals). - -(X := min(Space,Var)) :- !, get_min(X,Space,Var). -(X := max(Space,Var)) :- !, get_max(X,Space,Var). -(X := med(Space,Var)) :- !, get_med(X,Space,Var). -(X := val(Space,Var)) :- !, get_val(X,Space,Var). -(X := size(Space,Var)) :- !, get_size(X,Space,Var). -(X := width(Space,Var)) :- !, get_width(X,Space,Var). -(X := regret_min(Space,Var)) :- !, get_regret_min(X,Space,Var). -(X := regret_max(Space,Var)) :- !, get_regret_max(X,Space,Var). -(X := ranges(Space,Var)) :- !, get_ranges(X,Space,Var). -(X := values(Space,Var)) :- !, get_values(X,Space,Var). - -(X := glbSize(Space,Var)) :- !, get_glbSize(X,Space,Var). -(X := lubSize(Space,Var)) :- !, get_lubSize(X,Space,Var). -(X := unknownSize(Space,Var)) :- !, get_unknownSize(X,Space,Var). -(X := cardMin(Space,Var)) :- !, get_cardMin(X,Space,Var). -(X := cardMax(Space,Var)) :- !, get_cardMax(X,Space,Var). -(X := lubMin(Space,Var)) :- !, get_lubMin(X,Space,Var). -(X := lubMax(Space,Var)) :- !, get_lubMax(X,Space,Var). -(X := glbMin(Space,Var)) :- !, get_glbMin(X,Space,Var). -(X := glbMax(Space,Var)) :- !, get_glbMax(X,Space,Var). -(X := glb_ranges(Space,Var)) :- !, get_glb_ranges(X,Space,Var). -(X := lub_ranges(Space,Var)) :- !, get_lub_ranges(X,Space,Var). -(X := unknown_ranges(Space,Var)) :- !, get_unknown_ranges(X,Space,Var). -(X := glb_values(Space,Var)) :- !, get_glb_values(X,Space,Var). -(X := lub_values(Space,Var)) :- !, get_lub_values(X,Space,Var). -(X := unknown_values(Space,Var)) :- !, get_unknown_values(X,Space,Var). - -(X := disjunctor(Space)) :- !, new_disjunctor(X,Space). -(X := clause(Disj)) :- !, new_clause(X,Disj). - -(X := search(Y)) :- !, search(Y,X). -(X := search(Y,L)) :- !, search(Y,X,L). - -% these should be autogenerated: -(C += forward(X,Y)) :- !, new_forward(C,X,Y). -(Space += abs(X1,X2)) :- !, abs(Space,X1,X2). -(Space += abs(X1,X2,X3)) :- !, abs(Space,X1,X2,X3). -(Space += assign(X1,X2)) :- !, assign(Space,X1,X2). -(Space += atmostOne(X1,X2)) :- !, atmostOne(Space,X1,X2). -(Space += binpacking(X1,X2,X3)) :- !, binpacking(Space,X1,X2,X3). -(Space += binpacking(X1,X2,X3,X4)) :- !, binpacking(Space,X1,X2,X3,X4). -(Space += branch(X1,X2)) :- !, branch(Space,X1,X2). -(Space += branch(X1,X2,X3)) :- !, branch(Space,X1,X2,X3). -(Space += cardinality(X1,X2)) :- !, cardinality(Space,X1,X2). -(Space += cardinality(X1,X2,X3)) :- !, cardinality(Space,X1,X2,X3). -(Space += channel(X1,X2)) :- !, channel(Space,X1,X2). -(Space += channel(X1,X2,X3)) :- !, channel(Space,X1,X2,X3). -(Space += channel(X1,X2,X3,X4)) :- !, channel(Space,X1,X2,X3,X4). -(Space += channel(X1,X2,X3,X4,X5)) :- !, channel(Space,X1,X2,X3,X4,X5). -(Space += channelSorted(X1,X2)) :- !, channelSorted(Space,X1,X2). -(Space += circuit(X1)) :- !, circuit(Space,X1). -(Space += circuit(X1,X2)) :- !, circuit(Space,X1,X2). -(Space += circuit(X1,X2,X3)) :- !, circuit(Space,X1,X2,X3). -(Space += circuit(X1,X2,X3,X4)) :- !, circuit(Space,X1,X2,X3,X4). -(Space += circuit(X1,X2,X3,X4,X5)) :- !, circuit(Space,X1,X2,X3,X4,X5). -(Space += circuit(X1,X2,X3,X4,X5,X6)) :- !, circuit(Space,X1,X2,X3,X4,X5,X6). -(Space += clause(X1,X2,X3,X4)) :- !, clause(Space,X1,X2,X3,X4). -(Space += clause(X1,X2,X3,X4,X5)) :- !, clause(Space,X1,X2,X3,X4,X5). -(Space += convex(X1)) :- !, convex(Space,X1). -(Space += convex(X1,X2)) :- !, convex(Space,X1,X2). -(Space += count(X1,X2)) :- !, count(Space,X1,X2). -(Space += count(X1,X2,X3)) :- !, count(Space,X1,X2,X3). -(Space += count(X1,X2,X3,X4)) :- !, count(Space,X1,X2,X3,X4). -(Space += count(X1,X2,X3,X4,X5)) :- !, count(Space,X1,X2,X3,X4,X5). -(Space += cumulative(X1,X2,X3,X4)) :- !, cumulative(Space,X1,X2,X3,X4). -(Space += cumulative(X1,X2,X3,X4,X5)) :- !, cumulative(Space,X1,X2,X3,X4,X5). -(Space += cumulative(X1,X2,X3,X4,X5,X6)) :- !, cumulative(Space,X1,X2,X3,X4,X5,X6). -(Space += cumulative(X1,X2,X3,X4,X5,X6,X7)) :- !, cumulative(Space,X1,X2,X3,X4,X5,X6,X7). -(Space += cumulatives(X1,X2,X3,X4,X5,X6,X7)) :- !, cumulatives(Space,X1,X2,X3,X4,X5,X6,X7). -(Space += cumulatives(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, cumulatives(Space,X1,X2,X3,X4,X5,X6,X7,X8). -(Space += distinct(X1)) :- !, distinct(Space,X1). -(Space += distinct(X1,X2)) :- !, distinct(Space,X1,X2). -(Space += distinct(X1,X2,X3)) :- !, distinct(Space,X1,X2,X3). -(Space += div(X1,X2,X3)) :- !, div(Space,X1,X2,X3). -(Space += div(X1,X2,X3,X4)) :- !, div(Space,X1,X2,X3,X4). -(Space += divmod(X1,X2,X3,X4)) :- !, divmod(Space,X1,X2,X3,X4). -(Space += divmod(X1,X2,X3,X4,X5)) :- !, divmod(Space,X1,X2,X3,X4,X5). -(Space += dom(X1,X2)) :- !, dom(Space,X1,X2). -(Space += dom(X1,X2,X3)) :- !, dom(Space,X1,X2,X3). -(Space += dom(X1,X2,X3,X4)) :- !, dom(Space,X1,X2,X3,X4). -(Space += dom(X1,X2,X3,X4,X5)) :- !, dom(Space,X1,X2,X3,X4,X5). -(Space += element(X1,X2,X3)) :- !, element(Space,X1,X2,X3). -(Space += element(X1,X2,X3,X4)) :- !, element(Space,X1,X2,X3,X4). -(Space += element(X1,X2,X3,X4,X5)) :- !, element(Space,X1,X2,X3,X4,X5). -(Space += element(X1,X2,X3,X4,X5,X6)) :- !, element(Space,X1,X2,X3,X4,X5,X6). -(Space += element(X1,X2,X3,X4,X5,X6,X7)) :- !, element(Space,X1,X2,X3,X4,X5,X6,X7). -(Space += extensional(X1,X2)) :- !, extensional(Space,X1,X2). -(Space += extensional(X1,X2,X3)) :- !, extensional(Space,X1,X2,X3). -(Space += linear(X1,X2,X3)) :- !, linear(Space,X1,X2,X3). -(Space += linear(X1,X2,X3,X4)) :- !, linear(Space,X1,X2,X3,X4). -(Space += linear(X1,X2,X3,X4,X5)) :- !, linear(Space,X1,X2,X3,X4,X5). -(Space += linear(X1,X2,X3,X4,X5,X6)) :- !, linear(Space,X1,X2,X3,X4,X5,X6). -(Space += max(X1,X2)) :- !, max(Space,X1,X2). -(Space += max(X1,X2,X3)) :- !, max(Space,X1,X2,X3). -(Space += max(X1,X2,X3,X4)) :- !, max(Space,X1,X2,X3,X4). -(Space += min(X1,X2)) :- !, min(Space,X1,X2). -(Space += min(X1,X2,X3)) :- !, min(Space,X1,X2,X3). -(Space += min(X1,X2,X3,X4)) :- !, min(Space,X1,X2,X3,X4). -(Space += mod(X1,X2,X3)) :- !, mod(Space,X1,X2,X3). -(Space += mod(X1,X2,X3,X4)) :- !, mod(Space,X1,X2,X3,X4). -(Space += mult(X1,X2,X3)) :- !, mult(Space,X1,X2,X3). -(Space += mult(X1,X2,X3,X4)) :- !, mult(Space,X1,X2,X3,X4). -(Space += nooverlap(X1,X2,X3,X4)) :- !, nooverlap(Space,X1,X2,X3,X4). -(Space += nooverlap(X1,X2,X3,X4,X5)) :- !, nooverlap(Space,X1,X2,X3,X4,X5). -(Space += nooverlap(X1,X2,X3,X4,X5,X6)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6). -(Space += nooverlap(X1,X2,X3,X4,X5,X6,X7)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6,X7). -(Space += nooverlap(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, nooverlap(Space,X1,X2,X3,X4,X5,X6,X7,X8). -(Space += notMax(X1,X2)) :- !, notMax(Space,X1,X2). -(Space += notMin(X1,X2)) :- !, notMin(Space,X1,X2). -(Space += path(X1,X2,X3)) :- !, path(Space,X1,X2,X3). -(Space += path(X1,X2,X3,X4)) :- !, path(Space,X1,X2,X3,X4). -(Space += path(X1,X2,X3,X4,X5)) :- !, path(Space,X1,X2,X3,X4,X5). -(Space += path(X1,X2,X3,X4,X5,X6)) :- !, path(Space,X1,X2,X3,X4,X5,X6). -(Space += path(X1,X2,X3,X4,X5,X6,X7)) :- !, path(Space,X1,X2,X3,X4,X5,X6,X7). -(Space += path(X1,X2,X3,X4,X5,X6,X7,X8)) :- !, path(Space,X1,X2,X3,X4,X5,X6,X7,X8). -(Space += precede(X1,X2)) :- !, precede(Space,X1,X2). -(Space += precede(X1,X2,X3)) :- !, precede(Space,X1,X2,X3). -(Space += precede(X1,X2,X3,X4)) :- !, precede(Space,X1,X2,X3,X4). -(Space += reify(X1,X2,X3)) :- !, reify(Space,X1,X2,X3). -(Space += rel(X1,X2)) :- !, rel(Space,X1,X2). -(Space += rel(X1,X2,X3)) :- !, rel(Space,X1,X2,X3). -(Space += rel(X1,X2,X3,X4)) :- !, rel(Space,X1,X2,X3,X4). -(Space += rel(X1,X2,X3,X4,X5)) :- !, rel(Space,X1,X2,X3,X4,X5). -(Space += rel(X1,X2,X3,X4,X5,X6)) :- !, rel(Space,X1,X2,X3,X4,X5,X6). -(Space += sequence(X1)) :- !, sequence(Space,X1). -(Space += sequence(X1,X2)) :- !, sequence(Space,X1,X2). -(Space += sequence(X1,X2,X3,X4,X5)) :- !, sequence(Space,X1,X2,X3,X4,X5). -(Space += sequence(X1,X2,X3,X4,X5,X6)) :- !, sequence(Space,X1,X2,X3,X4,X5,X6). -(Space += sorted(X1,X2)) :- !, sorted(Space,X1,X2). -(Space += sorted(X1,X2,X3)) :- !, sorted(Space,X1,X2,X3). -(Space += sorted(X1,X2,X3,X4)) :- !, sorted(Space,X1,X2,X3,X4). -(Space += sqr(X0,X1,X2,X3)) :- !, sqr(Space,X0,X1,X2,X3). -(Space += sqr(X1,X2)) :- !, sqr(Space,X1,X2). -(Space += sqrt(X1,X2)) :- !, sqrt(Space,X1,X2). -(Space += sqrt(X1,X2,X3)) :- !, sqrt(Space,X1,X2,X3). -(Space += unary(X1,X2)) :- !, unary(Space,X1,X2). -(Space += unary(X1,X2,X3)) :- !, unary(Space,X1,X2,X3). -(Space += unary(X1,X2,X3,X4)) :- !, unary(Space,X1,X2,X3,X4). -(Space += unary(X1,X2,X3,X4,X5)) :- !, unary(Space,X1,X2,X3,X4,X5). -(Space += unshare(X1)) :- !, unshare(Space,X1). -(Space += unshare(X1,X2)) :- !, unshare(Space,X1,X2). -(Space += weights(X1,X2,X3,X4)) :- !; weights(Space,X1,X2,X3,X4). - -(Space += minimize(X)) :- !, minimize(Space,X). -(Space += maximize(X)) :- !, maximize(Space,X). -(Space += minimize(X,Y)) :- !, minimize(Space,X,Y). -(Space += maximize(X,Y)) :- !, maximize(Space,X,Y). - -(Space += keep(X)) :- !, keep_(Space,X). diff --git a/packages/bdd/configure.in b/packages/bdd/configure.in new file mode 100644 index 000000000..9e2292154 --- /dev/null +++ b/packages/bdd/configure.in @@ -0,0 +1,104 @@ +AC_ARG_WITH(cudd, + [ --with-cudd[=DIR] use CUDD package in DIR], + yap_cv_cudd="$withval", + [yap_cv_cudd=no]) + +if test "$yap_cv_cudd" = no +then + ENABLE_CUDD="@# " + ENABLE_BDDLIB="@# " +else + if test "$dynamic_bdd" = yes + then + ENABLE_BDDLIB="" + else + ENABLE_BDDLIB="@# " + fi + ENABLE_CUDD="" +fi + + + +if test "$yap_cv_cudd" != no; then + +oldlibs="$LIBS" + +if test "$yap_cv_cudd" != "NONE" -a "$yap_cv_cudd" != "yes"; then + CUDD_CPPFLAGS="-I $yap_cv_cudd/include" + cudd_dir="$yap_cv_cudd" +elif test "$prefix" != "NONE"; then + CUDD_CPPFLAGS="-I $prefix/include" + cudd_dir="$prefix" +else + CUDD_CPPFLAGS="-I /usr/local/include" + cudd_dir=/usr/local +fi + +OLD_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $CUDD_CPPFLAGS" + +AC_CHECK_HEADERS(util.h cudd/util.h cudd.h cudd/cudd.h) +AC_CHECK_HEADERS(cuddInt.h cudd/cuddInt.h) + +dnl cudd can be most everywhere +if test -d "$cudd_dir/lib64/cudd" -a "$YAP_TARGET" = amd64; then + LIBS="$LIBS -L $cudd_dir/lib64/cudd" +elif test -d "$cudd_dir/lib64" -a "$YAP_TARGET" = amd64; then + LIBS="$LIBS -L $cudd_dir/lib64 -L $cudd_dir/lib" +elif test -d "$cudd_dir/lib/cudd"; then + LIBS="$LIBS -L $cudd_dir/lib/cudd" +elif test -d "$cudd_dir/lib"; then + LIBS="$LIBS -L $cudd_dir/lib" +fi + +if test -d "$cudd_dir/util"; then + LIBS="$LIBS -L $cudd_dir/util" +fi + +AC_SEARCH_LIBS(util_print_cpu_stats, [cuddutil util]) + +if test -d "$cudd_dir/st"; then + LIBS="$LIBS -L $cudd_dir/st" +fi + +AC_SEARCH_LIBS(st_insert, [cuddst st]) + +if test -d "$cudd_dir/epd"; then + LIBS="$LIBS -L $cudd_dir/epd" +fi + +AC_SEARCH_LIBS(EpdAdd, [epd]) + +if test -d "$cudd_dir/mtr"; then + LIBS="$LIBS -L $cudd_dir/mtr" +fi + +AC_SEARCH_LIBS(Mtr_InitTree, [mtr]) + +if test -d "$cudd_dir/cudd"; then + LIBS="$LIBS -L $cudd_dir/cudd" +fi + +AC_SEARCH_LIBS(Cudd_Init, [cudd], [cudd_installed="yes"], [cudd_installed="no"]) + +CPPFLAGS="$OLD_CPPFLAGS" + +if test "$cudd_installed" = yes; then + CUDD_LDFLAGS="$LIBS" +else + cat << EOF +################################################################## +# ERROR: Could not find cudd library. Either I don't have the +# correct path, or CUDD is installed in some strange way +################################################################## +EOF + fi + +LIBS="$oldlibs" + +fi + +AC_SUBST(ENABLE_CUDD) +AC_SUBST(ENABLE_BDDLIB) +AC_SUBST(CUDD_LDFLAGS) +AC_SUBST(CUDD_CPPFLAGS) From a86b79928d9d2ec521dee04c6743c97d5fbe0e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 00:03:05 +0000 Subject: [PATCH 06/30] fix llvm sign warnings --- C/atoms.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C/atoms.c b/C/atoms.c index 2a85a53cc..be71ed600 100644 --- a/C/atoms.c +++ b/C/atoms.c @@ -1459,7 +1459,7 @@ p_atom_split( USES_REGS1 ) Yap_Error(TYPE_ERROR_INTEGER, t2, "$atom_split/4"); return(FALSE); } - if ((len = IntOfTerm(t2)) < 0) { + if ((Int)(len = IntOfTerm(t2)) < 0) { Yap_Error(DOMAIN_ERROR_NOT_LESS_THAN_ZERO, t2, "$atom_split/4"); return(FALSE); } @@ -2025,7 +2025,7 @@ check_sub_atom_bef(int max, Atom at, Atom nat) } else { size_t len = strlen(RepAtom(nat)->StrOfAE); int min = max- len; - if (min - len < 0) return FALSE; + if ((Int)(min - len) < 0) return FALSE; if (IsWideAtom(at)) { wchar_t *p1; char *p2; @@ -2269,7 +2269,7 @@ init_sub_atom( USES_REGS1 ) if ((mask & (SUB_ATOM_HAS_MIN|SUB_ATOM_HAS_SIZE)) == (SUB_ATOM_HAS_MIN|SUB_ATOM_HAS_SIZE)) { if (min+len > sz) cut_fail(); - if ((after = (sz-(min+len))) < 0) cut_fail(); + if ((Int)(after = (sz-(min+len))) < 0) cut_fail(); nat = build_new_atom(mask, wp, p, min, len PASS_REGS); if (!nat) cut_fail(); out = Yap_unify(ARG4,MkIntegerTerm(after)) && From b3a4666fc2692c1362047475219cb0da23eaecb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 00:04:09 +0000 Subject: [PATCH 07/30] useful debugging code --- C/cdmgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/C/cdmgr.c b/C/cdmgr.c index 4a947cbc2..6b8efb436 100644 --- a/C/cdmgr.c +++ b/C/cdmgr.c @@ -2246,6 +2246,7 @@ addclause(Term t, yamop *cp, int mode, Term mod, Term *t4ref) if ((pflags & (UserCPredFlag|CArgsPredFlag|NumberDBPredFlag|AtomDBPredFlag|TestPredFlag|AsmPredFlag|CPredFlag|BinaryPredFlag)) || (p->ModuleOfPred == PROLOG_MODULE && mod != TermProlog && mod) ) { + /* printf("p=%p p->PredFlags=%lx p->cs.p_code.NOfClauses=%ld\n", p, p->PredFlags, p->cs.p_code.NOfClauses) */ addcl_permission_error(RepAtom(at), Arity, FALSE); UNLOCKPE(30,p); return TermNil; From c1a3bfce42a920ce00cf2cf1f7eb65b70a40eb7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 00:05:29 +0000 Subject: [PATCH 08/30] add source location *after* initial comment --- C/scanner.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C/scanner.c b/C/scanner.c index b1c1149ef..be5366a8e 100644 --- a/C/scanner.c +++ b/C/scanner.c @@ -854,6 +854,7 @@ Yap_tokenizer(IOSTREAM *inp_stream, int store_comments, Term *tposp) ch = getchr(inp_stream); } *tposp = Yap_StreamPosition(inp_stream); + Yap_setCurrentSourceLocation(&inp_stream); LOCAL_StartLine = inp_stream->posbuf.lineno; do { wchar_t och; @@ -917,6 +918,7 @@ Yap_tokenizer(IOSTREAM *inp_stream, int store_comments, Term *tposp) } CHECK_SPACE(); *tposp = Yap_StreamPosition(inp_stream); + Yap_setCurrentSourceLocation(&inp_stream); } goto restart; } else { @@ -1235,6 +1237,7 @@ Yap_tokenizer(IOSTREAM *inp_stream, int store_comments, Term *tposp) } CHECK_SPACE(); *tposp = Yap_StreamPosition(inp_stream); + Yap_setCurrentSourceLocation(&inp_stream); } } goto restart; From c6b471d725872d3d5c543b8e3379d6dbb4b54915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:03:57 +0000 Subject: [PATCH 09/30] fix YAP_RunGoalOnce warning --- H/Yapproto.h | 1 + 1 file changed, 1 insertion(+) diff --git a/H/Yapproto.h b/H/Yapproto.h index 1fa32fa27..ad7f8393e 100644 --- a/H/Yapproto.h +++ b/H/Yapproto.h @@ -126,6 +126,7 @@ Int YAP_Execute(struct pred_entry *, CPredicate); Int YAP_ExecuteFirst(struct pred_entry *, CPredicate); Int YAP_ExecuteNext(struct pred_entry *, CPredicate); Int YAP_ExecuteOnCut(struct pred_entry *, CPredicate, struct cut_c_str *); +Int YAP_RunGoalOnce(Term); /* cdmgr.c */ Term Yap_all_calls(void); From 0d038e4528065f4e75794c794312904d8aa38086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:04:52 +0000 Subject: [PATCH 10/30] fix llvm variable size warning --- H/compile.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/H/compile.h b/H/compile.h index 665d35321..393ffe528 100644 --- a/H/compile.h +++ b/H/compile.h @@ -209,7 +209,11 @@ typedef struct PSEUDO { CELL rnd1; union { Int oprnd2; +#if MIN_ARRAY == 0 + CELL opseqt[MIN_ARRAY]; +#else CELL opseqt[1]; +#endif } ops; } PInstr; From 7be8130d0562b6a99a8172091ffe10285ac3ddf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:06:18 +0000 Subject: [PATCH 11/30] distributed commit --- configure.in | 771 +++++---------------------------------------------- 1 file changed, 77 insertions(+), 694 deletions(-) diff --git a/configure.in b/configure.in index 60d1d4507..ab62f21d7 100755 --- a/configure.in +++ b/configure.in @@ -63,6 +63,8 @@ AC_CANONICAL_SYSTEM AC_DEFINE_UNQUOTED(HOST_ALIAS,"${target}") +m4_define([HAS_TOP]) + case "$target_cpu" in i*86*) YAP_TARGET=i386 @@ -78,64 +80,6 @@ case "$target_cpu" in ;; esac -dnl Gecode support -AC_CHECK_HEADER(gecode/support/config.hpp, - have_gecode=yes, have_gecode=no) -AC_ARG_ENABLE(gecode, - [ --enable-gecode install gecode library], - [use_gecode="$enableval" - if test "$use_gecode" = yes; then - if test "$have_gecode" = no; then - AC_MSG_ERROR([cannot enable gecode: gecode library not found]) - fi - fi], use_gecode=$have_gecode) -AC_MSG_CHECKING([if dynamic arrays are supported]) -AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([[void foo(int n) { int a[n]; a[1]=0; }]],[[foo(3);]]) - ],[ - AC_MSG_RESULT([yes]) - AC_DEFINE([HAVE_DYNARRAY],[1],[Define if dynamic arrays are supported]) - ],[ - AC_MSG_RESULT([no]) - ]) -GECODE_VERSION=unknown-gecode-version -GECODE_EXTRALIBS="-lgecodesupport -lgecodekernel -lgecodeint -lgecodeset -lgecodesearch" -AC_SUBST(GECODE_VERSION) -AC_SUBST(GECODE_EXTRALIBS) -if test "$use_gecode" = yes; then - AC_MSG_CHECKING([gecode version]) - AC_RUN_IFELSE([AC_LANG_PROGRAM([[ -#include "gecode/support/config.hpp" -#include -]],[[ - FILE* out = fopen("conftest.out","w"); - fprintf(out,"%s\n",GECODE_VERSION); - fclose(out); - return 0; -]])],[GECODE_VERSION=$(cat conftest.out) - AC_MSG_RESULT([$GECODE_VERSION])], - [AC_MSG_ERROR([cannot determine gecode version])]) - case "$target_os" in - *darwin*) - AC_MSG_CHECKING([if -framework gecode is required]) - AC_LANG_PUSH([C++]) - saved_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -framework gecode" - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ -#include "gecode/int.hh" -]],[[ -Gecode::Exception e("",""); -return 0; -]])],[GECODE_EXTRALIBS="-framework gecode" - AC_MSG_RESULT([yes])], - [AC_MSG_RESULT([no])]) - AC_LANG_POP() - CXXFLAGS="$saved_CXXFLAGS" - ;; - esac -fi -GECODE_MAJOR=`echo $GECODE_VERSION| sed 's/\(^.\).*/\1/'` -AC_SUBST(GECODE_MAJOR) AC_ARG_ENABLE(tabling, [ --enable-tabling support tabling ], @@ -234,7 +178,7 @@ AC_ARG_WITH(gmp, LDFLAGS="$LDFLAGS -L${yap_cv_gmp}/lib" LIBS="$LIBS -L${yap_cv_gmp}/lib" CPPFLAGS="$CPPFLAGS -I${yap_cv_gmp}/include" - CFLAGS="$CFLAGS -I${yap_cv_gmp}/include" + CFLAGS="$CFLAGS -I${yap_cv_gmp}/include" fi, [yap_cv_gmp=yes]) AC_ARG_WITH(R, @@ -247,16 +191,6 @@ AC_ARG_WITH(R, yap_cv_R=$withval fi, [yap_cv_R=no]) -AC_ARG_WITH(python, - [ --with-python[=DIR] interface to R language], - if test "$withval" = yes; then - yap_cv_python=yes - elif test "$withval" = no; then - yap_cv_python=no - else - yap_cv_python=$withval - fi, - [yap_cv_python=no]) AC_ARG_WITH(judy, [ --with-judy[=DIR] UDI needs judy library], @@ -280,53 +214,6 @@ AC_ARG_WITH(minisat, fi, [yap_cv_minisat=yes]) -AC_ARG_WITH(cuda, - [ --enable-cuda use minisat interface], - if test "$withval" = yes; then - yap_cv_cuda=/usr - elif test "$withval" = no; then - yap_cv_cuda=no - else - yap_cv_cuda="$withval" - fi, - [yap_cv_cuda=no]) - -AC_ARG_WITH(cudd, - [ --with-cudd[=DIR] use CUDD package in DIR], - yap_cv_cudd="$withval", - [yap_cv_cudd=no]) - -AC_ARG_ENABLE(myddas, - [ --enable-myddas[[=DIR]] enable the MYDDAS library], - if test "$enableval" = yes; then - yap_cv_myddas=/usr - elif test "$enableval" = no; then - yap_cv_myddas=no - else - yap_cv_myddas=$enable_myddas - LDFLAGS="$LDFLAGS -L${yap_cv_myddas}/lib " - CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas}/include " - ODBC_LDFLAGS="-L${yap_cv_myddas}/lib " - ODBC_CFLAGS="-I${yap_cv_myddas}/include " - fi, - [yap_cv_myddas=/usr]) - -AC_ARG_ENABLE(myddas-stats, - [ --enable-myddas-stats enable the MYDDAS library statistics support], - if test "$yap_cv_myddas" = no; then - myddasstats=no - else - myddasstats="$enableval" - fi, myddasstats=no) - -AC_ARG_ENABLE(myddas-top-level, - [ --enable-myddas-top-level enable the MYDDAS top-level support to MySQL], - if test "$yap_cv_myddas" = no; then - myddastoplevel=no - else - myddastoplevel="$enableval" - fi, myddastoplevel=no) - AC_ARG_WITH(java, [ --with-java=JAVA_HOME use Java instalation in JAVA_HOME], if test "$withval" = yes; then @@ -542,22 +429,6 @@ fi -if test "$yap_cv_cudd" = no -then - ENABLE_CUDD="@# " - ENABLE_BDDLIB="@# " -else - if test "$dynamic_bdd" = yes - then - ENABLE_BDDLIB="" - else - ENABLE_BDDLIB="@# " - fi - ENABLE_CUDD="" -fi - - - dnl condor universe does not like dynamic linking on Linux, DEC, and HP-UX platforms. if test "$use_condor" = yes then @@ -715,13 +586,11 @@ then EXTRA_LIBS_FOR_DLLS="\$(abs_top_builddir)/yap.dll $EXTRA_LIBS_FOR_DLLS" AC_CHECK_LIB(psapi,main) yap_cv_readline=no - CLIB_NETLIBS="-lws2_32 -lpsapi -lgdi32" if test "$prefix" = "NONE" then if test "$target_win64" = yes then prefix="\${SYSTEMDRIVE}/Yap64" - CLIB_NETLIBS="-lws2_32 -lwsock32 -lpsapi -lgdi32" else prefix="\${SYSTEMDRIVE}/Yap" fi @@ -785,236 +654,10 @@ then AC_CHECK_LIB(gmp,main) fi -if test "$yap_cv_R" = "no"; then - REAL_TARGET="dummy" - ENABLE_REAL="@# " -elif test -e "$srcdir"/packages/real/Makefile.in ; then - REAL_TARGET="ritf" - ENABLE_REAL="" - AC_CHECK_PROGS(REXE, R, "none") - if test "$yap_cv_R" = "yes" - then - case "$target_os" in - *darwin*) - REAL_INCLUDES="-I/Library/Frameworks/R.framework/Headers" - REAL_LIBS="-framework R -L /Library/Frameworks/R.framework/Libraries -lR" - ;; - *cygwin*|*mingw*) - REAL_INCLUDES="$($REXE CMD config --cppflags | grep -v ^WARNING)" - REAL_LIBS="$($REXE CMD config --ldflags | grep -v ^WARNING)" - ;; - **) - dnl R is spread all over the place - dnl one of the two may work (Fedora/Ubuntu) - if test -n "$R_HOME" ; then - REAL_INCLUDES="-I$R_HOME/include" - elif test "$YAP_TARGET" = amd64 -a -d /usr/lib64/R/include ; then - REAL_INCLUDES="-I/usr/lib64/R/include" - elif test -d /usr/include/R; then - REAL_INCLUDES="-I/usr/include/R" - elif test -d /usr/share/R/include; then - REAL_INCLUDES="-I/usr/share/R/include" - else - REAL_INCLUDES="$($REXE CMD config --cppflags | grep -v ^WARNING)" - fi - if test -n "$R_HOME" ; then - REAL_LIBS="-L $R_HOME/lib -lR" - elif test "$YAP_TARGET" = amd64 -a -d /usr/lib64/R/lib; then - REAL_LIBS="-L /usr/lib64/R/lib -lR" - elif test -d /usr/lib/R; then - REAL_LIBS="-L /usr/lib/R/lib -lR" - else - REAL_LIBS="$($REXE CMD config --ldflags | grep -v ^WARNING)" - fi - ;; - esac - else - case "$target_os" in - *cygwin*|*mingw*) - REAL_INCLUDES="-I\"$yap_cv_R/include\"" - if test "$YAP_TARGET" = i386; then - REAL_LIBS="\"$yap_cv_R/bin/i386/R.dll\"" - else - REAL_LIBS="\"$yap_cv_R/bin/x64/R.dll\"" - fi - ;; - *) - REAL_INCLUDES="-I$yap_cv_R/include" - REAL_LIBS="-L $yap_cv_R/lib -lR" - ;; - esac - fi - OLD_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $REAL_INCLUDES" - AC_CHECK_HEADERS(Rinterface.h) - CFLAGS="$OLD_CFLAGS" -else - REAL_TARGET="dummy" - ENABLE_REAL="@# " -fi - -if test "$yap_cv_python" = "no"; then - PYTHON_TARGET="dummy" - ENABLE_PYTHON="@# " -elif test -e "$srcdir"/packages/python/Makefile.in ; then - PYTHON_TARGET="pitf" - ENABLE_PYTHON="" - if test "$yap_cv_python" = "yes" - then - AC_CHECK_PROGS(PYTHON, python, "none") - else - PYTHON="$yap_cv_python" - fi - PYTHONHOME=`$PYTHON -c'import sys; print sys.prefix'` - PYTHONVERSION=`"$PYTHON" -c "import sys; print sys.version[[:3]]"` - PYTHON_LIBS="-L $PYTHONHOME/lib -lpython$PYTHONVERSION" - PYTHON_INCLUDES="-I $PYTHONHOME/include/python$PYTHONVERSION" -else - PYTHON_TARGET="dummy" - ENABLE_PYTHON="@# " -fi - if test "$yap_cv_judy" != "no"; then AC_CHECK_LIB(Judy, Judy1Set,,[AC_MSG_RESULT([libJudy not found, UDI will only work with one Index at a time])]) fi -CUDA_LDFLAGS="" -CUDA_CPPFLAGS="" -if test "$yap_cv_cuda" = no -then - ENABLE_CUDA="@# " -else - AC_PATH_PROG(NVCC, [nvcc], [no], [$yap_cv_cuda/bin]) - if test "$yap_cv_cuda" = no - then - ENABLE_CUDA="@# " - else - ENABLE_CUDA="" - case "$target_os" in - *darwin*) - CUDA_LDFLAGS="$LDFLAGS" - CUDA_CPPFLAGS="-shared -arch=sm_20 -Xcompiler -fPIC -O3 " - CUDA_SHLIB_LD="$NVCC -Xcompiler -dynamiclib -L../.. -lYap " - ;; - **) - CUDA_LDFLAGS="$LDFLAGS $LIBS" - CUDA_CPPFLAGS="-shared -arch=sm_20 -Xcompiler -fPIC -O3 " - CUDA_SHLIB_LD="$NVCC -shared -Xcompiler -export-dynamic" - ;; - esac - fi -fi - -dnl if test "$yap_cv_cudd" != "no" -dnl then -dnl AC_CHECK_LIB(cudd,Cudd_Init) -dnl fi - -if test "$yap_cv_myddas" != "no" -then - dnl check for mysql - AC_SEARCH_LIBS(mysql_init, [mysqlclient], [yap_cv_mysql="yes"], [yap_cv_mysql="no"]) - if test "$yap_cv_mysql" = yes - then - YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL" - fi - - dnl check for odbc - case "$target_os" in - *darwin*) - LIBS="$LIBS -framework CoreFoundation" - ;; - **) - ;; - esac - AC_SEARCH_LIBS(SQLAllocHandle, [odbc], [yap_cv_odbc="yes"], [yap_cv_odbc="no"]) - if test "$yap_cv_odbc" = yes - then - ODBC_LIBS="$ODBC_LIBS -lodbc" - else - AC_SEARCH_LIBS(SQLAllocHandle, [iodbc], [yap_cv_odbc="yes"], [yap_cv_odbc="no"]) - if test "$yap_cv_odbc" = yes - then - ODBC_LIBS="$ODBC_LIBS -liodbc" - fi - fi - if test "$yap_cv_odbc" = yes - then - YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC" - fi - - if test "$myddasstats" = "yes" - then - YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_STATS" - fi - - if test "$myddastoplevel" = "yes" - then - YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_TOP_LEVEL" - fi - -fi - -if test "$yap_cv_cudd" != no; then - oldlibs="$LIBS" - if test "$yap_cv_cudd" != "NONE" -a "$yap_cv_cudd" != "yes"; then - CUDD_CPPFLAGS="-I $yap_cv_cudd/include" - cudd_dir="$yap_cv_cudd" - elif test "$prefix" != "NONE"; then - CUDD_CPPFLAGS="-I $prefix/include" - cudd_dir="$prefix" - else - CUDD_CPPFLAGS="-I /usr/local/include" - cudd_dir=/usr/local - fi - OLD_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $CUDD_CPPFLAGS" - AC_CHECK_HEADERS(util.h cudd/util.h cudd.h cudd/cudd.h) - AC_CHECK_HEADERS(cuddInt.h cudd/cuddInt.h) - dnl cudd can be most everywhere - if test -d "$cudd_dir/lib64/cudd" -a "$YAP_TARGET" = amd64; then - LIBS="$LIBS -L $cudd_dir/lib64/cudd" - elif test -d "$cudd_dir/lib64" -a "$YAP_TARGET" = amd64; then - LIBS="$LIBS -L $cudd_dir/lib64 -L $cudd_dir/lib" - elif test -d "$cudd_dir/lib/cudd"; then - LIBS="$LIBS -L $cudd_dir/lib/cudd" - elif test -d "$cudd_dir/lib"; then - LIBS="$LIBS -L $cudd_dir/lib" - fi - if test -d "$cudd_dir/util"; then - LIBS="$LIBS -L $cudd_dir/util" - fi - AC_SEARCH_LIBS(util_print_cpu_stats, [cuddutil util]) - if test -d "$cudd_dir/st"; then - LIBS="$LIBS -L $cudd_dir/st" - fi - AC_SEARCH_LIBS(st_insert, [cuddst st]) - if test -d "$cudd_dir/epd"; then - LIBS="$LIBS -L $cudd_dir/epd" - fi - AC_SEARCH_LIBS(EpdAdd, [epd]) - if test -d "$cudd_dir/mtr"; then - LIBS="$LIBS -L $cudd_dir/mtr" - fi - AC_SEARCH_LIBS(Mtr_InitTree, [mtr]) - if test -d "$cudd_dir/cudd"; then - LIBS="$LIBS -L $cudd_dir/cudd" - fi - AC_SEARCH_LIBS(Cudd_Init, [cudd], [cudd_installed="yes"], [cudd_installed="no"]) - CPPFLAGS="$OLD_CPPFLAGS" - if test "$cudd_installed" = yes; then - CUDD_LDFLAGS="$LIBS" - else - cat << EOF -################################################################## -# ERROR: Could not find cudd library. Either I don't have the -# correct path, or CUDD is installed in some strange way -################################################################## -EOF - fi - LIBS="$oldlibs" -fi - if test "$threads" = yes then AC_CHECK_LIB(pthread,pthread_create) @@ -1037,13 +680,6 @@ fi CMFLAGS=-fpic CIFLAGS=-I. -if test "$use_gecode" = no; then - ENABLE_GECODE="@# " -else - ENABLE_GECODE="" -fi -AC_SUBST(ENABLE_GECODE) - if test "$use_prism" = no; then ENABLE_PRISM="@# " else @@ -1133,149 +769,6 @@ else ENABLE_ZLIB="@# " fi -dnl -dnl java is hard -dnl -if test "$yap_cv_java" = no; then - ENABLE_JPL="@#" -elif test -e "$srcdir"/packages/jpl/Makefile.in; then - ENABLE_JPL="" - if test "$yap_cv_java" != "yes"; then - JAVA_HOME=$yap_cv_java - JAVAPREFIX="$JAVA_HOME"/bin - elif test -n "$JAVA_HOME"; then - JAVAPREFIX="$JAVA_HOME"/bin - fi - - -AC_SUBST(JAVA_HOME) -AC_SUBST(JAVACFLAGS) -AC_SUBST(JAVALIBS) -AC_SUBST(JUNIT) -AC_SUBST(JPLCFLAGS) -AC_SUBST(JPLLDFLAGS) -AC_SUBST(LIBJPL) -AC_SUBST(JAVA_PRELOAD) -AC_SUBST(CMDEXT) - -CMDEXT=sh - -if test "x$JAVALIBS" = "x"; then - case "$target_os" in - *darwin*) - JAVALIBS="-Wl,-framework,JavaVM" - ;; - *powerpc-linux*) - JAVALIBS="-ljava -ljvm" - ;; - *win32*|*win64*) - JAVALIBS="-ljvm" - CMDEXT=bat - ;; - *) - JAVALIBS="-ljava -lverify -ljvm" - ;; - esac -fi - -case "$target_os" in - *win32*) - JPLLDFLAGS="$JPLLDFLAGS -Wl,--kill-at" - LIBJPL=jpl - ;; - *win64*) - LIBJPL=jpl - ;; - *) - LIBJPL=libjpl - ;; -esac - -dnl ================================================================ -dnl Java stuff -dnl ================================================================ - - -if test "x$JAVACFLAGS" = x; then - JAVACFLAGS="-source 1.4 -target 1.4" -fi - -m4_include([packages/jpl/ac/ac_prog_java.m4]) -m4_include([packages/jpl/ac/ac_prog_java_works.m4]) -m4_include([packages/jpl/ac/ac_prog_javac.m4]) -m4_include([packages/jpl/ac/ac_prog_javac_works.m4]) -m4_include([packages/jpl/ac/ac_prog_javadoc.m4]) -m4_include([packages/jpl/ac/ac_jni_include_dirs.m4]) -m4_include([packages/jpl/ac/ac_prog_jar.m4]) - -java_abs_paths=no -AC_CHECKING(Java configuration) -if test -r /etc/java/java2.conf; then - AC_MSG_RESULT(Using /etc/java/java2.conf) - eval `grep '\(JAVA\|JRE\|JDK\|SDK\).*=' /etc/java/java2.conf | sed 's/ *= */=/'` - if test ! -z "$JAVA_BINDIR"; then - PATH="$PATH:$JAVA_BINDIR" - java_abs_paths=yes - fi -fi - -AC_PROG_JAVAC(javac) -AC_PROG_JAVA(java) -AC_PROG_JAR(jar) -AC_PROG_JAVADOC(javadoc) - -escape_space() -{ sed -e "s/Program Files/Program-SPACE-Files/g" -e "s/ (x86)/SPACEX86/g" -} - -unescape_space() -{ sed -e "s/-SPACE-/ /g" -e "s/SPACEX86/ (x86)/g" -} - -AC_JNI_INCLUDE_DIR -for d in $(echo $JNI_INCLUDE_DIRS | escape_space); do - JPLCFLAGS="$JPLCFLAGS -I'$d'" -done -JPLCFLAGS="$(echo $JPLCFLAGS | unescape_space)" - -for d in $(echo $JNI_CLIENT_DIRS | escape_space); do - JPLLDFLAGS="$JPLLDFLAGS -L'$d'" -done -JPLLDFLAGS="$(echo $JPLLDFLAGS | unescape_space)" - -for d in $(echo $JNI_CLIENT_DIRS | escape_space); do - if test -f "$d/libjsig.$SO"; then - JAVALIBS="-ljsig $JAVALIBS" - JAVA_PRELOAD=$d/libjsig.$SO - break - fi -done -JAVA_PRELOAD="$(echo $JAVA_PRELOAD | unescape_space)" - -if test "$java_abs_paths" = yes; then - JAVA_CC="$JAVA_BINDIR/$JAVA_CC" -fi - -AC_ARG_WITH(junit, [ --with-junit=PATH Specify location of the junit JAR file], - [case "$withval" in - yes) JUNIT=/usr/share/java/junit.jar - ;; - no) JUNIT="" - ;; - *) JUNIT="$withval" - ;; - esac - ], - [ if test "x$JUNIT" = "x" -a -r /usr/share/java/junit.jar; then - JUNIT=/usr/share/java/junit.jar - fi - ] - ) - -JAVA_HOME=$_JTOPDIR - -fi - if test "$cross_compiling" = "yes" then YAP_EXTRAS= @@ -1806,10 +1299,7 @@ fi if test "$yap_cv_judy" != "no"; then AC_CHECK_HEADERS(Judy.h) fi -if test "$yap_cv_myddas" != "no" -then - AC_CHECK_HEADERS(mysql/mysql.h) -fi + if test "$yap_cv_readline" != "no" then AC_CHECK_HEADERS( readline/readline.h) @@ -1922,11 +1412,6 @@ AC_SUBST(INSTALL_INFO) dnl let YAP_EXTRAS fall through configure, from the env into Makefile AC_SUBST(YAP_EXTRAS) AC_SUBST(NO_BUILTIN_REGEXP) -AC_SUBST(ENABLE_CUDA) -AC_SUBST(NVCC) -AC_SUBST(CUDA_SHLIB_LD) -AC_SUBST(CUDA_CPPFLAGS) -AC_SUBST(CUDA_LDFLAGS) AC_SUBST(ENABLE_CHR) AC_SUBST(ENABLE_CLIB) AC_SUBST(ENABLE_CLPQR) @@ -1954,10 +1439,6 @@ AC_SUBST(STATIC_MODE) AC_SUBST(ENABLE_WINCONSOLE) AC_SUBST(EXTRA_INCLUDES_FOR_WIN32) -AC_SUBST(ENABLE_CUDD) -AC_SUBST(ENABLE_BDDLIB) -AC_SUBST(CUDD_LDFLAGS) -AC_SUBST(CUDD_CPPFLAGS) AC_SUBST(ENABLE_MINISAT) AC_SUBST(ENABLE_REAL) AC_SUBST(REAL_TARGET) @@ -1966,10 +1447,6 @@ AC_SUBST(REAL_LIBS) AC_SUBST(INSTALL_MATLAB) AC_SUBST(MATLAB_INCLUDE) AC_SUBST(INSTALL_PRISM) -AC_SUBST(PYTHON_TARGET) -AC_SUBST(ENABLE_PYTHON) -AC_SUBST(PYTHON_INCLUDES) -AC_SUBST(PYTHON_LIBS) dnl check for threaded code AC_MSG_CHECKING(for gcc threaded code) @@ -2292,51 +1769,11 @@ AC_SUBST(TARGETS) AC_SUBST(PLTARGETS) AC_SUBST(CHR_TARGETS) -dnl clib -if test "$ENABLE_CLIB" = ""; then -CLIB_TARGETS="socket.$SO cgi.$SO memfile.$SO files.$SO mime.$SO $CRYPT_TARGETS" -CLIB_PLTARGETS="socket.pl cgi.pl memfile.pl filesex.pl mime.pl $CRYPT_TARGETS" - -if test "$ac_cv_func_setitimer" = "yes"; then - CLIB_TARGETS="$CLIB_TARGETS time.$SO" - CLIB_PLTARGETS="$CLIB_PLTARGETS time.pl" -else - echo "WARNING: no setitimer(); dropping time.pl from targets" -fi - -if test "$IN_UNIX" = ""; then -CLIB_TARGETS="uid.$SO unix.$SO $CLIB_TARGETS" -CLIB_PLTARGETS="uid.pl unix.pl $CLIB_PLTARGETS" -CLIB_NETLIBS= -else -AC_CHECK_FUNC(socket, [], [ - AC_CHECK_LIB(socket, socket, - [CLIB_NETLIBS="$CLIB_NETLIBS -lsocket"] - AC_DEFINE(HAVE_LIBSOCKET, 1, - "Define if you have the socket library (-lsocket)."))]) -AC_CHECK_FUNC(gethostent, [], [ - AC_CHECK_LIB(nsl, gethostent, - [CLIB_NETLIBS="$CLIB_NETLIBS -lnsl"] - AC_DEFINE(HAVE_LIBNSL, 1, - "Define if you have the nsl library (-lnsl)."))]) -fi AC_CHECK_LIB(pthread, pthread_create, [CLIB_PTHREADS="-lpthread"],[CLIB_PTHREADS=""]) - -oldlibs="$LIBS" -AC_CHECK_LIB(crypt, crypt, CRYPT_TARGET=crypt.\$SO, CRYPT_TARGET="") -CLIB_CRYPTLIBS="$LIBS" -AC_CHECK_FUNCS(crypt) -LIBS="$oldlibs" - AC_SUBST(CLIB_PTHREADS) -AC_SUBST(CLIB_TARGETS) -AC_SUBST(CLIB_PLTARGETS) -AC_SUBST(CLIB_NETLIBS) -AC_SUBST(CLIB_CRYPTLIBS) -fi AC_CHECK_TYPES(socklen_t, [], [], [ @@ -2398,29 +1835,6 @@ AC_TRY_COMPILE( AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) -if test "$with_time" = yes; then - if test "$ac_cv_func_setitimer" = "yes"; then - TARGETS="$TARGETS time.$SO" - else - echo "WARNING: no setitimer(); dropping time.pl from targets" - fi -fi - -if test "$ac_cv_func_getrlimit" = "yes"; then - TARGETS="$TARGETS rlimit.$SO" -else - echo "WARNING: no getrlimit(); dropping rlimit.pl from targets" -fi - -AC_ARG_ENABLE(mimecharset, - [ --enable-mimecharset=charset Default MIME charset to set on new messages], - RFC2045CHARSET="$enableval", RFC2045CHARSET="us-ascii") - -AC_SUBST(RFC2045CHARSET) - -MAILDROP_CFLAGS="$SHLIB_CFLAGS -I. -I\$(srcdir) -I\$(srcdir)/.. -I../../../.." -AC_SUBST(MAILDROP_CFLAGS) - if test "$yap_cv_minisat" = no then ENABLE_MINISAT="@# " @@ -2431,127 +1845,102 @@ else ENABLE_MINISAT="" fi -dnl zlib -if test "$ENABLE_ZLIB" = "" +if test "x$PLARCH" = "x"; then + case "$host" in + *linux*) + PLARCH=`echo $host | sed 's/-.*/-linux/'` + ;; + i?86-*mingw32*) + # Make PLARCH match the definition in src/config/win32.h + PLARCH=i386-win32 + ;; + x86_64-*mingw32*) + # Make PLARCH match the definition in src/config/win64.h + PLARCH=x64-win64 + ;; + *-gnu) + PLARCH=`echo $host | sed 's/\([^-]*\)-[^-]*-\([^-]*\)-gnu/\1-\2/'` + ;; + *) + PLARCH=`echo $host | sed 's/\([^-]*\)-[^-]*-\([^-]*\)/\1-\2/'` + ;; + esac +fi + + + +m4_include([library/myddas/configure.in]) + +if test "$yap_cv_R" != "no" -a -e "$srcdir"/packages/real/Makefile.in; then + ENABLE_REAL="" + + m4_include([packages/real/configure.in]) +else + REAL_TARGET="dummy" + ENABLE_REAL="@# " +fi + +dnl +dnl java is hard +dnl +if test "$yap_cv_java" = no; then + ENABLE_JPL="@#" +elif test -e "$srcdir"/packages/jpl/Makefile.in; then + ENABLE_JPL="" + if test "$yap_cv_java" != "yes"; then + JAVA_HOME=$yap_cv_java + JAVAPREFIX="$JAVA_HOME"/bin + elif test -n "$JAVA_HOME"; then + JAVAPREFIX="$JAVA_HOME"/bin + fi + + m4_include([packages/jpl/configure.in]) + +fi + +if test "$ENABLE_CLIB" = "" then -AC_CHECK_LIB(z, zlibVersion, - ZLIBS="-lz" - ZLIB=yes, - ZLIB=no) +m4_include([packages/clib/configure.in]) -if test "$ZLIB" = yes; then - ZLIB_TARGETS="zlib4pl.$SO" - ZLIB_PLTARGETS='zlib.pl' - ZLIB_INSTALL=install -else - ZLIB_TARGETS=nolib - ZLIB_INSTALL=nolib - cat << EOF -################################################################## -# ERROR: Could not find library zlib (-lz). Dropped library(zlib) -# Library zlib is available from http://www.zlib.net/ -# Most Unix/Linux distributions are shipped with binaries. Make -# sure to have the development library installed. -################################################################## -EOF fi +if test "$ENABLE_LIBARCHIVE" = "" +then + +m4_include([packages/archive/configure.in]) -AC_SUBST(ZLIBS) -AC_SUBST(ZLIB_TARGETS) -AC_SUBST(ZLIB_PLTARGETS) -AC_SUBST(ZLIB_INSTALL) fi -dnl archive +if test "$ENABLE_ODBC" = ""; then + +m4_include([packages/odbc/configure.in]) -if test "$yap_cv_odbc" = yes; then - ODBC_TARGETS="odbc4pl.$SO" - ODBC_PLTARGETS=odbc.pl - AC_CHECK_HEADERS(sql.h) - AC_CHECK_FUNCS(localtime mktime gmtime timegm) - AC_CHECK_TYPES([SQLLEN, SQLULEN],,, - [#include - ]) else ODBC_TARGETS=nolib ODBC_PLTARGETS=odbc.pl fi -if test "$ENABLE_LIBARCHIVE" = "" +m4_include([packages/bdd/configure.in]) + +dnl zlib +if test "$ENABLE_ZLIB" = "" then -OLD_LIBS=$LIBS -AC_CHECK_HEADER(archive.h, - [ AC_DEFINE([HAVE_ARCHIVE_H], 1, - [Define to 1 if you have .]) - ARCHIVEH=yes - ], - ARCHIVEH=no) - -if test "$ARCHIVEH" = yes; then - AC_CHECK_LIB(archive, archive_read_new, - ARCHIVE_LIBS="-larchive" - ARCHIVELIB=yes, - ARCHIVELIB=no) -fi - -LIBS="$LIBS -larchive" -AC_CHECK_FUNCS(archive_read_support_compression_bzip2 \ - archive_read_support_compression_compress \ - archive_read_support_compression_gzip \ - archive_read_support_compression_lzma \ - archive_read_support_compression_none \ - archive_read_support_compression_xz) - -AC_CHECK_FUNCS(archive_read_support_format_ar \ - archive_read_support_format_cpio \ - archive_read_support_format_empty \ - archive_read_support_format_iso9660 \ - archive_read_support_format_mtree \ - archive_read_support_format_raw \ - archive_read_support_format_tar \ - archive_read_support_format_zip) - -if test "$ARCHIVELIB" = yes; then - ARCHIVE_TARGETS="archive4pl.$SO" - ARCHIVE_PLTARGETS=archive.pl -else - ARCHIVE_TARGETS=nolib - cat << EOF -################################################################## -# ERROR: Could not find library archive (-larchive). Dropped -# library(archive). Library archive is available from -# http://code.google.com/p/libarchive/ -# -# Most Unix/Linux distributions are shipped with binaries. Make -# sure to have the development library installed. E.g. -# -# Debian/Ubuntu/Mint: aptitude install libarchive-dev -# Fedora/... yum install libarchive-devel -# MacOS (Macports): port install libarchive -################################################################## -EOF +m4_include([packages/zlib/configure.in]) fi -AC_SUBST(ARCHIVE_LIBS) -AC_SUBST(ARCHIVE_TARGETS) -AC_SUBST(ARCHIVE_PLTARGETS) +m4_include([packages/gecode/configure.in]) + +m4_include([packages/python/configure.in]) + +m4_include([packages/cuda/configure.in]) -LIBS="$OLD_LIBS" -fi AC_SUBST(ENABLE_LIBARCHIVE) -AC_SUBST(ODBC_CFLAGS) -AC_SUBST(ODBC_LDFLAGS) -AC_SUBST(ODBC_LIBS) -AC_SUBST(ODBC_TARGETS) -AC_SUBST(ODBC_PLTARGETS) - AC_SUBST(ENABLE_ODBC) mkdir -p library/lammpi @@ -2666,10 +2055,6 @@ if test "$ENABLE_JPL" = ""; then AC_CONFIG_FILES([packages/jpl/Makefile packages/jpl/jpl_paths.yap packages/jpl/src/java/Makefile ]) fi -if test "$ENABLE_PYTHON" = ""; then -AC_CONFIG_FILES([ packages/python/Makefile ]) -fi - if test "$ENABLE_PLDOC" = ""; then AC_CONFIG_FILES([packages/pldoc/Makefile]) AC_CONFIG_FILES([packages/pldoc/server/man_server.pl]) @@ -2728,7 +2113,7 @@ AC_CONFIG_FILES([packages/CLPBN/horus/Makefile]) fi if test "$ENABLE_GECODE" = ""; then -AC_CONFIG_FILES([library/gecode/Makefile]) +AC_CONFIG_FILES([packages/gecode/Makefile]) fi if test "$ENABLE_PRISM" = ""; then @@ -2738,7 +2123,5 @@ fi AC_CONFIG_FILES([packages/yap-lbfgs/Makefile]) -AC_CONFIG_FILES([packages/cuda/Makefile]) - AC_OUTPUT() From 3977ceee60420483e4258e812ba11e051e6b8dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:07:44 +0000 Subject: [PATCH 12/30] fix excessive inlining --- library/tries/Makefile.in | 2 +- library/tries/base_dbtries.c | 29 +++++++------- library/tries/base_dbtries.h | 14 +++---- library/tries/base_itries.c | 74 ++++++++++++++++++------------------ library/tries/base_itries.h | 74 ++++++++++++++++++------------------ library/tries/base_tries.c | 70 +++++++++++++++++----------------- library/tries/base_tries.h | 72 +++++++++++++++++------------------ library/tries/core_dbtries.c | 35 +++++++++-------- library/tries/core_dbtries.h | 24 ++++++------ library/tries/core_tries.c | 66 ++++++++++++++++---------------- library/tries/core_tries.h | 50 ++++++++++++------------ library/tries/tries.c | 2 +- 12 files changed, 254 insertions(+), 258 deletions(-) diff --git a/library/tries/Makefile.in b/library/tries/Makefile.in index aff464d86..c376f346c 100644 --- a/library/tries/Makefile.in +++ b/library/tries/Makefile.in @@ -37,7 +37,7 @@ SO=@SO@ CWD=$(PWD) # -OBJS=core_tries.o base_tries.o tries.o base_itries.o itries.o +OBJS=core_tries.o base_tries.o base_dbtries.o tries.o base_itries.o itries.o SOBJS=tries.@SO@ itries.@SO@ #in some systems we just create a single object, in others we need to diff --git a/library/tries/base_dbtries.c b/library/tries/base_dbtries.c index 999744667..917505523 100644 --- a/library/tries/base_dbtries.c +++ b/library/tries/base_dbtries.c @@ -210,10 +210,10 @@ static TrNode depth_reduction(TrEntry trie, TrNode depth_node, YAP_Int opt_level); static TrNode breadth_reduction(TrEntry trie, TrNode breadth_node, YAP_Int opt_level); -inline int compare_label_nodes(TrData data1, TrData data2); -inline void move_after(TrData data_source, TrData data_dest); -inline void move_last_data_after(TrData moveto_data); -inline void set_depth_breadth_reduction_current_data(TrData data); +static inline int compare_label_nodes(TrData data1, TrData data2); +static inline void move_after(TrData data_source, TrData data_dest); +static inline void move_last_data_after(TrData moveto_data); +static inline void set_depth_breadth_reduction_current_data(TrData data); /* -------------------------- */ @@ -227,7 +227,7 @@ static TrData CURRENT_DEPTH_BREADTH_DATA; /* API */ /* -------------------------- */ -inline + YAP_Term trie_depth_breadth(TrEntry trie, TrEntry db_trie, YAP_Int opt_level, YAP_Int start_counter, YAP_Int *end_counter) { TrNode depth_node, breadth_node, nested_trie; core_set_label_counter(start_counter); @@ -257,32 +257,32 @@ YAP_Term trie_depth_breadth(TrEntry trie, TrEntry db_trie, YAP_Int opt_level, YA } -inline + YAP_Int trie_get_db_opt_level_count(YAP_Int opt_level) { return core_db_trie_get_optimization_level_count(opt_level); } -inline + TrData trie_get_depth_breadth_reduction_current_data(void) { return CURRENT_DEPTH_BREADTH_DATA; } -inline + void trie_replace_nested_trie(TrEntry trie, YAP_Int nested_trie_id, YAP_Term new_term) { core_depth_breadth_trie_replace_nested_trie(TrNode_child(TrEntry_trie(trie)), nested_trie_id, new_term); return; } -inline + YAP_Int trie_get_db_opt_min_prefix(void) { return core_get_trie_db_opt_min_prefix(); } -inline + void trie_set_db_opt_min_prefix(YAP_Int min_prefix) { core_set_trie_db_opt_min_prefix(min_prefix); return; @@ -294,7 +294,7 @@ void trie_set_db_opt_min_prefix(YAP_Int min_prefix) { /* -------------------------- */ -inline +static inline void set_depth_breadth_reduction_current_data(TrData data) { CURRENT_DEPTH_BREADTH_DATA = data; return; @@ -359,7 +359,7 @@ TrNode breadth_reduction(TrEntry trie, TrNode breadth_node, YAP_Int opt_level) { } -inline +static inline void move_last_data_after(TrData moveto_data) { TrEntry trie = CURRENT_TRIE; TrData last_data = TrEntry_last_data(trie); @@ -378,7 +378,7 @@ void move_last_data_after(TrData moveto_data) { } -inline +static inline void move_after(TrData data_source, TrData data_dest) { TrEntry trie = CURRENT_TRIE; if (data_source == TrEntry_first_data(trie)) @@ -407,7 +407,6 @@ void move_after(TrData data_source, TrData data_dest) { } -inline void trie_data_order_correction(void) { TrEntry trie = CURRENT_TRIE; TrData inserted_data = TrEntry_last_data(trie); @@ -434,7 +433,7 @@ void trie_data_order_correction(void) { } -inline +static inline int compare_label_nodes(TrData data1, TrData data2) { YAP_Term t1 = TrNode_entry(TrData_leaf(data1)), t2 = TrNode_entry(TrData_leaf(data2)); YAP_Int i1 = atol(YAP_AtomName(YAP_AtomOfTerm(t1)) + 1), i2 = atol(YAP_AtomName(YAP_AtomOfTerm(t2)) + 1); diff --git a/library/tries/base_dbtries.h b/library/tries/base_dbtries.h index efb082470..0e0762e47 100644 --- a/library/tries/base_dbtries.h +++ b/library/tries/base_dbtries.h @@ -207,10 +207,10 @@ /* API */ /* --------------------------- */ -inline YAP_Term trie_depth_breadth(TrEntry trie, TrEntry db_trie, YAP_Int opt_level, YAP_Int start_counter, YAP_Int *end_counter); -inline void trie_data_order_correction(void); -inline TrData trie_get_depth_breadth_reduction_current_data(void); -inline YAP_Int trie_get_db_opt_level_count(YAP_Int opt_level); -inline void trie_replace_nested_trie(TrEntry trie, YAP_Int nested_trie_id, YAP_Term new_term); -inline YAP_Int trie_get_db_opt_min_prefix(void); -inline void trie_set_db_opt_min_prefix(YAP_Int min_prefix); +YAP_Term trie_depth_breadth(TrEntry trie, TrEntry db_trie, YAP_Int opt_level, YAP_Int start_counter, YAP_Int *end_counter); +void trie_data_order_correction(void); +TrData trie_get_depth_breadth_reduction_current_data(void); +YAP_Int trie_get_db_opt_level_count(YAP_Int opt_level); +void trie_replace_nested_trie(TrEntry trie, YAP_Int nested_trie_id, YAP_Term new_term); +YAP_Int trie_get_db_opt_min_prefix(void); +void trie_set_db_opt_min_prefix(YAP_Int min_prefix); diff --git a/library/tries/base_itries.c b/library/tries/base_itries.c index b337c253c..7b7554c64 100644 --- a/library/tries/base_itries.c +++ b/library/tries/base_itries.c @@ -32,7 +32,7 @@ static TrEntry FIRST_ITRIE, CURRENT_ITRIE; /* API */ /* -------------------------- */ -inline + void itrie_init_module(void) { ITRIE_ENGINE = core_trie_init_module(); FIRST_ITRIE = NULL; @@ -40,7 +40,7 @@ void itrie_init_module(void) { } -inline + void itrie_data_save(TrNode node, FILE *file) { TrData data; @@ -50,7 +50,7 @@ void itrie_data_save(TrNode node, FILE *file) { } -inline + void itrie_data_load(TrNode node, YAP_Int depth, FILE *file) { TrData data; YAP_Int pos, neg, timestamp; @@ -62,7 +62,7 @@ void itrie_data_load(TrNode node, YAP_Int depth, FILE *file) { } -inline + void itrie_data_print(TrNode node) { TrData data; @@ -72,7 +72,7 @@ void itrie_data_print(TrNode node) { } -inline + void itrie_data_copy(TrNode node_dest, TrNode node_source) { TrData data_dest, data_source; @@ -83,7 +83,7 @@ void itrie_data_copy(TrNode node_dest, TrNode node_source) { } -inline + void itrie_data_destruct(TrNode node) { TrEntry itrie; TrData data; @@ -102,7 +102,7 @@ void itrie_data_destruct(TrNode node) { } -inline + void itrie_data_add(TrNode node_dest, TrNode node_source) { TrData data_dest, data_source; @@ -116,7 +116,7 @@ void itrie_data_add(TrNode node_dest, TrNode node_source) { } -inline + void itrie_data_subtract(TrNode node_dest, TrNode node_source) { TrData data_dest, data_source; @@ -130,7 +130,7 @@ void itrie_data_subtract(TrNode node_dest, TrNode node_source) { } -inline + TrEntry itrie_open(void) { TrEntry itrie; TrNode node; @@ -144,7 +144,7 @@ TrEntry itrie_open(void) { } -inline + void itrie_close(TrEntry itrie) { core_trie_close(ITRIE_ENGINE, TrEntry_trie(itrie), &itrie_data_destruct); if (TrEntry_next(itrie)) { @@ -157,7 +157,7 @@ void itrie_close(TrEntry itrie) { } -inline + void itrie_close_all(void) { TrEntry itrie; @@ -171,33 +171,33 @@ void itrie_close_all(void) { } -inline + void itrie_set_mode(TrEntry itrie, YAP_Int mode) { TrEntry_mode(itrie) = mode; return; } -inline + YAP_Int itrie_get_mode(TrEntry itrie) { return TrEntry_mode(itrie); } -inline + void itrie_set_timestamp(TrEntry itrie, YAP_Int timestamp) { TrEntry_timestamp(itrie) = timestamp; return; } -inline + YAP_Int itrie_get_timestamp(TrEntry itrie) { return TrEntry_timestamp(itrie); } -inline + void itrie_put_entry(TrEntry itrie, YAP_Term entry) { TrData data; TrNode node; @@ -213,7 +213,7 @@ void itrie_put_entry(TrEntry itrie, YAP_Term entry) { } -inline + void itrie_update_entry(TrEntry itrie, YAP_Term entry) { TrData data; TrNode node; @@ -226,7 +226,7 @@ void itrie_update_entry(TrEntry itrie, YAP_Term entry) { } -inline + TrData itrie_check_entry(TrEntry itrie, YAP_Term entry) { TrNode node; @@ -236,13 +236,13 @@ TrData itrie_check_entry(TrEntry itrie, YAP_Term entry) { } -inline + YAP_Term itrie_get_entry(TrData data) { return core_trie_get_entry(TrData_leaf(data)); } -inline + void itrie_get_data(TrData data, YAP_Int *pos, YAP_Int *neg, YAP_Int *timestamp) { *pos = TrData_pos(data); *neg = TrData_neg(data); @@ -251,7 +251,7 @@ void itrie_get_data(TrData data, YAP_Int *pos, YAP_Int *neg, YAP_Int *timestamp) } -inline + TrData itrie_traverse_init(TrEntry itrie) { TrData data, *bucket; YAP_Int traverse_bucket = 0; @@ -269,7 +269,7 @@ TrData itrie_traverse_init(TrEntry itrie) { } -inline + TrData itrie_traverse_cont(TrEntry itrie) { TrData data, *bucket; YAP_Int traverse_bucket; @@ -294,35 +294,35 @@ TrData itrie_traverse_cont(TrEntry itrie) { } -inline + void itrie_remove_entry(TrData data) { core_trie_remove_entry(ITRIE_ENGINE, TrData_leaf(data), &itrie_data_destruct); return; } -inline + void itrie_remove_subtree(TrData data) { core_trie_remove_subtree(ITRIE_ENGINE, TrData_leaf(data), &itrie_data_destruct); return; } -inline + void itrie_add(TrEntry itrie_dest, TrEntry itrie_source) { core_trie_add(TrEntry_trie(itrie_dest), TrEntry_trie(itrie_source), &itrie_data_add); return; } -inline + void itrie_subtract(TrEntry itrie_dest, TrEntry itrie_source) { core_trie_add(TrEntry_trie(itrie_dest), TrEntry_trie(itrie_source), &itrie_data_subtract); return; } -inline + void itrie_join(TrEntry itrie_dest, TrEntry itrie_source) { CURRENT_ITRIE = itrie_dest; core_trie_join(ITRIE_ENGINE, TrEntry_trie(itrie_dest), TrEntry_trie(itrie_source), &itrie_data_add, &itrie_data_copy); @@ -330,40 +330,40 @@ void itrie_join(TrEntry itrie_dest, TrEntry itrie_source) { } -inline + void itrie_intersect(TrEntry itrie_dest, TrEntry itrie_source) { core_trie_intersect(ITRIE_ENGINE, TrEntry_trie(itrie_dest), TrEntry_trie(itrie_source), &itrie_data_add, &itrie_data_destruct); return; } -inline + YAP_Int itrie_count_join(TrEntry itrie1, TrEntry itrie2) { return core_trie_count_join(TrEntry_trie(itrie1), TrEntry_trie(itrie2)); } -inline + YAP_Int itrie_count_intersect(TrEntry itrie1, TrEntry itrie2) { return core_trie_count_intersect(TrEntry_trie(itrie1), TrEntry_trie(itrie2)); } -inline + void itrie_save(TrEntry itrie, FILE *file) { core_trie_save(TrEntry_trie(itrie), file, &itrie_data_save); return; } -inline + void itrie_save_as_trie(TrEntry itrie, FILE *file) { core_trie_save(TrEntry_trie(itrie), file, NULL); return; } -inline + TrEntry itrie_load(FILE *file) { TrEntry itrie; TrNode node; @@ -382,28 +382,28 @@ TrEntry itrie_load(FILE *file) { } -inline + void itrie_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes) { core_trie_stats(ITRIE_ENGINE, memory, tries, entries, nodes); return; } -inline + void itrie_max_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes) { core_trie_max_stats(ITRIE_ENGINE, memory, tries, entries, nodes); return; } -inline + void itrie_usage(TrEntry itrie, YAP_Int *entries, YAP_Int *nodes, YAP_Int *virtual_nodes) { core_trie_usage(TrEntry_trie(itrie), entries, nodes, virtual_nodes); return; } -inline + void itrie_print(TrEntry itrie) { core_trie_print(TrEntry_trie(itrie), &itrie_data_print); return; diff --git a/library/tries/base_itries.h b/library/tries/base_itries.h index 178ba3486..f8bab1723 100644 --- a/library/tries/base_itries.h +++ b/library/tries/base_itries.h @@ -168,40 +168,40 @@ typedef struct itrie_data { /* API */ /* --------------------------- */ -inline void itrie_init_module(void); -inline void itrie_data_save(TrNode node, FILE *file); -inline void itrie_data_load(TrNode node, YAP_Int depth, FILE *file); -inline void itrie_data_print(TrNode node); -inline void itrie_data_copy(TrNode node_dest, TrNode node_source); -inline void itrie_data_destruct(TrNode node); -inline void itrie_data_add(TrNode node_dest, TrNode node_source); -inline void itrie_data_subtract(TrNode node_dest, TrNode node_source); -inline TrEntry itrie_open(void); -inline void itrie_close(TrEntry itrie); -inline void itrie_close_all(void); -inline void itrie_set_mode(TrEntry itrie, YAP_Int mode); -inline YAP_Int itrie_get_mode(TrEntry itrie); -inline void itrie_set_timestamp(TrEntry itrie, YAP_Int timestamp); -inline YAP_Int itrie_get_timestamp(TrEntry itrie); -inline void itrie_put_entry(TrEntry itrie, YAP_Term entry); -inline void itrie_update_entry(TrEntry itrie, YAP_Term entry); -inline TrData itrie_check_entry(TrEntry itrie, YAP_Term entry); -inline YAP_Term itrie_get_entry(TrData data); -inline void itrie_get_data(TrData data, YAP_Int *pos, YAP_Int *neg, YAP_Int *timestamp); -inline TrData itrie_traverse_init(TrEntry itrie); -inline TrData itrie_traverse_cont(TrEntry itrie); -inline void itrie_remove_entry(TrData data); -inline void itrie_remove_subtree(TrData data); -inline void itrie_add(TrEntry itrie_dest, TrEntry itrie_source); -inline void itrie_subtract(TrEntry itrie_dest, TrEntry itrie_source); -inline void itrie_join(TrEntry itrie_dest, TrEntry itrie_source); -inline void itrie_intersect(TrEntry itrie_dest, TrEntry itrie_source); -inline YAP_Int itrie_count_join(TrEntry itrie1, TrEntry itrie2); -inline YAP_Int itrie_count_intersect(TrEntry itrie1, TrEntry itrie2); -inline void itrie_save(TrEntry itrie, FILE *file); -inline void itrie_save_as_trie(TrEntry itrie, FILE *file); -inline TrEntry itrie_load(FILE *file); -inline void itrie_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); -inline void itrie_max_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); -inline void itrie_usage(TrEntry itrie, YAP_Int *entries, YAP_Int *nodes, YAP_Int *virtual_nodes); -inline void itrie_print(TrEntry itrie); +void itrie_init_module(void); +void itrie_data_save(TrNode node, FILE *file); +void itrie_data_load(TrNode node, YAP_Int depth, FILE *file); +void itrie_data_print(TrNode node); +void itrie_data_copy(TrNode node_dest, TrNode node_source); +void itrie_data_destruct(TrNode node); +void itrie_data_add(TrNode node_dest, TrNode node_source); +void itrie_data_subtract(TrNode node_dest, TrNode node_source); +TrEntry itrie_open(void); +void itrie_close(TrEntry itrie); +void itrie_close_all(void); +void itrie_set_mode(TrEntry itrie, YAP_Int mode); +YAP_Int itrie_get_mode(TrEntry itrie); +void itrie_set_timestamp(TrEntry itrie, YAP_Int timestamp); +YAP_Int itrie_get_timestamp(TrEntry itrie); +void itrie_put_entry(TrEntry itrie, YAP_Term entry); +void itrie_update_entry(TrEntry itrie, YAP_Term entry); +TrData itrie_check_entry(TrEntry itrie, YAP_Term entry); +YAP_Term itrie_get_entry(TrData data); +void itrie_get_data(TrData data, YAP_Int *pos, YAP_Int *neg, YAP_Int *timestamp); +TrData itrie_traverse_init(TrEntry itrie); +TrData itrie_traverse_cont(TrEntry itrie); +void itrie_remove_entry(TrData data); +void itrie_remove_subtree(TrData data); +void itrie_add(TrEntry itrie_dest, TrEntry itrie_source); +void itrie_subtract(TrEntry itrie_dest, TrEntry itrie_source); +void itrie_join(TrEntry itrie_dest, TrEntry itrie_source); +void itrie_intersect(TrEntry itrie_dest, TrEntry itrie_source); +YAP_Int itrie_count_join(TrEntry itrie1, TrEntry itrie2); +YAP_Int itrie_count_intersect(TrEntry itrie1, TrEntry itrie2); +void itrie_save(TrEntry itrie, FILE *file); +void itrie_save_as_trie(TrEntry itrie, FILE *file); +TrEntry itrie_load(FILE *file); +void itrie_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); +void itrie_max_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); +void itrie_usage(TrEntry itrie, YAP_Int *entries, YAP_Int *nodes, YAP_Int *virtual_nodes); +void itrie_print(TrEntry itrie); diff --git a/library/tries/base_tries.c b/library/tries/base_tries.c index 1f7831061..907334c7f 100644 --- a/library/tries/base_tries.c +++ b/library/tries/base_tries.c @@ -39,7 +39,6 @@ static YAP_Int CURRENT_TRAVERSE_MODE; /* API */ /* -------------------------- */ -inline void trie_init_module(void) { TRIE_ENGINE = core_trie_init_module(); FIRST_TRIE = NULL; @@ -48,7 +47,7 @@ void trie_init_module(void) { } -inline + void trie_data_load(TrNode node, YAP_Int depth, FILE *file) { TrData data; @@ -58,7 +57,7 @@ void trie_data_load(TrNode node, YAP_Int depth, FILE *file) { } -inline + void trie_data_copy(TrNode node_dest, TrNode node_source) { TrData data_dest; @@ -68,7 +67,7 @@ void trie_data_copy(TrNode node_dest, TrNode node_source) { } -inline + void trie_data_destruct(TrNode node) { TrEntry trie; TrData data; @@ -89,7 +88,7 @@ void trie_data_destruct(TrNode node) { } -inline + TrEntry trie_open(void) { TrEntry trie; TrNode node; @@ -103,7 +102,7 @@ TrEntry trie_open(void) { } -inline + void trie_close(TrEntry trie) { core_trie_close(TRIE_ENGINE, TrEntry_trie(trie), &trie_data_destruct); if (TrEntry_next(trie)) { @@ -116,7 +115,7 @@ void trie_close(TrEntry trie) { } -inline + void trie_close_all(void) { TrEntry trie; @@ -130,20 +129,20 @@ void trie_close_all(void) { } -inline + void trie_set_mode(YAP_Int mode) { core_trie_set_mode(mode); return; } -inline + YAP_Int trie_get_mode(void) { return core_trie_get_mode(); } -inline + TrData trie_put_entry(TrEntry trie, YAP_Term entry) { TrData data; TrNode node; @@ -157,7 +156,7 @@ TrData trie_put_entry(TrEntry trie, YAP_Term entry) { } -inline + TrData trie_check_entry(TrEntry trie, YAP_Term entry) { TrNode node; @@ -167,13 +166,13 @@ TrData trie_check_entry(TrEntry trie, YAP_Term entry) { } -inline + YAP_Term trie_get_entry(TrData data) { return core_trie_get_entry(TrData_leaf(data)); } -inline + TrData trie_get_first_entry(TrEntry trie) { TrData data; @@ -182,7 +181,7 @@ TrData trie_get_first_entry(TrEntry trie) { } -inline + TrData trie_get_last_entry(TrEntry trie) { TrData data; @@ -193,7 +192,7 @@ TrData trie_get_last_entry(TrEntry trie) { } -inline + TrData trie_traverse_init(TrEntry trie, TrData init_data) { TrData data; @@ -210,7 +209,7 @@ TrData trie_traverse_init(TrEntry trie, TrData init_data) { } -inline + TrData trie_traverse_cont(TrEntry trie) { TrData data; @@ -229,21 +228,21 @@ TrData trie_traverse_cont(TrEntry trie) { } -inline + void trie_remove_entry(TrData data) { core_trie_remove_entry(TRIE_ENGINE, TrData_leaf(data), &trie_data_destruct); return; } -inline + void trie_remove_subtree(TrData data) { core_trie_remove_subtree(TRIE_ENGINE, TrData_leaf(data), &trie_data_destruct); return; } -inline + void trie_join(TrEntry trie_dest, TrEntry trie_source) { CURRENT_TRIE = trie_dest; core_trie_join(TRIE_ENGINE, TrEntry_trie(trie_dest), TrEntry_trie(trie_source), NULL, &trie_data_copy); @@ -251,33 +250,33 @@ void trie_join(TrEntry trie_dest, TrEntry trie_source) { } -inline + void trie_intersect(TrEntry trie_dest, TrEntry trie_source) { core_trie_intersect(TRIE_ENGINE, TrEntry_trie(trie_dest), TrEntry_trie(trie_source), NULL, &trie_data_destruct); return; } -inline + YAP_Int trie_count_join(TrEntry trie1, TrEntry trie2) { return core_trie_count_join(TrEntry_trie(trie1), TrEntry_trie(trie2)); } -inline + YAP_Int trie_count_intersect(TrEntry trie1, TrEntry trie2) { return core_trie_count_intersect(TrEntry_trie(trie1), TrEntry_trie(trie2)); } -inline + void trie_save(TrEntry trie, FILE *file) { core_trie_save(TrEntry_trie(trie), file, NULL); return; } -inline + TrEntry trie_load(FILE *file) { TrEntry trie; TrNode node; @@ -296,35 +295,34 @@ TrEntry trie_load(FILE *file) { } -inline + void trie_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes) { core_trie_stats(TRIE_ENGINE, memory, tries, entries, nodes); return; } -inline + void trie_max_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes) { core_trie_max_stats(TRIE_ENGINE, memory, tries, entries, nodes); return; } -inline void trie_usage(TrEntry trie, YAP_Int *entries, YAP_Int *nodes, YAP_Int *virtual_nodes) { core_trie_usage(TrEntry_trie(trie), entries, nodes, virtual_nodes); return; } -inline + void trie_print(TrEntry trie) { core_trie_print(TrEntry_trie(trie), NULL); return; } -inline + void trie_data_construct(TrNode node) { TrData data; @@ -334,20 +332,20 @@ void trie_data_construct(TrNode node) { } -inline + void trie_set_traverse_mode(YAP_Int mode) { CURRENT_TRAVERSE_MODE = mode; return; } -inline + YAP_Int trie_get_traverse_mode(void) { return CURRENT_TRAVERSE_MODE; } -inline + TrData trie_traverse_first(TrEntry trie) { TrData data; if (CURRENT_TRAVERSE_MODE == TRAVERSE_MODE_FORWARD) @@ -358,7 +356,7 @@ TrData trie_traverse_first(TrEntry trie) { } -inline + TrData trie_traverse_next(TrData cur) { TrData data = NULL; if (cur) { @@ -374,14 +372,14 @@ TrData trie_traverse_next(TrData cur) { } -inline + void trie_disable_hash_table(void) { core_disable_hash_table(); return; } -inline + void trie_enable_hash_table(void) { core_enable_hash_table(); return; @@ -400,7 +398,7 @@ TrData get_data_from_trie_node(TrNode node) { } -inline + YAP_Term trie_to_list(TrEntry trie) { return core_trie_to_list(TrEntry_trie(trie)); } diff --git a/library/tries/base_tries.h b/library/tries/base_tries.h index 55429313c..e21e3274a 100644 --- a/library/tries/base_tries.h +++ b/library/tries/base_tries.h @@ -106,43 +106,43 @@ typedef struct trie_data { /* API */ /* --------------------------- */ -inline void trie_init_module(void); -inline void trie_data_load(TrNode node, YAP_Int depth, FILE *file); -inline void trie_data_copy(TrNode node_dest, TrNode node_source); -inline void trie_data_destruct(TrNode node); -inline TrEntry trie_open(void); -inline void trie_close(TrEntry trie); -inline void trie_close_all(void); -inline void trie_set_mode(YAP_Int mode); -inline YAP_Int trie_get_mode(void); -inline TrData trie_put_entry(TrEntry trie, YAP_Term entry); -inline TrData trie_check_entry(TrEntry trie, YAP_Term entry); -inline YAP_Term trie_get_entry(TrData data); -inline TrData trie_get_first_entry(TrEntry trie); -inline TrData trie_get_last_entry(TrEntry trie); -inline TrData trie_traverse_init(TrEntry trie, TrData init_data); -inline TrData trie_traverse_cont(TrEntry trie); -inline void trie_remove_entry(TrData data); -inline void trie_remove_subtree(TrData data); -inline void trie_join(TrEntry trie_dest, TrEntry trie_source); -inline void trie_intersect(TrEntry trie_dest, TrEntry trie_source); -inline YAP_Int trie_count_join(TrEntry trie1, TrEntry trie2); -inline YAP_Int trie_count_intersect(TrEntry trie1, TrEntry trie2); -inline void trie_save(TrEntry trie, FILE *file); -inline TrEntry trie_load(FILE *file); -inline void trie_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); -inline void trie_max_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); -inline void trie_usage(TrEntry trie, YAP_Int *entries, YAP_Int *nodes, YAP_Int *virtual_nodes); -inline void trie_print(TrEntry trie); +void trie_init_module(void); +void trie_data_load(TrNode node, YAP_Int depth, FILE *file); +void trie_data_copy(TrNode node_dest, TrNode node_source); +void trie_data_destruct(TrNode node); +TrEntry trie_open(void); +void trie_close(TrEntry trie); +void trie_close_all(void); +void trie_set_mode(YAP_Int mode); +YAP_Int trie_get_mode(void); +TrData trie_put_entry(TrEntry trie, YAP_Term entry); +TrData trie_check_entry(TrEntry trie, YAP_Term entry); +YAP_Term trie_get_entry(TrData data); +TrData trie_get_first_entry(TrEntry trie); +TrData trie_get_last_entry(TrEntry trie); +TrData trie_traverse_init(TrEntry trie, TrData init_data); +TrData trie_traverse_cont(TrEntry trie); +void trie_remove_entry(TrData data); +void trie_remove_subtree(TrData data); +void trie_join(TrEntry trie_dest, TrEntry trie_source); +void trie_intersect(TrEntry trie_dest, TrEntry trie_source); +YAP_Int trie_count_join(TrEntry trie1, TrEntry trie2); +YAP_Int trie_count_intersect(TrEntry trie1, TrEntry trie2); +void trie_save(TrEntry trie, FILE *file); +TrEntry trie_load(FILE *file); +void trie_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); +void trie_max_stats(YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); +void trie_usage(TrEntry trie, YAP_Int *entries, YAP_Int *nodes, YAP_Int *virtual_nodes); +void trie_print(TrEntry trie); -inline void trie_data_construct(TrNode node); -inline void trie_set_traverse_mode(YAP_Int mode); -inline YAP_Int trie_get_traverse_mode(void); -inline TrData trie_traverse_first(TrEntry trie); -inline TrData trie_traverse_next(TrData data); -inline void trie_disable_hash_table(void); -inline void trie_enable_hash_table(void); +void trie_data_construct(TrNode node); +void trie_set_traverse_mode(YAP_Int mode); +YAP_Int trie_get_traverse_mode(void); +TrData trie_traverse_first(TrEntry trie); +TrData trie_traverse_next(TrData data); +void trie_disable_hash_table(void); +void trie_enable_hash_table(void); -inline YAP_Term trie_to_list(TrEntry trie); +YAP_Term trie_to_list(TrEntry trie); #include "base_dbtries.h" diff --git a/library/tries/core_dbtries.c b/library/tries/core_dbtries.c index 071c1b23e..820d48043 100644 --- a/library/tries/core_dbtries.c +++ b/library/tries/core_dbtries.c @@ -209,10 +209,10 @@ inline void displaynode(TrNode node); inline int traverse_get_counter(TrNode node); inline YAP_Term generate_label(YAP_Int Index); -inline YAP_Term update_depth_breadth_trie(TrEngine engine, TrNode root, YAP_Int opt_level, void (*construct_function)(TrNode), void (*destruct_function)(TrNode), void (*copy_function)(TrNode, TrNode), void (*correct_order_function)(void)); -inline YAP_Term get_return_node_term(TrNode node); -inline void traverse_and_replace_nested_trie(TrNode node, YAP_Int nested_trie_id, YAP_Term new_term); -inline TrNode replace_nested_trie(TrNode node, TrNode child, YAP_Term new_term); +YAP_Term update_depth_breadth_trie(TrEngine engine, TrNode root, YAP_Int opt_level, void (*construct_function)(TrNode), void (*destruct_function)(TrNode), void (*copy_function)(TrNode, TrNode), void (*correct_order_function)(void)); +YAP_Term get_return_node_term(TrNode node); +void traverse_and_replace_nested_trie(TrNode node, YAP_Int nested_trie_id, YAP_Term new_term); +TrNode replace_nested_trie(TrNode node, TrNode child, YAP_Term new_term); /* -------------------------- */ @@ -229,20 +229,20 @@ static YAP_Int TRIE_DEPTH_BREADTH_OPT_COUNT[3]; /* depth-breadth Trie */ /* -------------------------- */ -inline + YAP_Int core_get_trie_db_opt_min_prefix(void) { return TRIE_DEPTH_BREADTH_MIN_PREFIX; } -inline + void core_set_trie_db_opt_min_prefix(YAP_Int min_prefix) { TRIE_DEPTH_BREADTH_MIN_PREFIX = min_prefix; return; } -inline + void core_depth_breadth_trie_replace_nested_trie(TrNode node, YAP_Int nested_trie_id, YAP_Term new_term) { traverse_and_replace_nested_trie(node, nested_trie_id, new_term); return; @@ -350,7 +350,6 @@ void traverse_and_replace_nested_trie(TrNode node, YAP_Int nested_trie_id, YAP_T } /* fixmeeee */ -inline TrNode replace_nested_trie(TrNode node, TrNode child, YAP_Term new_term) { TrNode newnode, temp, newnodef = NULL; if (YAP_IsApplTerm(new_term)) { @@ -409,31 +408,31 @@ TrNode replace_nested_trie(TrNode node, TrNode child, YAP_Term new_term) { } -inline + YAP_Term core_get_trie_db_return_term(void) { return TRIE_DEPTH_BREADTH_RETURN_TERM; } -inline + void core_set_trie_db_return_term(YAP_Term return_value){ TRIE_DEPTH_BREADTH_RETURN_TERM = return_value; return; } -inline + void core_set_label_counter(YAP_Int value) { LABEL_COUNTER = value; // Initialize the counter return; } -inline + YAP_Int core_get_label_counter(void) { return LABEL_COUNTER; } -inline + void core_initialize_depth_breadth_trie(TrNode node, TrNode *depth_node, TrNode *breadth_node) { TrNode root = node; YAP_Functor f; @@ -450,7 +449,7 @@ void core_initialize_depth_breadth_trie(TrNode node, TrNode *depth_node, TrNode } -inline + void core_finalize_depth_breadth_trie(TrNode depth_node, TrNode breadth_node) { depth_node = trie_node_check_insert(depth_node, YAP_MkIntTerm(1)); depth_node = trie_node_check_insert(depth_node, PairEndTag); @@ -464,7 +463,7 @@ void core_finalize_depth_breadth_trie(TrNode depth_node, TrNode breadth_node) { } -inline + TrNode core_depth_reduction(TrEngine engine, TrNode node, TrNode depth_node, YAP_Int opt_level, void (*construct_function)(TrNode), void (*destruct_function)(TrNode), void (*copy_function)(TrNode, TrNode), void (*correct_order_function)(void)) { TrNode leaf = node; YAP_Term t, *stack_top; @@ -530,7 +529,7 @@ TrNode core_depth_reduction(TrEngine engine, TrNode node, TrNode depth_node, YAP } -inline + TrNode core_breadth_reduction(TrEngine engine, TrNode node, TrNode breadth_node, YAP_Int opt_level, void (*construct_function)(TrNode), void (*destruct_function)(TrNode), void (*copy_function)(TrNode, TrNode), void (*correct_order_function)(void)) { YAP_Term t, *stack_top; int count = -1; @@ -760,7 +759,7 @@ YAP_Term generate_label(YAP_Int Index) { } -inline + YAP_Term update_depth_breadth_trie(TrEngine engine, TrNode root, YAP_Int opt_level, void (*construct_function)(TrNode), void (*destruct_function)(TrNode), void (*copy_function)(TrNode, TrNode), void (*correct_order_function)(void)) { TrNode node = root, remember = NULL; int count = -1, cnt = -1, c_cnt = 0, f_cnt = 0; @@ -903,7 +902,7 @@ YAP_Term update_depth_breadth_trie(TrEngine engine, TrNode root, YAP_Int opt_lev } -inline + YAP_Int core_db_trie_get_optimization_level_count(YAP_Int opt_level) { return TRIE_DEPTH_BREADTH_OPT_COUNT[opt_level - 1]; } diff --git a/library/tries/core_dbtries.h b/library/tries/core_dbtries.h index 8b74218ab..053a366fe 100644 --- a/library/tries/core_dbtries.h +++ b/library/tries/core_dbtries.h @@ -215,15 +215,15 @@ /* API */ /* --------------------------- */ -inline void core_set_label_counter(YAP_Int value); -inline YAP_Int core_get_label_counter(void); -inline void core_initialize_depth_breadth_trie(TrNode node, TrNode *depth_node, TrNode *breadth_node); -inline void core_finalize_depth_breadth_trie(TrNode depth_node, TrNode breadth_node); -inline TrNode core_depth_reduction(TrEngine engine, TrNode node, TrNode depth_node, YAP_Int opt_level, void (*construct_function)(TrNode), void (*destruct_function)(TrNode), void (*copy_function)(TrNode, TrNode), void (*correct_order_function)(void)); -inline TrNode core_breadth_reduction(TrEngine engine, TrNode node, TrNode breadth_node, YAP_Int opt_level, void (*construct_function)(TrNode), void (*destruct_function)(TrNode), void (*copy_function)(TrNode, TrNode), void (*correct_order_function)(void)); -inline YAP_Term core_get_trie_db_return_term(void); -inline void core_set_trie_db_return_term(YAP_Term return_value); -inline YAP_Int core_db_trie_get_optimization_level_count(YAP_Int opt_level); -inline void core_depth_breadth_trie_replace_nested_trie(TrNode node, YAP_Int nested_trie_id, YAP_Term new_term); -inline YAP_Int core_get_trie_db_opt_min_prefix(void); -inline void core_set_trie_db_opt_min_prefix(YAP_Int min_prefix); +void core_set_label_counter(YAP_Int value); +YAP_Int core_get_label_counter(void); +void core_initialize_depth_breadth_trie(TrNode node, TrNode *depth_node, TrNode *breadth_node); +void core_finalize_depth_breadth_trie(TrNode depth_node, TrNode breadth_node); +TrNode core_depth_reduction(TrEngine engine, TrNode node, TrNode depth_node, YAP_Int opt_level, void (*construct_function)(TrNode), void (*destruct_function)(TrNode), void (*copy_function)(TrNode, TrNode), void (*correct_order_function)(void)); +TrNode core_breadth_reduction(TrEngine engine, TrNode node, TrNode breadth_node, YAP_Int opt_level, void (*construct_function)(TrNode), void (*destruct_function)(TrNode), void (*copy_function)(TrNode, TrNode), void (*correct_order_function)(void)); +YAP_Term core_get_trie_db_return_term(void); +void core_set_trie_db_return_term(YAP_Term return_value); +YAP_Int core_db_trie_get_optimization_level_count(YAP_Int opt_level); +void core_depth_breadth_trie_replace_nested_trie(TrNode node, YAP_Int nested_trie_id, YAP_Term new_term); +YAP_Int core_get_trie_db_opt_min_prefix(void); +void core_set_trie_db_opt_min_prefix(YAP_Int min_prefix); diff --git a/library/tries/core_tries.c b/library/tries/core_tries.c index 24bb31c6a..aebc8d180 100644 --- a/library/tries/core_tries.c +++ b/library/tries/core_tries.c @@ -49,10 +49,11 @@ static YAP_Term trie_to_list_floats(TrNode node); /* -------------------------- */ static TrEngine CURRENT_TRIE_ENGINE; + static YAP_Int USAGE_ENTRIES, USAGE_NODES, USAGE_VIRTUAL_NODES; static YAP_Int CURRENT_AUXILIARY_TERM_STACK_SIZE, CURRENT_TRIE_MODE, CURRENT_LOAD_VERSION, CURRENT_DEPTH, CURRENT_INDEX; static YAP_Term *AUXILIARY_TERM_STACK; -static YAP_Term *stack_args, *stack_args_base, *stack_vars, *stack_vars_base; +YAP_Term *stack_args, *stack_args_base, *stack_vars, *stack_vars_base; static YAP_Functor FunctorComma; static void (*DATA_SAVE_FUNCTION)(TrNode, FILE *); static void (*DATA_LOAD_FUNCTION)(TrNode, YAP_Int, FILE *); @@ -68,7 +69,7 @@ static YAP_Int TRIE_DISABLE_HASH_TABLE = 0; /* Inline Procedures */ /* -------------------------- */ -static inline +static TrNode trie_node_check_insert(TrNode parent, YAP_Term t) { TrNode child; @@ -156,7 +157,7 @@ TrNode trie_node_check_insert(TrNode parent, YAP_Term t) { } -static inline +static TrNode trie_node_insert(TrNode parent, YAP_Term t, TrHash hash) { TrNode child; @@ -180,7 +181,7 @@ TrNode trie_node_insert(TrNode parent, YAP_Term t, TrHash hash) { } -static inline +static TrNode trie_node_check(TrNode parent, YAP_Term t) { TrNode child; @@ -203,7 +204,7 @@ TrNode trie_node_check(TrNode parent, YAP_Term t) { } -static inline +static YAP_Term trie_to_list_create_simple(const char *atom_name, TrNode node) { YAP_Functor f = YAP_MkFunctor(YAP_LookupAtom(atom_name), 1); YAP_Term child = trie_to_list(TrNode_child(node)); @@ -212,7 +213,7 @@ YAP_Term trie_to_list_create_simple(const char *atom_name, TrNode node) { } -static inline +static YAP_Term trie_to_list_create_simple_end(const char *atom_name, TrNode node) { YAP_Atom atom = YAP_LookupAtom(atom_name); @@ -226,7 +227,7 @@ YAP_Term trie_to_list_create_simple_end(const char *atom_name, TrNode node) { } -static inline +static YAP_Term trie_to_list_create_two(const char *atom_name, TrNode node, YAP_Term operand) { YAP_Atom atom = YAP_LookupAtom(atom_name); @@ -247,7 +248,6 @@ YAP_Term trie_to_list_create_two(const char *atom_name, TrNode node, YAP_Term op /* API */ /* -------------------------- */ -inline TrEngine core_trie_init_module(void) { static int init_once = 1; TrEngine engine; @@ -264,7 +264,7 @@ TrEngine core_trie_init_module(void) { } -inline + TrNode core_trie_open(TrEngine engine) { TrNode node; @@ -278,7 +278,7 @@ TrNode core_trie_open(TrEngine engine) { } -inline + void core_trie_close(TrEngine engine, TrNode node, void (*destruct_function)(TrNode)) { CURRENT_TRIE_ENGINE = engine; DATA_DESTRUCT_FUNCTION = destruct_function; @@ -295,7 +295,7 @@ void core_trie_close(TrEngine engine, TrNode node, void (*destruct_function)(TrN } -inline + void core_trie_close_all(TrEngine engine, void (*destruct_function)(TrNode)) { while (TrEngine_trie(engine)) core_trie_close(engine, TrEngine_trie(engine), destruct_function); @@ -303,20 +303,20 @@ void core_trie_close_all(TrEngine engine, void (*destruct_function)(TrNode)) { } -inline + void core_trie_set_mode(YAP_Int mode) { CURRENT_TRIE_MODE = mode; return; } -inline + YAP_Int core_trie_get_mode(void) { return CURRENT_TRIE_MODE; } -inline + TrNode core_trie_put_entry(TrEngine engine, TrNode node, YAP_Term entry, YAP_Int *depth) { CURRENT_TRIE_ENGINE = engine; CURRENT_DEPTH = 0; @@ -338,7 +338,7 @@ TrNode core_trie_put_entry(TrEngine engine, TrNode node, YAP_Term entry, YAP_Int } -inline + TrNode core_trie_check_entry(TrNode node, YAP_Term entry) { if (!TrNode_child(node)) return NULL; @@ -354,7 +354,7 @@ TrNode core_trie_check_entry(TrNode node, YAP_Term entry) { } -inline + YAP_Term core_trie_get_entry(TrNode node) { CURRENT_INDEX = -1; stack_vars_base = stack_vars = AUXILIARY_TERM_STACK; @@ -363,7 +363,7 @@ YAP_Term core_trie_get_entry(TrNode node) { } -inline + void core_trie_remove_entry(TrEngine engine, TrNode node, void (*destruct_function)(TrNode)) { CURRENT_TRIE_ENGINE = engine; DATA_DESTRUCT_FUNCTION = destruct_function; @@ -375,7 +375,7 @@ void core_trie_remove_entry(TrEngine engine, TrNode node, void (*destruct_functi } -inline + void core_trie_remove_subtree(TrEngine engine, TrNode node, void (*destruct_function)(TrNode)) { TrNode parent; @@ -388,7 +388,7 @@ void core_trie_remove_subtree(TrEngine engine, TrNode node, void (*destruct_func } -inline + void core_trie_add(TrNode node_dest, TrNode node_source, void (*add_function)(TrNode, TrNode)) { DATA_ADD_FUNCTION = add_function; if (TrNode_child(node_dest) && TrNode_child(node_source)) @@ -397,7 +397,7 @@ void core_trie_add(TrNode node_dest, TrNode node_source, void (*add_function)(Tr } -inline + void core_trie_join(TrEngine engine, TrNode node_dest, TrNode node_source, void (*add_function)(TrNode, TrNode), void (*copy_function)(TrNode, TrNode)) { CURRENT_TRIE_ENGINE = engine; DATA_ADD_FUNCTION = add_function; @@ -411,7 +411,7 @@ void core_trie_join(TrEngine engine, TrNode node_dest, TrNode node_source, void } -inline + void core_trie_intersect(TrEngine engine, TrNode node_dest, TrNode node_source, void (*add_function)(TrNode, TrNode), void (*destruct_function)(TrNode)) { CURRENT_TRIE_ENGINE = engine; DATA_ADD_FUNCTION = add_function; @@ -428,7 +428,7 @@ void core_trie_intersect(TrEngine engine, TrNode node_dest, TrNode node_source, } -inline + YAP_Int core_trie_count_join(TrNode node1, TrNode node2) { YAP_Int count = 0; @@ -444,7 +444,7 @@ YAP_Int core_trie_count_join(TrNode node1, TrNode node2) { } -inline + YAP_Int core_trie_count_intersect(TrNode node1, TrNode node2) { YAP_Int count = 0; @@ -455,7 +455,7 @@ YAP_Int core_trie_count_intersect(TrNode node1, TrNode node2) { } -inline + void core_trie_save(TrNode node, FILE *file, void (*save_function)(TrNode, FILE *)) { CURRENT_INDEX = -1; DATA_SAVE_FUNCTION = save_function; @@ -469,7 +469,7 @@ void core_trie_save(TrNode node, FILE *file, void (*save_function)(TrNode, FILE } -inline + TrNode core_trie_load(TrEngine engine, FILE *file, void (*load_function)(TrNode, YAP_Int, FILE *)) { TrNode node; char version[15]; @@ -523,7 +523,7 @@ TrNode core_trie_load(TrEngine engine, FILE *file, void (*load_function)(TrNode, } -inline + void core_trie_stats(TrEngine engine, YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes) { *memory = TrEngine_memory(engine); *tries = TrEngine_tries(engine); @@ -533,7 +533,7 @@ void core_trie_stats(TrEngine engine, YAP_Int *memory, YAP_Int *tries, YAP_Int * } -inline + void core_trie_max_stats(TrEngine engine, YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes) { *memory = TrEngine_memory_max(engine); *tries = TrEngine_tries_max(engine); @@ -543,7 +543,7 @@ void core_trie_max_stats(TrEngine engine, YAP_Int *memory, YAP_Int *tries, YAP_I } -inline + void core_trie_usage(TrNode node, YAP_Int *entries, YAP_Int *nodes, YAP_Int *virtual_nodes) { USAGE_ENTRIES = 0; USAGE_NODES = 0; @@ -557,7 +557,7 @@ void core_trie_usage(TrNode node, YAP_Int *entries, YAP_Int *nodes, YAP_Int *vir } -inline + void core_trie_print(TrNode node, void (*print_function)(TrNode)) { DATA_PRINT_FUNCTION = print_function; if (TrNode_child(node)) { @@ -572,19 +572,19 @@ void core_trie_print(TrNode node, void (*print_function)(TrNode)) { } -inline + void core_disable_hash_table(void) { TRIE_DISABLE_HASH_TABLE = 1; } -inline + void core_enable_hash_table(void) { TRIE_DISABLE_HASH_TABLE = 0; } -inline + YAP_Term core_trie_to_list(TrNode node) { TrNode root = TrNode_child(node); @@ -1724,7 +1724,7 @@ YAP_Term trie_to_list_node(TrNode node) { #ifdef TAG_LOW_BITS_32 -static inline + YAP_Term trie_to_list_floats_tag_low_32(YAP_Term result, TrNode node, volatile YAP_Term *p, volatile double *f) { if(IS_HASH_NODE(node)) { TrNode *first_bucket, *bucket; diff --git a/library/tries/core_tries.h b/library/tries/core_tries.h index e9029ed26..23b25b992 100644 --- a/library/tries/core_tries.h +++ b/library/tries/core_tries.h @@ -287,32 +287,32 @@ typedef struct trie_hash { /* API */ /* --------------------------- */ -inline TrEngine core_trie_init_module(void); -inline TrNode core_trie_open(TrEngine engine); -inline void core_trie_close(TrEngine engine, TrNode node, void (*destruct_function)(TrNode)); -inline void core_trie_close_all(TrEngine engine, void (*destruct_function)(TrNode)); -inline void core_trie_set_mode(YAP_Int mode); -inline YAP_Int core_trie_get_mode(void); -inline TrNode core_trie_put_entry(TrEngine engine, TrNode node, YAP_Term entry, YAP_Int *depth); -inline TrNode core_trie_check_entry(TrNode node, YAP_Term entry); -inline YAP_Term core_trie_get_entry(TrNode node); -inline void core_trie_remove_entry(TrEngine engine, TrNode node, void (*destruct_function)(TrNode)); -inline void core_trie_remove_subtree(TrEngine engine, TrNode node, void (*destruct_function)(TrNode)); -inline void core_trie_add(TrNode node_dest, TrNode node_source, void (*add_function)(TrNode, TrNode)); -inline void core_trie_join(TrEngine engine, TrNode node_dest, TrNode node_source, void (*add_function)(TrNode, TrNode), void (*copy_function)(TrNode, TrNode)); -inline void core_trie_intersect(TrEngine engine, TrNode node_dest, TrNode node_source, void (*add_function)(TrNode, TrNode), void (*destruct_function)(TrNode)); -inline YAP_Int core_trie_count_join(TrNode node1, TrNode node2); -inline YAP_Int core_trie_count_intersect(TrNode node1, TrNode node2); -inline void core_trie_save(TrNode node, FILE *file, void (*save_function)(TrNode, FILE *)); -inline TrNode core_trie_load(TrEngine engine, FILE *file, void (*load_function)(TrNode, YAP_Int, FILE *)); -inline void core_trie_stats(TrEngine engine, YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); -inline void core_trie_max_stats(TrEngine engine, YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); -inline void core_trie_usage(TrNode node, YAP_Int *entries, YAP_Int *nodes, YAP_Int *virtual_nodes); -inline void core_trie_print(TrNode node, void (*print_function)(TrNode)); +TrEngine core_trie_init_module(void); +TrNode core_trie_open(TrEngine engine); +void core_trie_close(TrEngine engine, TrNode node, void (*destruct_function)(TrNode)); +void core_trie_close_all(TrEngine engine, void (*destruct_function)(TrNode)); +void core_trie_set_mode(YAP_Int mode); +YAP_Int core_trie_get_mode(void); +TrNode core_trie_put_entry(TrEngine engine, TrNode node, YAP_Term entry, YAP_Int *depth); +TrNode core_trie_check_entry(TrNode node, YAP_Term entry); +YAP_Term core_trie_get_entry(TrNode node); +void core_trie_remove_entry(TrEngine engine, TrNode node, void (*destruct_function)(TrNode)); +void core_trie_remove_subtree(TrEngine engine, TrNode node, void (*destruct_function)(TrNode)); +void core_trie_add(TrNode node_dest, TrNode node_source, void (*add_function)(TrNode, TrNode)); +void core_trie_join(TrEngine engine, TrNode node_dest, TrNode node_source, void (*add_function)(TrNode, TrNode), void (*copy_function)(TrNode, TrNode)); +void core_trie_intersect(TrEngine engine, TrNode node_dest, TrNode node_source, void (*add_function)(TrNode, TrNode), void (*destruct_function)(TrNode)); +YAP_Int core_trie_count_join(TrNode node1, TrNode node2); +YAP_Int core_trie_count_intersect(TrNode node1, TrNode node2); +void core_trie_save(TrNode node, FILE *file, void (*save_function)(TrNode, FILE *)); +TrNode core_trie_load(TrEngine engine, FILE *file, void (*load_function)(TrNode, YAP_Int, FILE *)); +void core_trie_stats(TrEngine engine, YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); +void core_trie_max_stats(TrEngine engine, YAP_Int *memory, YAP_Int *tries, YAP_Int *entries, YAP_Int *nodes); +void core_trie_usage(TrNode node, YAP_Int *entries, YAP_Int *nodes, YAP_Int *virtual_nodes); +void core_trie_print(TrNode node, void (*print_function)(TrNode)); -inline void core_disable_hash_table(void); -inline void core_enable_hash_table(void); +void core_disable_hash_table(void); +void core_enable_hash_table(void); -inline YAP_Term core_trie_to_list(TrNode node); +YAP_Term core_trie_to_list(TrNode node); #include "core_dbtries.h" diff --git a/library/tries/tries.c b/library/tries/tries.c index 712f1efb0..b289697c1 100644 --- a/library/tries/tries.c +++ b/library/tries/tries.c @@ -903,7 +903,7 @@ static int p_trie_get_db_opt_level_count_cont(void) { YAP_PRESERVED_DATA(opt_level, db_trie_opt_level); opt_level->value = YAP_MkIntTerm(YAP_IntOfTerm(opt_level->value) + 1); if (YAP_IntOfTerm(opt_level->value) < 4) { - if (YAP_Unify(arg_opt_level, opt_level->value)); + if (YAP_Unify(arg_opt_level, opt_level->value)) return YAP_Unify(arg_count, YAP_MkIntTerm(trie_get_db_opt_level_count(YAP_IntOfTerm(arg_opt_level)))); YAP_cut_fail(); return FALSE; From 5561b80796f71f73dce9a0b0dbe544fa73b2e789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:10:15 +0000 Subject: [PATCH 13/30] A not a for Atom (unused anyway) --- misc/buildops | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/buildops b/misc/buildops index 78b260d5c..964bab1ff 100644 --- a/misc/buildops +++ b/misc/buildops @@ -242,7 +242,7 @@ rewritable_field(0't). get_op(0'a,"Arity"). -get_op(0'a,"Atom"). +get_op(0'A,"Atom"). get_op(0'b,"CellPtoHeap"). get_op(0'c,"ConstantTerm"). get_op(0'd,"DoubleInCode"). From d945f01f5382a609145528ad185482002586e92d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:12:04 +0000 Subject: [PATCH 14/30] A not a for Atom (unused anyway) --- H/rclause.h | 5 ----- H/saveclause.h | 44 -------------------------------------------- 2 files changed, 49 deletions(-) diff --git a/H/rclause.h b/H/rclause.h index c69dd5322..acac29bcd 100644 --- a/H/rclause.h +++ b/H/rclause.h @@ -106,11 +106,6 @@ restore_opcodes(yamop *pc, yamop *max USES_REGS) pc->u.OtaLl.n = PtoOpAdjust(pc->u.OtaLl.n); pc = pc->u.OtaLl.n; break; - pc->u.OtaLl.s = AtomAdjust(pc->u.OtaLl.s); - pc->u.OtaLl.d = PtoLUClauseAdjust(pc->u.OtaLl.d); - pc->u.OtaLl.n = PtoOpAdjust(pc->u.OtaLl.n); - pc = pc->u.OtaLl.n; - break; /* instructions type OtapFs */ #ifdef CUT_C case _cut_c: diff --git a/H/saveclause.h b/H/saveclause.h index b461dc45c..06b86bbfc 100644 --- a/H/saveclause.h +++ b/H/saveclause.h @@ -70,9 +70,6 @@ CHECK(save_Arity(stream, pc->u.Osbpa.i)); pc = NEXTOP(pc,Osbpa); break; - CHECK(save_Atom(stream, pc->u.Osbpa.i)); - pc = NEXTOP(pc,Osbpa); - break; /* instructions type Osbpp */ case _call: case _call_cpred: @@ -119,11 +116,6 @@ CHECK(save_PtoOp(stream, pc->u.OtaLl.n)); pc = NEXTOP(pc,OtaLl); break; - CHECK(save_Atom(stream, pc->u.OtaLl.s)); - CHECK(save_PtoLUClause(stream, pc->u.OtaLl.d)); - CHECK(save_PtoOp(stream, pc->u.OtaLl.n)); - pc = NEXTOP(pc,OtaLl); - break; /* instructions type OtapFs */ #ifdef CUT_C case _cut_c: @@ -147,12 +139,6 @@ CHECK(save_Constant(stream, pc->u.OtapFs.extra)); pc = NEXTOP(pc,OtapFs); break; - CHECK(save_Atom(stream, pc->u.OtapFs.s)); - CHECK(save_PtoPred(stream, pc->u.OtapFs.p)); - CHECK(save_ExternalFunction(stream, pc->u.OtapFs.f)); - CHECK(save_Constant(stream, pc->u.OtapFs.extra)); - pc = NEXTOP(pc,OtapFs); - break; /* instructions type Otapl */ case _count_retry_and_mark: case _count_retry_me: @@ -180,11 +166,6 @@ CHECK(save_PtoOp(stream, pc->u.Otapl.d)); pc = NEXTOP(pc,Otapl); break; - CHECK(save_Atom(stream, pc->u.Otapl.s)); - CHECK(save_PtoPred(stream, pc->u.Otapl.p)); - CHECK(save_PtoOp(stream, pc->u.Otapl.d)); - pc = NEXTOP(pc,Otapl); - break; /* instructions type aFlp */ case _native_me: CHECK(save_Arity(stream, pc->u.aFlp.n)); @@ -193,12 +174,6 @@ CHECK(save_PtoPred(stream, pc->u.aFlp.p)); pc = NEXTOP(pc,aFlp); break; - CHECK(save_Atom(stream, pc->u.aFlp.n)); - CHECK(save_ExternalFunction(stream, pc->u.aFlp.native)); - CHECK(save_PtoOp(stream, pc->u.aFlp.native_next)); - CHECK(save_PtoPred(stream, pc->u.aFlp.p)); - pc = NEXTOP(pc,aFlp); - break; /* instructions type c */ case _write_atom: CHECK(save_ConstantTerm(stream, pc->u.c.c)); @@ -296,9 +271,6 @@ CHECK(save_Arity(stream, pc->u.fa.a)); pc = NEXTOP(pc,fa); break; - CHECK(save_Atom(stream, pc->u.fa.a)); - pc = NEXTOP(pc,fa); - break; /* instructions type i */ case _write_longint: CHECK(save_IntegerInCode(stream, pc->u.i.i)); @@ -396,9 +368,6 @@ CHECK(save_Arity(stream, pc->u.ofa.a)); pc = NEXTOP(pc,ofa); break; - CHECK(save_Atom(stream, pc->u.ofa.a)); - pc = NEXTOP(pc,ofa); - break; /* instructions type oi */ case _unify_l_longint: case _unify_l_longint_write: @@ -639,9 +608,6 @@ CHECK(save_Arity(stream, pc->u.xfa.a)); pc = NEXTOP(pc,xfa); break; - CHECK(save_Atom(stream, pc->u.xfa.a)); - pc = NEXTOP(pc,xfa); - break; /* instructions type xi */ case _get_longint: case _put_longint: @@ -875,11 +841,6 @@ CHECK(save_PtoOp(stream, pc->u.Otapl.d)); pc = NEXTOP(pc,Otapl); break; - CHECK(save_Atom(stream, pc->u.Otapl.s)); - CHECK(save_PtoPred(stream, pc->u.Otapl.p)); - CHECK(save_PtoOp(stream, pc->u.Otapl.d)); - pc = NEXTOP(pc,Otapl); - break; /* instructions type e */ case _getwork_first_time: if (op == _Nstop || op == _copy_idb_term || op == _unify_idb_term) return 1; @@ -913,11 +874,6 @@ CHECK(save_PtoOp(stream, pc->u.Otapl.d)); pc = NEXTOP(pc,Otapl); break; - CHECK(save_Atom(stream, pc->u.Otapl.s)); - CHECK(save_PtoPred(stream, pc->u.Otapl.p)); - CHECK(save_PtoOp(stream, pc->u.Otapl.d)); - pc = NEXTOP(pc,Otapl); - break; /* instructions type e */ #ifdef TABLING_INNER_CUTS case _clause_with_cut: From 0f62de3744634ba2170f865d558ea377c844fdfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:13:29 +0000 Subject: [PATCH 15/30] fix source_location --- os/pl-read.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/os/pl-read.c b/os/pl-read.c index 7ccf9413f..8a9ac85e1 100644 --- a/os/pl-read.c +++ b/os/pl-read.c @@ -347,8 +347,7 @@ void Yap_setCurrentSourceLocation(IOSTREAM **s) { GET_LD - if (!*s) - *s = Suser_input; + if (*s) setCurrentSourceLocation(*s PASS_LD); } #endif From ad0ff98f1aa0f8d4e30d414b5067cb852450f470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:14:48 +0000 Subject: [PATCH 16/30] use swi flags whenever possible --- C/init.c | 1 - C/iopreds.c | 7 +- C/signals.c | 19 -- C/stdpreds.c | 5 - pl/boot.yap | 30 +-- pl/checker.yap | 12 +- pl/consult.yap | 504 +++++++++++++++++++++++++++++-------------------- pl/control.yap | 6 +- pl/debug.yap | 26 +-- pl/dialect.yap | 6 +- pl/flags.yap | 107 +---------- pl/init.yap | 8 +- pl/modules.yap | 11 +- pl/preds.yap | 6 +- 14 files changed, 344 insertions(+), 404 deletions(-) diff --git a/C/init.c b/C/init.c index b59b31bf2..493b58d9c 100755 --- a/C/init.c +++ b/C/init.c @@ -919,7 +919,6 @@ InitFlags(void) yap_flags[WRITE_QUOTED_STRING_FLAG] = FALSE; /* we do not garantee safe assert in parallel mode */ yap_flags[ALLOW_ASSERTING_STATIC_FLAG] = TRUE; - yap_flags[GENERATE_DEBUG_INFO_FLAG] = TRUE; /* current default */ yap_flags[INDEXING_MODE_FLAG] = INDEX_MODE_MULTI; yap_flags[TABLING_MODE_FLAG] = 0; diff --git a/C/iopreds.c b/C/iopreds.c index 0bd63a23a..d807c0600 100755 --- a/C/iopreds.c +++ b/C/iopreds.c @@ -334,11 +334,7 @@ syntax_error (TokEntry * tokptr, IOSTREAM *st, Term *outp) { char s[2]; s[1] = '\0'; - if (Ord (info) == 'l') { - s[0] = '('; - } else { - s[0] = (char)info; - } + s[0] = (char)info; ts[0] = MkAtomTerm(Yap_LookupAtom(s)); } } @@ -561,7 +557,6 @@ static Int Term tcomms = Deref(ARG7); int store_comments = IsVarTerm(tcomms); - Yap_setCurrentSourceLocation(&inp_stream); if (IsVarTerm(tmod)) { tmod = CurrentModule; } else if (!IsAtomTerm(tmod)) { diff --git a/C/signals.c b/C/signals.c index c3f5ed92c..59dc7eba4 100644 --- a/C/signals.c +++ b/C/signals.c @@ -116,24 +116,6 @@ p_creep_allowed( USES_REGS1 ) return FALSE; } -static Int -p_debug_on( USES_REGS1 ) -{ - Term t = Deref(ARG1); - if (IsVarTerm(t)) { - if (LOCAL_DebugOn) - return Yap_unify(MkAtomTerm(AtomTrue),ARG1); - else - return Yap_unify(MkAtomTerm(AtomFalse),ARG1); - } - if (t == MkAtomTerm(AtomTrue)) - LOCAL_DebugOn = TRUE; - else - LOCAL_DebugOn = FALSE; - return TRUE; -} - - void Yap_signal(yap_signals sig) { @@ -370,7 +352,6 @@ Yap_InitSignalCPreds(void) Yap_InitCPred("$stop_creeping", 0, p_stop_creeping, SafePredFlag); Yap_InitCPred ("$first_signal", 1, p_first_signal, SafePredFlag|SyncPredFlag); Yap_InitCPred ("$continue_signals", 0, p_continue_signals, SafePredFlag|SyncPredFlag); - Yap_InitCPred("$debug_on", 1, p_debug_on, 0); Yap_InitCPred("$creep_allowed", 0, p_creep_allowed, 0); #ifdef DEBUG Yap_InitCPred("$debug", 1, p_debug, SafePredFlag|SyncPredFlag); diff --git a/C/stdpreds.c b/C/stdpreds.c index d57b9ade7..487ff4a56 100644 --- a/C/stdpreds.c +++ b/C/stdpreds.c @@ -1706,11 +1706,6 @@ p_set_yap_flags( USES_REGS1 ) return(FALSE); yap_flags[STACK_DUMP_ON_ERROR_FLAG] = value; break; - case GENERATE_DEBUG_INFO_FLAG: - if (value != 0 && value != 1) - return(FALSE); - yap_flags[GENERATE_DEBUG_INFO_FLAG] = value; - break; case INDEXING_MODE_FLAG: if (value < INDEX_MODE_OFF || value > INDEX_MODE_MAX) return(FALSE); diff --git a/pl/boot.yap b/pl/boot.yap index 0af841705..5fe46cce4 100755 --- a/pl/boot.yap +++ b/pl/boot.yap @@ -18,13 +18,6 @@ % % % -c(G, C, A) :- - '$$save_by'(CP0), - '$execute'(G), - '$$save_by'(CP1), - (CP0 == CP1 -> !; true ). - - true :- true. '$live' :- @@ -61,9 +54,9 @@ true :- true. ), ( '$access_yap_flags'(22, 0) -> - set_value('$verbose',on) + '$swi_set_prolog_flag'(verbose, normal) ; - set_value('$verbose',off) + '$swi_set_prolog_flag'(verbose, silent) ), % '$init_preds', % needs to be done before library_directory % ( @@ -80,7 +73,7 @@ true :- true. set_value('$gc',on), ('$exit_undefp' -> true ; true), prompt1(' ?- '), - '$debug_on'(false), + '$swi_set_prolog_flag'(debug, false), % simple trick to find out if this is we are booting from Prolog. % boot from a saved state ( @@ -107,13 +100,10 @@ true :- true. '$init_consult' :- set_value('$open_expands_filename',true), - set_value('$lf_verbose',informational), nb_setval('$assert_all',off), nb_setval('$if_level',0), nb_setval('$endif',off), - nb_setval('$consulting_file',[]), - nb_setval('$initialization_goals',off), - nb_setval('$consulting',false), + nb_setval('$initialization_goals',off), nb_setval('$included_file',[]), \+ '$undefined'('$init_preds',prolog), '$init_preds', @@ -200,7 +190,7 @@ true :- true. fail. '$enter_top_level' :- '$nb_getval'('$break',BreakLevel,fail), - '$debug_on'(DBON), + '$swi_current_prolog_flag'(debug, DBON), ( '$nb_getval'('$trace', on, fail) -> @@ -995,11 +985,11 @@ not(G) :- \+ '$execute'(G). '$silent_bootstrap'(F) :- '$init_globals', nb_setval('$if_level',0), - get_value('$lf_verbose',OldSilent), - set_value('$lf_verbose',silent), + '$swi_current_prolog_flag'(verbose_load, OldSilent), + '$swi_set_prolog_flag'(verbose_load, silent), bootstrap(F), % -p option must be processed after initializing the system - set_value('$lf_verbose', OldSilent). + '$swi_set_prolog_flag'(verbose_load, OldSilent). bootstrap(F) :- % '$open'(F, '$csult', Stream, 0, 0, F), @@ -1010,7 +1000,7 @@ bootstrap(F) :- file_directory_name(File, Dir), working_directory(OldD, Dir), ( - get_value('$lf_verbose',silent) + '$swi_current_prolog_flag'(verbose_load, silent) -> true ; @@ -1021,7 +1011,7 @@ bootstrap(F) :- working_directory(_, OldD), '$end_consult', ( - get_value('$lf_verbose',silent) + '$swi_current_prolog_flag'(verbose_load, silent) -> true ; diff --git a/pl/checker.yap b/pl/checker.yap index cccb97f85..0ac0eeab1 100644 --- a/pl/checker.yap +++ b/pl/checker.yap @@ -166,7 +166,7 @@ no_style_check([H|T]) :- no_style_check(H), no_style_check(T). ; get_value('$syntaxcheckmultiple',on) ), - nb_getval('$consulting_file',File), + source_location( File, _ ), '$xtract_head'(T,M,NM,_,F,A), \+ ( % allow duplicates if we are not the last predicate to have @@ -233,7 +233,7 @@ no_style_check([H|T]) :- no_style_check(H), no_style_check(T). '$handle_discontiguous'((:-),1,_) :- !, fail. '$handle_discontiguous'(F,A,M) :- - nb_getval('$consulting_file', FileName), + source_location( FileName, _ ), % we have been there before once(recorded('$predicate_defs','$predicate_defs'(F, A, M, FileName),_)), % and we are not @@ -247,11 +247,11 @@ no_style_check([H|T]) :- no_style_check(H), no_style_check(T). % never complain the second time '$handle_multiple'(F,A,M) :- - nb_getval('$consulting_file', FileName), + source_location(FileName, _), recorded('$predicate_defs','$predicate_defs'(F,A,M,FileName),_), !. % first time we have a definition '$handle_multiple'(F,A,M) :- - nb_getval('$consulting_file', FileName0), + source_location(FileName0, _), recorded('$predicate_defs','$predicate_defs'(F,A,M,FileName),_), FileName \= FileName0, '$multiple_has_been_defined'(FileName, F/A, M), !. @@ -259,7 +259,7 @@ no_style_check([H|T]) :- no_style_check(H), no_style_check(T). % be careful about these cases. % consult does not count '$multiple_has_been_defined'(_, _, _) :- - nb_getval('$consulting',true), !. + '$nb_getval'('$consulting_file', _, fail), !. % multifile does not count '$multiple_has_been_defined'(_, F/A, M) :- functor(S, F, A), @@ -334,7 +334,7 @@ discontiguous(F) :- % '$check_multifile_pred'(Hd, M, _) :- functor(Hd,Na,Ar), - nb_getval('$consulting_file',F), + source_location(F, _), recorded('$multifile_defs','$defined'(F,Na,Ar,M),_), !. % oops, we did not. '$check_multifile_pred'(Hd, M, Fl) :- diff --git a/pl/consult.yap b/pl/consult.yap index fd7101f45..402bd5910 100755 --- a/pl/consult.yap +++ b/pl/consult.yap @@ -20,7 +20,7 @@ % autoload(true,false) % derived_from(File) -> make % encoding(Encoding) => implemented -% expand({true,false) + % expand(true,false) % if(changed,true,not_loaded) => implemented % imports(all,List) => implemented % qcompile(true,false) @@ -28,157 +28,205 @@ % stream(Stream) => implemented % consult(consult,reconsult,exo,db) => implemented % compilation_mode(compact,source,assert_all) => implemented +% register(true, false) => implemented % load_files(Files,Opts) :- '$load_files'(Files,Opts,load_files(Files,Opts)). -'$load_files'(Files,Opts,Call) :- +'$lf_opt'(autoload, 1). +'$lf_opt'(derived_from). +'$lf_opt'(encoding, 3). +'$lf_opt'(expand, 4). +'$lf_opt'(if, 5). +'$lf_opt'(imports, 6). +'$lf_opt'(qcompile, 7). +'$lf_opt'(silent, 8). +'$lf_opt'(skip_unix_header, 9). +'$lf_opt'(compilation_mode, 10). +'$lf_opt'(consult, 11). +'$lf_opt'(stream, 12). +'$lf_opt'(register, 13). +'$lf_opt'('$files', 14). +'$lf_opt'('$call', 15). +'$lf_opt'('$use_module', 16). +'$lf_opt'('$consulted_at', 17). +'$lf_opt'('$options', 18). +'$lf_opt'('$location', 19). +'$lf_opt'(last_opt, 19). + +'$lf_opt'( Op, TOpts, Val) :- + '$lf_opt'(Op, Id), + arg( Id, TOpts, Val ). + +'$load_files'(Files, Opts, Call) :- + ( '$nb_getval'('$lf_status', OldTOpts, fail), nonvar(OldTOpts) -> '$lf_opt'(silent, OldTOpts, OldVerbosity) ; true ), '$check_files'(Files,load_files(Files,Opts)), - '$process_lf_opts'(Opts,Silent,InfLevel,Expand,Changed,CompilationMode,Imports,Stream,Encoding,SkipUnixComments,CompMode,Reconsult,Files,Call), + '$lf_opt'(last_opt, LastOpt), + functor( TOpts, opt, LastOpt ), + ( source_location(ParentF, Line) -> true ; ParentF = user_input, Line = -1 ), + '$lf_opt'('$location', TOpts, ParentF:Line), + '$lf_opt'('$files', TOpts, Files), + '$lf_opt'('$call', TOpts, Call), + '$lf_opt'('$options', TOpts, Opts), + '$process_lf_opts'(Opts,TOpts,Files,Call), '$check_use_module'(Call,UseModule), + '$lf_opt'('$use_module', TOpts, UseModule), '$current_module'(M0), + '$lf_opt'(silent, TOpts, Verbosity), + ( var(Verbosity) -> Verbosity = OldVerbosity ; true ), % make sure we can run consult '$init_system', - '$lf'(Files,M0,Call,InfLevel,Expand,Changed,CompilationMode,Imports,Stream,Encoding,SkipUnixComments,CompMode,Reconsult,UseModule), - '$close_lf'(Silent). + '$lf'(Files, M0, Call, TOpts). -'$check_files'(Files,Call) :- +'$check_files'(Files, Call) :- var(Files), !, - '$do_error'(instantiation_error,Call). -'$check_files'(M:Files,Call) :- !, + '$do_error'(instantiation_error, Call). +'$check_files'(M:Files, Call) :- !, (var(M) -> - '$do_error'(instantiation_error,Call) + '$do_error'(instantiation_error, Call) ; atom(M) -> '$check_files'(Files,Call) ; - '$do_error'(type_error(atom,M),Call) + '$do_error'(type_error(atom,M), Call) ). -'$check_files'(Files,Call) :- - (ground(Files) +'$check_files'(Files, Call) :- + ( ground(Files) -> true ; - '$do_error'(instantiation_error,Call) + '$do_error'(instantiation_error, Call) ). - -'$process_lf_opts'(V,_,_,_,_,_,_,_,_,_,_,_,_,Call) :- +'$process_lf_opts'(V, _, _, Call) :- var(V), !, '$do_error'(instantiation_error,Call). -'$process_lf_opts'([],_,InfLevel,_,_,_,_,_,_,_,_,_,_,_). -'$process_lf_opts'([Opt|Opts],Silent,InfLevel,Expand,Changed,CompilationMode,Imports,Stream,Encoding,SkipUnixComments,CompMode,Reconsult,Files,Call) :- - '$process_lf_opt'(Opt,Silent,InfLevel,Expand,Changed,CompilationMode,Imports,Stream,Encoding,SkipUnixComments,CompMode,Reconsult,Files,Call), !, - '$process_lf_opts'(Opts,Silent,InfLevel,Expand,Changed,CompilationMode,Imports,Stream,Encoding,SkipUnixComments,CompMode,Reconsult,Files,Call). -'$process_lf_opts'([Opt|_],_,_,_,_,_,_,_,_,_,_,_,_,Call) :- +'$process_lf_opts'([], _, _, _). +'$process_lf_opts'([Opt|Opts],TOpt,Files,Call) :- + Opt =.. [Op, Val], + ground(Val), + '$lf_opt'(Op, TOpt, Val), + '$process_lf_opt'(Op, Val,Call), !, + '$process_lf_opts'(Opts, TOpt, Files, Call). +'$process_lf_opts'([Opt|_],_,_,Call) :- '$do_error'(domain_error(unimplemented_option,Opt),Call). -'$process_lf_opt'(autoload(true),Silent,InfLevel,_,_,_,_,_,_,_,_,_,_,_) :- - get_value('$verbose_auto_load',VAL), - (VAL = true -> - InfLevel = informational, - (get_value('$lf_verbose',informational) -> true ; Silent = silent), - set_value('$lf_verbose',informational) - ; - InfLevel = silent, - (get_value('$lf_verbose',silent) -> true ; Silent = informational), - set_value('$lf_verbose',silent) - ). -'$process_lf_opt'(autoload(false),_,_,_,_,_,_,_,_,_,_,_,_,_). -'$process_lf_opt'(derived_from(File),_,_,_,_,_,_,_,_,_,_,_,Files,Call) :- - ( atom(File) -> true ; '$do_error'(type_error(atom,File),Call) ), - ( atom(Files) -> true ; '$do_error'(type_error(atom,Files),Call) ), - /* call make */ - '$do_error'(domain_error(unimplemented_option,derived_from),Call). -'$process_lf_opt'(encoding(Encoding),_,_,_,_,_,_,_,_,Encoding,_,_,_,Call) :- +'$process_lf_opt'(autoload, Val, Call) :- + ( Val == false -> true ; + Val == true -> true ; + '$do_error'(domain_error(unimplemented_option,autoload(Val)),Call) ). +'$process_lf_opt'(derived_from, File, Call) :- + ( atom(File) -> true ; '$do_error'(type_error(atom,File),Call) ). +'$process_lf_opt'(encoding, Encoding, Call) :- atom(Encoding). -'$process_lf_opt'(expand(true),_,_,true,_,_,_,_,_,_,_,_,_,Call) :- - '$do_error'(domain_error(unimplemented_option,expand),Call). -'$process_lf_opt'(expand(false),_,_,false,_,_,_,_,_,_,_,_,_,_). -'$process_lf_opt'(if(changed),_,_,_,changed,_,_,_,_,_,_,_,_,_). -'$process_lf_opt'(if(true),_,_,_,true,_,_,_,_,_,_,_,_,_). -'$process_lf_opt'(if(not_loaded),_,_,_,not_loaded,_,_,_,_,_,_,_,_,_). -'$process_lf_opt'(imports(all),_,_,_,_,_,_,_,_,_,_,_,_,_). -'$process_lf_opt'(imports(Imports),_,_,_,_,_,Imports,_,_,_,_,_,_,_). -'$process_lf_opt'(qcompile(true),_,_,_,_,true,_,_,_,_,_,_,_,Call) :- - '$do_error'(domain_error(unimplemented_option,qcompile),Call). -'$process_lf_opt'(qcompile(false),_,_,_,_,false,_,_,_,_,_,_,_,_). -'$process_lf_opt'(silent(true),Silent,silent,_,_,_,_,_,_,_,_,_,_,_) :- - ( get_value('$lf_verbose',silent) -> true ; Silent = informational), - set_value('$lf_verbose',silent). -'$process_lf_opt'(silent(false),Silent,informational,_,_,_,_,_,_,_,_,_,_,_) :- - ( get_value('$lf_verbose',informational) -> true ; Silent = silent), - set_value('$lf_verbose',informational). -'$process_lf_opt'(skip_unix_comments,_,_,_,_,_,_,_,_,skip_unix_comments,_,_,_,_). -'$process_lf_opt'(compilation_mode(source),_,_,_,_,_,_,_,_,_,source,_,_,_). -'$process_lf_opt'(compilation_mode(compact),_,_,_,_,_,_,_,_,_,compact,_,_,_). -'$process_lf_opt'(compilation_mode(assert_all),_,_,_,_,_,_,_,_,_,assert_all,_,_,_). -'$process_lf_opt'(consult(reconsult),_,_,_,_,_,_,_,_,_,_,reconsult,_,_). -'$process_lf_opt'(consult(exo),_,_,_,_,_,_,_,_,_,_,exo,_,_). -'$process_lf_opt'(consult(db),_,_,_,_,_,_,_,_,_,_,db,_,_). -'$process_lf_opt'(consult(consult),_,_,_,_,_,_,_,_,_,_,consult,_,_). -'$process_lf_opt'(stream(Stream),_,_,_,_,_,_,Stream,_,_,_,_,Files,Call) :- -/* ( is_stream(Stream) -> true ; '$do_error'(domain_error(stream,Stream),Call) ), */ - ( atom(Files) -> true ; '$do_error'(type_error(atom,Files),Call) ). +'$process_lf_opt'(expand, Val, Call) :- + ( Val == true -> '$do_error'(domain_error(unimplemented_option,expand),Call) ; + Val == false -> true ; + '$do_error'(domain_error(unimplemented_option,expand(Val)),Call) ). +'$process_lf_opt'(if, If, Call) :- + ( If == changed -> true ; + If == true -> true ; + If == not_loaded -> true ; + '$do_error'(domain_error(unimplemented_option,if),Call) ). +'$process_lf_opt'(imports, Val, Call). + ( Val == all -> true ; + is_list(Val) -> true ; + '$do_error'(domain_error(unimplemented_option,imports(Val)),Call) ). +'$process_lf_opt'(qcompile, Val,Call) :- + ( Val == true -> '$do_error'(domain_error(unimplemented_option,expand),Call) ; + Val == false -> true ; + '$do_error'(domain_error(unimplemented_option,expand(Val)),Call) ). +'$process_lf_opt'(silent, Val, Call) :- + ( Val == false -> true ; + Val == true -> true ; + '$do_error'(domain_error(unimplemented_option,silent(Val)),Call) ). +'$process_lf_opt'(skip_unix_header, Val, Call) :- + ( Val == false -> true ; + Val == true -> true ; + '$do_error'(domain_error(unimplemented_option,skip_unix_header(Val)),Call) ). +'$process_lf_opt'(compilation_mode, Val, Call) :- + ( Val == source -> true ; + Val == compact -> true ; + Val == assert_all -> true ; + '$do_error'(domain_error(unimplemented_option,compilation_mode(Val)),Call) ). +'$process_lf_opt'(consult, Val , Call) :- + ( Val == reconsult -> true ; + Val == consult -> true ; + Val == exo -> true ; + Val == db -> true ; + '$do_error'(domain_error(unimplemented_option,comnsult(Val)),Call) ). +'$process_lf_opt'(stream, Val, Call) :- + ( current_stream(Val) -> true ; + '$do_error'(domain_error(unimplemented_option,stream(Val)),Call) ), + '$lf_opt'('$files', TOpts, Files), + ( atom(File) -> true ; '$do_error'(type_error(atom,Files),Call) ). +'$process_lf_opt'(register, Val, Call) :- + ( Val == false -> true ; + Val == true -> true ; + '$do_error'(domain_error(unimplemented_option,register(Val)),Call) ). -'$check_use_module'(use_module(_),use_module(_)) :- !. -'$check_use_module'(use_module(_,_),use_module(_)) :- !. -'$check_use_module'(use_module(M,_,_),use_module(M)) :- !. -'$check_use_module'(_,load_files) :- !. +'$check_use_module'(use_module(_), use_module(_)) :- !. +'$check_use_module'(use_module(_,_), use_module(_)) :- !. +'$check_use_module'(use_module(M,_,_), use_module(M)) :- !. +'$check_use_module'(_, load_files) :- !. -'$lf'(V,_,Call,_,_,_,_,_,_,_,_,_,_) :- var(V), !, +'$lf'(V,_,Call, _ ) :- var(V), !, '$do_error'(instantiation_error,Call). -'$lf'([],_,_,_,_,_,_,_,_,_,_,_,_,_) :- !. -'$lf'(M:X, _, Call,InfLevel,Expand,Changed,CompilationMode,Imports,Stream,Encoding,SkipUnixComments,CompMode,Reconsult,UseModule) :- !, +'$lf'([], _, _, _) :- !. +'$lf'(M:X, _, Call, TOpts) :- !, ( atom(M) -> - '$lf'(X, M, Call,InfLevel,Expand,Changed,CompilationMode,Imports,Stream,Encoding,SkipUnixComments,CompMode,Reconsult,UseModule) + '$lf'(X, M, Call, TOpts) ; '$do_error'(type_error(atom,M),Call) ). -'$lf'([F|Fs], Mod,Call,InfLevel,Expand,Changed,CompilationMode,Imports,Stream,Encoding,SkipUnixComments,CompMode,Reconsult,UseModule) :- !, - '$lf'(F,Mod,Call,InfLevel,Expand,Changed,CompilationMode,Imports,Stream,Encoding,SkipUnixComments,CompMode,Reconsult,_), - '$lf'(Fs, Mod,Call,InfLevel,Expand,Changed,CompilationMode,Imports,Stream,Encoding,SkipUnixComments,CompMode,Reconsult,UseModule). -'$lf'(_, Mod, _,InfLevel,_,_,CompilationMode,Imports,Stream,_,Reconsult,SkipUnixComments,CompMode,UseModule) :- - nonvar(Stream), !, - '$do_lf'(Mod, Stream, InfLevel,CompilationMode,Imports,SkipUnixComments,CompMode,Reconsult,UseModule). -'$lf'(user, Mod, _,InfLevel,_,_,CompilationMode,Imports,_,_,SkipUnixComments,CompMode,Reconsult,UseModule) :- !, - '$do_lf'(Mod, user_input, InfLevel, CompilationMode,Imports,SkipUnixComments,CompMode,Reconsult,UseModule). -'$lf'(user_input, Mod, _,InfLevel,_,_,CompilationMode,Imports,_,_,SkipUnixComments,CompMode,Reconsult,UseModule) :- !, - '$do_lf'(Mod, user_input, InfLevel, CompilationMode,Imports,SkipUnixComments,CompMode,Reconsult,UseModule). -'$lf'(X, Mod, Call, InfLevel,_,Changed,CompilationMode,Imports,_,Encoding,SkipUnixComments,CompMode,Reconsult,UseModule) :- - '$full_filename'(X, Y, Call), - ( - var(Encoding) - -> - Opts = [] +'$lf'([F|Fs], Mod, Call, TOpts) :- !, + % clean up after each consult + ( '$lf'(F,Mod,Call, TOpts), fail ; + '$lf'(Fs, Mod, Call, TOpts) ). +'$lf'(user, Mod, _, TOpts) :- !, + '$do_lf'(Mod, user_input, user_input, TOpts). +'$lf'(user_input, Mod, _, TOpts) :- !, + '$do_lf'(Mod, user_input, user_input, TOpts). +'$lf'(File, Mod, Call, TOpts) :- + '$lf_opt'(stream, TOpts, Stream), + ( var(Stream) -> + /* need_to_open_file */ + '$lf_opt'(encoding, TOpts, Encoding), + '$full_filename'(File, Y, Call), + ( + var(Encoding) + -> + Opts = [] + ; + Opts = [encoding(Encoding)] + ), + open(Y, read, Stream, Opts) ; - Opts = [encoding(Encoding)] - ), - open(Y, read, Stream, Opts), !, - '$set_changed_lfmode'(Changed), - '$start_lf'(X, Mod, Stream, InfLevel, CompilationMode, Imports, Changed,SkipUnixComments,CompMode,Reconsult,UseModule), + true + ), !, + '$lf_opt'(if, TOpts, If), + '$lf_opt'(imports, TOpts, Imports), + '$start_lf'(If, Mod, Stream, TOpts, File, Imports), close(Stream). -'$lf'(X, _, Call, _, _, _, _, _, _, _, _, _, _, _) :- +'$lf'(X, _, Call, _) :- '$do_error'(permission_error(input,stream,X),Call). -'$set_changed_lfmode'(true) :- !. -'$set_changed_lfmode'(_). - -'$start_lf'(_, Mod, Stream,_ ,_, Imports, not_loaded, _, _, _, _) :- - '$file_loaded'(Stream, Mod, Imports), !. -'$start_lf'(_, Mod, Stream, _, _, Imports, changed, _, _, _, _) :- - '$file_unchanged'(Stream, Mod, Imports), !. -'$start_lf'(_, Mod, Stream, InfLevel, CompilationMode, Imports, _, SkipUnixComments, CompMode, Reconsult, UseModule) :- - '$do_lf'(Mod, Stream, InfLevel, CompilationMode, Imports, SkipUnixComments, CompMode, Reconsult, UseModule). - -'$close_lf'(Silent) :- - nonvar(Silent), !, - set_value('$lf_verbose',Silent). -'$close_lf'(_). +'$start_lf'(not_loaded, Mod, Stream, TOpts, UserFile, Imports) :- + '$file_loaded'(Stream, Mod, Imports), !, + '$lf_opt'('$options', TOpts, Opts), + '$lf_opt'('$location', TOpts, ParentF:Line), + '$loaded'(Stream, UserFile, Mod, ParentF, Line, not_loaded, _File, _Dir, Opts). +'$start_lf'(changed, Mod, Stream, TOpts, UserFile, Imports) :- + '$file_unchanged'(Stream, Mod, Imports), !, + '$lf_opt'('$options', TOpts, Opts), + '$lf_opt'('$location', TOpts, ParentF:Line), + '$loaded'(Stream, UserFile, Mod, ParentF, Line, changed, _File, _Dir, Opts). +'$start_lf'(_, Mod, Stream, TOpts, File, _) :- + '$do_lf'(Mod, Stream, File, TOpts). ensure_loaded(Fs) :- '$load_files'(Fs, [if(changed)],ensure_loaded(Fs)). @@ -232,25 +280,34 @@ use_module(M,F,Is) :- '$use_module'(M,F,Is) :- nonvar(F), '$load_files'(F, [if(not_loaded),imports(Is)], use_module(M,F,Is)). -'$csult'(V, _) :- var(V), !, - '$do_error'(instantiation_error,consult(V)). -'$csult'([], _). -'$csult'([-F|L], M) :- !, '$load_files'(M:F, [],[-M:F]), '$csult'(L, M). -'$csult'([F|L], M) :- '$consult'(F, M), '$csult'(L, M). +'$csult'(Fs, M) :- + '$extract_minus'(Fs, MFs), !, + '$load_files'(M:MFs,[],[M:Fs]). +'$csult'(Fs, M) :- + '$load_files'(M:Fs,[consult(consult)],[M:Fs]). -'$do_lf'(ContextModule, Stream, InfLevel, _, Imports, SkipUnixComments, CompMode, Reconsult, UseModule) :- +'$extract_minus'([], []). +'$extract_minus'([-F|Fs], [F|MFs]) :- + '$extract_minus'(Fs, MFs). + + +'$do_lf'(ContextModule, Stream, UserFile, TOpts) :- %MsgLevel, _, Imports, SkipUnixHeader, CompMode, Reconsult, UseModule) :- + '$msg_level'( TOpts, Verbosity), + % export to process + b_setval('$lf_status', TOpts), '$reset_if'(OldIfLevel), '$into_system_mode'(OldMode), - '$record_loaded'(Stream, ContextModule, Reconsult), - '$current_module'(OldModule,ContextModule), - working_directory(OldD,OldD), - '$ensure_consulting_file'(OldF, Stream), + % take care with [a:f], a is the ContextModule + '$current_module'(SourceModule, ContextModule), + '$lf_opt'(consult, TOpts, Reconsult), + '$lf_opt'('$options', TOpts, Opts), + '$lf_opt'('$location', TOpts, ParentF:Line), + '$loaded'(Stream, UserFile, SourceModule, ParentF, Line, Reconsult, File, Dir, Opts), + working_directory(OldD, Dir), H0 is heapused, '$cputime'(T0,_), - '$file_name'(Stream,File), '$set_current_loop_stream'(OldStream, Stream), - '$ensure_consulting'(Old, false), - '$access_yap_flags'(18,GenerateDebug), - '$consult_infolevel'(InfLevel), + '$swi_current_prolog_flag'(generate_debug_info, GenerateDebug), + '$lf_opt'(compilation_mode, TOpts, CompMode), '$comp_mode'(OldCompMode, CompMode), ( get_value('$syntaxcheckflag',on) -> '$init_style_check'(File) ; true ), recorda('$initialisation','$',_), @@ -265,16 +322,17 @@ use_module(M,F,Is) :- StartMsg = consulting, EndMsg = consulted ), - print_message(InfLevel, loading(StartMsg, File)), - ( SkipUnixComments == skip_unix_comments -> - '$skip_unix_comments'(Stream) + print_message(Verbosity, loading(StartMsg, File)), + '$lf_opt'(skip_unix_header , TOpts, SkipUnixHeader), + ( SkipUnixHeader == true-> + '$skip_unix_header'(Stream) ; true ), '$loop'(Stream,Reconsult), H is heapused-H0, '$cputime'(TF,_), T is TF-T0, - '$current_module'(Mod,OldModule), - print_message(InfLevel, loaded(EndMsg, File, Mod, T, H)), + '$current_module'(Mod, SourceModule), + print_message(Verbosity, loaded(EndMsg, File, Mod, T, H)), '$end_consult', ( Reconsult = reconsult -> @@ -283,22 +341,38 @@ use_module(M,F,Is) :- true ), '$set_current_loop_stream'(_, OldStream), - '$set_yap_flags'(18,GenerateDebug), + '$swi_set_prolog_flag'(generate_debug_info, GenerateDebug), '$comp_mode'(CompMode, OldCompMode), - nb_setval('$consulting',Old), - nb_setval('$consulting_file',OldF), working_directory(_,OldD), % surely, we were in run mode or we would not have included the file! nb_setval('$if_skip_mode',run), % back to include mode! nb_setval('$if_level',OldIfLevel), + '$lf_opt'('$use_module', TOpts, UseModule), '$bind_module'(Mod, UseModule), + '$lf_opt'(imports, TOpts, Imports0), + (Imports0 == all -> true ; Imports = Imports0 ), '$import_to_current_module'(File, ContextModule, Imports), ( LC == 0 -> prompt(_,' |: ') ; true), ( OldMode == off -> '$exit_system_mode' ; true ), '$exec_initialisation_goals', !. +% are we in autoload and autoload_flag is false? +'$msg_level'( TOpts, Verbosity) :- + '$lf_opt'(autoload, TOpts, AutoLoad), + AutoLoad == true, + '$swi_current_prolog_flag'(verbose_autoload, false), !, + Verbosity = silent. +'$msg_level'( _TOpts, Verbosity) :- + '$swi_current_prolog_flag'(verbose, silent), !, + Verbosity = silent. +'$msg_level'( TOpts, Verbosity) :- + '$lf_opt'(silent, TOpts, Silent), + Silent == true, !, + Verbosity = silent. +'$msg_level'( _TOpts, informational). + '$reset_if'(OldIfLevel) :- '$nb_getval'('$if_level', OldIfLevel, fail), !, nb_setval('$if_level',0). @@ -314,14 +388,6 @@ use_module(M,F,Is) :- ( '$nb_getval'('$system_mode', OldMode, fail) -> true ; OldMode = off), ( OldMode == off -> '$enter_system_mode' ; true ). -'$ensure_consulting_file'(OldF, Stream) :- - ( '$nb_getval'('$consulting_file',OldF, fail) -> true ; OldF = []), - '$set_consulting_file'(Stream). - -'$ensure_consulting'(Old, New) :- - ( '$nb_getval'('$consulting',Old, fail) -> true ; Old = false ), - nb_setval('$consulting', New). - '$bind_module'(_, load_files). '$bind_module'(Mod, use_module(Mod)). @@ -330,11 +396,6 @@ use_module(M,F,Is) :- '$use_preds'(Imports, Ps, NM, M). '$import_to_current_module'(_, _, _). -'$consult_infolevel'(InfoLevel) :- nonvar(InfoLevel), !. -'$consult_infolevel'(InfoLevel) :- - get_value('$lf_verbose',InfoLevel), InfoLevel \= [], !. -'$consult_infolevel'(informational). - '$start_reconsulting'(F) :- recorda('$reconsulted','$',_), recorda('$reconsulting',F,_). @@ -451,28 +512,33 @@ initialization(G,OPT) :- '$include'(F, Status), '$include'(Fs, Status). '$include'(X, Status) :- - get_value('$lf_verbose',Verbosity), - '$full_filename'(X,Y,include(X)), - ( '$nb_getval'('$included_file', OY, fail ) -> true ; OY = [] ), - nb_setval('$included_file', Y), + b_getval('$lf_status', TOpts), + '$msg_level'( TOpts, Verbosity), + '$full_filename'(X, Y , ( :- include(X)) ), + '$lf_opt'(stream, TOpts, OldStream), + source_location(F, L), '$current_module'(Mod), - H0 is heapused, '$cputime'(T0,_), - ( open(Y, read, Stream), !, - print_message(Verbosity, loading(including, Y)), - '$loop'(Stream,Status), close(Stream) - ; + ( open(Y, read, Stream) -> + true ; '$do_error'(permission_error(input,stream,Y),include(X)) ), + H0 is heapused, '$cputime'(T0,_), + '$loaded'(Stream, X, Mod, F, L, include, Y, Dir, []), + ( '$nb_getval'('$included_file', OY, fail ) -> true ; OY = [] ), + nb_setval('$included_file', Y), + print_message(Verbosity, loading(including, Y)), + '$loop'(Stream,Status), + close(Stream), H is heapused-H0, '$cputime'(TF,_), T is TF-T0, print_message(Verbosity, loaded(included, Y, Mod, T, H)), nb_setval('$included_file',OY). '$do_startup_reconsult'(X) :- ( '$access_yap_flags'(15, 0) -> - '$system_catch'(load_files(X, [silent(true)]),Module, Error, '$Error'(Error)) + '$system_catch'(load_files(X, [silent(true)]), Module, Error, '$Error'(Error)) ; - set_value('$verbose',off), - '$system_catch'(load_files(X, [silent(true),skip_unix_comments]),Module,_,fail) + '$swi_set_prolog_flag'(verbose, silent), + '$system_catch'(load_files(X, [silent(true),skip_unix_header(true)]),Module,_,fail) ; true ), @@ -480,15 +546,15 @@ initialization(G,OPT) :- ( '$access_yap_flags'(15, 0) -> true ; halt). '$do_startup_reconsult'(_). -'$skip_unix_comments'(Stream) :- +'$skip_unix_header'(Stream) :- peek_code(Stream, 0'#), !, % 35 is ASCII for '# skip(Stream, 10), - '$skip_unix_comments'(Stream). -'$skip_unix_comments'(_). + '$skip_unix_header'(Stream). +'$skip_unix_header'(_). source_file(FileName) :- - recorded('$lf_loaded','$lf_loaded'(FileName,Mod,_,_),_), Mod \= prolog. + recorded('$lf_loaded','$lf_loaded'(FileName, _),_). source_file(Mod:Pred, FileName) :- current_module(Mod), @@ -504,29 +570,24 @@ source_file(Mod:Pred, FileName) :- '$owned_by'(T, Mod, FileName) :- '$owner_file'(T, Mod, FileName). -prolog_load_context(_, _) :- - '$nb_getval'('$consulting_file', [], fail), !, fail. prolog_load_context(directory, DirName) :- - getcwd(DirName). + source_location(F, _), + file_directory_name(F, DirName). prolog_load_context(file, FileName) :- - ( '$nb_getval'('$included_file', IncFileName, fail ) -> true ; IncFileName = [] ), - ( IncFileName = [] -> - '$nb_getval'('$consulting_file', FileName, fail), - FileName \= [] - ; - FileName = IncFileName - ). + source_location(FileName, _). prolog_load_context(module, X) :- + '$nb_getval'('$consulting_file', _, fail), '$current_module'(X). -prolog_load_context(source, FileName) :- - nb_getval('$consulting_file',FileName). +prolog_load_context(source, F0) :- + source_location(F0, _) /*, + '$input_context'(Context), + '$top_file'(Context, F0, F) */. prolog_load_context(stream, Stream) :- + '$nb_setval'('$consulting_file', _, fail), '$current_loop_stream'(Stream). % return this term for SWI compatibility. prolog_load_context(term_position, '$stream_position'(0,Line,0,0,0)) :- - '$current_loop_stream'(Stream), - stream_property(Stream, position(Position)), - stream_position_data(line_count, Position, Line). + source_location(_, Line). % if the file exports a module, then we can @@ -537,11 +598,11 @@ prolog_load_context(term_position, '$stream_position'(0,Line,0,0,0)) :- '$ensure_file_loaded'(F, M, Imports) :- recorded('$module','$module'(F1,NM,P),_), - recorded('$lf_loaded','$lf_loaded'(F1,_,_,_),_), + recorded('$lf_loaded','$lf_loaded'(F1,_),_), same_file(F1,F), !, '$use_preds'(Imports,P, NM, M). -'$ensure_file_loaded'(F, M, _) :- - recorded('$lf_loaded','$lf_loaded'(F1,M,_,_),_), +'$ensure_file_loaded'(F, _M, _) :- + recorded('$lf_loaded','$lf_loaded'(F1,_),_), same_file(F1,F), !. @@ -553,12 +614,12 @@ prolog_load_context(term_position, '$stream_position'(0,Line,0,0,0)) :- '$ensure_file_unchanged'(F, M, Imports) :- recorded('$module','$module'(F1,NM,P),_), - recorded('$lf_loaded','$lf_loaded'(F1,_,Age,_),R), + recorded('$lf_loaded','$lf_loaded'(F1,Age),R), same_file(F1,F), !, '$file_is_unchanged'(F, R, Age), '$use_preds'(Imports, P, NM, M). '$ensure_file_unchanged'(F, M, _) :- - recorded('$lf_loaded','$lf_loaded'(F1,M,Age,_),R), + recorded('$lf_loaded','$lf_loaded'(F1,Age),R), same_file(F1,F), !, '$file_is_unchanged'(F, R, Age). @@ -598,7 +659,7 @@ remove_from_path(New) :- '$check_path'(New,Path), % add_multifile_predicate when we start consult '$add_multifile'(Name,Arity,Module) :- - nb_getval('$consulting_file',File), + source_location(File,_), '$add_multifile'(File,Name,Arity,Module). '$add_multifile'(File,Name,Arity,Module) :- @@ -626,31 +687,17 @@ remove_from_path(New) :- '$check_path'(New,Path), fail. '$remove_multifile_clauses'(_). -'$set_consulting_file'(user) :- !, - nb_setval('$consulting_file',user_input). -'$set_consulting_file'(user_input) :- !, - nb_setval('$consulting_file',user_input). -'$set_consulting_file'(Stream) :- - '$file_name'(Stream,F), - nb_setval('$consulting_file',F), - '$set_consulting_dir'(F). -% -% Use directory where file exists -% -'$set_consulting_dir'(F) :- - file_directory_name(F, Dir), - working_directory(_, Dir). - -'$record_loaded'(Stream, M, Reconsult) :- - Stream \= user, - Stream \= user_input, - '$file_name'(Stream,F), - ( recorded('$lf_loaded','$lf_loaded'(F,M,_,_),R), erase(R), fail ; true ), - time_file64(F,Age), - recorda('$lf_loaded','$lf_loaded'(F,M,Age,Reconsult),_), - fail. -'$record_loaded'(_, _, _). +'$loaded'(Stream, UserFile, M, OldF, Line, Reconsult, F, Dir, Opts) :- + '$file_name'(Stream, F0), + ( F0 == user_input, nonvar(File) -> UserFile = F ; F = F0 ), + ( F == user_input -> working_directory(Dir,Dir) ; file_directory_name(F, Dir) ), + nb_setval('$consulting_file', F ), + ( Reconsult \== consult, Reconsult \== not_loaded, Reconsult \== changed, recorded('$lf_loaded','$lf_loaded'(F, _),R), erase(R), fail ; var(Reconsult) -> Reconsult = consult ; true ), + ( Reconsult \== consult, recorded('$lf_loaded','$lf_loaded'(F, _, _, _, _, _, _),R), erase(R), fail ; var(Reconsult) -> Reconsult = consult ; true ), + ( F == user_input -> Age = 0 ; time_file64(F, Age) ), + recorda('$lf_loaded','$lf_loaded'( F, Age), _), + recorda('$lf_loaded','$lf_loaded'( F, M, Reconsult, UserFile, OldF, Line, Opts), _). '$set_encoding'(Encoding) :- '$current_loop_stream'(Stream), @@ -1031,7 +1078,7 @@ absolute_file_name(File,Opts,TrueFileName) :- '$fetch_comp_status'(compact). make :- - recorded('$lf_loaded','$lf_loaded'(F1,M,_,reconsult),_), + recorded('$lf_loaded','$lf_loaded'(F1,M,reconsult,_,_,_,_),_), '$load_files'(F1, [if(changed)],make), fail. make. @@ -1040,7 +1087,7 @@ make_library_index(_Directory). '$file_name'(Stream,F) :- stream_property(Stream, file_name(F)), !. -'$file_name'(user_input,user_output). +'$file_name'(user_input,user_input). '$file_name'(user_output,user_ouput). '$file_name'(user_error,user_error). @@ -1073,3 +1120,44 @@ make_library_index(_Directory). exists_source(File) :- '$full_filename'(File, AbsFile, exists_source(File)). +% reload_file(File) :- +% ' $source_base_name'(File, Compile), +% findall(M-Opts, +% source_file_property(File, load_context(M, _, Opts)), +% Modules), +% ( Modules = [First-OptsFirst|Rest] +% -> Extra = [ silent(false), +% register(false) +% ], +% merge_options([if(true)|Extra], OptsFirst, OFirst), +% % debug(make, 'Make: First load ~q', [load_files(First:Compile, OFirst)]), +% load_files(First:Compile, OFirst), +% forall(member(Context-Opts, Rest), +% ( merge_options([if(not_loaded)|Extra], Opts, O), +% % debug(make, 'Make: re-import: ~q', +% % [load_files(Context:Compile, O)]), +% load_files(Context:Compile, O) +% )) +% ; load_files(user:Compile) +% ). + +% ' $source_base_name'(File, Compile) :- +% file_name_extension(Compile, Ext, File), +% user:prolog_file_type(Ext, prolog), !. +% ' $source_base_name'(File, File). + +source_file_property( File0, Prop) :- + ( nonvar(File0) -> absolute_file_name(File0,File) ; File = File0 ), + '$source_file_property'( File, Prop). + +'$source_file_property'( OldF, includes(F, Age)) :- + recorded('$lf_loaded','$lf_loaded'( F, _M, include, _File, OldF, _Line, _), _), + recorded('$lf_loaded','$lf_loaded'( F, Age), _). +'$source_file_property'( F, included_in(OldF, Line)) :- + recorded('$lf_loaded','$lf_loaded'( F, _M, include, _File, OldF, Line, _), _). +'$source_file_property'( F, load_context(OldF, Line, Options)) :- + recorded('$lf_loaded','$lf_loaded'( F, _M, V, _File, OldF, Line, Options), _), V \== include. +'$source_file_property'( F, modified(Age)) :- + recorded('$lf_loaded','$lf_loaded'( F, Age), _). +'$source_file_property'( F, module(M)) :- + recorded('$module','$module'(F,M,_),_). diff --git a/pl/control.yap b/pl/control.yap index 07fd95982..448150653 100644 --- a/pl/control.yap +++ b/pl/control.yap @@ -326,8 +326,8 @@ break :- nb_setval('$trace',off), nb_getval('$debug_jump',Jump), nb_getval('$debug_run',Run), - '$debug_on'(Debug), - '$debug_on'(false), + '$swi_current_prolog_flag'(debug, Debug), + '$swi_set_prolog_flag'(debug, false), nb_getval('$break',BL), NBL is BL+1, nb_getval('$spy_gn',SPY_GN), b_getval('$spy_glist',GList), @@ -342,7 +342,7 @@ break :- nb_setval('$spy_gn',SPY_GN), set_input(InpStream), set_output(OutStream), - '$debug_on'(Debug), + '$swi_set_prolog_flag'(debug, Debug), nb_setval('$debug_jump',Jump), nb_setval('$debug_run',Run), nb_setval('$trace',Trace), diff --git a/pl/debug.yap b/pl/debug.yap index 0f49296ce..b7df0f4f5 100644 --- a/pl/debug.yap +++ b/pl/debug.yap @@ -165,16 +165,16 @@ debug :- '$start_debugging'(Mode) :- (Mode == on -> - '$debug_on'(true) + '$swi_set_prolog_flag'(debug, true) ; - '$debug_on'(false) + '$swi_set_prolog_flag'(debug, false) ), nb_setval('$debug_run',off), nb_setval('$debug_jump',false). nodebug :- '$init_debugger', - '$debug_on'(false), + '$swi_set_prolog_flag'(debug, false), nb_setval('$trace',off), print_message(informational,debug(off)). @@ -264,7 +264,7 @@ debugging :- '$init_debugger', prolog:debug_action_hook(nospyall), !. debugging :- - ( '$debug_on'(true) -> + ( '$swi_current_prolog_flag'(debug, true) -> print_message(help,debug(debug)) ; print_message(help,debug(off)) @@ -307,7 +307,7 @@ debugging :- % % $spy may be called from user code, so be careful. '$spy'([Mod|G]) :- - '$debug_on'(F), F = false, !, + '$swi_current_prolog_flag'(debug, false), !, '$execute_nonstop'(G,Mod). '$spy'([Mod|G]) :- '$in_system_mode', !, @@ -587,7 +587,7 @@ debugging :- % at this point we are done with leap or skip nb_setval('$debug_run',off), % make sure we run this code outside debugging mode. - '$debug_on'(false), + '$swi_set_prolog_flag'(debug, false), repeat, '$trace_msg'(P,G,Module,L,Deterministic), ( @@ -600,13 +600,13 @@ debugging :- ), (Debug = on -> - '$debug_on'(true) + '$swi_set_prolog_flag'(debug, true) ; Debug = zip -> - '$debug_on'(true) + '$swi_set_prolog_flag'(debug, true) ; - '$debug_on'(false) + '$swi_set_prolog_flag'(debug, false) ), !. @@ -650,10 +650,10 @@ debugging :- '$action'(0'!,_,_,_,_,_) :- !, % ! 'g execute read(user,G), % don't allow yourself to be caught by creep. - '$debug_on'(OldDeb), - '$debug_on'(false), + '$swi_current_prolog_flag'(debug, OldDeb), + '$swi_set_prolog_flag'(debug, false), ( '$execute'(G) -> true ; true), - '$debug_on'(OldDeb), + '$swi_set_prolog_flag'(debug, OldDeb), % '$skipeol'(0'!), % ' fail. '$action'(0'<,_,_,_,_,_) :- !, % <'Depth @@ -732,7 +732,7 @@ debugging :- nodebug. '$action'(0'r,_,CallId,_,_,_) :- !, % 'r retry '$scan_number'(0'r,CallId,ScanNumber), % ' - '$debug_on'(true), + '$swi_set_prolog_flag'(debug, true), throw(error('$retry_spy'(ScanNumber),[])). '$action'(0's,P,CallNumber,_,_,on) :- !, % 's skip '$skipeol'(0's), % ' diff --git a/pl/dialect.yap b/pl/dialect.yap index bb1304c8a..89f9736dc 100644 --- a/pl/dialect.yap +++ b/pl/dialect.yap @@ -20,14 +20,14 @@ prolog:'$expects_dialect'(Dialect) :- check_dialect(Dialect) :- var(Dialect),!, - '$do_error'(instantiation_error,(:- dialect(Dialect))). + '$do_error'(instantiation_error,(:- expects_dialect(Dialect))). check_dialect(Dialect) :- \+ atom(Dialect),!, - '$do_error'(type_error(Dialect),(:- dialect(Dialect))). + '$do_error'(type_error(Dialect),(:- expects_dialect(Dialect))). check_dialect(Dialect) :- exists_source(library(dialect/Dialect)), !. check_dialect(Dialect) :- - '$do_error'(domain_error(dialect,Dialect),(:- dialect(Dialect))). + '$do_error'(domain_error(dialect,Dialect),(:- expects_dialect(Dialect))). %% exists_source(+Source) is semidet. % diff --git a/pl/flags.yap b/pl/flags.yap index 45baed920..6d3554f06 100755 --- a/pl/flags.yap +++ b/pl/flags.yap @@ -117,34 +117,6 @@ yap_flag(debug_on_error,X) :- -yap_flag(generate_debug_info,X) :- - var(X), !, - '$access_yap_flags'(18,Options), - (Options =:= 0 -> X = false ; X = true ). -yap_flag(generate_debug_info,true) :- !, - '$enable_restore_flag_info'(generate_debug_info), - '$set_yap_flags'(18,1), - source. -yap_flag(generate_debug_info,false) :- !, - '$enable_restore_flag_info'(generate_debug_info), - '$set_yap_flags'(18,0), - no_source. -yap_flag(generate_debug_info,X) :- - '$do_error'(domain_error(flag_value,generate_debug_info+X),yap_flag(generate_debug_info,X)). - -'$enable_restore_flag_info'(_) :- - nb_getval('$consulting_file',[]), !. -'$enable_restore_flag_info'(_) :- - nb_getval('$initialization_goals',on), !. -'$enable_restore_flag_info'(Flag) :- - '$show_consult_level'(Level1), - yap_flag(Flag, Info), - % it will be done after we leave the current consult level. - Level is Level1-1, - recorda('$initialisation',do(Level,yap_flag(Flag,Info)),_), - fail. -'$enable_restore_flag_info'(_). - % % show state of $ % @@ -254,37 +226,7 @@ yap_flag(tabling_mode,Options) :- '$transl_to_yap_flag_tabling_mode'(6,global_trie). yap_flag(informational_messages,X) :- var(X), !, - get_value('$verbose',X). -yap_flag(informational_messages,on) :- !, - set_value('$verbose',on), - '$set_yap_flags'(22,0). -yap_flag(informational_messages,off) :- !, - set_value('$verbose',off), - '$set_yap_flags'(22,1). -yap_flag(informational_messages,X) :- - '$do_error'(domain_error(flag_value,informational_messages+X),yap_flag(informational_messages,X)). - -yap_flag(verbose,X) :- var(X), !, - get_value('$verbose',X0), - (X0 == on -> X = normal ; X = silent). -yap_flag(verbose,normal) :- !, - set_value('$verbose',on), - '$set_yap_flags'(22,0). -yap_flag(verbose,silent) :- !, - set_value('$verbose',off), - '$set_yap_flags'(22,1). -yap_flag(verbose,X) :- - '$do_error'(domain_error(flag_value,verbose+X),yap_flag(verbose,X)). - -yap_flag(integer_rounding_function,X) :- - var(X), !, - '$access_yap_flags'(2, X1), - '$transl_to_rounding_function'(X1,X). -yap_flag(integer_rounding_function,X) :- - (X = down; X = toward_zero), !, - '$do_error'(permission_error(modify,flag,integer_rounding_function),yap_flag(integer_rounding_function,X)). -yap_flag(integer_rounding_function,X) :- - '$do_error'(domain_error(flag_value,integer_rounding_function+X),yap_flag(integer_rounding_function,X)). + yap_flag(verbose, X). yap_flag(version,X) :- var(X), !, @@ -404,21 +346,6 @@ yap_flag(language,X) :- yap_flag(language,X) :- '$do_error'(domain_error(flag_value,language+X),yap_flag(language,X)). -yap_flag(debug,X) :- - var(X), !, - '$debug_on'(Val), - (Val == true - -> - X = on - ; - X = true - ). -yap_flag(debug,X) :- - '$transl_to_on_off'(_,X), !, - (X = on -> debug ; nodebug). -yap_flag(debug,X) :- - '$do_error'(domain_error(flag_value,debug+X),yap_flag(debug,X)). - yap_flag(discontiguous_warnings,X) :- var(X), !, '$syntax_check_discontiguous'(on,_). @@ -492,6 +419,8 @@ yap_flag(system_options,X) :- '$swi_current_prolog_flag'(readline, true). '$system_options'(tabling) :- \+ '$undefined'('$c_table'(_,_,_), prolog). +'$system_options'(threads) :- + \+ '$undefined'('$thread_join'(_), prolog). '$system_options'(wam_profiler) :- \+ '$undefined'(reset_op_counters, prolog). @@ -640,28 +569,6 @@ yap_flag(toplevel_print_options,Opts) :- yap_flag(host_type,X) :- '$host_type'(X). -yap_flag(verbose_load,X) :- - var(X), !, - ( get_value('$lf_verbose',silent) -> X = false ; X = true ). -yap_flag(verbose_load,true) :- !, - set_value('$lf_verbose',informational). -yap_flag(verbose_load,false) :- !, - set_value('$lf_verbose',silent), - '$set_yap_flags'(7,1). -yap_flag(verbose_load,X) :- - '$do_error'(domain_error(flag_value,verbose_load+X),yap_flag(verbose_load,X)). - -yap_flag(verbose_auto_load,X) :- - var(X), !, - ( get_value('$verbose_auto_load',true) -> X = true ; X = false ). -yap_flag(verbose_auto_load,true) :- !, - set_value('$verbose_auto_load',true). -yap_flag(verbose_auto_load,false) :- !, - set_value('$verbose_auto_load',false), - '$set_yap_flags'(7,1). -yap_flag(verbose_auto_load,X) :- - '$do_error'(domain_error(flag_value,verbose_auto_load+X),yap_flag(verbose_auto_load,X)). - yap_flag(float_format,X) :- var(X), !, '$float_format'(X). @@ -695,7 +602,6 @@ yap_flag(max_threads,X) :- '$yap_system_flag'(char_conversion). '$yap_system_flag'(character_escapes). '$yap_system_flag'(chr_toplevel_show_store). -'$yap_system_flag'(debug). '$yap_system_flag'(debug_on_error ). '$yap_system_flag'(debugger_print_options). '$yap_system_flag'(discontiguous_warnings). @@ -712,14 +618,12 @@ yap_flag(max_threads,X) :- '$yap_system_flag'(gc ). '$yap_system_flag'(gc_margin ). '$yap_system_flag'(gc_trace ). -'$yap_system_flag'(generate_debug_info ). % V = hide ; '$yap_system_flag'(host_type ). '$yap_system_flag'(index). '$yap_system_flag'(index_sub_term_search_depth). '$yap_system_flag'(tabling_mode). '$yap_system_flag'(informational_messages). -'$yap_system_flag'(integer_rounding_function). '$yap_system_flag'(language). '$yap_system_flag'(max_workers). '$yap_system_flag'(max_threads). @@ -750,9 +654,6 @@ yap_flag(max_threads,X) :- '$yap_system_flag'(user_input). '$yap_system_flag'(user_output). '$yap_system_flag'(variable_names_may_end_with_quotes). -'$yap_system_flag'(verbose). -'$yap_system_flag'(verbose_load). -'$yap_system_flag'(verbose_auto_load). '$yap_system_flag'(version). '$yap_system_flag'(write_strings). @@ -861,7 +762,7 @@ set_prolog_flag(F,V) :- \+ atom(F), !, '$do_error'(type_error(atom,F),set_prolog_flag(F,V)). set_prolog_flag(F, Val) :- - '$swi_current_prolog_flag'(F, _), + '$swi_current_prolog_flag'(F, _), !, '$swi_set_prolog_flag'(F, Val). set_prolog_flag(F,V) :- '$yap_system_flag'(F), !, diff --git a/pl/init.yap b/pl/init.yap index bd1db782c..a8b30bcfe 100755 --- a/pl/init.yap +++ b/pl/init.yap @@ -123,9 +123,6 @@ otherwise. version(yap,[6,3]). -system_mode(verbose,on) :- set_value('$verbose',on). -system_mode(verbose,off) :- set_value('$verbose',off). - :- op(1150,fx,(mode)). :- dynamic 'extensions_to_present_answer'/1. @@ -171,7 +168,8 @@ yap_hacks:cut_by(CP) :- '$$cut_by'(CP). % % cleanup ensure loaded and recover some data-base space. % -:- ( recorded('$loaded','$loaded'(_,_,_),R), erase(R), fail ; true ). +:- ( recorded('$lf_loaded',_,R), erase(R), fail ; true ). +:- ( recorded('$module',_,R), erase(R), fail ; true ). :- set_value('$user_module',user), '$protect'. @@ -184,8 +182,6 @@ yap_hacks:cut_by(CP) :- '$$cut_by'(CP). % :- yap_flag(gc_trace,verbose). -:- system_mode(verbose,on). - :- multifile prolog:message/3. :- dynamic prolog:message/3. diff --git a/pl/modules.yap b/pl/modules.yap index 4e785dec0..4afb7069a 100644 --- a/pl/modules.yap +++ b/pl/modules.yap @@ -16,10 +16,6 @@ *************************************************************************/ % module handling -'$consulting_file_name'(Stream,F) :- - '$file_name'(Stream, F). - - '$module'(_,N,P) :- '$module_dec'(N,P). @@ -77,7 +73,7 @@ module(N) :- '$module_dec'(N,P) :- '$current_module'(_,N), - nb_getval('$consulting_file',F), + source_location(F, _), '$add_module_on_file'(N, F, P). '$add_module_on_file'(Mod, F, Exports) :- @@ -744,7 +740,7 @@ export_list(Module, List) :- '$reexport'(ModuleSource, Spec, Module) :- - nb_getval('$consulting_file',TopFile), + source_location(CurrentFile, _), ( Spec == all -> @@ -753,12 +749,11 @@ export_list(Module, List) :- Goal = reexport(ModuleSource,Spec) ), absolute_file_name(ModuleSource, File, [access(read),file_type(prolog),file_errors(fail),solutions(first),expand(true)]), - '$load_files'(File, [if(not_loaded),imports([])], Goal), + '$load_files'(File, [if(not_loaded),silent(true), imports(Spec)], Goal), recorded('$module', '$module'(FullFile, Mod, Exports),_), atom_concat(File, _, FullFile), !, '$convert_for_reexport'(Spec, Exports, Tab, MyExports, Goal), '$add_to_imports'(Tab, Module, Mod), - recorded('$lf_loaded','$lf_loaded'(TopFile,TopModule,_,_),_), recorded('$module', '$module'(CurrentFile, Module, ModExports), Ref), erase(Ref), lists:append(ModExports, MyExports, AllExports), diff --git a/pl/preds.yap b/pl/preds.yap index d4642a1b4..92f8794ae 100644 --- a/pl/preds.yap +++ b/pl/preds.yap @@ -179,7 +179,7 @@ assertz_static(C) :- '$head_and_body'(C0, H0, B0), '$recordap'(Mod:Head,(H0 :- B0),R,CR), ( '$is_multifile'(Head, Mod) -> - nb_getval('$consulting_file',F), + sourcee_location(F, _), functor(H0, Na, Ar), recorda('$multifile_dynamic'(_,_,_), '$mf'(Na,Ar,Mod,F,R), _) ; @@ -198,7 +198,7 @@ assertz_static(C) :- '$head_and_body'(C0, H0, B0), '$recordzp'(Mod:Head,(H0 :- B0),R,CR), ( '$is_multifile'(H0, Mod) -> - get_value('$consulting_file',F), + source_location(F, _), functor(H0, Na, Ar), recordz('$multifile_dynamic'(_,_,_), '$mf'(Na,Ar,Mod,F,R), _) ; @@ -234,7 +234,7 @@ assertz_static(C) :- '$remove_all_d_clauses'(_,_). '$erase_all_mf_dynamic'(Na,A,M) :- - get_value('$consulting_file',F), + source_location( F , _), recorded('$multifile_dynamic'(_,_,_), '$mf'(Na,A,M,F,R), R1), erase(R1), erase(R), From b7be50ee1fd9812e6888c1f9de8a4a433490d299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:16:08 +0000 Subject: [PATCH 17/30] distributed commit --- Makefile.in | 8 +- configure | 6835 ++++++++++++++++++++++++++++++--------------------- 2 files changed, 4043 insertions(+), 2800 deletions(-) diff --git a/Makefile.in b/Makefile.in index 84328c0b6..baaa7ad44 100755 --- a/Makefile.in +++ b/Makefile.in @@ -697,7 +697,7 @@ mycb: $(srcdir)/mycb.c $(CC) $(CFLAGS) $(srcdir)/mycb.c -o mycb all: startup.yss - @ENABLE_GECODE@ @INSTALL_DLLS@ (cd library/gecode; $(MAKE)) + @ENABLE_GECODE@ @INSTALL_DLLS@ (cd packages/gecode; $(MAKE)) @INSTALL_MPI@ (cd library/lammpi; $(MAKE)) @INSTALL_MATLAB@ (cd library/matlab; $(MAKE)) @INSTALL_DLLS@ (cd library/matrix; $(MAKE)) @@ -782,7 +782,7 @@ install_unix: startup.yss libYap.a @INSTALL_DLLS@ (cd packages/yap-lbfgs; $(MAKE) install) @INSTALL_DLLS@ (cd library/system; $(MAKE) install) @INSTALL_DLLS@ (cd library/tries; $(MAKE) install) - @ENABLE_GECODE@ @INSTALL_DLLS@ (cd library/gecode; $(MAKE) install) + @ENABLE_GECODE@ @INSTALL_DLLS@ (cd packages/gecode; $(MAKE) install) @ENABLE_CLIB@ @INSTALL_DLLS@ (cd packages/clib; $(MAKE) install) @ENABLE_HTTP@ @INSTALL_DLLS@ (cd packages/http; $(MAKE) install) @ENABLE_HTTP@ @INSTALL_DLLS@ (cd packages/http; $(MAKE) install-examples) @@ -795,7 +795,7 @@ install_unix: startup.yss libYap.a @ENABLE_RDF@ @INSTALL_DLLS@ (cd packages/RDF; $(MAKE) install) @ENABLE_SEMWEB@ @INSTALL_DLLS@ (cd packages/semweb; $(MAKE) install) @ENABLE_SGML@ @INSTALL_DLLS@ (cd packages/sgml; $(MAKE) install) - @ENABLE_ZLIB@ @INSTALL_DLLS@ (cd packages/zlib; $(MAKE) @ZLIB_INSTALL@) + @ENABLE_ZLIB@ @INSTALL_DLLS@ (cd packages/zlib; $(MAKE) install) @ENABLE_LIBARCHIVE@ @INSTALL_DLLS@ (cd packages/archive; $(MAKE) install) @ENABLE_ODBC@ @INSTALL_DLLS@ (cd packages/odbc; $(MAKE) install) @ENABLE_CLPBN_BP@ @INSTALL_DLLS@ (cd packages/CLPBN/horus; $(MAKE) install) @@ -916,7 +916,7 @@ depend: $(HEADERS) $(C_SOURCES) clean: clean_docs rm -f *.o *~ *.BAK *.a - @ENABLE_GECODE@ @INSTALL_DLLS@ (cd library/gecode; $(MAKE) clean) + @ENABLE_GECODE@ @INSTALL_DLLS@ (cd packages/gecode; $(MAKE) clean) @INSTALL_MPI@ (cd library/lammpi; $(MAKE) clean) @INSTALL_MATLAB@ (cd library/matlab; $(MAKE) clean) @INSTALL_DLLS@ (cd library/matrix; $(MAKE) clean) diff --git a/configure b/configure index c374d1c98..1d1b35425 100755 --- a/configure +++ b/configure @@ -622,26 +622,58 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS LIBOBJS ENABLE_ODBC -ODBC_PLTARGETS -ODBC_TARGETS +ENABLE_LIBARCHIVE +CUDA_LDFLAGS +CUDA_CPPFLAGS +CUDA_SHLIB_LD +ENABLE_CUDA +NVCC +PYTHON_LIBS +PYTHON_INCLUDES +ENABLE_PYTHON +PYTHON_TARGET +PYTHON +GECODE_MAJOR +GECODE_EXTRALIBS +GECODE_VERSION +ENABLE_GECODE +ZLIBS +ZLIB_PLTARGETS +ZLIB_TARGETS +CUDD_CPPFLAGS +CUDD_LDFLAGS +ENABLE_BDDLIB +ENABLE_CUDD ODBC_LIBS ODBC_LDFLAGS ODBC_CFLAGS -ENABLE_LIBARCHIVE +ODBC_PLTARGETS +ODBC_TARGETS +ARCHIVE_LIBS ARCHIVE_PLTARGETS ARCHIVE_TARGETS -ARCHIVE_LIBS -ZLIB_INSTALL -ZLIB_PLTARGETS -ZLIB_TARGETS -ZLIBS -MAILDROP_CFLAGS -RFC2045CHARSET -EXTRA_LIBS_FOR_SWIDLLS +CLIB_LIBUUID +CLIB_CRYPTOBJ CLIB_CRYPTLIBS CLIB_NETLIBS CLIB_PLTARGETS CLIB_TARGETS +_ACJNI_JAVAC +JAVADOC +JAR +uudecode +JAVA +JAVAC +CMDEXT +JAVA_PRELOAD +JPLLDFLAGS +JPLCFLAGS +JUNIT +JAVALIBS +JAVACFLAGS +JAVA_HOME +REXE +EXTRA_LIBS_FOR_SWIDLLS CLIB_PTHREADS CHR_TARGETS PLTARGETS @@ -650,10 +682,6 @@ IN_SWI IN_YAP PROLOG_SYSTEM M4GENABSMI -PYTHON_LIBS -PYTHON_INCLUDES -ENABLE_PYTHON -PYTHON_TARGET INSTALL_PRISM MATLAB_INCLUDE INSTALL_MATLAB @@ -662,10 +690,6 @@ REAL_INCLUDES REAL_TARGET ENABLE_REAL ENABLE_MINISAT -CUDD_CPPFLAGS -CUDD_LDFLAGS -ENABLE_BDDLIB -ENABLE_CUDD EXTRA_INCLUDES_FOR_WIN32 ENABLE_WINCONSOLE STATIC_MODE @@ -677,6 +701,7 @@ MPILDF INSTALL_MPI YAPMPILIB IN_UNIX +LIBJPL ENABLE_CLPBN_BP ENABLE_ZLIB ENABLE_SGML @@ -690,10 +715,6 @@ ENABLE_HTTP ENABLE_CLPQR ENABLE_CLIB ENABLE_CHR -CUDA_LDFLAGS -CUDA_CPPFLAGS -CUDA_SHLIB_LD -ENABLE_CUDA NO_BUILTIN_REGEXP YAP_EXTRAS SONAMEFLAG @@ -723,26 +744,9 @@ CPLINT_LDFLAGS CPLINT_CFLAGS CPLINT_LIBS MPI_CC -_ACJNI_JAVAC -JAVADOC -JAR -uudecode -JAVA -JAVAC -CMDEXT -JAVA_PRELOAD -LIBJPL -JPLLDFLAGS -JPLCFLAGS -JUNIT -JAVALIBS -JAVACFLAGS -JAVA_HOME ENABLE_PRISM -ENABLE_GECODE -NVCC -PYTHON -REXE +EGREP +GREP INSTALL_INFO AR RANLIB @@ -753,11 +757,6 @@ LN_S DefTrailSpace DefStackSpace DefHeapSpace -GECODE_MAJOR -GECODE_EXTRALIBS -GECODE_VERSION -EGREP -GREP target_os target_vendor target_cpu @@ -826,7 +825,6 @@ SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking -enable_gecode enable_tabling enable_or_parallelism enable_rational_trees @@ -856,14 +854,8 @@ enable_cplint enable_clpbn_bp with_gmp with_R -with_python with_judy with_minisat -with_cuda -with_cudd -enable_myddas -enable_myddas_stats -enable_myddas_top_level with_java with_readline with_matlab @@ -874,8 +866,16 @@ with_stack_space with_trail_space with_max_workers with_max_threads +enable_myddas +enable_myddas_stats +enable_myddas_top_level with_junit -enable_mimecharset +with_time +with_odbc +with_cudd +enable_gecode +with_python +with_cuda ' ac_precious_vars='build_alias host_alias @@ -1501,7 +1501,6 @@ Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-gecode install gecode library --enable-tabling support tabling --enable-or-parallelism support or-parallelism as: copy,sba,a-cow,threads --enable-rational-trees support infinite rational trees @@ -1532,18 +1531,15 @@ Optional Features: --enable-myddas[=DIR] enable the MYDDAS library --enable-myddas-stats enable the MYDDAS library statistics support --enable-myddas-top-level enable the MYDDAS top-level support to MySQL - --enable-mimecharset=charset Default MIME charset to set on new messages + --enable-gecode install gecode library Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gmp=DIR use GNU Multiple Precision in DIR --with-R=DIR interface to R language - --with-python=DIR interface to R language --with-judy=DIR UDI needs judy library --enable-minisat use minisat interface - --enable-cuda use minisat interface - --with-cudd=DIR use CUDD package in DIR --with-java=JAVA_HOME use Java instalation in JAVA_HOME --with-readline=DIR use GNU Readline Library in DIR --with-matlab=DIR use MATLAB package in DIR @@ -1555,6 +1551,11 @@ Optional Packages: --with-max-workers=integer maximum number of or-parallel processes --with-max-threads=integer maximum number of or-parallel processes --with-junit=PATH Specify location of the junit JAR file + --without-time Exclude alarm library + --with-odbc= Location of ODBC include/lib + --with-cudd=DIR use CUDD package in DIR + --with-python=DIR interface to R language + --enable-cuda use minisat interface Some influential environment variables: CC C compiler command @@ -1761,6 +1762,52 @@ fi } # ac_fn_cxx_try_compile +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using @@ -1921,52 +1968,6 @@ $as_echo "$ac_res" >&6; } } # ac_fn_c_check_header_compile -# ac_fn_c_try_link LINENO -# ----------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_link () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - test -x conftest$ac_exeext - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_link - # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly @@ -4067,6 +4068,8 @@ cat >>confdefs.h <<_ACEOF _ACEOF + + case "$target_cpu" in i*86*) YAP_TARGET=i386 @@ -4083,410 +4086,6 @@ case "$target_cpu" in esac - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -ac_fn_c_check_header_mongrel "$LINENO" "gecode/support/config.hpp" "ac_cv_header_gecode_support_config_hpp" "$ac_includes_default" -if test "x$ac_cv_header_gecode_support_config_hpp" = xyes; then : - have_gecode=yes -else - have_gecode=no -fi - - -# Check whether --enable-gecode was given. -if test "${enable_gecode+set}" = set; then : - enableval=$enable_gecode; use_gecode="$enableval" - if test "$use_gecode" = yes; then - if test "$have_gecode" = no; then - as_fn_error $? "cannot enable gecode: gecode library not found" "$LINENO" 5 - fi - fi -else - use_gecode=$have_gecode -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic arrays are supported" >&5 -$as_echo_n "checking if dynamic arrays are supported... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - void foo(int n) { int a[n]; a[1]=0; } -int -main () -{ -foo(3); - ; - return 0; -} - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define HAVE_DYNARRAY 1" >>confdefs.h - - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -GECODE_VERSION=unknown-gecode-version -GECODE_EXTRALIBS="-lgecodesupport -lgecodekernel -lgecodeint -lgecodeset -lgecodesearch" - - -if test "$use_gecode" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking gecode version" >&5 -$as_echo_n "checking gecode version... " >&6; } - if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run test program while cross compiling -See \`config.log' for more details" "$LINENO" 5; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include "gecode/support/config.hpp" -#include - -int -main () -{ - - FILE* out = fopen("conftest.out","w"); - fprintf(out,"%s\n",GECODE_VERSION); - fclose(out); - return 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - GECODE_VERSION=$(cat conftest.out) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GECODE_VERSION" >&5 -$as_echo "$GECODE_VERSION" >&6; } -else - as_fn_error $? "cannot determine gecode version" "$LINENO" 5 -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - - case "$target_os" in - *darwin*) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -framework gecode is required" >&5 -$as_echo_n "checking if -framework gecode is required... " >&6; } - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - saved_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -framework gecode" - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include "gecode/int.hh" - -int -main () -{ - -Gecode::Exception e("",""); -return 0; - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - GECODE_EXTRALIBS="-framework gecode" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - CXXFLAGS="$saved_CXXFLAGS" - ;; - esac -fi -GECODE_MAJOR=`echo $GECODE_VERSION| sed 's/\(^.\).*/\1/'` - - # Check whether --enable-tabling was given. if test "${enable_tabling+set}" = set; then : enableval=$enable_tabling; tabling="$enableval" @@ -4693,7 +4292,7 @@ if test "${with_gmp+set}" = set; then : LDFLAGS="$LDFLAGS -L${yap_cv_gmp}/lib" LIBS="$LIBS -L${yap_cv_gmp}/lib" CPPFLAGS="$CPPFLAGS -I${yap_cv_gmp}/include" - CFLAGS="$CFLAGS -I${yap_cv_gmp}/include" + CFLAGS="$CFLAGS -I${yap_cv_gmp}/include" fi else yap_cv_gmp=yes @@ -4714,20 +4313,6 @@ else fi -# Check whether --with-python was given. -if test "${with_python+set}" = set; then : - withval=$with_python; if test "$withval" = yes; then - yap_cv_python=yes - elif test "$withval" = no; then - yap_cv_python=no - else - yap_cv_python=$withval - fi -else - yap_cv_python=no -fi - - # Check whether --with-judy was given. if test "${with_judy+set}" = set; then : @@ -4759,72 +4344,6 @@ fi -# Check whether --with-cuda was given. -if test "${with_cuda+set}" = set; then : - withval=$with_cuda; if test "$withval" = yes; then - yap_cv_cuda=/usr - elif test "$withval" = no; then - yap_cv_cuda=no - else - yap_cv_cuda="$withval" - fi -else - yap_cv_cuda=no -fi - - - -# Check whether --with-cudd was given. -if test "${with_cudd+set}" = set; then : - withval=$with_cudd; yap_cv_cudd="$withval" -else - yap_cv_cudd=no -fi - - -# Check whether --enable-myddas was given. -if test "${enable_myddas+set}" = set; then : - enableval=$enable_myddas; if test "$enableval" = yes; then - yap_cv_myddas=/usr - elif test "$enableval" = no; then - yap_cv_myddas=no - else - yap_cv_myddas=$enable_myddas - LDFLAGS="$LDFLAGS -L${yap_cv_myddas}/lib " - CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas}/include " - ODBC_LDFLAGS="-L${yap_cv_myddas}/lib " - ODBC_CFLAGS="-I${yap_cv_myddas}/include " - fi -else - yap_cv_myddas=/usr -fi - - -# Check whether --enable-myddas-stats was given. -if test "${enable_myddas_stats+set}" = set; then : - enableval=$enable_myddas_stats; if test "$yap_cv_myddas" = no; then - myddasstats=no - else - myddasstats="$enableval" - fi -else - myddasstats=no -fi - - -# Check whether --enable-myddas-top-level was given. -if test "${enable_myddas_top_level+set}" = set; then : - enableval=$enable_myddas_top_level; if test "$yap_cv_myddas" = no; then - myddastoplevel=no - else - myddastoplevel="$enableval" - fi -else - myddastoplevel=no -fi - - - # Check whether --with-java was given. if test "${with_java+set}" = set; then : withval=$with_java; if test "$withval" = yes; then @@ -5086,7 +4605,8 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS=-std=c++0x { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXX supports -std-c++0x" >&5 $as_echo_n "checking whether CXX supports -std-c++0x... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -5125,22 +4645,6 @@ fi -if test "$yap_cv_cudd" = no -then - ENABLE_CUDD="@# " - ENABLE_BDDLIB="@# " -else - if test "$dynamic_bdd" = yes - then - ENABLE_BDDLIB="" - else - ENABLE_BDDLIB="@# " - fi - ENABLE_CUDD="" -fi - - - if test "$use_condor" = yes then static_compilation="yes" @@ -5632,7 +5136,8 @@ then then target_cpu=x86_64 YAP_TARGET=amd64 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 $as_echo_n "checking for main in -lws2_32... " >&6; } if ${ac_cv_lib_ws2_32_main+:} false; then : $as_echo_n "(cached) " >&6 @@ -6031,13 +5536,11 @@ _ACEOF fi yap_cv_readline=no - CLIB_NETLIBS="-lws2_32 -lpsapi -lgdi32" if test "$prefix" = "NONE" then if test "$target_win64" = yes then prefix="\${SYSTEMDRIVE}/Yap64" - CLIB_NETLIBS="-lws2_32 -lwsock32 -lpsapi -lgdi32" else prefix="\${SYSTEMDRIVE}/Yap" fi @@ -6564,188 +6067,6 @@ fi fi -if test "$yap_cv_R" = "no"; then - REAL_TARGET="dummy" - ENABLE_REAL="@# " -elif test -e "$srcdir"/packages/real/Makefile.in ; then - REAL_TARGET="ritf" - ENABLE_REAL="" - for ac_prog in R -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_REXE+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$REXE"; then - ac_cv_prog_REXE="$REXE" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_REXE="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -REXE=$ac_cv_prog_REXE -if test -n "$REXE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REXE" >&5 -$as_echo "$REXE" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$REXE" && break -done -test -n "$REXE" || REXE=""none"" - - if test "$yap_cv_R" = "yes" - then - case "$target_os" in - *darwin*) - REAL_INCLUDES="-I/Library/Frameworks/R.framework/Headers" - REAL_LIBS="-framework R -L /Library/Frameworks/R.framework/Libraries -lR" - ;; - *cygwin*|*mingw*) - REAL_INCLUDES="$($REXE CMD config --cppflags | grep -v ^WARNING)" - REAL_LIBS="$($REXE CMD config --ldflags | grep -v ^WARNING)" - ;; - **) - if test -n "$R_HOME" ; then - REAL_INCLUDES="-I$R_HOME/include" - elif test "$YAP_TARGET" = amd64 -a -d /usr/lib64/R/include ; then - REAL_INCLUDES="-I/usr/lib64/R/include" - elif test -d /usr/include/R; then - REAL_INCLUDES="-I/usr/include/R" - elif test -d /usr/share/R/include; then - REAL_INCLUDES="-I/usr/share/R/include" - else - REAL_INCLUDES="$($REXE CMD config --cppflags | grep -v ^WARNING)" - fi - if test -n "$R_HOME" ; then - REAL_LIBS="-L $R_HOME/lib -lR" - elif test "$YAP_TARGET" = amd64 -a -d /usr/lib64/R/lib; then - REAL_LIBS="-L /usr/lib64/R/lib -lR" - elif test -d /usr/lib/R; then - REAL_LIBS="-L /usr/lib/R/lib -lR" - else - REAL_LIBS="$($REXE CMD config --ldflags | grep -v ^WARNING)" - fi - ;; - esac - else - case "$target_os" in - *cygwin*|*mingw*) - REAL_INCLUDES="-I\"$yap_cv_R/include\"" - if test "$YAP_TARGET" = i386; then - REAL_LIBS="\"$yap_cv_R/bin/i386/R.dll\"" - else - REAL_LIBS="\"$yap_cv_R/bin/x64/R.dll\"" - fi - ;; - *) - REAL_INCLUDES="-I$yap_cv_R/include" - REAL_LIBS="-L $yap_cv_R/lib -lR" - ;; - esac - fi - OLD_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $REAL_INCLUDES" - for ac_header in Rinterface.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "Rinterface.h" "ac_cv_header_Rinterface_h" "$ac_includes_default" -if test "x$ac_cv_header_Rinterface_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_RINTERFACE_H 1 -_ACEOF - -fi - -done - - CFLAGS="$OLD_CFLAGS" -else - REAL_TARGET="dummy" - ENABLE_REAL="@# " -fi - -if test "$yap_cv_python" = "no"; then - PYTHON_TARGET="dummy" - ENABLE_PYTHON="@# " -elif test -e "$srcdir"/packages/python/Makefile.in ; then - PYTHON_TARGET="pitf" - ENABLE_PYTHON="" - if test "$yap_cv_python" = "yes" - then - for ac_prog in python -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_PYTHON+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$PYTHON"; then - ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_PYTHON="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -PYTHON=$ac_cv_prog_PYTHON -if test -n "$PYTHON"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 -$as_echo "$PYTHON" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$PYTHON" && break -done -test -n "$PYTHON" || PYTHON=""none"" - - else - PYTHON="$yap_cv_python" - fi - PYTHONHOME=`$PYTHON -c'import sys; print sys.prefix'` - PYTHONVERSION=`"$PYTHON" -c "import sys; print sys.version[:3]"` - PYTHON_LIBS="-L $PYTHONHOME/lib -lpython$PYTHONVERSION" - PYTHON_INCLUDES="-I $PYTHONHOME/include/python$PYTHONVERSION" -else - PYTHON_TARGET="dummy" - ENABLE_PYTHON="@# " -fi - if test "$yap_cv_judy" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Judy1Set in -lJudy" >&5 $as_echo_n "checking for Judy1Set in -lJudy... " >&6; } @@ -6797,648 +6118,6 @@ fi fi -CUDA_LDFLAGS="" -CUDA_CPPFLAGS="" -if test "$yap_cv_cuda" = no -then - ENABLE_CUDA="@# " -else - # Extract the first word of "nvcc", so it can be a program name with args. -set dummy nvcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_NVCC+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $NVCC in - [\\/]* | ?:[\\/]*) - ac_cv_path_NVCC="$NVCC" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $yap_cv_cuda/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_NVCC="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_NVCC" && ac_cv_path_NVCC="no" - ;; -esac -fi -NVCC=$ac_cv_path_NVCC -if test -n "$NVCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NVCC" >&5 -$as_echo "$NVCC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - if test "$yap_cv_cuda" = no - then - ENABLE_CUDA="@# " - else - ENABLE_CUDA="" - case "$target_os" in - *darwin*) - CUDA_LDFLAGS="$LDFLAGS" - CUDA_CPPFLAGS="-shared -arch=sm_20 -Xcompiler -fPIC -O3 " - CUDA_SHLIB_LD="$NVCC -Xcompiler -dynamiclib -L../.. -lYap " - ;; - **) - CUDA_LDFLAGS="$LDFLAGS $LIBS" - CUDA_CPPFLAGS="-shared -arch=sm_20 -Xcompiler -fPIC -O3 " - CUDA_SHLIB_LD="$NVCC -shared -Xcompiler -export-dynamic" - ;; - esac - fi -fi - - -if test "$yap_cv_myddas" != "no" -then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mysql_init" >&5 -$as_echo_n "checking for library containing mysql_init... " >&6; } -if ${ac_cv_search_mysql_init+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char mysql_init (); -int -main () -{ -return mysql_init (); - ; - return 0; -} -_ACEOF -for ac_lib in '' mysqlclient; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_mysql_init=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_mysql_init+:} false; then : - break -fi -done -if ${ac_cv_search_mysql_init+:} false; then : - -else - ac_cv_search_mysql_init=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mysql_init" >&5 -$as_echo "$ac_cv_search_mysql_init" >&6; } -ac_res=$ac_cv_search_mysql_init -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - yap_cv_mysql="yes" -else - yap_cv_mysql="no" -fi - - if test "$yap_cv_mysql" = yes - then - YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL" - fi - - case "$target_os" in - *darwin*) - LIBS="$LIBS -framework CoreFoundation" - ;; - **) - ;; - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SQLAllocHandle" >&5 -$as_echo_n "checking for library containing SQLAllocHandle... " >&6; } -if ${ac_cv_search_SQLAllocHandle+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char SQLAllocHandle (); -int -main () -{ -return SQLAllocHandle (); - ; - return 0; -} -_ACEOF -for ac_lib in '' odbc; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_SQLAllocHandle=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_SQLAllocHandle+:} false; then : - break -fi -done -if ${ac_cv_search_SQLAllocHandle+:} false; then : - -else - ac_cv_search_SQLAllocHandle=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SQLAllocHandle" >&5 -$as_echo "$ac_cv_search_SQLAllocHandle" >&6; } -ac_res=$ac_cv_search_SQLAllocHandle -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - yap_cv_odbc="yes" -else - yap_cv_odbc="no" -fi - - if test "$yap_cv_odbc" = yes - then - ODBC_LIBS="$ODBC_LIBS -lodbc" - else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SQLAllocHandle" >&5 -$as_echo_n "checking for library containing SQLAllocHandle... " >&6; } -if ${ac_cv_search_SQLAllocHandle+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char SQLAllocHandle (); -int -main () -{ -return SQLAllocHandle (); - ; - return 0; -} -_ACEOF -for ac_lib in '' iodbc; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_SQLAllocHandle=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_SQLAllocHandle+:} false; then : - break -fi -done -if ${ac_cv_search_SQLAllocHandle+:} false; then : - -else - ac_cv_search_SQLAllocHandle=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SQLAllocHandle" >&5 -$as_echo "$ac_cv_search_SQLAllocHandle" >&6; } -ac_res=$ac_cv_search_SQLAllocHandle -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - yap_cv_odbc="yes" -else - yap_cv_odbc="no" -fi - - if test "$yap_cv_odbc" = yes - then - ODBC_LIBS="$ODBC_LIBS -liodbc" - fi - fi - if test "$yap_cv_odbc" = yes - then - YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC" - fi - - if test "$myddasstats" = "yes" - then - YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_STATS" - fi - - if test "$myddastoplevel" = "yes" - then - YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_TOP_LEVEL" - fi - -fi - -if test "$yap_cv_cudd" != no; then - oldlibs="$LIBS" - if test "$yap_cv_cudd" != "NONE" -a "$yap_cv_cudd" != "yes"; then - CUDD_CPPFLAGS="-I $yap_cv_cudd/include" - cudd_dir="$yap_cv_cudd" - elif test "$prefix" != "NONE"; then - CUDD_CPPFLAGS="-I $prefix/include" - cudd_dir="$prefix" - else - CUDD_CPPFLAGS="-I /usr/local/include" - cudd_dir=/usr/local - fi - OLD_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $CUDD_CPPFLAGS" - for ac_header in util.h cudd/util.h cudd.h cudd/cudd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - for ac_header in cuddInt.h cudd/cuddInt.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - if test -d "$cudd_dir/lib64/cudd" -a "$YAP_TARGET" = amd64; then - LIBS="$LIBS -L $cudd_dir/lib64/cudd" - elif test -d "$cudd_dir/lib64" -a "$YAP_TARGET" = amd64; then - LIBS="$LIBS -L $cudd_dir/lib64 -L $cudd_dir/lib" - elif test -d "$cudd_dir/lib/cudd"; then - LIBS="$LIBS -L $cudd_dir/lib/cudd" - elif test -d "$cudd_dir/lib"; then - LIBS="$LIBS -L $cudd_dir/lib" - fi - if test -d "$cudd_dir/util"; then - LIBS="$LIBS -L $cudd_dir/util" - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing util_print_cpu_stats" >&5 -$as_echo_n "checking for library containing util_print_cpu_stats... " >&6; } -if ${ac_cv_search_util_print_cpu_stats+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char util_print_cpu_stats (); -int -main () -{ -return util_print_cpu_stats (); - ; - return 0; -} -_ACEOF -for ac_lib in '' cuddutil util; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_util_print_cpu_stats=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_util_print_cpu_stats+:} false; then : - break -fi -done -if ${ac_cv_search_util_print_cpu_stats+:} false; then : - -else - ac_cv_search_util_print_cpu_stats=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_util_print_cpu_stats" >&5 -$as_echo "$ac_cv_search_util_print_cpu_stats" >&6; } -ac_res=$ac_cv_search_util_print_cpu_stats -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - if test -d "$cudd_dir/st"; then - LIBS="$LIBS -L $cudd_dir/st" - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing st_insert" >&5 -$as_echo_n "checking for library containing st_insert... " >&6; } -if ${ac_cv_search_st_insert+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char st_insert (); -int -main () -{ -return st_insert (); - ; - return 0; -} -_ACEOF -for ac_lib in '' cuddst st; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_st_insert=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_st_insert+:} false; then : - break -fi -done -if ${ac_cv_search_st_insert+:} false; then : - -else - ac_cv_search_st_insert=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_st_insert" >&5 -$as_echo "$ac_cv_search_st_insert" >&6; } -ac_res=$ac_cv_search_st_insert -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - if test -d "$cudd_dir/epd"; then - LIBS="$LIBS -L $cudd_dir/epd" - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EpdAdd" >&5 -$as_echo_n "checking for library containing EpdAdd... " >&6; } -if ${ac_cv_search_EpdAdd+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char EpdAdd (); -int -main () -{ -return EpdAdd (); - ; - return 0; -} -_ACEOF -for ac_lib in '' epd; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_EpdAdd=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_EpdAdd+:} false; then : - break -fi -done -if ${ac_cv_search_EpdAdd+:} false; then : - -else - ac_cv_search_EpdAdd=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EpdAdd" >&5 -$as_echo "$ac_cv_search_EpdAdd" >&6; } -ac_res=$ac_cv_search_EpdAdd -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - if test -d "$cudd_dir/mtr"; then - LIBS="$LIBS -L $cudd_dir/mtr" - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Mtr_InitTree" >&5 -$as_echo_n "checking for library containing Mtr_InitTree... " >&6; } -if ${ac_cv_search_Mtr_InitTree+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char Mtr_InitTree (); -int -main () -{ -return Mtr_InitTree (); - ; - return 0; -} -_ACEOF -for ac_lib in '' mtr; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_Mtr_InitTree=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_Mtr_InitTree+:} false; then : - break -fi -done -if ${ac_cv_search_Mtr_InitTree+:} false; then : - -else - ac_cv_search_Mtr_InitTree=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Mtr_InitTree" >&5 -$as_echo "$ac_cv_search_Mtr_InitTree" >&6; } -ac_res=$ac_cv_search_Mtr_InitTree -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - if test -d "$cudd_dir/cudd"; then - LIBS="$LIBS -L $cudd_dir/cudd" - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Cudd_Init" >&5 -$as_echo_n "checking for library containing Cudd_Init... " >&6; } -if ${ac_cv_search_Cudd_Init+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char Cudd_Init (); -int -main () -{ -return Cudd_Init (); - ; - return 0; -} -_ACEOF -for ac_lib in '' cudd; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_Cudd_Init=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_Cudd_Init+:} false; then : - break -fi -done -if ${ac_cv_search_Cudd_Init+:} false; then : - -else - ac_cv_search_Cudd_Init=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Cudd_Init" >&5 -$as_echo "$ac_cv_search_Cudd_Init" >&6; } -ac_res=$ac_cv_search_Cudd_Init -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - cudd_installed="yes" -else - cudd_installed="no" -fi - - CPPFLAGS="$OLD_CPPFLAGS" - if test "$cudd_installed" = yes; then - CUDD_LDFLAGS="$LIBS" - else - cat << EOF -################################################################## -# ERROR: Could not find cudd library. Either I don't have the -# correct path, or CUDD is installed in some strange way -################################################################## -EOF - fi - LIBS="$oldlibs" -fi - if test "$threads" = yes then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 @@ -7486,7 +6165,267 @@ _ACEOF fi - for ac_header in pthread.h + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in pthread.h do : ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" if test "x$ac_cv_header_pthread_h" = xyes; then : @@ -7528,13 +6467,6 @@ fi CMFLAGS=-fpic CIFLAGS=-I. -if test "$use_gecode" = no; then - ENABLE_GECODE="@# " -else - ENABLE_GECODE="" -fi - - if test "$use_prism" = no; then ENABLE_PRISM="@# " else @@ -7624,1050 +6556,6 @@ else ENABLE_ZLIB="@# " fi -if test "$yap_cv_java" = no; then - ENABLE_JPL="@#" -elif test -e "$srcdir"/packages/jpl/Makefile.in; then - ENABLE_JPL="" - if test "$yap_cv_java" != "yes"; then - JAVA_HOME=$yap_cv_java - JAVAPREFIX="$JAVA_HOME"/bin - elif test -n "$JAVA_HOME"; then - JAVAPREFIX="$JAVA_HOME"/bin - fi - - - - - - - - - - - - -CMDEXT=sh - -if test "x$JAVALIBS" = "x"; then - case "$target_os" in - *darwin*) - JAVALIBS="-Wl,-framework,JavaVM" - ;; - *powerpc-linux*) - JAVALIBS="-ljava -ljvm" - ;; - *win32*|*win64*) - JAVALIBS="-ljvm" - CMDEXT=bat - ;; - *) - JAVALIBS="-ljava -lverify -ljvm" - ;; - esac -fi - -case "$target_os" in - *win32*) - JPLLDFLAGS="$JPLLDFLAGS -Wl,--kill-at" - LIBJPL=jpl - ;; - *win64*) - LIBJPL=jpl - ;; - *) - LIBJPL=libjpl - ;; -esac - - - -if test "x$JAVACFLAGS" = x; then - JAVACFLAGS="-source 1.4 -target 1.4" -fi - - - - - - - - - - - - - - - - - - -# _ACJNI_FOLLOW_SYMLINKS -# Follows symbolic links on , -# finally setting variable _ACJNI_FOLLOWED -# -------------------- -# _ACJNI - - - - -java_abs_paths=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Java configuration..." >&5 -$as_echo "$as_me: checking Java configuration..." >&6;} -if test -r /etc/java/java2.conf; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using /etc/java/java2.conf" >&5 -$as_echo "Using /etc/java/java2.conf" >&6; } - eval `grep '\(JAVA\|JRE\|JDK\|SDK\).*=' /etc/java/java2.conf | sed 's/ *= */=/'` - if test ! -z "$JAVA_BINDIR"; then - PATH="$PATH:$JAVA_BINDIR" - java_abs_paths=yes - fi -fi - - - -if test "x$JAVAC" = x; then - if test "x$JAVAPREFIX" = x; then - for ac_prog in jikes$EXEEXT javac$EXEEXT gcj$EXEEXT guavac$EXEEXT -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_JAVAC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$JAVAC"; then - ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_JAVAC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -JAVAC=$ac_cv_prog_JAVAC -if test -n "$JAVAC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 -$as_echo "$JAVAC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$JAVAC" && break -done - - else - for ac_prog in jikes$EXEEXT javac$EXEEXT gcj$EXEEXT guavac$EXEEXT -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_JAVAC+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $JAVAC in - [\\/]* | ?:[\\/]*) - ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in "$JAVAPREFIX" -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -JAVAC=$ac_cv_path_JAVAC -if test -n "$JAVAC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 -$as_echo "$JAVAC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$JAVAC" && break -done - - fi -fi -test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5 -if test "$JAVAC" = "gcj$EXEEXT"; then - case "$JAVACFLAGS" in - *-C*) - ;; - *) - JAVACFLAGS="$JAVACFLAGS -C" - ;; - esac -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5 -$as_echo_n "checking if $JAVAC works... " >&6; } -if ${ac_cv_prog_javac_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - -JAVA_TEST=Test.java -CLASS_TEST=Test.class -cat << \EOF > $JAVA_TEST -/* #line 7841 "configure" */ -public class Test { -} -EOF -if { ac_try='"$JAVAC" $JAVACFLAGS $JAVA_TEST' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 - (eval $ac_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } >/dev/null 2>&1; then - ac_cv_prog_javac_works=yes -else - as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 - echo "configure: failed program was:" >&5 - cat $JAVA_TEST >&5 -fi -rm -f $JAVA_TEST $CLASS_TEST - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5 -$as_echo "$ac_cv_prog_javac_works" >&6; } - - - -if test "x$JAVA" = x; then - if test "x$JAVAPREFIX" = x; then - for ac_prog in kaffe$EXEEXT java$EXEEXT -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_JAVA+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$JAVA"; then - ac_cv_prog_JAVA="$JAVA" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_JAVA="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -JAVA=$ac_cv_prog_JAVA -if test -n "$JAVA"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 -$as_echo "$JAVA" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$JAVA" && break -done - - else - for ac_prog in kaffe$EXEEXT java$EXEEXT -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_JAVA+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $JAVA in - [\\/]* | ?:[\\/]*) - ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $JAVAPREFIX -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -JAVA=$ac_cv_path_JAVA -if test -n "$JAVA"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 -$as_echo "$JAVA" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$JAVA" && break -done - - fi -fi -test "x$JAVA" = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5 - -# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args. -set dummy uudecode$EXEEXT; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_uudecode+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$uudecode"; then - ac_cv_prog_uudecode="$uudecode" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_uudecode="yes" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -uudecode=$ac_cv_prog_uudecode -if test -n "$uudecode"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5 -$as_echo "$uudecode" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test x$uudecode = xyes; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5 -$as_echo_n "checking if uudecode can decode base 64 file... " >&6; } -if ${ac_cv_prog_uudecode_base64+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat << \EOF > Test.uue -begin-base64 644 Test.class -yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE -bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51 -bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s -YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG -aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB -AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB -AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ= -==== -EOF -if uudecode$EXEEXT Test.uue; then - ac_cv_prog_uudecode_base64=yes -else - echo "configure: 8017: uudecode had trouble decoding base 64 file 'Test.uue'" >&5 - echo "configure: failed file was:" >&5 - cat Test.uue >&5 - ac_cv_prog_uudecode_base64=no -fi -rm -f Test.uue -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5 -$as_echo "$ac_cv_prog_uudecode_base64" >&6; } -fi -if test x$ac_cv_prog_uudecode_base64 != xyes; then - rm -f Test.class - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5 -$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;} - if test x$ac_cv_prog_javac_works = xno; then - as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5 - fi - if test x$ac_cv_prog_javac_works = x; then - -if test "x$JAVAC" = x; then - if test "x$JAVAPREFIX" = x; then - for ac_prog in jikes$EXEEXT javac$EXEEXT gcj$EXEEXT guavac$EXEEXT -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_JAVAC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$JAVAC"; then - ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_JAVAC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -JAVAC=$ac_cv_prog_JAVAC -if test -n "$JAVAC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 -$as_echo "$JAVAC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$JAVAC" && break -done - - else - for ac_prog in jikes$EXEEXT javac$EXEEXT gcj$EXEEXT guavac$EXEEXT -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_JAVAC+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $JAVAC in - [\\/]* | ?:[\\/]*) - ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in "$JAVAPREFIX" -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -JAVAC=$ac_cv_path_JAVAC -if test -n "$JAVAC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 -$as_echo "$JAVAC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$JAVAC" && break -done - - fi -fi -test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5 -if test "$JAVAC" = "gcj$EXEEXT"; then - case "$JAVACFLAGS" in - *-C*) - ;; - *) - JAVACFLAGS="$JAVACFLAGS -C" - ;; - esac -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5 -$as_echo_n "checking if $JAVAC works... " >&6; } -if ${ac_cv_prog_javac_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - -JAVA_TEST=Test.java -CLASS_TEST=Test.class -cat << \EOF > $JAVA_TEST -/* #line 8148 "configure" */ -public class Test { -} -EOF -if { ac_try='"$JAVAC" $JAVACFLAGS $JAVA_TEST' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 - (eval $ac_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } >/dev/null 2>&1; then - ac_cv_prog_javac_works=yes -else - as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 - echo "configure: failed program was:" >&5 - cat $JAVA_TEST >&5 -fi -rm -f $JAVA_TEST $CLASS_TEST - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5 -$as_echo "$ac_cv_prog_javac_works" >&6; } - - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5 -$as_echo_n "checking if $JAVA works... " >&6; } -if ${ac_cv_prog_java_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - -JAVA_TEST=Test.java -CLASS_TEST=Test.class -TEST=Test -cat << \EOF > $JAVA_TEST -/* [#]line 8183 "configure" */ -public class Test { -public static void main (String args[]) { - System.exit (0); -} } -EOF -if test x$ac_cv_prog_uudecode_base64 != xyes; then - if { ac_try='"$JAVAC" $JAVACFLAGS $JAVA_TEST' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 - (eval $ac_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } && test -s $CLASS_TEST; then - : - else - echo "configure: failed program was:" >&5 - cat $JAVA_TEST >&5 - as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 - fi -fi -if { ac_try='"$JAVA" $JAVAFLAGS $TEST' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 - (eval $ac_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } >/dev/null 2>&1; then - ac_cv_prog_java_works=yes -else - echo "configure: failed program was:" >&5 - cat $JAVA_TEST >&5 - as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 -fi -rm -fr $JAVA_TEST $CLASS_TEST Test.uue - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5 -$as_echo "$ac_cv_prog_java_works" >&6; } - - - - -if test "x$JAR" = x; then - if test "x$JAVAPREFIX" = x; then - for ac_prog in jar$EXEEXT -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_JAR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$JAR"; then - ac_cv_prog_JAR="$JAR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_JAR="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -JAR=$ac_cv_prog_JAR -if test -n "$JAR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 -$as_echo "$JAR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$JAR" && break -done - - else - for ac_prog in jar$EXEEXT -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_JAR+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $JAR in - [\\/]* | ?:[\\/]*) - ac_cv_path_JAR="$JAR" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $JAVAPREFIX -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -JAR=$ac_cv_path_JAR -if test -n "$JAR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 -$as_echo "$JAR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$JAR" && break -done - - fi -fi -test "x$JAR" = x && as_fn_error $? "no acceptable jar program found in \$PATH" "$LINENO" 5 - - -if test "x$JAVADOC" = x; then - if test "x$JAVAPREFIX" = x; then - for ac_prog in javadoc$EXEEXT -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_JAVADOC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$JAVADOC"; then - ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_JAVADOC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -JAVADOC=$ac_cv_prog_JAVADOC -if test -n "$JAVADOC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5 -$as_echo "$JAVADOC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$JAVADOC" && break -done - - else - for ac_prog in javadoc$EXEEXT -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_JAVADOC+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $JAVADOC in - [\\/]* | ?:[\\/]*) - ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in "$JAVAPREFIX" -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -JAVADOC=$ac_cv_path_JAVADOC -if test -n "$JAVADOC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5 -$as_echo "$JAVADOC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$JAVADOC" && break -done - - fi -fi -test "x$JAVADOC" = x && as_fn_error $? "no acceptable javadoc generator found in \$PATH" "$LINENO" 5 - - -escape_space() -{ sed -e "s/Program Files/Program-SPACE-Files/g" -e "s/ (x86)/SPACEX86/g" -} - -unescape_space() -{ sed -e "s/-SPACE-/ /g" -e "s/SPACEX86/ (x86)/g" -} - - - -JNI_INCLUDE_DIRS="" - -if test "x$JAVAPREFIX" = x; then - test "x$JAVAC" = x && as_fn_error $? "'$JAVAC' undefined" "$LINENO" 5 - - case "$JAVAC" in - /*) _ACJNI_JAVAC="$JAVAC" - ;; - *) # Extract the first word of "$JAVAC", so it can be a program name with args. -set dummy $JAVAC; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path__ACJNI_JAVAC+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $_ACJNI_JAVAC in - [\\/]* | ?:[\\/]*) - ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="no" - ;; -esac -fi -_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC -if test -n "$_ACJNI_JAVAC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ACJNI_JAVAC" >&5 -$as_echo "$_ACJNI_JAVAC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - ;; - esac - - # Extract the first word of "$JAVAC", so it can be a program name with args. -set dummy $JAVAC; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path__ACJNI_JAVAC+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $_ACJNI_JAVAC in - [\\/]* | ?:[\\/]*) - ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="no" - ;; -esac -fi -_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC -if test -n "$_ACJNI_JAVAC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ACJNI_JAVAC" >&5 -$as_echo "$_ACJNI_JAVAC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test "x$_ACJNI_JAVAC" = xno && as_fn_error $? "$JAVAC could not be found in path" "$LINENO" 5 - - -# find the include directory relative to the javac executable -_cur=""$_ACJNI_JAVAC"" -while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do - { $as_echo "$as_me:${as_lineno-$LINENO}: checking symlink for $_cur" >&5 -$as_echo_n "checking symlink for $_cur... " >&6; } - _slink=`ls -ld "$_cur" | sed 's/.* -> //'` - case "$_slink" in - /*) _cur="$_slink";; - # 'X' avoids triggering unwanted echo options. - *) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";; - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cur" >&5 -$as_echo "$_cur" >&6; } -done -_ACJNI_FOLLOWED="$_cur" - - _JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'` -else - _JTOPDIR="$(dirname "$JAVAPREFIX")" -fi - -case "$host_os" in - darwin*) _J2TOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'` - if test -d "$_J2TOPDIR/Headers"; then - _JINC="$_J2TOPDIR/Headers" - else - _JINC="$_JTOPDIR/include" - fi - ;; - *) _JINC="$_JTOPDIR/include";; -esac -if test -f "$_JINC/jni.h"; then - JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC" -else - _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'` - if test -f "$_JTOPDIR/include/jni.h"; then - JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include" - else - as_fn_error $? "cannot find java include files" "$LINENO" 5 - fi -fi - -# get the likely subdirectories for system specific java includes -case "$host_os" in -bsdi*) _JNI_INC_SUBDIRS="bsdos";; -linux*) _JNI_INC_SUBDIRS="linux genunix";; -mingw32*) _JNI_INC_SUBDIRS="win32";; -osf*) _JNI_INC_SUBDIRS="alpha";; -solaris*) _JNI_INC_SUBDIRS="solaris";; -*) _JNI_INC_SUBDIRS="genunix";; -esac - -# add any subdirectories that are present -for JINCSUBDIR in $_JNI_INC_SUBDIRS -do - if test -d "$_JTOPDIR/include/$JINCSUBDIR"; then - JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$JINCSUBDIR" - fi -done - -case "$host_os" in -mingw32*) JNI_CLIENT_DIRS="$_JTOPDIR/lib $_JTOPDIR/jre/bin $_JTOPDIR/jre/bin/server" - ;; - -*) case "$host_cpu" in - i?86) - _JNI_LIBDIRS="lib/i386" - _JNI_LIBSUBDIRS="client" - ;; - x86_64) - _JNI_LIBDIRS="lib/amd64" - _JNI_LIBSUBDIRS="server" - ;; - powerpc) - case "$host_os" in - linux*) - _JNI_LIBDIRS="lib/ppc bin" - _JNI_LIBSUBDIRS="server classic" - ;; - *) - _JNI_LIBDIRS="" - esac - ;; - *) - # Fallback option should work on all architectures except - # amd64 and powerpc which are special cased above. - _JNI_LIBDIRS="lib/$host_cpu" - _JNI_LIBSUBDIRS="server" -esac - -for d in $_JNI_LIBDIRS; do - for subd in $_JNI_LIBSUBDIRS; do - echo "Trying $_JTOPDIR/jre/$d/$subd" - if test -d $_JTOPDIR/jre/$d/$subd; then - JNI_CLIENT_DIRS="$JNI_CLIENT_DIRS $_JTOPDIR/jre/$d/$subd $_JTOPDIR/jre/$d" - fi - done -done - -;; -esac - - -for d in $(echo $JNI_INCLUDE_DIRS | escape_space); do - JPLCFLAGS="$JPLCFLAGS -I'$d'" -done -JPLCFLAGS="$(echo $JPLCFLAGS | unescape_space)" - -for d in $(echo $JNI_CLIENT_DIRS | escape_space); do - JPLLDFLAGS="$JPLLDFLAGS -L'$d'" -done -JPLLDFLAGS="$(echo $JPLLDFLAGS | unescape_space)" - -for d in $(echo $JNI_CLIENT_DIRS | escape_space); do - if test -f "$d/libjsig.$SO"; then - JAVALIBS="-ljsig $JAVALIBS" - JAVA_PRELOAD=$d/libjsig.$SO - break - fi -done -JAVA_PRELOAD="$(echo $JAVA_PRELOAD | unescape_space)" - -if test "$java_abs_paths" = yes; then - JAVA_CC="$JAVA_BINDIR/$JAVA_CC" -fi - - -# Check whether --with-junit was given. -if test "${with_junit+set}" = set; then : - withval=$with_junit; case "$withval" in - yes) JUNIT=/usr/share/java/junit.jar - ;; - no) JUNIT="" - ;; - *) JUNIT="$withval" - ;; - esac - -else - if test "x$JUNIT" = "x" -a -r /usr/share/java/junit.jar; then - JUNIT=/usr/share/java/junit.jar - fi - - -fi - - -JAVA_HOME=$_JTOPDIR - -fi - if test "$cross_compiling" = "yes" then YAP_EXTRAS= @@ -9978,21 +7866,7 @@ fi done fi -if test "$yap_cv_myddas" != "no" -then - for ac_header in mysql/mysql.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default" -if test "x$ac_cv_header_mysql_mysql_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MYSQL_MYSQL_H 1 -_ACEOF -fi - -done - -fi if test "$yap_cv_readline" != "no" then for ac_header in readline/readline.h @@ -10484,19 +8358,6 @@ CMDEXT=sh - - - - - - - - - - - - - @@ -11368,123 +9229,6 @@ CHR_TARGETS=chr_support."$SO" -if test "$ENABLE_CLIB" = ""; then -CLIB_TARGETS="socket.$SO cgi.$SO memfile.$SO files.$SO mime.$SO $CRYPT_TARGETS" -CLIB_PLTARGETS="socket.pl cgi.pl memfile.pl filesex.pl mime.pl $CRYPT_TARGETS" - -if test "$ac_cv_func_setitimer" = "yes"; then - CLIB_TARGETS="$CLIB_TARGETS time.$SO" - CLIB_PLTARGETS="$CLIB_PLTARGETS time.pl" -else - echo "WARNING: no setitimer(); dropping time.pl from targets" -fi - -if test "$IN_UNIX" = ""; then -CLIB_TARGETS="uid.$SO unix.$SO $CLIB_TARGETS" -CLIB_PLTARGETS="uid.pl unix.pl $CLIB_PLTARGETS" -CLIB_NETLIBS= -else -ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" -if test "x$ac_cv_func_socket" = xyes; then : - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 -$as_echo_n "checking for socket in -lsocket... " >&6; } -if ${ac_cv_lib_socket_socket+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsocket $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char socket (); -int -main () -{ -return socket (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_socket_socket=yes -else - ac_cv_lib_socket_socket=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 -$as_echo "$ac_cv_lib_socket_socket" >&6; } -if test "x$ac_cv_lib_socket_socket" = xyes; then : - CLIB_NETLIBS="$CLIB_NETLIBS -lsocket" - -$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h - -fi - -fi - -ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent" -if test "x$ac_cv_func_gethostent" = xyes; then : - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostent in -lnsl" >&5 -$as_echo_n "checking for gethostent in -lnsl... " >&6; } -if ${ac_cv_lib_nsl_gethostent+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lnsl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char gethostent (); -int -main () -{ -return gethostent (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_nsl_gethostent=yes -else - ac_cv_lib_nsl_gethostent=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostent" >&5 -$as_echo "$ac_cv_lib_nsl_gethostent" >&6; } -if test "x$ac_cv_lib_nsl_gethostent" = xyes; then : - CLIB_NETLIBS="$CLIB_NETLIBS -lnsl" - -$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h - -fi - -fi - -fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } @@ -11529,70 +9273,7 @@ else fi -oldlibs="$LIBS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 -$as_echo_n "checking for crypt in -lcrypt... " >&6; } -if ${ac_cv_lib_crypt_crypt+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcrypt $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char crypt (); -int -main () -{ -return crypt (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_crypt_crypt=yes -else - ac_cv_lib_crypt_crypt=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 -$as_echo "$ac_cv_lib_crypt_crypt" >&6; } -if test "x$ac_cv_lib_crypt_crypt" = xyes; then : - CRYPT_TARGET=crypt.\$SO -else - CRYPT_TARGET="" -fi - -CLIB_CRYPTLIBS="$LIBS" -for ac_func in crypt -do : - ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" -if test "x$ac_cv_func_crypt" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_CRYPT 1 -_ACEOF - -fi -done - -LIBS="$oldlibs" - - - - - - - -fi ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " #include @@ -11707,33 +9388,6 @@ $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -if test "$with_time" = yes; then - if test "$ac_cv_func_setitimer" = "yes"; then - TARGETS="$TARGETS time.$SO" - else - echo "WARNING: no setitimer(); dropping time.pl from targets" - fi -fi - -if test "$ac_cv_func_getrlimit" = "yes"; then - TARGETS="$TARGETS rlimit.$SO" -else - echo "WARNING: no getrlimit(); dropping rlimit.pl from targets" -fi - -# Check whether --enable-mimecharset was given. -if test "${enable_mimecharset+set}" = set; then : - enableval=$enable_mimecharset; RFC2045CHARSET="$enableval" -else - RFC2045CHARSET="us-ascii" -fi - - - - -MAILDROP_CFLAGS="$SHLIB_CFLAGS -I. -I\$(srcdir) -I\$(srcdir)/.. -I../../../.." - - if test "$yap_cv_minisat" = no then ENABLE_MINISAT="@# " @@ -11744,16 +9398,80 @@ else ENABLE_MINISAT="" fi -if test "$ENABLE_ZLIB" = "" -then +if test "x$PLARCH" = "x"; then + case "$host" in + *linux*) + PLARCH=`echo $host | sed 's/-.*/-linux/'` + ;; + i?86-*mingw32*) + # Make PLARCH match the definition in src/config/win32.h + PLARCH=i386-win32 + ;; + x86_64-*mingw32*) + # Make PLARCH match the definition in src/config/win64.h + PLARCH=x64-win64 + ;; + *-gnu) + PLARCH=`echo $host | sed 's/\(^-*\)-^-*-\(^-*\)-gnu/\1-\2/'` + ;; + *) + PLARCH=`echo $host | sed 's/\(^-*\)-^-*-\(^-*\)/\1-\2/'` + ;; + esac +fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 -$as_echo_n "checking for zlibVersion in -lz... " >&6; } -if ${ac_cv_lib_z_zlibVersion+:} false; then : + + +# Check whether --enable-myddas was given. +if test "${enable_myddas+set}" = set; then : + enableval=$enable_myddas; if test "$enableval" = yes; then + yap_cv_myddas=/usr + elif test "$enableval" = no; then + yap_cv_myddas=no + else + yap_cv_myddas=$enable_myddas + LDFLAGS="$LDFLAGS -L${yap_cv_myddas}/lib " + CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas}/include " + ODBC_LDFLAGS="-L${yap_cv_myddas}/lib " + ODBC_CFLAGS="-I${yap_cv_myddas}/include " + fi +else + yap_cv_myddas=/usr +fi + + +# Check whether --enable-myddas-stats was given. +if test "${enable_myddas_stats+set}" = set; then : + enableval=$enable_myddas_stats; if test "$yap_cv_myddas" = no; then + myddasstats=no + else + myddasstats="$enableval" + fi +else + myddasstats=no +fi + + +# Check whether --enable-myddas-top-level was given. +if test "${enable_myddas_top_level+set}" = set; then : + enableval=$enable_myddas_top_level; if test "$yap_cv_myddas" = no; then + myddastoplevel=no + else + myddastoplevel="$enableval" + fi +else + myddastoplevel=no +fi + + +if test "$yap_cv_myddas" != "no" +then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mysql_init" >&5 +$as_echo_n "checking for library containing mysql_init... " >&6; } +if ${ac_cv_search_mysql_init+:} false; then : $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lz $LIBS" + ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -11763,75 +9481,2092 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #ifdef __cplusplus extern "C" #endif -char zlibVersion (); +char mysql_init (); int main () { -return zlibVersion (); +return mysql_init (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_z_zlibVersion=yes -else - ac_cv_lib_z_zlibVersion=no +for ac_lib in '' mysqlclient; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_mysql_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + conftest$ac_exeext + if ${ac_cv_search_mysql_init+:} false; then : + break fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 -$as_echo "$ac_cv_lib_z_zlibVersion" >&6; } -if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : - ZLIBS="-lz" - ZLIB=yes +done +if ${ac_cv_search_mysql_init+:} false; then : + else - ZLIB=no + ac_cv_search_mysql_init=no fi - - -if test "$ZLIB" = yes; then - ZLIB_TARGETS="zlib4pl.$SO" - ZLIB_PLTARGETS='zlib.pl' - ZLIB_INSTALL=install +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mysql_init" >&5 +$as_echo "$ac_cv_search_mysql_init" >&6; } +ac_res=$ac_cv_search_mysql_init +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + yap_cv_mysql="yes" else - ZLIB_TARGETS=nolib - ZLIB_INSTALL=nolib - cat << EOF -################################################################## -# ERROR: Could not find library zlib (-lz). Dropped library(zlib) -# Library zlib is available from http://www.zlib.net/ -# Most Unix/Linux distributions are shipped with binaries. Make -# sure to have the development library installed. -################################################################## -EOF + yap_cv_mysql="no" fi + if test "$yap_cv_mysql" = yes + then + YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL" + fi + case "$target_os" in + *darwin*) + LIBS="$LIBS -framework CoreFoundation" + ;; + **) + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SQLAllocHandle" >&5 +$as_echo_n "checking for library containing SQLAllocHandle... " >&6; } +if ${ac_cv_search_SQLAllocHandle+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLAllocHandle (); +int +main () +{ +return SQLAllocHandle (); + ; + return 0; +} +_ACEOF +for ac_lib in '' odbc; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_SQLAllocHandle=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_SQLAllocHandle+:} false; then : + break +fi +done +if ${ac_cv_search_SQLAllocHandle+:} false; then : +else + ac_cv_search_SQLAllocHandle=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SQLAllocHandle" >&5 +$as_echo "$ac_cv_search_SQLAllocHandle" >&6; } +ac_res=$ac_cv_search_SQLAllocHandle +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + yap_cv_odbc="yes" +else + yap_cv_odbc="no" +fi + if test "$yap_cv_odbc" = yes + then + ODBC_LIBS="$ODBC_LIBS -lodbc" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SQLAllocHandle" >&5 +$as_echo_n "checking for library containing SQLAllocHandle... " >&6; } +if ${ac_cv_search_SQLAllocHandle+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLAllocHandle (); +int +main () +{ +return SQLAllocHandle (); + ; + return 0; +} +_ACEOF +for ac_lib in '' iodbc; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_SQLAllocHandle=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_SQLAllocHandle+:} false; then : + break +fi +done +if ${ac_cv_search_SQLAllocHandle+:} false; then : + +else + ac_cv_search_SQLAllocHandle=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SQLAllocHandle" >&5 +$as_echo "$ac_cv_search_SQLAllocHandle" >&6; } +ac_res=$ac_cv_search_SQLAllocHandle +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + yap_cv_odbc="yes" +else + yap_cv_odbc="no" +fi + + if test "$yap_cv_odbc" = yes + then + ODBC_LIBS="$ODBC_LIBS -liodbc" + fi + fi + if test "$yap_cv_odbc" = yes + then + YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC" + fi + + if test "$myddasstats" = "yes" + then + YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_STATS" + fi + + if test "$myddastoplevel" = "yes" + then + YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_TOP_LEVEL" + fi fi - -if test "$yap_cv_odbc" = yes; then - ODBC_TARGETS="odbc4pl.$SO" - ODBC_PLTARGETS=odbc.pl - for ac_header in sql.h +if test "$yap_cv_myddas" != "no" +then + for ac_header in mysql/mysql.h do : - ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" -if test "x$ac_cv_header_sql_h" = xyes; then : + ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default" +if test "x$ac_cv_header_mysql_mysql_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_SQL_H 1 +#define HAVE_MYSQL_MYSQL_H 1 _ACEOF fi done - for ac_func in localtime mktime gmtime timegm +fi + + + +if test "$yap_cv_R" != "no" -a -e "$srcdir"/packages/real/Makefile.in; then + ENABLE_REAL="" + + + + + + + + + + +for ac_prog in R +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_REXE+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$REXE"; then + ac_cv_prog_REXE="$REXE" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_REXE="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +REXE=$ac_cv_prog_REXE +if test -n "$REXE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REXE" >&5 +$as_echo "$REXE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$REXE" && break +done +test -n "$REXE" || REXE=""none"" + +if test $REXE = none; then + REAL_TARGET="dummy" +else + REAL_TARGET="ritf" + REAL_INCLUDES="$($REXE CMD config --cppflags | grep -v ^WARNING)" + REAL_LIBS="$($REXE CMD config --ldflags | grep -v ^WARNING)" + + ocppflags="$CPPFLAGS" + ocflags="$CFLAGS" + CPPFLAGS+=" $REAL_INCLUDES" + CFLAGS+=" $REAL_INCLUDES" + + for ac_header in Rinterface.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "Rinterface.h" "ac_cv_header_Rinterface_h" "$ac_includes_default" +if test "x$ac_cv_header_Rinterface_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_RINTERFACE_H 1 +_ACEOF + +fi + +done + + + CFLAGS="$ocflags" + CPPFLAGS="$ocppflags" +fi + + + + + + + + + + + +else + REAL_TARGET="dummy" + ENABLE_REAL="@# " +fi + +if test "$yap_cv_java" = no; then + ENABLE_JPL="@#" +elif test -e "$srcdir"/packages/jpl/Makefile.in; then + ENABLE_JPL="" + if test "$yap_cv_java" != "yes"; then + JAVA_HOME=$yap_cv_java + JAVAPREFIX="$JAVA_HOME"/bin + elif test -n "$JAVA_HOME"; then + JAVAPREFIX="$JAVA_HOME"/bin + fi + + + + + + + + + + + + + + + + + + +CMDEXT=sh + +if test "x$JAVALIBS" = "x"; then + case "$PLARCH" in + *darwin*) + JAVALIBS="-Wl,-framework,JavaVM" + ;; + *powerpc-linux*) + JAVALIBS="-ljava -ljvm" + ;; + *win32*|*win64*) + JAVALIBS="-ljvm" + CMDEXT=bat + ;; + *) + JAVALIBS="-ljava -lverify -ljvm" + ;; + esac +fi + +case "$PLARCH" in + *win32*) + JPLLDFLAGS="$JPLLDFLAGS -Wl,--kill-at" + LIBJPL=jpl + ;; + *win64*) + LIBJPL=jpl + ;; + *) + LIBJPL=libjpl + ;; +esac + + + +if test "x$JAVACFLAGS" = x; then + JAVACFLAGS="-source 1.4 -target 1.4" +fi + + + + + + + + + + + + + + + + + + +# _ACJNI_FOLLOW_SYMLINKS +# Follows symbolic links on , +# finally setting variable _ACJNI_FOLLOWED +# -------------------- +# _ACJNI + + + + +java_abs_paths=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Java configuration..." >&5 +$as_echo "$as_me: checking Java configuration..." >&6;} +if test -r /etc/java/java2.conf; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using /etc/java/java2.conf" >&5 +$as_echo "Using /etc/java/java2.conf" >&6; } + eval `grep '\(JAVA\|JRE\|JDK\|SDK\).*=' /etc/java/java2.conf | sed 's/ *= */=/'` + if test ! -z "$JAVA_BINDIR"; then + PATH="$PATH:$JAVA_BINDIR" + java_abs_paths=yes + fi +fi + + + +if test "x$JAVAC" = x; then + if test "x$JAVAPREFIX" = x; then + for ac_prog in jikes$EXEEXT javac$EXEEXT gcj$EXEEXT guavac$EXEEXT +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_JAVAC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$JAVAC"; then + ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_JAVAC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +JAVAC=$ac_cv_prog_JAVAC +if test -n "$JAVAC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 +$as_echo "$JAVAC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$JAVAC" && break +done + + else + for ac_prog in jikes$EXEEXT javac$EXEEXT gcj$EXEEXT guavac$EXEEXT +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_JAVAC+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $JAVAC in + [\\/]* | ?:[\\/]*) + ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in "$JAVAPREFIX" +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +JAVAC=$ac_cv_path_JAVAC +if test -n "$JAVAC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 +$as_echo "$JAVAC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$JAVAC" && break +done + + fi +fi +test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5 +if test "$JAVAC" = "gcj$EXEEXT"; then + case "$JAVACFLAGS" in + *-C*) + ;; + *) + JAVACFLAGS="$JAVACFLAGS -C" + ;; + esac +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5 +$as_echo_n "checking if $JAVAC works... " >&6; } +if ${ac_cv_prog_javac_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + +JAVA_TEST=Test.java +CLASS_TEST=Test.class +cat << \EOF > $JAVA_TEST +/* #line 10018 "configure" */ +public class Test { +} +EOF +if { ac_try='"$JAVAC" $JAVACFLAGS $JAVA_TEST' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } >/dev/null 2>&1; then + ac_cv_prog_javac_works=yes +else + as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 + echo "configure: failed program was:" >&5 + cat $JAVA_TEST >&5 +fi +rm -f $JAVA_TEST $CLASS_TEST + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5 +$as_echo "$ac_cv_prog_javac_works" >&6; } + + + +if test "x$JAVA" = x; then + if test "x$JAVAPREFIX" = x; then + for ac_prog in kaffe$EXEEXT java$EXEEXT +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_JAVA+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$JAVA"; then + ac_cv_prog_JAVA="$JAVA" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_JAVA="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +JAVA=$ac_cv_prog_JAVA +if test -n "$JAVA"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 +$as_echo "$JAVA" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$JAVA" && break +done + + else + for ac_prog in kaffe$EXEEXT java$EXEEXT +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_JAVA+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $JAVA in + [\\/]* | ?:[\\/]*) + ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $JAVAPREFIX +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +JAVA=$ac_cv_path_JAVA +if test -n "$JAVA"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 +$as_echo "$JAVA" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$JAVA" && break +done + + fi +fi +test "x$JAVA" = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5 + +# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args. +set dummy uudecode$EXEEXT; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_uudecode+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$uudecode"; then + ac_cv_prog_uudecode="$uudecode" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_uudecode="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +uudecode=$ac_cv_prog_uudecode +if test -n "$uudecode"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5 +$as_echo "$uudecode" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test x$uudecode = xyes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5 +$as_echo_n "checking if uudecode can decode base 64 file... " >&6; } +if ${ac_cv_prog_uudecode_base64+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat << \EOF > Test.uue +begin-base64 644 Test.class +yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE +bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51 +bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s +YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG +aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB +AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB +AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ= +==== +EOF +if uudecode$EXEEXT Test.uue; then + ac_cv_prog_uudecode_base64=yes +else + echo "configure: 10194: uudecode had trouble decoding base 64 file 'Test.uue'" >&5 + echo "configure: failed file was:" >&5 + cat Test.uue >&5 + ac_cv_prog_uudecode_base64=no +fi +rm -f Test.uue +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5 +$as_echo "$ac_cv_prog_uudecode_base64" >&6; } +fi +if test x$ac_cv_prog_uudecode_base64 != xyes; then + rm -f Test.class + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5 +$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;} + if test x$ac_cv_prog_javac_works = xno; then + as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5 + fi + if test x$ac_cv_prog_javac_works = x; then + +if test "x$JAVAC" = x; then + if test "x$JAVAPREFIX" = x; then + for ac_prog in jikes$EXEEXT javac$EXEEXT gcj$EXEEXT guavac$EXEEXT +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_JAVAC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$JAVAC"; then + ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_JAVAC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +JAVAC=$ac_cv_prog_JAVAC +if test -n "$JAVAC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 +$as_echo "$JAVAC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$JAVAC" && break +done + + else + for ac_prog in jikes$EXEEXT javac$EXEEXT gcj$EXEEXT guavac$EXEEXT +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_JAVAC+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $JAVAC in + [\\/]* | ?:[\\/]*) + ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in "$JAVAPREFIX" +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +JAVAC=$ac_cv_path_JAVAC +if test -n "$JAVAC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 +$as_echo "$JAVAC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$JAVAC" && break +done + + fi +fi +test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5 +if test "$JAVAC" = "gcj$EXEEXT"; then + case "$JAVACFLAGS" in + *-C*) + ;; + *) + JAVACFLAGS="$JAVACFLAGS -C" + ;; + esac +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5 +$as_echo_n "checking if $JAVAC works... " >&6; } +if ${ac_cv_prog_javac_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + +JAVA_TEST=Test.java +CLASS_TEST=Test.class +cat << \EOF > $JAVA_TEST +/* #line 10325 "configure" */ +public class Test { +} +EOF +if { ac_try='"$JAVAC" $JAVACFLAGS $JAVA_TEST' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } >/dev/null 2>&1; then + ac_cv_prog_javac_works=yes +else + as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 + echo "configure: failed program was:" >&5 + cat $JAVA_TEST >&5 +fi +rm -f $JAVA_TEST $CLASS_TEST + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5 +$as_echo "$ac_cv_prog_javac_works" >&6; } + + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5 +$as_echo_n "checking if $JAVA works... " >&6; } +if ${ac_cv_prog_java_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + +JAVA_TEST=Test.java +CLASS_TEST=Test.class +TEST=Test +cat << \EOF > $JAVA_TEST +/* [#]line 10360 "configure" */ +public class Test { +public static void main (String args[]) { + System.exit (0); +} } +EOF +if test x$ac_cv_prog_uudecode_base64 != xyes; then + if { ac_try='"$JAVAC" $JAVACFLAGS $JAVA_TEST' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } && test -s $CLASS_TEST; then + : + else + echo "configure: failed program was:" >&5 + cat $JAVA_TEST >&5 + as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 + fi +fi +if { ac_try='"$JAVA" $JAVAFLAGS $TEST' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } >/dev/null 2>&1; then + ac_cv_prog_java_works=yes +else + echo "configure: failed program was:" >&5 + cat $JAVA_TEST >&5 + as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 +fi +rm -fr $JAVA_TEST $CLASS_TEST Test.uue + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5 +$as_echo "$ac_cv_prog_java_works" >&6; } + + + + +if test "x$JAR" = x; then + if test "x$JAVAPREFIX" = x; then + for ac_prog in jar$EXEEXT +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_JAR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$JAR"; then + ac_cv_prog_JAR="$JAR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_JAR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +JAR=$ac_cv_prog_JAR +if test -n "$JAR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 +$as_echo "$JAR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$JAR" && break +done + + else + for ac_prog in jar$EXEEXT +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_JAR+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $JAR in + [\\/]* | ?:[\\/]*) + ac_cv_path_JAR="$JAR" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $JAVAPREFIX +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +JAR=$ac_cv_path_JAR +if test -n "$JAR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 +$as_echo "$JAR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$JAR" && break +done + + fi +fi +test "x$JAR" = x && as_fn_error $? "no acceptable jar program found in \$PATH" "$LINENO" 5 + + +if test "x$JAVADOC" = x; then + if test "x$JAVAPREFIX" = x; then + for ac_prog in javadoc$EXEEXT +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_JAVADOC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$JAVADOC"; then + ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_JAVADOC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +JAVADOC=$ac_cv_prog_JAVADOC +if test -n "$JAVADOC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5 +$as_echo "$JAVADOC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$JAVADOC" && break +done + + else + for ac_prog in javadoc$EXEEXT +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_JAVADOC+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $JAVADOC in + [\\/]* | ?:[\\/]*) + ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in "$JAVAPREFIX" +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +JAVADOC=$ac_cv_path_JAVADOC +if test -n "$JAVADOC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5 +$as_echo "$JAVADOC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$JAVADOC" && break +done + + fi +fi +test "x$JAVADOC" = x && as_fn_error $? "no acceptable javadoc generator found in \$PATH" "$LINENO" 5 + + +escape_space() +{ sed -e "s/Program Files/Program-SPACE-Files/g" -e "s/ (x86)/SPACEX86/g" +} + +unescape_space() +{ sed -e "s/-SPACE-/ /g" -e "s/SPACEX86/ (x86)/g" +} + + + +JNI_INCLUDE_DIRS="" + +if test "x$JAVAPREFIX" = x; then + test "x$JAVAC" = x && as_fn_error $? "'$JAVAC' undefined" "$LINENO" 5 + + case "$JAVAC" in + /*) _ACJNI_JAVAC="$JAVAC" + ;; + *) # Extract the first word of "$JAVAC", so it can be a program name with args. +set dummy $JAVAC; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path__ACJNI_JAVAC+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $_ACJNI_JAVAC in + [\\/]* | ?:[\\/]*) + ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="no" + ;; +esac +fi +_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC +if test -n "$_ACJNI_JAVAC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ACJNI_JAVAC" >&5 +$as_echo "$_ACJNI_JAVAC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + ;; + esac + + # Extract the first word of "$JAVAC", so it can be a program name with args. +set dummy $JAVAC; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path__ACJNI_JAVAC+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $_ACJNI_JAVAC in + [\\/]* | ?:[\\/]*) + ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="no" + ;; +esac +fi +_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC +if test -n "$_ACJNI_JAVAC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ACJNI_JAVAC" >&5 +$as_echo "$_ACJNI_JAVAC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test "x$_ACJNI_JAVAC" = xno && as_fn_error $? "$JAVAC could not be found in path" "$LINENO" 5 + + +# find the include directory relative to the javac executable +_cur=""$_ACJNI_JAVAC"" +while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking symlink for $_cur" >&5 +$as_echo_n "checking symlink for $_cur... " >&6; } + _slink=`ls -ld "$_cur" | sed 's/.* -> //'` + case "$_slink" in + /*) _cur="$_slink";; + # 'X' avoids triggering unwanted echo options. + *) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cur" >&5 +$as_echo "$_cur" >&6; } +done +_ACJNI_FOLLOWED="$_cur" + + _JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'` +else + _JTOPDIR="$(dirname "$JAVAPREFIX")" +fi + +case "$host_os" in + darwin*) + _J2TOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'` + if test -d "$_J2TOPDIR/Headers"; then + _JINC="$_J2TOPDIR/Headers" + elif test -d "$_J2TOPDIR/Contents/Home/include"; then + _JTOPDIR="$_J2TOPDIR/Contents/Home" + _JINC="$_J2TOPDIR/Contents/Home/include" + else + _JINC="$_JTOPDIR/include" + fi + ;; + *) _JINC="$_JTOPDIR/include";; +esac +if test -f "$_JINC/jni.h"; then + JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC" +else + _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'` + if test -f "$_JTOPDIR/include/jni.h"; then + JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include" + else + as_fn_error $? "cannot find java include files" "$LINENO" 5 + fi +fi + +# get the likely subdirectories for system specific java includes +case "$host_os" in +bsdi*) _JNI_INC_SUBDIRS="bsdos";; +linux*) _JNI_INC_SUBDIRS="linux genunix";; +mingw32*) _JNI_INC_SUBDIRS="win32";; +osf*) _JNI_INC_SUBDIRS="alpha";; +solaris*) _JNI_INC_SUBDIRS="solaris";; +darwin*) _JNI_INC_SUBDIRS="darwin genunix";; +*) _JNI_INC_SUBDIRS="genunix";; +esac + +# add any subdirectories that are present +for JINCSUBDIR in $_JNI_INC_SUBDIRS +do + if test -d "$_JINC/$JINCSUBDIR"; then + JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC/$JINCSUBDIR" + fi +done + +case "$host_os" in +mingw32*) JNI_CLIENT_DIRS="$_JTOPDIR/lib $_JTOPDIR/jre/bin $_JTOPDIR/jre/bin/server" + ;; + +*) case "$host_cpu" in + i?86) + _JNI_LIBDIRS="lib/i386 lib/amd64 lib" + _JNI_LIBSUBDIRS="server client" + ;; + x86_64) + _JNI_LIBDIRS="lib/amd64" + _JNI_LIBSUBDIRS="server" + ;; + powerpc) + case "$host_os" in + linux*) + _JNI_LIBDIRS="lib/ppc bin" + _JNI_LIBSUBDIRS="server classic" + ;; + *) + _JNI_LIBDIRS="" + esac + ;; + *) + # Fallback option should work on all architectures except + # amd64 and powerpc which are special cased above. + _JNI_LIBDIRS="lib/$host_cpu" + _JNI_LIBSUBDIRS="server" +esac + +for d in $_JNI_LIBDIRS; do + for subd in $_JNI_LIBSUBDIRS; do + echo "Trying $_JTOPDIR/jre/$d/$subd" + if test -d $_JTOPDIR/jre/$d/$subd; then + JNI_CLIENT_DIRS="$JNI_CLIENT_DIRS $_JTOPDIR/jre/$d/$subd $_JTOPDIR/jre/$d" + fi + done +done + +;; +esac + + +for d in $(echo $JNI_INCLUDE_DIRS | escape_space); do + JPLCFLAGS="$JPLCFLAGS -I'$d'" +done +JPLCFLAGS="$(echo $JPLCFLAGS | unescape_space)" + +for d in $(echo $JNI_CLIENT_DIRS | escape_space); do + JPLLDFLAGS="$JPLLDFLAGS -L'$d'" +done +JPLLDFLAGS="$(echo $JPLLDFLAGS | unescape_space)" + +for d in $(echo $JNI_CLIENT_DIRS | escape_space); do + if test -f "$d/libjsig.$SO"; then + JAVALIBS="-ljsig $JAVALIBS" + JAVA_PRELOAD=$d/libjsig.$SO + break + fi +done +JAVA_PRELOAD="$(echo $JAVA_PRELOAD | unescape_space)" + +if test "$java_abs_paths" = yes; then + JAVA_CC="$JAVA_BINDIR/$JAVA_CC" +fi + + +# Check whether --with-junit was given. +if test "${with_junit+set}" = set; then : + withval=$with_junit; case "$withval" in + yes) JUNIT=/usr/share/java/junit.jar + ;; + no) JUNIT="" + ;; + *) JUNIT="$withval" + ;; + esac + +else + if test "x$JUNIT" = "x" -a -r /usr/share/java/junit.jar; then + JUNIT=/usr/share/java/junit.jar + fi + + +fi + + +for ac_header in wchar.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" +if test "x$ac_cv_header_wchar_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WCHAR_H 1 +_ACEOF + +fi + +done + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 +$as_echo_n "checking size of wchar_t... " >&6; } +if ${ac_cv_sizeof_wchar_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_wchar_t" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (wchar_t) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_wchar_t=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 +$as_echo "$ac_cv_sizeof_wchar_t" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 +$as_echo_n "checking size of void*... " >&6; } +if ${ac_cv_sizeof_voidp+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_voidp" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (void*) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_voidp=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 +$as_echo "$ac_cv_sizeof_voidp" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_VOIDP $ac_cv_sizeof_voidp +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +$as_echo_n "checking size of long long... " >&6; } +if ${ac_cv_sizeof_long_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +$as_echo "$ac_cv_sizeof_long_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF + + + + + + + + + + +fi + +if test "$ENABLE_CLIB" = "" +then + + + + + + + + + + + + + +CLIB_TARGETS="socket.$SO cgi.$SO memfile.$SO files.$SO mime.$SO crypt.$SO time.$SO" + +case "$PLARCH" in + *-win32|*-win64) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 +$as_echo_n "checking for main in -lws2_32... " >&6; } +if ${ac_cv_lib_ws2_32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lws2_32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ws2_32_main=yes +else + ac_cv_lib_ws2_32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 +$as_echo "$ac_cv_lib_ws2_32_main" >&6; } +if test "x$ac_cv_lib_ws2_32_main" = xyes; then : + CLIB_NETLIBS="$CLIB_NETLIBS -lws2_32" +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5 +$as_echo_n "checking for main in -lgdi32... " >&6; } +if ${ac_cv_lib_gdi32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgdi32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gdi32_main=yes +else + ac_cv_lib_gdi32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5 +$as_echo "$ac_cv_lib_gdi32_main" >&6; } +if test "x$ac_cv_lib_gdi32_main" = xyes; then : + CLIB_NETLIBS="$CLIB_NETLIBS -lgdi32" +fi + + ;; + *) + CLIB_TARGETS="$CLIB_TARGETS uid.$SO unix.$SO" + ;; +esac + +ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" +if test "x$ac_cv_func_socket" = xyes; then : + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 +$as_echo_n "checking for socket in -lsocket... " >&6; } +if ${ac_cv_lib_socket_socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_socket=yes +else + ac_cv_lib_socket_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 +$as_echo "$ac_cv_lib_socket_socket" >&6; } +if test "x$ac_cv_lib_socket_socket" = xyes; then : + CLIB_NETLIBS="$CLIB_NETLIBS -lsocket"; LIBS="$LIBS -lsocket" + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + +fi + +fi + +ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent" +if test "x$ac_cv_func_gethostent" = xyes; then : + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostent in -lnsl" >&5 +$as_echo_n "checking for gethostent in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostent (); +int +main () +{ +return gethostent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostent=yes +else + ac_cv_lib_nsl_gethostent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostent" >&5 +$as_echo "$ac_cv_lib_nsl_gethostent" >&6; } +if test "x$ac_cv_lib_nsl_gethostent" = xyes; then : + CLIB_NETLIBS="$CLIB_NETLIBS -lnsl" + +$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h + +fi + +fi + + + +if test x"$CLIB_LIBUUID" = "x"; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create in -lossp-uuid" >&5 +$as_echo_n "checking for uuid_create in -lossp-uuid... " >&6; } +if ${ac_cv_lib_ossp_uuid_uuid_create+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lossp-uuid $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char uuid_create (); +int +main () +{ +return uuid_create (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ossp_uuid_uuid_create=yes +else + ac_cv_lib_ossp_uuid_uuid_create=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_create" >&5 +$as_echo "$ac_cv_lib_ossp_uuid_uuid_create" >&6; } +if test "x$ac_cv_lib_ossp_uuid_uuid_create" = xyes; then : + CLIB_LIBUUID=-lossp-uuid + +fi + +fi +if test x"$CLIB_LIBUUID" = "x"; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create in -luuid" >&5 +$as_echo_n "checking for uuid_create in -luuid... " >&6; } +if ${ac_cv_lib_uuid_uuid_create+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-luuid $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char uuid_create (); +int +main () +{ +return uuid_create (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_uuid_uuid_create=yes +else + ac_cv_lib_uuid_uuid_create=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_create" >&5 +$as_echo "$ac_cv_lib_uuid_uuid_create" >&6; } +if test "x$ac_cv_lib_uuid_uuid_create" = xyes; then : + CLIB_LIBUUID=-luuid + +fi + +fi +if test x"$CLIB_LIBUUID" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libossp-uuid or libuuid -- dropping uuid.pl" >&5 +$as_echo "$as_me: WARNING: Cannot find libossp-uuid or libuuid -- dropping uuid.pl" >&2;} +else + if test x"$UUID_H" = "x"; then + ac_fn_c_check_header_compile "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "/*first*/ +" +if test "x$ac_cv_header_ossp_uuid_h" = xyes; then : + UUID_H=ossp/uuid.h +fi + + + fi + if test x"$UUID_H" = "x"; then + ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "/*first*/ +" +if test "x$ac_cv_header_uuid_h" = xyes; then : + UUID_H=uuid.h +fi + + + fi + if test x"$UUID_H" = "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find uuid.h -- dropping uuid.pl" >&5 +$as_echo "$as_me: WARNING: Cannot find uuid.h -- dropping uuid.pl" >&2;} + else + +cat >>confdefs.h <<_ACEOF +#define UUID_H <$UUID_H> +_ACEOF + + CLIB_TARGETS="$CLIB_TARGETS uuid.$SO" + fi +fi + + +oldlibs="$LIBS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 +$as_echo_n "checking for crypt in -lcrypt... " >&6; } +if ${ac_cv_lib_crypt_crypt+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypt_crypt=yes +else + ac_cv_lib_crypt_crypt=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 +$as_echo "$ac_cv_lib_crypt_crypt" >&6; } +if test "x$ac_cv_lib_crypt_crypt" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBCRYPT 1 +_ACEOF + + LIBS="-lcrypt $LIBS" + +fi + +CLIB_CRYPTLIBS="$LIBS" +ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" +if test "x$ac_cv_func_crypt" = xyes; then : + +else + CLIB_CRYPTOBJ=bsd-crypt.o +fi + + +$as_echo "#define HAVE_CRYPT 1" >>confdefs.h + +LIBS="$oldlibs" + +ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" +if test "x$ac_cv_func_syslog" = xyes; then : + CLIB_TARGETS="$CLIB_TARGETS syslog.$SO" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find syslog\"()\" -- dropping syslog.pl" >&5 +$as_echo "$as_me: WARNING: Cannot find syslog\"()\" -- dropping syslog.pl" >&2;} +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"Configuring MIME libraries\"" >&5 +$as_echo_n "checking \"Configuring MIME libraries\"... " >&6; } +case "$CC" in + .*) ACC="../../$CC" + ;; + *) ACC="$CC" +esac +case "$LD" in + .*) ALD="../../$LD" + ;; + *) ALD="$LD" +esac +case "$CPP" in + .*) ACPP="../../$CPP" + ;; + *) ACPP="$CPP" +esac +( CC=$ACC; LD=$ALD; CPP=$ACPP; CFLAGS=$CFLAGS; LDFLAGS=$LDFLAGS; + export CC LD CFLAGS LDFLAGS + + + (mkdir -p packages/clib/maildrop/rfc822 ; cd packages/clib/maildrop/rfc822 && $SHELL ../../../../"$srcdir"/packages/clib/maildrop/rfc822/configure --host=$host) + (mkdir -p packages/clib/maildrop/rfc2045 ; cd packages/clib/maildrop/rfc2045 && $SHELL ../../../../"$srcdir"/packages/clib/maildrop/rfc822/configure --host=$host) + + + +) +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Done\"" >&5 +$as_echo "\"Done\"" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking h_errno" >&5 +$as_echo_n "checking h_errno... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include + +int +main () +{ + int x = h_errno; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +for ac_header in malloc.h alloca.h unistd.h sys/time.h fcntl.h utime.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +for ac_header in execinfo.h sys/resource.h crypt.h syslog.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +for ac_header in sys/types.h sys/wait.h sys/stat.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +for ac_header in netinet/tcp.h crt_externs.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +$as_echo_n "checking size of long long... " >&6; } +if ${ac_cv_sizeof_long_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +$as_echo "$ac_cv_sizeof_long_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF + + + +for ac_func in setsid strerror utime getrlimit strcasestr vfork _NSGetEnviron do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -11843,38 +11578,116 @@ _ACEOF fi done - ac_fn_c_check_type "$LINENO" "SQLLEN" "ac_cv_type_SQLLEN" "#include - -" -if test "x$ac_cv_type_SQLLEN" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_SQLLEN 1 +for ac_func in pipe2 +do : + ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" +if test "x$ac_cv_func_pipe2" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_PIPE2 1 _ACEOF - fi -ac_fn_c_check_type "$LINENO" "SQLULEN" "ac_cv_type_SQLULEN" "#include +done + +ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " +#include +#include " -if test "x$ac_cv_type_SQLULEN" = xyes; then : +if test "x$ac_cv_type_socklen_t" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_SQLULEN 1 +#define HAVE_SOCKLEN_T 1 _ACEOF fi +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" " +#include +#include + +" +if test "x$ac_cv_type_ssize_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_SSIZE_T 1 +_ACEOF + + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking _XOPEN_SOURCE" >&5 +$as_echo_n "checking _XOPEN_SOURCE... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _XOPEN_SOURCE +#include + +int +main () +{ + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define DEFINE_XOPEN_SOURCE 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } else - ODBC_TARGETS=nolib - ODBC_PLTARGETS=odbc.pl + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +with_time=yes + +# Check whether --with-time was given. +if test "${with_time+set}" = set; then : + withval=$with_time; case "$withval" in + yes) with_time=yes ;; + no) with_time=no ;; + esac fi +if test "$ac_cv_func_getrlimit" = "yes"; then + CLIB_TARGETS="$CLIB_TARGETS rlimit.$SO" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find getrlimit\"()\" -- dropping rlimit.pl" >&5 +$as_echo "$as_me: WARNING: Cannot find getrlimit\"()\" -- dropping rlimit.pl" >&2;} +fi + +CLIB_PLTARGETS=`echo $CLIB_TARGETS | sed -e "s/\.$SO/.pl/g" -e "s/files.pl/filesex.pl/"` +if echo "$PL_CLIB_TARGETS" | grep socket.pl 2>&1 >/dev/null; then + CLIB_PLTARGETS="$PLCLIB_TARGETS streampool.pl" +fi + + + + + + +fi + if test "$ENABLE_LIBARCHIVE" = "" then -OLD_LIBS=$LIBS + + + + + + + + + ac_fn_c_check_header_mongrel "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default" if test "x$ac_cv_header_archive_h" = xyes; then : @@ -11927,7 +11740,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5 $as_echo "$ac_cv_lib_archive_archive_read_new" >&6; } if test "x$ac_cv_lib_archive_archive_read_new" = xyes; then : - ARCHIVE_LIBS="-larchive" + ARCHIVE_LIBS="$LIBS -larchive" ARCHIVELIB=yes else ARCHIVELIB=no @@ -11935,7 +11748,6 @@ fi fi -LIBS="$LIBS -larchive" for ac_func in archive_read_support_compression_bzip2 \ archive_read_support_compression_compress \ archive_read_support_compression_gzip \ @@ -11993,6 +11805,1011 @@ else # MacOS (Macports): port install libarchive ################################################################## EOF +fi + + + + +fi + +if test "$ENABLE_ODBC" = ""; then + + + + + + + + + + + + + +# Check whether --with-odbc was given. +if test "${with_odbc+set}" = set; then : + withval=$with_odbc; case $withval in + no|yes) echo 'Specify dir for XPM please'; + exit 1 ;; + *) ODBC_DIR=${withval} + esac +fi + + +if test ! -z "$ODBC_DIR"; then + ODBC_CFLAGS="-I${ODBC_DIR}/include" + ODBC_LDFLAGS="-L${ODBC_DIR}/lib" + CFLAGS="-I${ODBC_DIR}/include ${CFLAGS}" + CPPFLAGS="-I${ODBC_DIR}/include ${CPPFLAGS}" + CIFLAGS="-I${ODBC_DIR}/include ${CIFLAGS}" + LDFLAGS="-L${ODBC_DIR}/lib ${LDFLAGS}" +fi + +havelib=no +case "$PLARCH" in + *-win32|*-win64) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lodbc32" >&5 +$as_echo_n "checking for main in -lodbc32... " >&6; } +if ${ac_cv_lib_odbc32_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lodbc32 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_odbc32_main=yes +else + ac_cv_lib_odbc32_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_main" >&5 +$as_echo "$ac_cv_lib_odbc32_main" >&6; } +if test "x$ac_cv_lib_odbc32_main" = xyes; then : + ODBC_LIBS="-lodbc32 $LIBS" + havelib=yes +fi + + ;; + *) + if test $havelib = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocEnv in -lodbc" >&5 +$as_echo_n "checking for SQLAllocEnv in -lodbc... " >&6; } +if ${ac_cv_lib_odbc_SQLAllocEnv+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lodbc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLAllocEnv (); +int +main () +{ +return SQLAllocEnv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_odbc_SQLAllocEnv=yes +else + ac_cv_lib_odbc_SQLAllocEnv=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 +$as_echo "$ac_cv_lib_odbc_SQLAllocEnv" >&6; } +if test "x$ac_cv_lib_odbc_SQLAllocEnv" = xyes; then : + ODBC_LIBS="-lodbc $LIBS" + havelib=yes +fi + + if test $havelib = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocEnv in -liodbc" >&5 +$as_echo_n "checking for SQLAllocEnv in -liodbc... " >&6; } +if ${ac_cv_lib_iodbc_SQLAllocEnv+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-liodbc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLAllocEnv (); +int +main () +{ +return SQLAllocEnv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_iodbc_SQLAllocEnv=yes +else + ac_cv_lib_iodbc_SQLAllocEnv=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 +$as_echo "$ac_cv_lib_iodbc_SQLAllocEnv" >&6; } +if test "x$ac_cv_lib_iodbc_SQLAllocEnv" = xyes; then : + ODBC_LIBS="-liodbc $LIBS" + havelib=yes +fi + + fi + fi +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ + && LITTLE_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes; then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + extern int foo; + +int +main () +{ +return use_ascii (foo) == use_ebcdic (foo); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian=no +else + ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +$as_echo "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) + +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + + +for ac_header in malloc.h time.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +for ac_header in sql.h +do : + ac_fn_c_check_header_compile "$LINENO" "sql.h" "ac_cv_header_sql_h" " +#ifdef __WINDOWS__ +#include +#endif + +" +if test "x$ac_cv_header_sql_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SQL_H 1 +_ACEOF + +fi + +done + +for ac_func in localtime mktime gmtime timegm +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" +if test "x$ac_cv_type_long_long" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_LONG_LONG 1 +_ACEOF + + +fi + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of SQLWCHAR" >&5 +$as_echo_n "checking size of SQLWCHAR... " >&6; } +if ${ac_cv_sizeof_SQLWCHAR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (SQLWCHAR))" "ac_cv_sizeof_SQLWCHAR" " +#ifdef __WINDOWS__ +#include +#endif +#include + +"; then : + +else + if test "$ac_cv_type_SQLWCHAR" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (SQLWCHAR) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_SQLWCHAR=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_SQLWCHAR" >&5 +$as_echo "$ac_cv_sizeof_SQLWCHAR" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SQLWCHAR $ac_cv_sizeof_SQLWCHAR +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 +$as_echo_n "checking size of wchar_t... " >&6; } +if ${ac_cv_sizeof_wchar_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_wchar_t" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (wchar_t) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_wchar_t=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 +$as_echo "$ac_cv_sizeof_wchar_t" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t +_ACEOF + + +ac_fn_c_check_type "$LINENO" "SQLLEN" "ac_cv_type_SQLLEN" " +#ifdef __WINDOWS__ +#include +#endif +#include + +" +if test "x$ac_cv_type_SQLLEN" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_SQLLEN 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "SQLULEN" "ac_cv_type_SQLULEN" " +#ifdef __WINDOWS__ +#include +#endif +#include + +" +if test "x$ac_cv_type_SQLULEN" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_SQLULEN 1 +_ACEOF + + +fi + + +if test "$havelib" = yes && + test "$ac_cv_header_sql_h" = yes; then + ODBC_TARGETS="odbc4pl.$SO" +else + echo "ERROR: Cannot find odbc library or the header sql.h" + echo "WARNING: ODBC interface will not be built" + ODBC_TARGETS="" +fi + +ODBC_PLTARGETS=`echo $ODBC_TARGETS | sed "s/4pl\.$SO/.pl/g"` + + + + + + +else + ODBC_TARGETS=nolib + ODBC_PLTARGETS=odbc.pl +fi + + + +# Check whether --with-cudd was given. +if test "${with_cudd+set}" = set; then : + withval=$with_cudd; yap_cv_cudd="$withval" +else + yap_cv_cudd=no +fi + + +if test "$yap_cv_cudd" = no +then + ENABLE_CUDD="@# " + ENABLE_BDDLIB="@# " +else + if test "$dynamic_bdd" = yes + then + ENABLE_BDDLIB="" + else + ENABLE_BDDLIB="@# " + fi + ENABLE_CUDD="" +fi + + + +if test "$yap_cv_cudd" != no; then + +oldlibs="$LIBS" + +if test "$yap_cv_cudd" != "NONE" -a "$yap_cv_cudd" != "yes"; then + CUDD_CPPFLAGS="-I $yap_cv_cudd/include" + cudd_dir="$yap_cv_cudd" +elif test "$prefix" != "NONE"; then + CUDD_CPPFLAGS="-I $prefix/include" + cudd_dir="$prefix" +else + CUDD_CPPFLAGS="-I /usr/local/include" + cudd_dir=/usr/local +fi + +OLD_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $CUDD_CPPFLAGS" + +for ac_header in util.h cudd/util.h cudd.h cudd/cudd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +for ac_header in cuddInt.h cudd/cuddInt.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +if test -d "$cudd_dir/lib64/cudd" -a "$YAP_TARGET" = amd64; then + LIBS="$LIBS -L $cudd_dir/lib64/cudd" +elif test -d "$cudd_dir/lib64" -a "$YAP_TARGET" = amd64; then + LIBS="$LIBS -L $cudd_dir/lib64 -L $cudd_dir/lib" +elif test -d "$cudd_dir/lib/cudd"; then + LIBS="$LIBS -L $cudd_dir/lib/cudd" +elif test -d "$cudd_dir/lib"; then + LIBS="$LIBS -L $cudd_dir/lib" +fi + +if test -d "$cudd_dir/util"; then + LIBS="$LIBS -L $cudd_dir/util" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing util_print_cpu_stats" >&5 +$as_echo_n "checking for library containing util_print_cpu_stats... " >&6; } +if ${ac_cv_search_util_print_cpu_stats+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char util_print_cpu_stats (); +int +main () +{ +return util_print_cpu_stats (); + ; + return 0; +} +_ACEOF +for ac_lib in '' cuddutil util; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_util_print_cpu_stats=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_util_print_cpu_stats+:} false; then : + break +fi +done +if ${ac_cv_search_util_print_cpu_stats+:} false; then : + +else + ac_cv_search_util_print_cpu_stats=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_util_print_cpu_stats" >&5 +$as_echo "$ac_cv_search_util_print_cpu_stats" >&6; } +ac_res=$ac_cv_search_util_print_cpu_stats +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + +if test -d "$cudd_dir/st"; then + LIBS="$LIBS -L $cudd_dir/st" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing st_insert" >&5 +$as_echo_n "checking for library containing st_insert... " >&6; } +if ${ac_cv_search_st_insert+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char st_insert (); +int +main () +{ +return st_insert (); + ; + return 0; +} +_ACEOF +for ac_lib in '' cuddst st; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_st_insert=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_st_insert+:} false; then : + break +fi +done +if ${ac_cv_search_st_insert+:} false; then : + +else + ac_cv_search_st_insert=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_st_insert" >&5 +$as_echo "$ac_cv_search_st_insert" >&6; } +ac_res=$ac_cv_search_st_insert +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + +if test -d "$cudd_dir/epd"; then + LIBS="$LIBS -L $cudd_dir/epd" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EpdAdd" >&5 +$as_echo_n "checking for library containing EpdAdd... " >&6; } +if ${ac_cv_search_EpdAdd+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char EpdAdd (); +int +main () +{ +return EpdAdd (); + ; + return 0; +} +_ACEOF +for ac_lib in '' epd; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_EpdAdd=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_EpdAdd+:} false; then : + break +fi +done +if ${ac_cv_search_EpdAdd+:} false; then : + +else + ac_cv_search_EpdAdd=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EpdAdd" >&5 +$as_echo "$ac_cv_search_EpdAdd" >&6; } +ac_res=$ac_cv_search_EpdAdd +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + +if test -d "$cudd_dir/mtr"; then + LIBS="$LIBS -L $cudd_dir/mtr" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Mtr_InitTree" >&5 +$as_echo_n "checking for library containing Mtr_InitTree... " >&6; } +if ${ac_cv_search_Mtr_InitTree+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char Mtr_InitTree (); +int +main () +{ +return Mtr_InitTree (); + ; + return 0; +} +_ACEOF +for ac_lib in '' mtr; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_Mtr_InitTree=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_Mtr_InitTree+:} false; then : + break +fi +done +if ${ac_cv_search_Mtr_InitTree+:} false; then : + +else + ac_cv_search_Mtr_InitTree=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Mtr_InitTree" >&5 +$as_echo "$ac_cv_search_Mtr_InitTree" >&6; } +ac_res=$ac_cv_search_Mtr_InitTree +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + +if test -d "$cudd_dir/cudd"; then + LIBS="$LIBS -L $cudd_dir/cudd" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Cudd_Init" >&5 +$as_echo_n "checking for library containing Cudd_Init... " >&6; } +if ${ac_cv_search_Cudd_Init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char Cudd_Init (); +int +main () +{ +return Cudd_Init (); + ; + return 0; +} +_ACEOF +for ac_lib in '' cudd; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_Cudd_Init=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_Cudd_Init+:} false; then : + break +fi +done +if ${ac_cv_search_Cudd_Init+:} false; then : + +else + ac_cv_search_Cudd_Init=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Cudd_Init" >&5 +$as_echo "$ac_cv_search_Cudd_Init" >&6; } +ac_res=$ac_cv_search_Cudd_Init +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + cudd_installed="yes" +else + cudd_installed="no" +fi + + +CPPFLAGS="$OLD_CPPFLAGS" + +if test "$cudd_installed" = yes; then + CUDD_LDFLAGS="$LIBS" +else + cat << EOF +################################################################## +# ERROR: Could not find cudd library. Either I don't have the +# correct path, or CUDD is installed in some strange way +################################################################## +EOF + fi + +LIBS="$oldlibs" fi @@ -12000,10 +12817,443 @@ fi -LIBS="$OLD_LIBS" + + +if test "$ENABLE_ZLIB" = "" +then + + + + + + + + + + +for ac_header in zlib.h zutil.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 +$as_echo_n "checking for zlibVersion in -lz... " >&6; } +if ${ac_cv_lib_z_zlibVersion+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char zlibVersion (); +int +main () +{ +return zlibVersion (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_z_zlibVersion=yes +else + ac_cv_lib_z_zlibVersion=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 +$as_echo "$ac_cv_lib_z_zlibVersion" >&6; } +if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : + ZLIBS="$LIBS -lz" + ZLIB=yes +else + ZLIB=no fi +if test "$ZLIB" = yes; then + ZLIB_TARGETS="zlib4pl.$SO" + ZLIB_PLTARGETS=zlib.pl +else + ZLIB_TARGETS=nolib + cat << EOF +################################################################## +# ERROR: Could not find library zlib (-lz). Dropped library(zlib) +# Library zlib is available from http://www.zlib.net/ +# Most Unix/Linux distributions are shipped with binaries. Make +# sure to have the development library installed. +################################################################## +EOF +fi + + + +fi + + +if test -d /usr/local/include/gecode; then + CFLAGS="$CFLAGS -I/usr/local/include" + SHLIB_CXXFLAGS="$SHLIB_CXXFLAGS -I/usr/local/include" + GECODE_EXTRALIBS="-L/usr/local/lib" +fi + +ac_fn_c_check_header_mongrel "$LINENO" "gecode/support/config.hpp" "ac_cv_header_gecode_support_config_hpp" "$ac_includes_default" +if test "x$ac_cv_header_gecode_support_config_hpp" = xyes; then : + have_gecode=yes +else + have_gecode=no +fi + + + +# Check whether --enable-gecode was given. +if test "${enable_gecode+set}" = set; then : + enableval=$enable_gecode; use_gecode="$enableval" + if test "$use_gecode" = yes; then + if test "$have_gecode" = no; then + as_fn_error $? "cannot enable gecode: gecode library not found" "$LINENO" 5 + fi + fi +else + use_gecode=$have_gecode +fi + + +if test "$use_gecode" = no; then + ENABLE_GECODE="@# " +else + ENABLE_GECODE="" +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic arrays are supported" >&5 +$as_echo_n "checking if dynamic arrays are supported... " >&6; } + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + void foo(int n) { int a[n]; a[1]=0; } +int +main () +{ +foo(3); + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_DYNARRAY 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +GECODE_VERSION=unknown-gecode-version + +GECODE_EXTRALIBS="$GECODE_EXTRALIBS -lgecodesupport -lgecodekernel -lgecodefloat -lgecodeint -lgecodeset -lgecodesearch -lgecodeset" + + + + +if test "$use_gecode" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking gecode version" >&5 +$as_echo_n "checking gecode version... " >&6; } + if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "gecode/support/config.hpp" +#include + +int +main () +{ + + FILE* out = fopen("conftest.out","w"); + fprintf(out,"%s\n",GECODE_VERSION); + fclose(out); + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + GECODE_VERSION=$(cat conftest.out) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GECODE_VERSION" >&5 +$as_echo "$GECODE_VERSION" >&6; } +else + as_fn_error $? "cannot determine gecode version" "$LINENO" 5 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + case "$target_os" in + *darwin*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -framework gecode is required" >&5 +$as_echo_n "checking if -framework gecode is required... " >&6; } + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + saved_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -framework gecode" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "gecode/int.hh" + +int +main () +{ + +Gecode::Exception e("",""); +return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + GECODE_EXTRALIBS="-framework gecode" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + CXXFLAGS="$saved_CXXFLAGS" + ;; + esac +fi + +GECODE_MAJOR=`echo $GECODE_VERSION| sed 's/\(^.\).*/\1/'` + + + + + +# Check whether --with-python was given. +if test "${with_python+set}" = set; then : + withval=$with_python; if test "$withval" = yes; then + yap_cv_python=yes + elif test "$withval" = no; then + yap_cv_python=no + else + yap_cv_python=$withval + fi +else + yap_cv_python=no +fi + + +if test "$yap_cv_python" = "no"; then + PYTHON_TARGET="dummy" + ENABLE_PYTHON="@# " +elif test -e "$srcdir"/packages/python/Makefile.in ; then + PYTHON_TARGET="pitf" + ENABLE_PYTHON="" + if test "$yap_cv_python" = "yes" + then + for ac_prog in python +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_PYTHON+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$PYTHON"; then + ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_PYTHON="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +PYTHON=$ac_cv_prog_PYTHON +if test -n "$PYTHON"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 +$as_echo "$PYTHON" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$PYTHON" && break +done +test -n "$PYTHON" || PYTHON=""none"" + + else + PYTHON="$yap_cv_python" + fi + PYTHONHOME=`$PYTHON -c'import sys; print sys.prefix'` + PYTHONVERSION=`"$PYTHON" -c "import sys; print sys.version[:3]"` + PYTHON_LIBS="-L $PYTHONHOME/lib -lpython$PYTHONVERSION" + PYTHON_INCLUDES="-I $PYTHONHOME/include/python$PYTHONVERSION" +else + PYTHON_TARGET="dummy" + ENABLE_PYTHON="@# " +fi + + + + + + +if test "$ENABLE_PYTHON" = ""; then +ac_config_files="$ac_config_files packages/python/Makefile" + +fi + + + + +# Check whether --with-cuda was given. +if test "${with_cuda+set}" = set; then : + withval=$with_cuda; if test "$withval" = yes; then + yap_cv_cuda=/usr + elif test "$withval" = no; then + yap_cv_cuda=no + else + yap_cv_cuda="$withval" + fi +else + yap_cv_cuda=no +fi + + + +CUDA_LDFLAGS="" +CUDA_CPPFLAGS="" +if test "$yap_cv_cuda" = no +then + ENABLE_CUDA="@# " +else + # Extract the first word of "nvcc", so it can be a program name with args. +set dummy nvcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_NVCC+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $NVCC in + [\\/]* | ?:[\\/]*) + ac_cv_path_NVCC="$NVCC" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $yap_cv_cuda/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_NVCC="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_NVCC" && ac_cv_path_NVCC="no" + ;; +esac +fi +NVCC=$ac_cv_path_NVCC +if test -n "$NVCC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NVCC" >&5 +$as_echo "$NVCC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test "$yap_cv_cuda" = no + then + ENABLE_CUDA="@# " + else + ENABLE_CUDA="" + case "$target_os" in + *darwin*) + CUDA_LDFLAGS="$LDFLAGS" + CUDA_CPPFLAGS="-arch=sm_20 -Xcompiler -fPIC -O3 " + CUDA_SHLIB_LD="$NVCC -Xcompiler -dynamiclib -L../.. -lYap " + ;; + **) + CUDA_LDFLAGS="$LDFLAGS $LIBS" + CUDA_CPPFLAGS=" -arch=sm_20 -Xcompiler -fPIC -O3 " + CUDA_SHLIB_LD="$NVCC -Xcompiler -export-dynamic" + ;; + esac + fi +fi + + + + + + + +ac_config_files="$ac_config_files packages/cuda/Makefile" @@ -12156,11 +13406,6 @@ ac_config_files="$ac_config_files packages/jpl/Makefile packages/jpl/jpl_paths.y fi -if test "$ENABLE_PYTHON" = ""; then -ac_config_files="$ac_config_files packages/python/Makefile" - -fi - if test "$ENABLE_PLDOC" = ""; then ac_config_files="$ac_config_files packages/pldoc/Makefile" @@ -12236,7 +13481,7 @@ ac_config_files="$ac_config_files packages/CLPBN/horus/Makefile" fi if test "$ENABLE_GECODE" = ""; then -ac_config_files="$ac_config_files library/gecode/Makefile" +ac_config_files="$ac_config_files packages/gecode/Makefile" fi @@ -12250,9 +13495,6 @@ fi ac_config_files="$ac_config_files packages/yap-lbfgs/Makefile" -ac_config_files="$ac_config_files packages/cuda/Makefile" - - cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure @@ -12363,6 +13605,7 @@ LTLIBOBJS=$ac_ltlibobjs + : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files @@ -12946,6 +14189,8 @@ do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "YapTermConfig.h") CONFIG_HEADERS="$CONFIG_HEADERS YapTermConfig.h" ;; + "packages/python/Makefile") CONFIG_FILES="$CONFIG_FILES packages/python/Makefile" ;; + "packages/cuda/Makefile") CONFIG_FILES="$CONFIG_FILES packages/cuda/Makefile" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "library/Makefile") CONFIG_FILES="$CONFIG_FILES library/Makefile" ;; "library/lammpi/Makefile") CONFIG_FILES="$CONFIG_FILES library/lammpi/Makefile" ;; @@ -12979,7 +14224,6 @@ do "packages/jpl/Makefile") CONFIG_FILES="$CONFIG_FILES packages/jpl/Makefile" ;; "packages/jpl/jpl_paths.yap") CONFIG_FILES="$CONFIG_FILES packages/jpl/jpl_paths.yap" ;; "packages/jpl/src/java/Makefile") CONFIG_FILES="$CONFIG_FILES packages/jpl/src/java/Makefile" ;; - "packages/python/Makefile") CONFIG_FILES="$CONFIG_FILES packages/python/Makefile" ;; "packages/pldoc/Makefile") CONFIG_FILES="$CONFIG_FILES packages/pldoc/Makefile" ;; "packages/pldoc/server/man_server.pl") CONFIG_FILES="$CONFIG_FILES packages/pldoc/server/man_server.pl" ;; "packages/plunit/Makefile") CONFIG_FILES="$CONFIG_FILES packages/plunit/Makefile" ;; @@ -12997,11 +14241,10 @@ do "packages/swi-minisat2/C/Makefile") CONFIG_FILES="$CONFIG_FILES packages/swi-minisat2/C/Makefile" ;; "packages/real/Makefile") CONFIG_FILES="$CONFIG_FILES packages/real/Makefile" ;; "packages/CLPBN/horus/Makefile") CONFIG_FILES="$CONFIG_FILES packages/CLPBN/horus/Makefile" ;; - "library/gecode/Makefile") CONFIG_FILES="$CONFIG_FILES library/gecode/Makefile" ;; + "packages/gecode/Makefile") CONFIG_FILES="$CONFIG_FILES packages/gecode/Makefile" ;; "packages/prism/src/c/Makefile") CONFIG_FILES="$CONFIG_FILES packages/prism/src/c/Makefile" ;; "packages/prism/src/prolog/Makefile") CONFIG_FILES="$CONFIG_FILES packages/prism/src/prolog/Makefile" ;; "packages/yap-lbfgs/Makefile") CONFIG_FILES="$CONFIG_FILES packages/yap-lbfgs/Makefile" ;; - "packages/cuda/Makefile") CONFIG_FILES="$CONFIG_FILES packages/cuda/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac From 4ce1479da58f2a6fe81d27a06e922532c5c68247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:18:43 +0000 Subject: [PATCH 18/30] distributed commit --- packages/archive | 2 +- packages/clib | 2 +- packages/zlib | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/archive b/packages/archive index 7984859c5..9e22ca88f 160000 --- a/packages/archive +++ b/packages/archive @@ -1 +1 @@ -Subproject commit 7984859c5739a7af6564fb890a28c32a98aa727e +Subproject commit 9e22ca88f2fc1e0bd32cad5ac5a904e973f394b5 diff --git a/packages/clib b/packages/clib index b81392345..970950552 160000 --- a/packages/clib +++ b/packages/clib @@ -1 +1 @@ -Subproject commit b813923455e5efb2b55770699b84411c6dd37952 +Subproject commit 970950552e36eb7803b5c3e7a97ca5aefa807c72 diff --git a/packages/zlib b/packages/zlib index 5aadeb5be..044e8b33b 160000 --- a/packages/zlib +++ b/packages/zlib @@ -1 +1 @@ -Subproject commit 5aadeb5be3abe8169ab5c3824569f0cfea857faa +Subproject commit 044e8b33bfe3158463141add5bb9ce5e71cb7451 From 5090a08f5c47c6827d8b23311aed8b9306e06587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:34:31 +0000 Subject: [PATCH 19/30] updates --- packages/chr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/chr b/packages/chr index bd7973d4b..fe49dc72a 160000 --- a/packages/chr +++ b/packages/chr @@ -1 +1 @@ -Subproject commit bd7973d4bff21af39e5f8efdc377c0a2eb2d594f +Subproject commit fe49dc72a077b8f853fa2fb42661bd79a8c6aa00 From 1cd029197b0c1cfaf2f8362d661dd37cf1a0b1fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:36:15 +0000 Subject: [PATCH 20/30] updates --- packages/jpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jpl b/packages/jpl index a083f3166..2abb5144e 160000 --- a/packages/jpl +++ b/packages/jpl @@ -1 +1 @@ -Subproject commit a083f316690c066659cf3e4e40b0c093e85dc57f +Subproject commit 2abb5144e3195ed5a54e43e6749d48959318bda6 From e630d63d9e23eee683f9b7002917609832c7e0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:39:20 +0000 Subject: [PATCH 21/30] updates --- packages/odbc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/odbc b/packages/odbc index d9a8cdd6a..db1645c12 160000 --- a/packages/odbc +++ b/packages/odbc @@ -1 +1 @@ -Subproject commit d9a8cdd6ac472fa2338f7d66cc18e5e21f0ed94c +Subproject commit db1645c121c478e0634e6d944b180d4378fcf4dc From c9780cb3ad1fb4dc44c8a0587b35b58a832fe704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 01:47:50 +0000 Subject: [PATCH 22/30] updates --- packages/real | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/real b/packages/real index 4d335368d..666a97c55 160000 --- a/packages/real +++ b/packages/real @@ -1 +1 @@ -Subproject commit 4d335368d3f6dac797a100be5c72e64a22849383 +Subproject commit 666a97c55bdbdcbfad85e2bedb8b77c4997d5387 From 48d51e460ac3d47fd0f3cb1471b4d51f4cc9c937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 07:22:13 +0000 Subject: [PATCH 23/30] handle unknown arch, from Keri Harris --- C/gprof.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C/gprof.c b/C/gprof.c index 613358bf2..6da969a5b 100755 --- a/C/gprof.c +++ b/C/gprof.c @@ -102,6 +102,8 @@ typedef greg_t context_reg; #else +#define CONTEXT_PC(scv) NULL +#define CONTEXT_BP(scv) NULL #ifdef LOW_PROF #undef LOW_PROF #endif From a069d8b5f6b36a25dfc0deba7738b4a27c71e832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 07:26:16 +0000 Subject: [PATCH 24/30] fix in DESTDIR --- packages/real | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/real b/packages/real index 666a97c55..3dc65d550 160000 --- a/packages/real +++ b/packages/real @@ -1 +1 @@ -Subproject commit 666a97c55bdbdcbfad85e2bedb8b77c4997d5387 +Subproject commit 3dc65d55028abd365862ae6c9eccaab90148afc6 From 6c9d7d120f7e643c43bac4a001babd27ead580ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 07:42:14 +0000 Subject: [PATCH 25/30] distribute configure --- packages/clib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clib b/packages/clib index 970950552..7fdc6d2a4 160000 --- a/packages/clib +++ b/packages/clib @@ -1 +1 @@ -Subproject commit 970950552e36eb7803b5c3e7a97ca5aefa807c72 +Subproject commit 7fdc6d2a4b7c4684981e4f8ba2e37eec34c5590d From 57760e3dc9c00721dedc13914a06026005398ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 08:04:37 +0000 Subject: [PATCH 26/30] more files for maildrop configure --- packages/clib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clib b/packages/clib index 7fdc6d2a4..a73dc00dc 160000 --- a/packages/clib +++ b/packages/clib @@ -1 +1 @@ -Subproject commit 7fdc6d2a4b7c4684981e4f8ba2e37eec34c5590d +Subproject commit a73dc00dce9ccf8a48a5cd3834e6e44a4ad98bd4 From a2842ef9ceb8be89f5c7ef1c26e1bb5e2e7d6d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 08:16:52 +0000 Subject: [PATCH 27/30] missing new files --- library/MYDDAS/configure.in | 81 ++++++++++++++++++++++++++++++++++++ packages/python/configure.in | 41 ++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 library/MYDDAS/configure.in create mode 100644 packages/python/configure.in diff --git a/library/MYDDAS/configure.in b/library/MYDDAS/configure.in new file mode 100644 index 000000000..f08c8e821 --- /dev/null +++ b/library/MYDDAS/configure.in @@ -0,0 +1,81 @@ +AC_ARG_ENABLE(myddas, + [ --enable-myddas[[=DIR]] enable the MYDDAS library], + if test "$enableval" = yes; then + yap_cv_myddas=/usr + elif test "$enableval" = no; then + yap_cv_myddas=no + else + yap_cv_myddas=$enable_myddas + LDFLAGS="$LDFLAGS -L${yap_cv_myddas}/lib " + CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas}/include " + ODBC_LDFLAGS="-L${yap_cv_myddas}/lib " + ODBC_CFLAGS="-I${yap_cv_myddas}/include " + fi, + [yap_cv_myddas=/usr]) + +AC_ARG_ENABLE(myddas-stats, + [ --enable-myddas-stats enable the MYDDAS library statistics support], + if test "$yap_cv_myddas" = no; then + myddasstats=no + else + myddasstats="$enableval" + fi, myddasstats=no) + +AC_ARG_ENABLE(myddas-top-level, + [ --enable-myddas-top-level enable the MYDDAS top-level support to MySQL], + if test "$yap_cv_myddas" = no; then + myddastoplevel=no + else + myddastoplevel="$enableval" + fi, myddastoplevel=no) + +if test "$yap_cv_myddas" != "no" +then + dnl check for mysql + AC_SEARCH_LIBS(mysql_init, [mysqlclient], [yap_cv_mysql="yes"], [yap_cv_mysql="no"]) + if test "$yap_cv_mysql" = yes + then + YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL" + fi + + dnl check for odbc + case "$target_os" in + *darwin*) + LIBS="$LIBS -framework CoreFoundation" + ;; + **) + ;; + esac + AC_SEARCH_LIBS(SQLAllocHandle, [odbc], [yap_cv_odbc="yes"], [yap_cv_odbc="no"]) + if test "$yap_cv_odbc" = yes + then + ODBC_LIBS="$ODBC_LIBS -lodbc" + else + AC_SEARCH_LIBS(SQLAllocHandle, [iodbc], [yap_cv_odbc="yes"], [yap_cv_odbc="no"]) + if test "$yap_cv_odbc" = yes + then + ODBC_LIBS="$ODBC_LIBS -liodbc" + fi + fi + if test "$yap_cv_odbc" = yes + then + YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC" + fi + + if test "$myddasstats" = "yes" + then + YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_STATS" + fi + + if test "$myddastoplevel" = "yes" + then + YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_TOP_LEVEL" + fi + +fi + +if test "$yap_cv_myddas" != "no" +then + AC_CHECK_HEADERS(mysql/mysql.h) +fi + diff --git a/packages/python/configure.in b/packages/python/configure.in new file mode 100644 index 000000000..467df9856 --- /dev/null +++ b/packages/python/configure.in @@ -0,0 +1,41 @@ +AC_ARG_WITH(python, + [ --with-python[=DIR] interface to R language], + if test "$withval" = yes; then + yap_cv_python=yes + elif test "$withval" = no; then + yap_cv_python=no + else + yap_cv_python=$withval + fi, + [yap_cv_python=no]) + +if test "$yap_cv_python" = "no"; then + PYTHON_TARGET="dummy" + ENABLE_PYTHON="@# " +elif test -e "$srcdir"/packages/python/Makefile.in ; then + PYTHON_TARGET="pitf" + ENABLE_PYTHON="" + if test "$yap_cv_python" = "yes" + then + AC_CHECK_PROGS(PYTHON, python, "none") + else + PYTHON="$yap_cv_python" + fi + PYTHONHOME=`$PYTHON -c'import sys; print sys.prefix'` + PYTHONVERSION=`"$PYTHON" -c "import sys; print sys.version[[:3]]"` + PYTHON_LIBS="-L $PYTHONHOME/lib -lpython$PYTHONVERSION" + PYTHON_INCLUDES="-I $PYTHONHOME/include/python$PYTHONVERSION" +else + PYTHON_TARGET="dummy" + ENABLE_PYTHON="@# " +fi + +AC_SUBST(PYTHON_TARGET) +AC_SUBST(ENABLE_PYTHON) +AC_SUBST(PYTHON_INCLUDES) +AC_SUBST(PYTHON_LIBS) + +if test "$ENABLE_PYTHON" = ""; then +AC_CONFIG_FILES([ packages/python/Makefile ]) +fi + From f44c2b1488f325835e9beb13ca28daa5b90ce993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 09:39:14 +0000 Subject: [PATCH 28/30] missing new files --- packages/clib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clib b/packages/clib index a73dc00dc..1d7806b03 160000 --- a/packages/clib +++ b/packages/clib @@ -1 +1 @@ -Subproject commit a73dc00dce9ccf8a48a5cd3834e6e44a4ad98bd4 +Subproject commit 1d7806b032f04112024eac2971542b4c070216fa From 415a6a3a7146753bc95cd0d1b800881e4c66fc62 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 4 Nov 2013 09:59:42 +0000 Subject: [PATCH 29/30] configuration for clib --- config.h.in | 2 + configure | 309 ++++++++++++++++++++++++-------------------------- configure.in | 5 +- packages/clib | 2 +- 4 files changed, 152 insertions(+), 166 deletions(-) diff --git a/config.h.in b/config.h.in index e89340c7d..f944e7939 100755 --- a/config.h.in +++ b/config.h.in @@ -122,6 +122,8 @@ #undef HAVE_WINSOCK2_H #undef HAVE_LIBLOADERAPI_H +#undef UUID_H + #if __MINGW32__ #define __WINDOWS__ 1 #endif diff --git a/configure b/configure index 1d1b35425..bcc048935 100755 --- a/configure +++ b/configure @@ -1,9 +1,11 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69. +# Generated by GNU Autoconf 2.68. # # -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software +# Foundation, Inc. # # # This configure script is free software; the Free Software Foundation @@ -132,31 +134,6 @@ export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH -# Use a proper internal environment variable to ensure we don't fall - # into an infinite loop, continuously re-executing ourselves. - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then - _as_can_reexec=no; export _as_can_reexec; - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 - fi - # We don't want this to propagate to other subprocesses. - { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh @@ -190,8 +167,7 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi -test x\$exitcode = x0 || exit 1 -test -x / || exit 1" +test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && @@ -236,25 +212,21 @@ IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : - export CONFIG_SHELL - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -exit 255 + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + # Preserve -v and -x to the replacement shell. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; + esac + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : @@ -356,14 +328,6 @@ $as_echo X"$as_dir" | } # as_fn_mkdir_p - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take @@ -485,10 +449,6 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - # If we had to re-execute with $CONFIG_SHELL, we're ensured to have - # already done that, so ensure we don't try to do so again and fall - # in an infinite loop. This has already happened in practice. - _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). @@ -523,16 +483,16 @@ if (echo >conf$$.file) 2>/dev/null; then # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' + as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else - as_ln_s='cp -pR' + as_ln_s='cp -p' fi else - as_ln_s='cp -pR' + as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null @@ -544,8 +504,28 @@ else as_mkdir_p=false fi -as_test_x='test -x' -as_executable_p=as_fn_executable_p +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -633,9 +613,9 @@ PYTHON_INCLUDES ENABLE_PYTHON PYTHON_TARGET PYTHON -GECODE_MAJOR GECODE_EXTRALIBS GECODE_VERSION +GECODE_MAJOR ENABLE_GECODE ZLIBS ZLIB_PLTARGETS @@ -1344,6 +1324,8 @@ target=$target_alias if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi @@ -1636,9 +1618,9 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure -generated by GNU Autoconf 2.69 +generated by GNU Autoconf 2.68 -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1789,7 +1771,7 @@ $as_echo "$ac_try_echo"; } >&5 test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || - test -x conftest$ac_exeext + $as_test_x conftest$ac_exeext }; then : ac_retval=0 else @@ -2052,8 +2034,7 @@ int main () { static int test_array [1 - 2 * !(($2) >= 0)]; -test_array [0] = 0; -return test_array [0]; +test_array [0] = 0 ; return 0; @@ -2069,8 +2050,7 @@ int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; +test_array [0] = 0 ; return 0; @@ -2096,8 +2076,7 @@ int main () { static int test_array [1 - 2 * !(($2) < 0)]; -test_array [0] = 0; -return test_array [0]; +test_array [0] = 0 ; return 0; @@ -2113,8 +2092,7 @@ int main () { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; +test_array [0] = 0 ; return 0; @@ -2148,8 +2126,7 @@ int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; +test_array [0] = 0 ; return 0; @@ -2333,7 +2310,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was -generated by GNU Autoconf 2.69. Invocation command line was +generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2709,7 +2686,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -2749,7 +2726,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -2802,7 +2779,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -2843,7 +2820,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue @@ -2901,7 +2878,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -2945,7 +2922,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -3391,7 +3368,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include -struct stat; +#include +#include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); @@ -3641,7 +3619,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -3685,7 +3663,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -3888,7 +3866,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -4802,7 +4780,7 @@ case $as_dir/ in #(( # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. @@ -4875,7 +4853,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -4915,7 +4893,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -4967,7 +4945,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -5007,7 +4985,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -5061,7 +5039,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -5102,7 +5080,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -6182,7 +6160,7 @@ do for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in @@ -6248,7 +6226,7 @@ do for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in @@ -7287,7 +7265,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_MPI_CC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -7330,7 +7308,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_MPI_CC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -9726,7 +9704,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_REXE="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -9923,7 +9901,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_JAVAC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -9968,7 +9946,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -10015,7 +9993,7 @@ else JAVA_TEST=Test.java CLASS_TEST=Test.class cat << \EOF > $JAVA_TEST -/* #line 10018 "configure" */ +/* #line 9996 "configure" */ public class Test { } EOF @@ -10059,7 +10037,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_JAVA="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -10104,7 +10082,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -10149,7 +10127,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_uudecode="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -10191,7 +10169,7 @@ EOF if uudecode$EXEEXT Test.uue; then ac_cv_prog_uudecode_base64=yes else - echo "configure: 10194: uudecode had trouble decoding base 64 file 'Test.uue'" >&5 + echo "configure: 10172: uudecode had trouble decoding base 64 file 'Test.uue'" >&5 echo "configure: failed file was:" >&5 cat Test.uue >&5 ac_cv_prog_uudecode_base64=no @@ -10230,7 +10208,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_JAVAC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -10275,7 +10253,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -10322,7 +10300,7 @@ else JAVA_TEST=Test.java CLASS_TEST=Test.class cat << \EOF > $JAVA_TEST -/* #line 10325 "configure" */ +/* #line 10303 "configure" */ public class Test { } EOF @@ -10357,7 +10335,7 @@ JAVA_TEST=Test.java CLASS_TEST=Test.class TEST=Test cat << \EOF > $JAVA_TEST -/* [#]line 10360 "configure" */ +/* [#]line 10338 "configure" */ public class Test { public static void main (String args[]) { System.exit (0); @@ -10418,7 +10396,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_JAR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -10463,7 +10441,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -10513,7 +10491,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_JAVADOC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -10558,7 +10536,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -10624,7 +10602,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -10668,7 +10646,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -11402,16 +11380,17 @@ case "$CPP" in ;; *) ACPP="$CPP" esac -( CC=$ACC; LD=$ALD; CPP=$ACPP; CFLAGS=$CFLAGS; LDFLAGS=$LDFLAGS; - export CC LD CFLAGS LDFLAGS - - - (mkdir -p packages/clib/maildrop/rfc822 ; cd packages/clib/maildrop/rfc822 && $SHELL ../../../../"$srcdir"/packages/clib/maildrop/rfc822/configure --host=$host) - (mkdir -p packages/clib/maildrop/rfc2045 ; cd packages/clib/maildrop/rfc2045 && $SHELL ../../../../"$srcdir"/packages/clib/maildrop/rfc822/configure --host=$host) - - +( CC=$ACC; LD=$ALD; CPP=$ACPP; CFLAGS=$SHLIB_CFLAGS; LDFLAGS=$LDFLAGS; + export CC LD CFLAGS LDFLAGS; + mkdir -p packages/clib/maildrop/rfc822; + mkdir -p packages/clib/maildrop/rfc2045; + ( cd packages/clib/maildrop/rfc822 && $SHELL ../../../../"$srcdir"/packages/clib/maildrop/rfc822/configure --host=$host) + ( cd packages/clib/maildrop/rfc2045 && $SHELL ../../../../"$srcdir"/packages/clib/maildrop/rfc2045/configure --host=$host) ) + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Done\"" >&5 $as_echo "\"Done\"" >&6; } @@ -12977,10 +12956,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext GECODE_VERSION=unknown-gecode-version -GECODE_EXTRALIBS="$GECODE_EXTRALIBS -lgecodesupport -lgecodekernel -lgecodefloat -lgecodeint -lgecodeset -lgecodesearch -lgecodeset" - - - if test "$use_gecode" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking gecode version" >&5 @@ -13073,6 +13048,15 @@ GECODE_MAJOR=`echo $GECODE_VERSION| sed 's/\(^.\).*/\1/'` +if test "$GECODE_MAJOR" = "3"; then + GECODE_EXTRALIBS="$GECODE_EXTRALIBS -lgecodesupport -lgecodekernel -lgecodeint -lgecodeset -lgecodesearch" +else + GECODE_EXTRALIBS="$GECODE_EXTRALIBS -lgecodesupport -lgecodekernel -lgecodefloat -lgecodeint -lgecodeset -lgecodesearch" +fi + + + + # Check whether --with-python was given. @@ -13115,7 +13099,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_PYTHON="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -13204,7 +13188,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_NVCC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -13383,12 +13367,6 @@ fi if test "$ENABLE_CLIB" = ""; then ac_config_files="$ac_config_files packages/clib/Makefile" -ac_config_files="$ac_config_files packages/clib/maildrop/rfc822/Makefile" - -ac_config_files="$ac_config_files packages/clib/maildrop/rfc2045/Makefile" - -ac_config_files="$ac_config_files packages/clib/maildrop/rfc2045/rfc2045charset.h" - fi if test "$ENABLE_CLPQR" = ""; then @@ -13903,16 +13881,16 @@ if (echo >conf$$.file) 2>/dev/null; then # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' + as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else - as_ln_s='cp -pR' + as_ln_s='cp -p' fi else - as_ln_s='cp -pR' + as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null @@ -13972,16 +13950,28 @@ else as_mkdir_p=false fi - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -as_test_x='test -x' -as_executable_p=as_fn_executable_p +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -14003,7 +13993,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by $as_me, which was -generated by GNU Autoconf 2.69. Invocation command line was +generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -14065,10 +14055,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status -configured by $0, generated by GNU Autoconf 2.69, +configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -14158,7 +14148,7 @@ fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then - set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' @@ -14216,9 +14206,6 @@ do "swi/library/clp/Makefile") CONFIG_FILES="$CONFIG_FILES swi/library/clp/Makefile" ;; "packages/chr/Makefile") CONFIG_FILES="$CONFIG_FILES packages/chr/Makefile" ;; "packages/clib/Makefile") CONFIG_FILES="$CONFIG_FILES packages/clib/Makefile" ;; - "packages/clib/maildrop/rfc822/Makefile") CONFIG_FILES="$CONFIG_FILES packages/clib/maildrop/rfc822/Makefile" ;; - "packages/clib/maildrop/rfc2045/Makefile") CONFIG_FILES="$CONFIG_FILES packages/clib/maildrop/rfc2045/Makefile" ;; - "packages/clib/maildrop/rfc2045/rfc2045charset.h") CONFIG_FILES="$CONFIG_FILES packages/clib/maildrop/rfc2045/rfc2045charset.h" ;; "packages/clpqr/Makefile") CONFIG_FILES="$CONFIG_FILES packages/clpqr/Makefile" ;; "packages/http/Makefile") CONFIG_FILES="$CONFIG_FILES packages/http/Makefile" ;; "packages/jpl/Makefile") CONFIG_FILES="$CONFIG_FILES packages/jpl/Makefile" ;; diff --git a/configure.in b/configure.in index ab62f21d7..29542ebce 100755 --- a/configure.in +++ b/configure.in @@ -1869,7 +1869,7 @@ fi -m4_include([library/myddas/configure.in]) +m4_include([library/MYDDAS/configure.in]) if test "$yap_cv_R" != "no" -a -e "$srcdir"/packages/real/Makefile.in; then ENABLE_REAL="" @@ -2038,9 +2038,6 @@ fi if test "$ENABLE_CLIB" = ""; then AC_CONFIG_FILES([packages/clib/Makefile]) -AC_CONFIG_FILES([packages/clib/maildrop/rfc822/Makefile]) -AC_CONFIG_FILES([packages/clib/maildrop/rfc2045/Makefile]) -AC_CONFIG_FILES([packages/clib/maildrop/rfc2045/rfc2045charset.h]) fi if test "$ENABLE_CLPQR" = ""; then diff --git a/packages/clib b/packages/clib index 1d7806b03..759a537c5 160000 --- a/packages/clib +++ b/packages/clib @@ -1 +1 @@ -Subproject commit 1d7806b032f04112024eac2971542b4c070216fa +Subproject commit 759a537c5937e7ca5eccc4f786b5e2eaf516a91a From 52fcf2c7ab28b347b7d0fa378f2a50c99db40d1f Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 4 Nov 2013 10:00:32 +0000 Subject: [PATCH 30/30] configuration for gecode --- packages/gecode/configure.in | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/gecode/configure.in b/packages/gecode/configure.in index 2823e4728..2f2d2d499 100644 --- a/packages/gecode/configure.in +++ b/packages/gecode/configure.in @@ -39,10 +39,6 @@ AC_COMPILE_IFELSE([ GECODE_VERSION=unknown-gecode-version -GECODE_EXTRALIBS="$GECODE_EXTRALIBS -lgecodesupport -lgecodekernel -lgecodefloat -lgecodeint -lgecodeset -lgecodesearch -lgecodeset" - -AC_SUBST(GECODE_VERSION) -AC_SUBST(GECODE_EXTRALIBS) if test "$use_gecode" = yes; then AC_MSG_CHECKING([gecode version]) @@ -80,3 +76,12 @@ fi GECODE_MAJOR=`echo $GECODE_VERSION| sed 's/\(^.\).*/\1/'` AC_SUBST(GECODE_MAJOR) + +if test "$GECODE_MAJOR" = "3"; then + GECODE_EXTRALIBS="$GECODE_EXTRALIBS -lgecodesupport -lgecodekernel -lgecodeint -lgecodeset -lgecodesearch" +else + GECODE_EXTRALIBS="$GECODE_EXTRALIBS -lgecodesupport -lgecodekernel -lgecodefloat -lgecodeint -lgecodeset -lgecodesearch" +fi + +AC_SUBST(GECODE_VERSION) +AC_SUBST(GECODE_EXTRALIBS)