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] 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)