dep-selector-libgecode 1.0.0.alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (806) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +26 -0
  3. data/Gemfile +3 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +29 -0
  6. data/Rakefile +20 -0
  7. data/dep-selector-libgecode.gemspec +25 -0
  8. data/ext/libgecode3/Makefile +8 -0
  9. data/ext/libgecode3/extconf.rb +57 -0
  10. data/ext/libgecode3/vendor/gecode-3.7.3/LICENSE +25 -0
  11. data/ext/libgecode3/vendor/gecode-3.7.3/Makefile.contribs +88 -0
  12. data/ext/libgecode3/vendor/gecode-3.7.3/Makefile.dep +11307 -0
  13. data/ext/libgecode3/vendor/gecode-3.7.3/Makefile.in +1795 -0
  14. data/ext/libgecode3/vendor/gecode-3.7.3/changelog.in +6132 -0
  15. data/ext/libgecode3/vendor/gecode-3.7.3/configure +13054 -0
  16. data/ext/libgecode3/vendor/gecode-3.7.3/configure.ac +356 -0
  17. data/ext/libgecode3/vendor/gecode-3.7.3/configure.ac.in +352 -0
  18. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/README +26 -0
  19. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/AbstractWorker.hh +42 -0
  20. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/Doxyfile +263 -0
  21. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/Makefile.in.in +162 -0
  22. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/OptVar.cc +82 -0
  23. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/OptVar.hh +124 -0
  24. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/QCOPPlus.cc +306 -0
  25. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/QCOPPlus.hh +166 -0
  26. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/QCSPPlusUnblockable.cc +239 -0
  27. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/QCSPPlusUnblockable.hh +140 -0
  28. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/README +6 -0
  29. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/Strategy.cc +253 -0
  30. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/Strategy.hh +112 -0
  31. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/StrategyNode.cc +59 -0
  32. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/StrategyNode.hh +49 -0
  33. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/UnblockableBranching.hh +34 -0
  34. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/UnblockableViewValBranching.cc +61 -0
  35. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/UnblockableViewValBranching.hh +45 -0
  36. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/Work.cc +48 -0
  37. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/Work.hh +64 -0
  38. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/WorkComparators.hh +67 -0
  39. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/WorkManager.cc +376 -0
  40. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/WorkManager.hh +96 -0
  41. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/Worker.cc +285 -0
  42. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/Worker.hh +70 -0
  43. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/clean +5 -0
  44. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/configure +2637 -0
  45. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/configure.ac +44 -0
  46. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/myDom.cc +59 -0
  47. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/myspace.cc +119 -0
  48. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/myspace.hh +79 -0
  49. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/qecode.hh +56 -0
  50. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/qsolver_parallel.cc +41 -0
  51. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/qsolver_parallel.hh +43 -0
  52. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/qsolver_qcop.cc +268 -0
  53. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/qsolver_qcop.hh +56 -0
  54. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/qsolver_qcsp.cc +163 -0
  55. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/qsolver_qcsp.hh +63 -0
  56. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/qsolver_unblockable.cc +423 -0
  57. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/qsolver_unblockable.hh +84 -0
  58. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/shortdesc.ac +1 -0
  59. data/ext/libgecode3/vendor/gecode-3.7.3/contribs/qecode/vartype.hh +31 -0
  60. data/ext/libgecode3/vendor/gecode-3.7.3/doxygen/doxygen.conf.in +1245 -0
  61. data/ext/libgecode3/vendor/gecode-3.7.3/doxygen/doxygen.hh.in +594 -0
  62. data/ext/libgecode3/vendor/gecode-3.7.3/examples/all-interval.cpp +136 -0
  63. data/ext/libgecode3/vendor/gecode-3.7.3/examples/alpha.cpp +151 -0
  64. data/ext/libgecode3/vendor/gecode-3.7.3/examples/bacp.cpp +596 -0
  65. data/ext/libgecode3/vendor/gecode-3.7.3/examples/bibd.cpp +182 -0
  66. data/ext/libgecode3/vendor/gecode-3.7.3/examples/bin-packing.cpp +25363 -0
  67. data/ext/libgecode3/vendor/gecode-3.7.3/examples/black-hole.cpp +413 -0
  68. data/ext/libgecode3/vendor/gecode-3.7.3/examples/car-sequencing.cpp +653 -0
  69. data/ext/libgecode3/vendor/gecode-3.7.3/examples/crew.cpp +269 -0
  70. data/ext/libgecode3/vendor/gecode-3.7.3/examples/crossword.cpp +3954 -0
  71. data/ext/libgecode3/vendor/gecode-3.7.3/examples/crowded-chess.cpp +424 -0
  72. data/ext/libgecode3/vendor/gecode-3.7.3/examples/dominating-queens.cpp +170 -0
  73. data/ext/libgecode3/vendor/gecode-3.7.3/examples/domino.cpp +346 -0
  74. data/ext/libgecode3/vendor/gecode-3.7.3/examples/donald.cpp +135 -0
  75. data/ext/libgecode3/vendor/gecode-3.7.3/examples/efpa.cpp +323 -0
  76. data/ext/libgecode3/vendor/gecode-3.7.3/examples/eq20.cpp +128 -0
  77. data/ext/libgecode3/vendor/gecode-3.7.3/examples/golf.cpp +190 -0
  78. data/ext/libgecode3/vendor/gecode-3.7.3/examples/golomb-ruler.cpp +157 -0
  79. data/ext/libgecode3/vendor/gecode-3.7.3/examples/graph-color.cpp +425 -0
  80. data/ext/libgecode3/vendor/gecode-3.7.3/examples/grocery.cpp +116 -0
  81. data/ext/libgecode3/vendor/gecode-3.7.3/examples/hamming.cpp +144 -0
  82. data/ext/libgecode3/vendor/gecode-3.7.3/examples/ind-set.cpp +144 -0
  83. data/ext/libgecode3/vendor/gecode-3.7.3/examples/kakuro.cpp +627 -0
  84. data/ext/libgecode3/vendor/gecode-3.7.3/examples/knights.cpp +430 -0
  85. data/ext/libgecode3/vendor/gecode-3.7.3/examples/langford-number.cpp +218 -0
  86. data/ext/libgecode3/vendor/gecode-3.7.3/examples/magic-sequence.cpp +133 -0
  87. data/ext/libgecode3/vendor/gecode-3.7.3/examples/magic-square.cpp +141 -0
  88. data/ext/libgecode3/vendor/gecode-3.7.3/examples/minesweeper.cpp +311 -0
  89. data/ext/libgecode3/vendor/gecode-3.7.3/examples/money.cpp +132 -0
  90. data/ext/libgecode3/vendor/gecode-3.7.3/examples/nonogram.cpp +1215 -0
  91. data/ext/libgecode3/vendor/gecode-3.7.3/examples/open-shop.cpp +412 -0
  92. data/ext/libgecode3/vendor/gecode-3.7.3/examples/ortho-latin.cpp +183 -0
  93. data/ext/libgecode3/vendor/gecode-3.7.3/examples/partition.cpp +145 -0
  94. data/ext/libgecode3/vendor/gecode-3.7.3/examples/pentominoes.cpp +952 -0
  95. data/ext/libgecode3/vendor/gecode-3.7.3/examples/perfect-square.cpp +317 -0
  96. data/ext/libgecode3/vendor/gecode-3.7.3/examples/photo.cpp +166 -0
  97. data/ext/libgecode3/vendor/gecode-3.7.3/examples/queen-armies.cpp +335 -0
  98. data/ext/libgecode3/vendor/gecode-3.7.3/examples/queens.cpp +214 -0
  99. data/ext/libgecode3/vendor/gecode-3.7.3/examples/radiotherapy.cpp +943 -0
  100. data/ext/libgecode3/vendor/gecode-3.7.3/examples/sat.cpp +260 -0
  101. data/ext/libgecode3/vendor/gecode-3.7.3/examples/schurs-lemma.cpp +142 -0
  102. data/ext/libgecode3/vendor/gecode-3.7.3/examples/scowl.hpp +14149 -0
  103. data/ext/libgecode3/vendor/gecode-3.7.3/examples/sports-league.cpp +353 -0
  104. data/ext/libgecode3/vendor/gecode-3.7.3/examples/steel-mill.cpp +654 -0
  105. data/ext/libgecode3/vendor/gecode-3.7.3/examples/steiner.cpp +170 -0
  106. data/ext/libgecode3/vendor/gecode-3.7.3/examples/sudoku.cpp +2294 -0
  107. data/ext/libgecode3/vendor/gecode-3.7.3/examples/tsp.cpp +339 -0
  108. data/ext/libgecode3/vendor/gecode-3.7.3/examples/warehouses.cpp +185 -0
  109. data/ext/libgecode3/vendor/gecode-3.7.3/examples/word-square.cpp +168 -0
  110. data/ext/libgecode3/vendor/gecode-3.7.3/gecode.m4 +1272 -0
  111. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/driver.hh +602 -0
  112. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/driver/options.cpp +435 -0
  113. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/driver/options.hpp +418 -0
  114. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/driver/script.cpp +104 -0
  115. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/driver/script.hpp +388 -0
  116. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc.hh +417 -0
  117. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/CHANGES +63 -0
  118. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/ast.hh +492 -0
  119. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/conexpr.hh +82 -0
  120. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/exampleplugin/myplugin.cpp +49 -0
  121. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/exampleplugin/myplugin.hh +47 -0
  122. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/exampleplugin/myplugin.pro +51 -0
  123. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/exampleplugin/test_myplugin.fzn +1 -0
  124. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/flatzinc.cpp +1056 -0
  125. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/lexer.lxx +137 -0
  126. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/lexer.yy.cpp +2458 -0
  127. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/all_different_int.mzn +37 -0
  128. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/all_equal_int.mzn +37 -0
  129. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/among.mzn +37 -0
  130. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/at_least_int.mzn +37 -0
  131. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/at_least_set.mzn +38 -0
  132. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/at_most_int.mzn +37 -0
  133. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/at_most_set.mzn +38 -0
  134. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/bin_packing.mzn +44 -0
  135. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/bin_packing_capa.mzn +45 -0
  136. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/bin_packing_load.mzn +45 -0
  137. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/circuit.mzn +40 -0
  138. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/count.mzn +37 -0
  139. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/cumulative.mzn +53 -0
  140. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/decreasing_bool.mzn +37 -0
  141. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/decreasing_int.mzn +37 -0
  142. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/diffn.mzn +44 -0
  143. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/disjoint.mzn +37 -0
  144. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/distribute.mzn +46 -0
  145. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/exactly_int.mzn +40 -0
  146. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/exactly_set.mzn +38 -0
  147. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/gecode.mzn +98 -0
  148. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/global_cardinality.mzn +43 -0
  149. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/global_cardinality_closed.mzn +39 -0
  150. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/global_cardinality_low_up.mzn +40 -0
  151. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/global_cardinality_low_up_closed.mzn +40 -0
  152. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/increasing_bool.mzn +37 -0
  153. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/increasing_int.mzn +37 -0
  154. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/int_set_channel.mzn +49 -0
  155. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/inverse.mzn +42 -0
  156. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/lex_less_int.mzn +42 -0
  157. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/lex_lesseq_int.mzn +42 -0
  158. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/link_set_to_booleans.mzn +47 -0
  159. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/maximum_int.mzn +37 -0
  160. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/member_bool.mzn +41 -0
  161. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/member_int.mzn +41 -0
  162. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/minimum_int.mzn +37 -0
  163. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/nvalue.mzn +37 -0
  164. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/partition_set.mzn +42 -0
  165. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/precedence.mzn +41 -0
  166. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/range.mzn +51 -0
  167. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/redefinitions.mzn +62 -0
  168. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/regular.mzn +38 -0
  169. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/roots.mzn +63 -0
  170. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/sort.mzn +37 -0
  171. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/sum_pred.mzn +42 -0
  172. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/table_bool.mzn +37 -0
  173. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/mznlib/table_int.mzn +37 -0
  174. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/option.hh +70 -0
  175. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/parser.hh +265 -0
  176. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/parser.tab.cpp +3571 -0
  177. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/parser.tab.hh +164 -0
  178. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/parser.yxx +1604 -0
  179. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/plugin.hh +83 -0
  180. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/registry.cpp +1812 -0
  181. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/registry.hh +71 -0
  182. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/symboltable.hh +96 -0
  183. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/flatzinc/varspec.hh +163 -0
  184. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist.hh +298 -0
  185. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/drawingcursor.cpp +288 -0
  186. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/drawingcursor.hh +110 -0
  187. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/drawingcursor.hpp +84 -0
  188. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/gecodelogo.cpp +673 -0
  189. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/gecodelogo.hh +65 -0
  190. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/gist.cpp +120 -0
  191. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/gist.hpp +207 -0
  192. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/layoutcursor.hh +69 -0
  193. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/layoutcursor.hpp +70 -0
  194. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/mainwindow.cpp +341 -0
  195. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/mainwindow.hh +129 -0
  196. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/node.cpp +82 -0
  197. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/node.hh +160 -0
  198. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/node.hpp +210 -0
  199. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/nodecursor.hh +215 -0
  200. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/nodecursor.hpp +271 -0
  201. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/nodestats.cpp +138 -0
  202. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/nodestats.hh +81 -0
  203. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/nodevisitor.hh +96 -0
  204. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/nodevisitor.hpp +126 -0
  205. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/nodewidget.cpp +90 -0
  206. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/nodewidget.hh +59 -0
  207. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/preferences.cpp +190 -0
  208. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/preferences.hh +96 -0
  209. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/qtgist.cpp +809 -0
  210. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/qtgist.hh +294 -0
  211. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/spacenode.cpp +369 -0
  212. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/spacenode.hh +221 -0
  213. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/spacenode.hpp +191 -0
  214. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/standalone-example/mygist.cpp +80 -0
  215. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/standalone-example/standalone_example.pro +18 -0
  216. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/stopbrancher.cpp +90 -0
  217. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/stopbrancher.hh +82 -0
  218. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/textoutput.cpp +175 -0
  219. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/textoutput.hh +75 -0
  220. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/treecanvas.cpp +1430 -0
  221. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/treecanvas.hh +369 -0
  222. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/visualnode.cpp +473 -0
  223. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/visualnode.hh +237 -0
  224. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/visualnode.hpp +220 -0
  225. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/gist/zoomToFitIcon.hpp +114 -0
  226. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int.hh +3477 -0
  227. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/arithmetic.cpp +185 -0
  228. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/arithmetic.hh +666 -0
  229. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/arithmetic/abs.hpp +236 -0
  230. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/arithmetic/divmod.hpp +350 -0
  231. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/arithmetic/max.hpp +398 -0
  232. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/arithmetic/mult.hpp +750 -0
  233. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/arithmetic/sqr.hpp +377 -0
  234. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/arithmetic/sqrt.hpp +217 -0
  235. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/array-traits.hpp +147 -0
  236. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/array.cpp +113 -0
  237. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/array.hpp +111 -0
  238. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bin-packing.cpp +71 -0
  239. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bin-packing.hh +184 -0
  240. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bin-packing/propagate.cpp +388 -0
  241. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bin-packing/propagate.hpp +219 -0
  242. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bool.cpp +755 -0
  243. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bool.hh +581 -0
  244. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bool/base.hpp +137 -0
  245. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bool/clause.hpp +353 -0
  246. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bool/eq.hpp +196 -0
  247. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bool/eqv.cpp +104 -0
  248. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bool/eqv.hpp +202 -0
  249. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bool/lq.hpp +241 -0
  250. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/bool/or.hpp +850 -0
  251. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/branch.cpp +152 -0
  252. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/branch.hh +607 -0
  253. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/branch/post-val-bool.hpp +81 -0
  254. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/branch/post-val-int.hpp +107 -0
  255. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/branch/post-view-bool.bs +121 -0
  256. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/branch/post-view-bool.cpp +438 -0
  257. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/branch/post-view-int.bs +121 -0
  258. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/branch/post-view-int.cpp +438 -0
  259. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/branch/select-val.hpp +229 -0
  260. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/branch/select-values.hpp +213 -0
  261. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/branch/select-view.hpp +364 -0
  262. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/channel.cpp +172 -0
  263. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/channel.hh +249 -0
  264. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/channel/base.hpp +78 -0
  265. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/channel/dom.hpp +332 -0
  266. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/channel/link-multi.cpp +241 -0
  267. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/channel/link-multi.hpp +84 -0
  268. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/channel/link-single.cpp +77 -0
  269. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/channel/link-single.hpp +71 -0
  270. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/channel/val.hpp +256 -0
  271. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/circuit.cpp +229 -0
  272. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/circuit.hh +160 -0
  273. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/circuit/base.hpp +270 -0
  274. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/circuit/dom.hpp +128 -0
  275. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/circuit/val.hpp +105 -0
  276. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/count.cpp +417 -0
  277. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/count.hh +410 -0
  278. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/count/int-base.hpp +80 -0
  279. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/count/int-eq.hpp +143 -0
  280. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/count/int-gq.hpp +137 -0
  281. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/count/int-lq.hpp +136 -0
  282. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/count/rel.hpp +281 -0
  283. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/count/view-base.hpp +131 -0
  284. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/count/view-eq.hpp +117 -0
  285. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/count/view-gq.hpp +109 -0
  286. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/count/view-lq.hpp +96 -0
  287. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulative.cpp +432 -0
  288. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulative.hh +745 -0
  289. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulative/basic.hpp +211 -0
  290. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulative/edge-finding.hpp +185 -0
  291. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulative/man-prop.hpp +127 -0
  292. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulative/opt-prop.hpp +171 -0
  293. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulative/overload.hpp +63 -0
  294. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulative/task-view.hpp +84 -0
  295. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulative/task.hpp +256 -0
  296. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulative/tree.hpp +272 -0
  297. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulatives.cpp +187 -0
  298. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulatives.hh +133 -0
  299. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/cumulatives/val.hpp +380 -0
  300. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/distinct.cpp +97 -0
  301. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/distinct.hh +314 -0
  302. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/distinct/bnd.hpp +444 -0
  303. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/distinct/dom-ctrl.hpp +81 -0
  304. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/distinct/dom.hpp +123 -0
  305. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/distinct/graph.hpp +266 -0
  306. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/distinct/ter-dom.hpp +113 -0
  307. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/distinct/val.hpp +185 -0
  308. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/dom.cpp +135 -0
  309. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/dom.hh +118 -0
  310. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/dom/range.hpp +105 -0
  311. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/dom/spec.hpp +124 -0
  312. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/element.cpp +190 -0
  313. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/element.hh +384 -0
  314. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/element/int.hpp +443 -0
  315. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/element/pair.cpp +151 -0
  316. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/element/pair.hpp +74 -0
  317. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/element/view.hpp +559 -0
  318. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/exception.hpp +196 -0
  319. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/exec.cpp +83 -0
  320. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/exec.hh +87 -0
  321. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/exec/when.cpp +77 -0
  322. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/exec/when.hpp +51 -0
  323. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/extensional.cpp +124 -0
  324. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/extensional.hh +508 -0
  325. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/extensional/base.hpp +163 -0
  326. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/extensional/basic.hpp +148 -0
  327. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/extensional/dfa.cpp +535 -0
  328. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/extensional/dfa.hpp +282 -0
  329. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/extensional/incremental.hpp +454 -0
  330. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/extensional/layered-graph.hpp +982 -0
  331. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/extensional/tuple-set.cpp +222 -0
  332. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/extensional/tuple-set.hpp +184 -0
  333. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/gcc.cpp +172 -0
  334. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/gcc.hh +268 -0
  335. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/gcc/bnd-sup.hpp +608 -0
  336. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/gcc/bnd.hpp +829 -0
  337. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/gcc/dom-sup.hpp +1777 -0
  338. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/gcc/dom.hpp +315 -0
  339. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/gcc/post.hpp +169 -0
  340. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/gcc/val.hpp +299 -0
  341. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/gcc/view.hpp +410 -0
  342. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/int-set-1.hpp +249 -0
  343. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/int-set-2.hpp +51 -0
  344. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/int-set.cpp +167 -0
  345. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/limits.hpp +94 -0
  346. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear-bool.cpp +196 -0
  347. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear-int.cpp +194 -0
  348. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear.hh +1560 -0
  349. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear/bool-int.hpp +743 -0
  350. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear/bool-post.cpp +602 -0
  351. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear/bool-scale.hpp +695 -0
  352. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear/bool-view.hpp +319 -0
  353. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear/int-bin.hpp +439 -0
  354. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear/int-dom.hpp +484 -0
  355. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear/int-nary.hpp +864 -0
  356. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear/int-noview.hpp +251 -0
  357. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear/int-post.cpp +561 -0
  358. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear/int-ter.hpp +273 -0
  359. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/linear/post.hpp +152 -0
  360. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/member.cpp +85 -0
  361. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/member.hh +125 -0
  362. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/member/prop.hpp +175 -0
  363. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/member/re-prop.hpp +178 -0
  364. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/no-overlap.cpp +226 -0
  365. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/no-overlap.hh +318 -0
  366. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/no-overlap/base.hpp +88 -0
  367. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/no-overlap/box.hpp +198 -0
  368. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/no-overlap/dim.hpp +197 -0
  369. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/no-overlap/man.hpp +119 -0
  370. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/no-overlap/opt.hpp +153 -0
  371. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues.cpp +244 -0
  372. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues.hh +429 -0
  373. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues/bool-base.hpp +98 -0
  374. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues/bool-eq.hpp +174 -0
  375. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues/bool-gq.hpp +149 -0
  376. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues/bool-lq.hpp +151 -0
  377. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues/graph.hpp +283 -0
  378. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues/int-base.hpp +347 -0
  379. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues/int-eq.hpp +167 -0
  380. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues/int-gq.hpp +130 -0
  381. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues/int-lq.hpp +154 -0
  382. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues/range-event.hpp +51 -0
  383. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/nvalues/sym-bit-matrix.hpp +69 -0
  384. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/precede.cpp +73 -0
  385. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/precede.hh +113 -0
  386. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/precede/single.hpp +232 -0
  387. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/propagator.hpp +311 -0
  388. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/rel.cpp +381 -0
  389. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/rel.hh +665 -0
  390. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/rel/eq.hpp +676 -0
  391. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/rel/lex.hpp +414 -0
  392. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/rel/lq-le.hpp +537 -0
  393. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/rel/nq.hpp +196 -0
  394. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sequence.cpp +197 -0
  395. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sequence.hh +154 -0
  396. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sequence/int.hpp +168 -0
  397. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sequence/set-op.hpp +154 -0
  398. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sequence/view.hpp +499 -0
  399. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sequence/violations.hpp +101 -0
  400. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sorted.cpp +82 -0
  401. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sorted.hh +107 -0
  402. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sorted/matching.hpp +173 -0
  403. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sorted/narrowing.hpp +250 -0
  404. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sorted/order.hpp +213 -0
  405. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sorted/propagate.hpp +646 -0
  406. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/sorted/sortsup.hpp +564 -0
  407. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/support-values.hh +154 -0
  408. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/support-values.hpp +187 -0
  409. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/task.hh +454 -0
  410. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/task/array.hpp +179 -0
  411. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/task/fwd-to-bwd.hpp +102 -0
  412. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/task/iter.hpp +92 -0
  413. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/task/man-to-opt.hpp +100 -0
  414. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/task/prop.hpp +70 -0
  415. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/task/purge.hpp +74 -0
  416. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/task/sort.hpp +234 -0
  417. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/task/tree.hpp +189 -0
  418. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary.cpp +258 -0
  419. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary.hh +839 -0
  420. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary/detectable.hpp +116 -0
  421. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary/edge-finding.hpp +78 -0
  422. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary/man-prop.hpp +78 -0
  423. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary/not-first-not-last.hpp +133 -0
  424. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary/opt-prop.hpp +116 -0
  425. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary/overload.hpp +93 -0
  426. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary/subsumption.hpp +55 -0
  427. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary/task-view.hpp +105 -0
  428. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary/task.hpp +532 -0
  429. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unary/tree.hpp +229 -0
  430. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/unshare.cpp +146 -0
  431. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/val-set.hh +118 -0
  432. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/val-set.hpp +186 -0
  433. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var-imp.hpp +710 -0
  434. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var-imp/bool.cpp +65 -0
  435. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var-imp/bool.hpp +431 -0
  436. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var-imp/bool.vis +75 -0
  437. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var-imp/delta.hpp +64 -0
  438. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var-imp/int.cpp +361 -0
  439. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var-imp/int.hpp +1029 -0
  440. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var-imp/int.vis +117 -0
  441. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var/bool.cpp +53 -0
  442. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var/bool.hpp +121 -0
  443. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var/int.cpp +61 -0
  444. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var/int.hpp +145 -0
  445. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/var/print.hpp +56 -0
  446. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view-val-graph.hh +334 -0
  447. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view-val-graph/bi-link.hpp +89 -0
  448. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view-val-graph/comb-ptr-flag.hpp +78 -0
  449. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view-val-graph/edge.hpp +124 -0
  450. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view-val-graph/graph.hpp +202 -0
  451. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view-val-graph/iter-prune-val.hpp +70 -0
  452. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view-val-graph/node.hpp +171 -0
  453. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view.hpp +1690 -0
  454. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/bool-test.hpp +64 -0
  455. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/bool.hpp +314 -0
  456. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/cached.hpp +402 -0
  457. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/constint.hpp +324 -0
  458. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/int.hpp +264 -0
  459. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/iter.hpp +65 -0
  460. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/minus.hpp +300 -0
  461. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/neg-bool.hpp +177 -0
  462. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/offset.hpp +303 -0
  463. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/print.hpp +162 -0
  464. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/rel-test.hpp +231 -0
  465. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/scale.hpp +368 -0
  466. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/int/view/zero.hpp +305 -0
  467. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter.hh +96 -0
  468. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-add.hpp +144 -0
  469. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-append.hpp +222 -0
  470. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-array.hpp +139 -0
  471. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-cache.hpp +106 -0
  472. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-compl.hpp +220 -0
  473. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-diff.hpp +142 -0
  474. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-empty.hpp +111 -0
  475. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-inter.hpp +309 -0
  476. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-list.hpp +263 -0
  477. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-map.hpp +260 -0
  478. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-minmax.hpp +118 -0
  479. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-minus.hpp +107 -0
  480. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-negative.hpp +137 -0
  481. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-offset.hpp +127 -0
  482. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-operations.hpp +157 -0
  483. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-positive.hpp +139 -0
  484. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-rangelist.hpp +115 -0
  485. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-scale.hpp +238 -0
  486. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-singleton-append.hpp +111 -0
  487. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-singleton.hpp +86 -0
  488. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-size.hpp +146 -0
  489. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-union.hpp +361 -0
  490. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/ranges-values.hpp +140 -0
  491. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-array.hpp +120 -0
  492. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-bitset.hpp +114 -0
  493. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-inter.hpp +130 -0
  494. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-list.hpp +186 -0
  495. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-map.hpp +136 -0
  496. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-minus.hpp +105 -0
  497. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-negative.hpp +116 -0
  498. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-offset.hpp +113 -0
  499. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-positive.hpp +123 -0
  500. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-ranges.hpp +106 -0
  501. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-singleton.hpp +109 -0
  502. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-union.hpp +137 -0
  503. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/iter/values-unique.hpp +118 -0
  504. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel.hh +194 -0
  505. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/advisor.hpp +102 -0
  506. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/allocators.hpp +476 -0
  507. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/archive.cpp +70 -0
  508. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/archive.hpp +298 -0
  509. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/array.hpp +2133 -0
  510. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/branch.cpp +121 -0
  511. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/branch.hpp +254 -0
  512. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/brancher-tiebreak.hpp +615 -0
  513. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/brancher-val.hpp +126 -0
  514. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/brancher-view.hpp +455 -0
  515. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/brancher.hpp +431 -0
  516. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/core.cpp +563 -0
  517. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/core.hpp +3668 -0
  518. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/exception.hpp +124 -0
  519. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/global-prop-info.hpp +258 -0
  520. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/macros.hpp +118 -0
  521. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/memory-config.hpp +154 -0
  522. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/memory-manager.cpp +53 -0
  523. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/memory-manager.hpp +511 -0
  524. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/modevent.hpp +69 -0
  525. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/propagator.hpp +699 -0
  526. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/range-list.hpp +184 -0
  527. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/region.cpp +85 -0
  528. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/region.hpp +459 -0
  529. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/shared-array.hpp +345 -0
  530. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/var-imp.hpp +332 -0
  531. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/var-type.hpp +767 -0
  532. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/var.hpp +144 -0
  533. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/view.hpp +715 -0
  534. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/kernel/wait.hh +244 -0
  535. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel.hh +1870 -0
  536. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/arithmetic.cpp +408 -0
  537. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/bool-expr.cpp +522 -0
  538. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/bool-expr.hpp +87 -0
  539. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/exception.hpp +84 -0
  540. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/lin-expr.cpp +594 -0
  541. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/lin-expr.hpp +297 -0
  542. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/lin-rel.cpp +414 -0
  543. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/lin-rel.hpp +85 -0
  544. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/matrix.hpp +247 -0
  545. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/optimize.hpp +62 -0
  546. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/reg.cpp +817 -0
  547. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/reg.hpp +94 -0
  548. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/set-expr.cpp +704 -0
  549. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/set-expr.hpp +96 -0
  550. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/set-rel.cpp +81 -0
  551. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/minimodel/set-rel.hpp +84 -0
  552. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search.hh +458 -0
  553. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/bab.cpp +62 -0
  554. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/bab.hpp +91 -0
  555. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/dfs.cpp +62 -0
  556. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/dfs.hpp +84 -0
  557. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/options.cpp +72 -0
  558. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/options.hpp +49 -0
  559. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/parallel/bab.cpp +178 -0
  560. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/parallel/bab.hh +203 -0
  561. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/parallel/dfs.cpp +176 -0
  562. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/parallel/dfs.hh +195 -0
  563. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/parallel/engine.cpp +118 -0
  564. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/parallel/engine.hh +418 -0
  565. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/parallel/path.hh +477 -0
  566. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/parallel/restart.cpp +167 -0
  567. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/parallel/restart.hh +73 -0
  568. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/restart.cpp +62 -0
  569. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/restart.hpp +88 -0
  570. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/sequential/bab.hh +177 -0
  571. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/sequential/dfs.hh +176 -0
  572. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/sequential/path.hh +411 -0
  573. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/sequential/restart.hh +89 -0
  574. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/statistics.hpp +70 -0
  575. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/stop.cpp +83 -0
  576. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/stop.hpp +137 -0
  577. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/support.hh +91 -0
  578. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/search/worker.hh +202 -0
  579. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set.hh +1144 -0
  580. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/array-traits.hpp +86 -0
  581. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/array.cpp +219 -0
  582. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/array.hpp +64 -0
  583. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/branch.cpp +128 -0
  584. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/branch.hh +438 -0
  585. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/branch/post-val.hpp +107 -0
  586. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/branch/post-view.bs +109 -0
  587. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/branch/post-view.cpp +370 -0
  588. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/branch/select-val.hpp +204 -0
  589. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/branch/select-view.hpp +306 -0
  590. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/cardinality.cpp +65 -0
  591. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/convex.cpp +60 -0
  592. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/convex.hh +107 -0
  593. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/convex/conv.cpp +97 -0
  594. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/convex/conv.hpp +67 -0
  595. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/convex/hull.cpp +116 -0
  596. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/convex/hull.hpp +68 -0
  597. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/distinct.cpp +56 -0
  598. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/distinct.hh +79 -0
  599. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/distinct/atmostOne.cpp +162 -0
  600. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/distinct/atmostOne.hpp +66 -0
  601. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/dom.cpp +300 -0
  602. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/element.cpp +255 -0
  603. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/element.hh +218 -0
  604. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/element/disjoint.hpp +324 -0
  605. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/element/inter.hpp +308 -0
  606. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/element/union.hpp +342 -0
  607. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/element/unionConst.hpp +293 -0
  608. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/exception.hpp +146 -0
  609. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/exec.cpp +58 -0
  610. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/int.cpp +191 -0
  611. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/int.hh +459 -0
  612. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/int/card.hpp +93 -0
  613. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/int/channel-bool.hpp +282 -0
  614. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/int/channel-int.hpp +158 -0
  615. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/int/match.hpp +199 -0
  616. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/int/minmax.hpp +645 -0
  617. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/int/weights.hpp +353 -0
  618. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/limits.hpp +62 -0
  619. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/precede.cpp +74 -0
  620. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/precede.hh +115 -0
  621. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/precede/single.hpp +255 -0
  622. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op-const-cvc.cpp +66 -0
  623. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op-const-cvv.cpp +65 -0
  624. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op-const-vcc.cpp +168 -0
  625. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op-const-vcv.cpp +166 -0
  626. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op-const-vvc.cpp +63 -0
  627. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op-singleton.cpp +115 -0
  628. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op-ternary.cpp +60 -0
  629. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op.cpp +105 -0
  630. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op.hh +297 -0
  631. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/common.hpp +619 -0
  632. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/inter.hpp +389 -0
  633. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/partition.hpp +164 -0
  634. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/post-compl-cvc.cpp +58 -0
  635. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/post-compl-cvv.cpp +54 -0
  636. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/post-compl-vvc.cpp +57 -0
  637. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/post-compl.cpp +54 -0
  638. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/post-nocompl-cvc.cpp +55 -0
  639. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/post-nocompl-cvv.cpp +54 -0
  640. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/post-nocompl-vvc.cpp +54 -0
  641. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/post-nocompl.cpp +54 -0
  642. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/post.hpp +266 -0
  643. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/subofunion.hpp +166 -0
  644. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/superofinter.hpp +167 -0
  645. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel-op/union.hpp +319 -0
  646. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel.cpp +232 -0
  647. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel.hh +322 -0
  648. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel/common.hpp +125 -0
  649. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel/eq.hpp +116 -0
  650. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel/lq.hpp +417 -0
  651. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel/nosubset.hpp +104 -0
  652. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel/nq.hpp +160 -0
  653. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel/re-eq.hpp +152 -0
  654. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel/re-lq.hpp +182 -0
  655. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel/re-subset.hpp +146 -0
  656. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/rel/subset.hpp +96 -0
  657. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/sequence.cpp +64 -0
  658. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/sequence.hh +115 -0
  659. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/sequence/common.hpp +100 -0
  660. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/sequence/seq-u.cpp +145 -0
  661. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/sequence/seq-u.hpp +79 -0
  662. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/sequence/seq.cpp +76 -0
  663. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/sequence/seq.hpp +69 -0
  664. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/var-imp.hpp +634 -0
  665. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/var-imp/delta.hpp +78 -0
  666. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/var-imp/integerset.cpp +348 -0
  667. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/var-imp/integerset.hpp +426 -0
  668. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/var-imp/iter.hpp +63 -0
  669. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/var-imp/set.cpp +142 -0
  670. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/var-imp/set.hpp +531 -0
  671. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/var-imp/set.vis +197 -0
  672. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/var/print.hpp +49 -0
  673. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/var/set.cpp +111 -0
  674. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/var/set.hpp +254 -0
  675. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/view.hpp +1142 -0
  676. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/view/cached.hpp +399 -0
  677. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/view/complement.hpp +556 -0
  678. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/view/const.hpp +723 -0
  679. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/view/print.hpp +140 -0
  680. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/view/set.hpp +263 -0
  681. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/set/view/singleton.hpp +402 -0
  682. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support.hh +135 -0
  683. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/auto-link.hpp +73 -0
  684. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/bitset-base.hpp +379 -0
  685. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/bitset.hpp +81 -0
  686. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/block-allocator.hpp +169 -0
  687. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/cast.hpp +52 -0
  688. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/config.hpp.in +109 -0
  689. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/dynamic-array.hpp +140 -0
  690. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/dynamic-queue.hpp +156 -0
  691. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/dynamic-stack.hpp +186 -0
  692. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/exception.cpp +65 -0
  693. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/exception.hpp +102 -0
  694. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/heap.cpp +49 -0
  695. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/heap.hpp +593 -0
  696. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/int-type.hpp +172 -0
  697. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/macros.hpp +103 -0
  698. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/marked-pointer.hpp +79 -0
  699. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/random.hpp +128 -0
  700. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/sort.hpp +268 -0
  701. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/static-stack.hpp +148 -0
  702. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/thread.hpp +272 -0
  703. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/thread/none.hpp +87 -0
  704. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/thread/pthreads.cpp +66 -0
  705. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/thread/pthreads.hpp +142 -0
  706. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/thread/thread.cpp +72 -0
  707. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/thread/thread.hpp +114 -0
  708. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/thread/windows.cpp +68 -0
  709. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/thread/windows.hpp +108 -0
  710. data/ext/libgecode3/vendor/gecode-3.7.3/gecode/support/timer.hpp +103 -0
  711. data/ext/libgecode3/vendor/gecode-3.7.3/install-sh +323 -0
  712. data/ext/libgecode3/vendor/gecode-3.7.3/misc/allexamples.perl +60 -0
  713. data/ext/libgecode3/vendor/gecode-3.7.3/misc/doxygen/back.png +0 -0
  714. data/ext/libgecode3/vendor/gecode-3.7.3/misc/doxygen/footer.html +3 -0
  715. data/ext/libgecode3/vendor/gecode-3.7.3/misc/doxygen/gecode-logo-100.png +0 -0
  716. data/ext/libgecode3/vendor/gecode-3.7.3/misc/doxygen/header.html +66 -0
  717. data/ext/libgecode3/vendor/gecode-3.7.3/misc/doxygen/stylesheet.css +468 -0
  718. data/ext/libgecode3/vendor/gecode-3.7.3/misc/fixautoheader.perl +55 -0
  719. data/ext/libgecode3/vendor/gecode-3.7.3/misc/fixmanifest.perl +84 -0
  720. data/ext/libgecode3/vendor/gecode-3.7.3/misc/fixproperties.sh +98 -0
  721. data/ext/libgecode3/vendor/gecode-3.7.3/misc/gecode-logo.ico +0 -0
  722. data/ext/libgecode3/vendor/gecode-3.7.3/misc/genbranch.perl +310 -0
  723. data/ext/libgecode3/vendor/gecode-3.7.3/misc/genchangelog.perl +249 -0
  724. data/ext/libgecode3/vendor/gecode-3.7.3/misc/gencurrentchangelog.perl +191 -0
  725. data/ext/libgecode3/vendor/gecode-3.7.3/misc/genlcovmakefile.perl +148 -0
  726. data/ext/libgecode3/vendor/gecode-3.7.3/misc/genlicense.perl +121 -0
  727. data/ext/libgecode3/vendor/gecode-3.7.3/misc/genrc.perl +236 -0
  728. data/ext/libgecode3/vendor/gecode-3.7.3/misc/genstatistics.perl +178 -0
  729. data/ext/libgecode3/vendor/gecode-3.7.3/misc/gentxtchangelog.perl +198 -0
  730. data/ext/libgecode3/vendor/gecode-3.7.3/misc/genvarimp.perl +877 -0
  731. data/ext/libgecode3/vendor/gecode-3.7.3/misc/genxcodeproj.perl +144 -0
  732. data/ext/libgecode3/vendor/gecode-3.7.3/misc/getrevision.perl +47 -0
  733. data/ext/libgecode3/vendor/gecode-3.7.3/misc/makedepend.perl +85 -0
  734. data/ext/libgecode3/vendor/gecode-3.7.3/misc/svn-ignore-root.txt +43 -0
  735. data/ext/libgecode3/vendor/gecode-3.7.3/misc/svn-ignore.txt +18 -0
  736. data/ext/libgecode3/vendor/gecode-3.7.3/test/afc.cpp +143 -0
  737. data/ext/libgecode3/vendor/gecode-3.7.3/test/array.cpp +277 -0
  738. data/ext/libgecode3/vendor/gecode-3.7.3/test/assign.cpp +278 -0
  739. data/ext/libgecode3/vendor/gecode-3.7.3/test/assign.hh +119 -0
  740. data/ext/libgecode3/vendor/gecode-3.7.3/test/assign/bool.cpp +61 -0
  741. data/ext/libgecode3/vendor/gecode-3.7.3/test/assign/int.cpp +70 -0
  742. data/ext/libgecode3/vendor/gecode-3.7.3/test/assign/set.cpp +72 -0
  743. data/ext/libgecode3/vendor/gecode-3.7.3/test/branch.cpp +504 -0
  744. data/ext/libgecode3/vendor/gecode-3.7.3/test/branch.hh +119 -0
  745. data/ext/libgecode3/vendor/gecode-3.7.3/test/branch/bool.cpp +61 -0
  746. data/ext/libgecode3/vendor/gecode-3.7.3/test/branch/int.cpp +70 -0
  747. data/ext/libgecode3/vendor/gecode-3.7.3/test/branch/set.cpp +72 -0
  748. data/ext/libgecode3/vendor/gecode-3.7.3/test/int.cpp +655 -0
  749. data/ext/libgecode3/vendor/gecode-3.7.3/test/int.hh +353 -0
  750. data/ext/libgecode3/vendor/gecode-3.7.3/test/int.hpp +314 -0
  751. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/arithmetic.cpp +772 -0
  752. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/basic.cpp +82 -0
  753. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/bin-packing.cpp +237 -0
  754. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/bool.cpp +500 -0
  755. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/channel.cpp +234 -0
  756. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/circuit.cpp +359 -0
  757. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/count.cpp +410 -0
  758. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/cumulative.cpp +560 -0
  759. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/cumulatives.cpp +276 -0
  760. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/distinct.cpp +248 -0
  761. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/dom.cpp +174 -0
  762. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/element.cpp +602 -0
  763. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/exec.cpp +150 -0
  764. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/extensional.cpp +571 -0
  765. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/gcc.cpp +320 -0
  766. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/linear.cpp +394 -0
  767. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/member.cpp +138 -0
  768. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/mm-arithmetic.cpp +368 -0
  769. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/mm-bool.cpp +4344 -0
  770. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/mm-count.cpp +295 -0
  771. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/mm-lin.cpp +2179 -0
  772. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/mm-rel.cpp +136 -0
  773. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/no-overlap.cpp +259 -0
  774. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/nvalues.cpp +241 -0
  775. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/precede.cpp +115 -0
  776. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/rel.cpp +568 -0
  777. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/sequence.cpp +168 -0
  778. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/sorted.cpp +165 -0
  779. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/unary.cpp +327 -0
  780. data/ext/libgecode3/vendor/gecode-3.7.3/test/int/unshare.cpp +109 -0
  781. data/ext/libgecode3/vendor/gecode-3.7.3/test/search.cpp +487 -0
  782. data/ext/libgecode3/vendor/gecode-3.7.3/test/set.cpp +638 -0
  783. data/ext/libgecode3/vendor/gecode-3.7.3/test/set.hh +362 -0
  784. data/ext/libgecode3/vendor/gecode-3.7.3/test/set.hpp +121 -0
  785. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/construct.cpp +225 -0
  786. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/convex.cpp +139 -0
  787. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/distinct.cpp +116 -0
  788. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/dom.cpp +346 -0
  789. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/element.cpp +397 -0
  790. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/exec.cpp +86 -0
  791. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/int.cpp +532 -0
  792. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/mm-set.cpp +4532 -0
  793. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/precede.cpp +136 -0
  794. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/rel-op-const.cpp +368 -0
  795. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/rel-op.cpp +504 -0
  796. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/rel.cpp +157 -0
  797. data/ext/libgecode3/vendor/gecode-3.7.3/test/set/sequence.cpp +133 -0
  798. data/ext/libgecode3/vendor/gecode-3.7.3/test/test.cpp +281 -0
  799. data/ext/libgecode3/vendor/gecode-3.7.3/test/test.hh +161 -0
  800. data/ext/libgecode3/vendor/gecode-3.7.3/test/test.hpp +76 -0
  801. data/ext/libgecode3/vendor/gecode-3.7.3/tools/flatzinc/fz.cpp +93 -0
  802. data/ext/libgecode3/vendor/gecode-3.7.3/tools/flatzinc/mzn-gecode.bat.in +41 -0
  803. data/ext/libgecode3/vendor/gecode-3.7.3/tools/flatzinc/mzn-gecode.in +41 -0
  804. data/lib/dep-selector-libgecode.rb +15 -0
  805. data/lib/dep-selector-libgecode/version.rb +3 -0
  806. metadata +878 -0
@@ -0,0 +1,132 @@
1
+ /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Main authors:
4
+ * Christian Schulte <schulte@gecode.org>
5
+ *
6
+ * Copyright:
7
+ * Christian Schulte, 2001
8
+ *
9
+ * Last modified:
10
+ * $Date: 2010-10-07 20:52:01 +1100 (Thu, 07 Oct 2010) $ by $Author: schulte $
11
+ * $Revision: 11473 $
12
+ *
13
+ * This file is part of Gecode, the generic constraint
14
+ * development environment:
15
+ * http://www.gecode.org
16
+ *
17
+ * Permission is hereby granted, free of charge, to any person obtaining
18
+ * a copy of this software and associated documentation files (the
19
+ * "Software"), to deal in the Software without restriction, including
20
+ * without limitation the rights to use, copy, modify, merge, publish,
21
+ * distribute, sublicense, and/or sell copies of the Software, and to
22
+ * permit persons to whom the Software is furnished to do so, subject to
23
+ * the following conditions:
24
+ *
25
+ * The above copyright notice and this permission notice shall be
26
+ * included in all copies or substantial portions of the Software.
27
+ *
28
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
32
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
33
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
34
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35
+ *
36
+ */
37
+
38
+ #include <gecode/driver.hh>
39
+ #include <gecode/int.hh>
40
+ #include <gecode/minimodel.hh>
41
+
42
+ using namespace Gecode;
43
+
44
+ /**
45
+ * \brief %Example: SEND+MORE=MONEY puzzle
46
+ *
47
+ * Well-known cryptoarithmetic puzzle.
48
+ * Henry Dudeney, Strand Magazine, July 1924.
49
+ *
50
+ * \ingroup Example
51
+ *
52
+ */
53
+ class Money : public Script {
54
+ protected:
55
+ /// Number of letters
56
+ static const int nl = 8;
57
+ /// Array of letters
58
+ IntVarArray le;
59
+ public:
60
+ /// Model variants
61
+ enum {
62
+ MODEL_SINGLE, ///< Use single linear equation
63
+ MODEL_CARRY ///< Use carries
64
+ };
65
+ /// Actual model
66
+ Money(const Options& opt) : le(*this,nl,0,9) {
67
+ IntVar
68
+ s(le[0]), e(le[1]), n(le[2]), d(le[3]),
69
+ m(le[4]), o(le[5]), r(le[6]), y(le[7]);
70
+
71
+ rel(*this, s, IRT_NQ, 0);
72
+ rel(*this, m, IRT_NQ, 0);
73
+
74
+ distinct(*this, le, opt.icl());
75
+
76
+ switch (opt.model()) {
77
+ case MODEL_SINGLE:
78
+ rel(*this, 1000*s+100*e+10*n+d
79
+ + 1000*m+100*o+10*r+e
80
+ == 10000*m+1000*o+100*n+10*e+y,
81
+ opt.icl());
82
+ break;
83
+ case MODEL_CARRY:
84
+ {
85
+ IntVar c0(*this,0,1), c1(*this,0,1), c2(*this,0,1), c3(*this,0,1);
86
+ rel(*this, d+e == y+10*c0, opt.icl());
87
+ rel(*this, c0+n+r == e+10*c1, opt.icl());
88
+ rel(*this, c1+e+o == n+10*c2, opt.icl());
89
+ rel(*this, c2+s+m == o+10*c3, opt.icl());
90
+ rel(*this, c3 == m, opt.icl());
91
+ }
92
+ break;
93
+ default: GECODE_NEVER;
94
+ }
95
+
96
+ branch(*this, le, INT_VAR_SIZE_MIN, INT_VAL_MIN);
97
+ }
98
+ /// Print solution
99
+ virtual void
100
+ print(std::ostream& os) const {
101
+ os << "\t" << le << std::endl;
102
+ }
103
+
104
+ /// Constructor for cloning \a s
105
+ Money(bool share, Money& s) : Script(share,s) {
106
+ le.update(*this, share, s.le);
107
+ }
108
+ /// Copy during cloning
109
+ virtual Space*
110
+ copy(bool share) {
111
+ return new Money(share,*this);
112
+ }
113
+ };
114
+
115
+ /** \brief Main-function
116
+ * \relates Money
117
+ */
118
+ int
119
+ main(int argc, char* argv[]) {
120
+ Options opt("SEND+MORE=MONEY");
121
+ opt.model(Money::MODEL_SINGLE);
122
+ opt.model(Money::MODEL_SINGLE, "single", "use single linear equation");
123
+ opt.model(Money::MODEL_CARRY, "carry", "use carry");
124
+ opt.solutions(0);
125
+ opt.iterations(20000);
126
+ opt.parse(argc,argv);
127
+ Script::run<Money,DFS,Options>(opt);
128
+ return 0;
129
+ }
130
+
131
+ // STATISTICS: example-any
132
+
@@ -0,0 +1,1215 @@
1
+ /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Main authors:
4
+ * Mikael Lagerkvist <lagerkvist@gecode.org>
5
+ *
6
+ * Copyright:
7
+ * Mikael Lagerkvist, 2005
8
+ *
9
+ * Last modified:
10
+ * $Date: 2010-10-07 20:52:01 +1100 (Thu, 07 Oct 2010) $ by $Author: schulte $
11
+ * $Revision: 11473 $
12
+ *
13
+ * This file is part of Gecode, the generic constraint
14
+ * development environment:
15
+ * http://www.gecode.org
16
+ *
17
+ * Permission is hereby granted, free of charge, to any person obtaining
18
+ * a copy of this software and associated documentation files (the
19
+ * "Software"), to deal in the Software without restriction, including
20
+ * without limitation the rights to use, copy, modify, merge, publish,
21
+ * distribute, sublicense, and/or sell copies of the Software, and to
22
+ * permit persons to whom the Software is furnished to do so, subject to
23
+ * the following conditions:
24
+ *
25
+ * The above copyright notice and this permission notice shall be
26
+ * included in all copies or substantial portions of the Software.
27
+ *
28
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
32
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
33
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
34
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35
+ *
36
+ */
37
+
38
+ #include <gecode/driver.hh>
39
+ #include <gecode/int.hh>
40
+ #include <gecode/minimodel.hh>
41
+
42
+
43
+ using namespace Gecode;
44
+
45
+ namespace {
46
+
47
+ /// List of specifications
48
+ extern const int* specs[];
49
+ /// Number of specifications
50
+ extern const unsigned int n_examples;
51
+
52
+ /// Structure for computing the slack of rows/cols.
53
+ struct Slack {
54
+ int slack, n;
55
+ bool row;
56
+ bool operator<(const Slack& rhs) const { return slack < rhs.slack; }
57
+ };
58
+ }
59
+
60
+ /**
61
+ * \brief %Example: %Nonogram
62
+ *
63
+ * This example solves nonograms. A nonogram is composed of a matrix of
64
+ * markers. For each row/column there is a specification on how many groups
65
+ * of markers (separated by one or more unmarked spots) and their length.
66
+ * The objective is to find a valid assignment, which incidentally may also
67
+ * produce a pretty picture.
68
+ *
69
+ * See problem 12 at http://www.csplib.org/.
70
+ *
71
+ * Note that "Modeling and Programming with Gecode" uses this example
72
+ * as a case study.
73
+ *
74
+ * \ingroup Example
75
+ *
76
+ */
77
+ class Nonogram : public Script {
78
+ protected:
79
+ /// Specification to be used
80
+ const int* spec;
81
+ /// Fields of board
82
+ BoolVarArray b;
83
+
84
+ /// Return width of board
85
+ int width(void) const {
86
+ return spec[0];
87
+ }
88
+ /// Return height of board
89
+ int height(void) const {
90
+ return spec[1];
91
+ }
92
+
93
+ /// Returns next regular expression for line starting from spos
94
+ DFA line(int& spos) {
95
+ REG r0(0), r1(1);
96
+ REG border = *r0;
97
+ REG between = +r0;
98
+ int hints = spec[spos++];
99
+ REG r = border;
100
+ if (hints > 0) {
101
+ r += r1(spec[spos],spec[spos]);
102
+ spos++;
103
+ for (int i=hints-1; i--; spos++)
104
+ r += between + r1(spec[spos],spec[spos]);
105
+ }
106
+ return r + border;
107
+ }
108
+
109
+ public:
110
+ // Branching variants
111
+ enum {
112
+ BRANCH_NONE, ///< Branch on rows/columns in order
113
+ BRANCH_AFC, ///< Use AFC for branching
114
+ };
115
+
116
+ /// Construction of the model.
117
+ Nonogram(const SizeOptions& opt)
118
+ : spec(specs[opt.size()]), b(*this,width()*height(),0,1) {
119
+ Matrix<BoolVarArray> m(b, width(), height());
120
+
121
+ {
122
+ int spos = 2;
123
+ // Post constraints for columns
124
+ for (int w=0; w<width(); w++)
125
+ extensional(*this, m.col(w), line(spos));
126
+ // Post constraints for rows
127
+ for (int h=0; h<height(); h++)
128
+ extensional(*this, m.row(h), line(spos));
129
+ }
130
+
131
+
132
+
133
+ switch (opt.branching()) {
134
+ case BRANCH_NONE:
135
+ {
136
+ /*
137
+ * The following branches either by columns or rows, depending on
138
+ * whether there are more hints relative to the height or width
139
+ * for columns or rows.
140
+ *
141
+ * This idea is due to Pascal Van Hentenryck and has been suggested
142
+ * to us by Hakan Kjellerstrand.
143
+ */
144
+
145
+ // Number of hints for columns
146
+ int cols = 0;
147
+ // Number of hints for rows
148
+ int rows = 0;
149
+ int spos = 2;
150
+ for (int w=0; w<width(); w++) {
151
+ int hint = spec[spos++];
152
+ cols += hint; spos += hint;
153
+ }
154
+ for (int h=0; h<height(); h++) {
155
+ int hint = spec[spos++];
156
+ rows += hint; spos += hint;
157
+ }
158
+
159
+ if (rows*width() > cols*height()) {
160
+ for (int w=0; w<width(); w++)
161
+ branch(*this, m.col(w), INT_VAR_NONE, INT_VAL_MAX);
162
+ } else {
163
+ for (int h=0; h<height(); h++)
164
+ branch(*this, m.row(h), INT_VAR_NONE, INT_VAL_MAX);
165
+ }
166
+ }
167
+ break;
168
+ case BRANCH_AFC:
169
+ /*
170
+ * The following just uses the AFC for branching. This is
171
+ * equivalent to SIZE/AFC in this case since the variables are
172
+ * binary.
173
+ */
174
+ branch(*this, b, INT_VAR_AFC_MAX, INT_VAL_MAX);
175
+ break;
176
+ }
177
+ }
178
+
179
+ /// Constructor for cloning \a s
180
+ Nonogram(bool share, Nonogram& s) : Script(share,s), spec(s.spec) {
181
+ b.update(*this, share, s.b);
182
+ }
183
+
184
+ /// Copy space during cloning
185
+ virtual Space*
186
+ copy(bool share) {
187
+ return new Nonogram(share,*this);
188
+ }
189
+
190
+ /// Print solution
191
+ virtual void
192
+ print(std::ostream& os) const {
193
+ Matrix<BoolVarArray> m(b, width(), height());
194
+ for (int h = 0; h < height(); ++h) {
195
+ os << '\t';
196
+ for (int w = 0; w < width(); ++w)
197
+ os << ((m(w,h).val() == 1) ? '#' : ' ');
198
+ os << std::endl;
199
+ }
200
+ os << std::endl;
201
+ }
202
+ };
203
+
204
+
205
+ /** \brief Main-function
206
+ * \relates Nonogram
207
+ */
208
+ int
209
+ main(int argc, char* argv[]) {
210
+ SizeOptions opt("Nonogram");
211
+ opt.size(8);
212
+ opt.branching(Nonogram::BRANCH_AFC);
213
+ opt.branching(Nonogram::BRANCH_NONE, "none",
214
+ "Branch on rows/columns in order");
215
+ opt.branching(Nonogram::BRANCH_AFC, "afc",
216
+ "Use AFC for branching");
217
+ opt.parse(argc,argv);
218
+ if (opt.size() >= n_examples) {
219
+ std::cerr << "Error: size must be between 0 and "
220
+ << n_examples-1 << std::endl;
221
+ return 1;
222
+ }
223
+ Script::run<Nonogram,DFS,SizeOptions>(opt);
224
+ return 0;
225
+ }
226
+
227
+ namespace {
228
+
229
+ /** \name Picture specifications
230
+ *
231
+ * A specification is given by a list of integers. The first two
232
+ * integers (w and h) specify the number of columns and rows
233
+ * respectively. Then w + h groups of integers follows. Each group is
234
+ * started by the number of integers it contains (n), followed by n integers
235
+ * specifying the sizes of the stretches of markers in that row/column.
236
+ *
237
+ * \relates Nonogram
238
+ */
239
+ //@{
240
+ /// Specification for a heart-shaped picture.
241
+ const int heart[] =
242
+ { 9, 9,
243
+ // Column constraints.
244
+ 1, 3,
245
+ 2, 2, 3,
246
+ 2, 2, 2,
247
+ 2, 2, 2,
248
+ 2, 2, 2,
249
+ 2, 2, 2,
250
+ 2, 2, 2,
251
+ 2, 2, 3,
252
+ 1, 3,
253
+ // Row constraints
254
+ 2, 2, 2,
255
+ 2, 4, 4,
256
+ 3, 1, 3, 1,
257
+ 3, 2, 1, 2,
258
+ 2, 1, 1,
259
+ 2, 2, 2,
260
+ 2, 2, 2,
261
+ 1, 3,
262
+ 1, 1
263
+ };
264
+
265
+ /// Specification for a bear/bunny-shaped picture.
266
+ const int bear[] =
267
+ { 13, 8,
268
+ // Column constraints
269
+ 1, 2,
270
+ 2, 2, 1,
271
+ 2, 3, 2,
272
+ 1, 6,
273
+ 2, 1, 4,
274
+ 1, 3,
275
+ 1, 4,
276
+ 1, 4,
277
+ 1, 4,
278
+ 1, 5,
279
+ 1, 4,
280
+ 2, 1, 3,
281
+ 1, 2,
282
+ // Row constraints
283
+ 1, 1,
284
+ 1, 2,
285
+ 2, 4, 4,
286
+ 1, 12,
287
+ 1, 8,
288
+ 1, 9,
289
+ 2, 3, 4,
290
+ 2, 2, 2
291
+ };
292
+
293
+ /// Specification for a crocodile-shaped picture
294
+ const int crocodile[] =
295
+ { 15, 9,
296
+ // Column constraints
297
+ 1, 3,
298
+ 1, 4,
299
+ 2, 2, 2,
300
+ 2, 3, 1,
301
+ 2, 2, 3,
302
+ 2, 3, 2,
303
+ 2, 2, 3,
304
+ 2, 4, 2,
305
+ 2, 3, 2,
306
+ 1, 6,
307
+ 2, 1, 3,
308
+ 2, 1, 3,
309
+ 2, 1, 4,
310
+ 1, 5,
311
+ 1, 5,
312
+ // Row constraints
313
+ 1, 3,
314
+ 3, 2, 3, 2,
315
+ 2, 10, 3,
316
+ 1, 15,
317
+ 5, 1, 1, 1, 1, 6,
318
+ 2, 1, 7,
319
+ 2, 1, 4,
320
+ 2, 1, 4,
321
+ 1, 4
322
+ };
323
+
324
+ /// Specification for an unknown picture
325
+ const int unknown[] =
326
+ { 10, 10,
327
+ // Column constraints
328
+ 1, 3,
329
+ 2, 2, 1,
330
+ 2, 2, 2,
331
+ 2, 2, 1,
332
+ 3, 1, 2, 1,
333
+ 2, 1, 1,
334
+ 3, 1, 4, 1,
335
+ 3, 1, 1, 2,
336
+ 2, 3, 1,
337
+ 1, 4,
338
+ // Row constraints
339
+ 1, 3,
340
+ 2, 2, 1,
341
+ 2, 1, 1,
342
+ 2, 1, 4,
343
+ 4, 1, 1, 1, 1,
344
+ 4, 2, 1, 1, 1,
345
+ 3, 2, 1, 1,
346
+ 2, 1, 2,
347
+ 2, 2, 3,
348
+ 1, 3
349
+ };
350
+
351
+ /// Specification for a pinwheel-picture
352
+ const int pinwheel[] =
353
+ { 6, 6,
354
+ // Column constraints
355
+ 2, 1, 2,
356
+ 1, 1,
357
+ 1, 2,
358
+ 1, 2,
359
+ 1, 1,
360
+ 2, 2, 1,
361
+ // Row constraints
362
+ 2, 2, 1,
363
+ 1, 1,
364
+ 1, 2,
365
+ 1, 2,
366
+ 1, 1,
367
+ 2, 1, 2
368
+ };
369
+
370
+ /// Specification for a more difficult picture.
371
+ const int difficult[] =
372
+ { 15, 15,
373
+ // Column constraints
374
+ 1, 3,
375
+ 1, 2,
376
+ 1, 2,
377
+ 1, 1,
378
+ 1, 2,
379
+ 1, 3,
380
+ 1, 2,
381
+ 1, 4,
382
+ 1, 3,
383
+ 1, 4,
384
+ 2, 2, 1,
385
+ 2, 1, 1,
386
+ 2, 1, 1,
387
+ 2, 1, 1,
388
+ 1, 3,
389
+ // Row constraints
390
+ 1, 3,
391
+ 2, 1, 1,
392
+ 2, 1, 1,
393
+ 2, 1, 1,
394
+ 2, 1, 2,
395
+ 1, 5,
396
+ 1, 1,
397
+ 1, 2,
398
+ 1, 1,
399
+ 1, 1,
400
+ 2, 1, 2,
401
+ 2, 1, 2,
402
+ 2, 2, 1,
403
+ 2, 2, 2,
404
+ 1, 3
405
+ };
406
+
407
+ /// Specification for a non-unique picture
408
+ const int non_unique[] =
409
+ { 11, 15,
410
+ // Column constraints
411
+ 1, 5,
412
+ 3, 1, 2, 4,
413
+ 3, 2, 1, 3,
414
+ 4, 2, 2, 1, 1,
415
+ 4, 1, 1, 1, 1,
416
+ 2, 1, 5,
417
+ 5, 2, 1, 1, 3, 2,
418
+ 5, 2, 1, 1, 1, 1,
419
+ 3, 1, 4, 1,
420
+ 2, 1, 1,
421
+ 1, 1,
422
+ // Row constraints
423
+ 2, 2, 2,
424
+ 2, 2, 2,
425
+ 1, 4,
426
+ 2, 1, 1,
427
+ 2, 1, 1,
428
+ 4, 1, 1, 1, 1,
429
+ 2, 1, 1,
430
+ 2, 1, 4,
431
+ 3, 1, 1, 1,
432
+ 3, 1, 1, 4,
433
+ 2, 1, 3,
434
+ 2, 1, 2,
435
+ 1, 5,
436
+ 2, 2, 2,
437
+ 2, 3, 3
438
+ };
439
+
440
+ /** \brief Specification for a dragonfly-picture.
441
+ *
442
+ * From http://www.oberlin.edu/math/faculty/bosch/pbn-page.html, where
443
+ * it is claimed that it is hard.
444
+ */
445
+ const int dragonfly[] =
446
+ { 20, 20,
447
+ // Column constraints.
448
+ 4, 1, 1, 1, 2,
449
+ 5, 3, 1, 2, 1, 1,
450
+ 5, 1, 4, 2, 1, 1,
451
+ 4, 1, 3, 2, 4,
452
+ 4, 1, 4, 6, 1,
453
+ 3, 1, 11, 1,
454
+ 4, 5, 1, 6, 2,
455
+ 1, 14,
456
+ 2, 7, 2,
457
+ 2, 7, 2,
458
+ 3, 6, 1, 1,
459
+ 2, 9, 2,
460
+ 4, 3, 1, 1, 1,
461
+ 3, 3, 1, 3,
462
+ 3, 2, 1, 3,
463
+ 3, 2, 1, 5,
464
+ 3, 3, 2, 2,
465
+ 3, 3, 3, 2,
466
+ 3, 2, 3, 2,
467
+ 2, 2, 6,
468
+ // Row constraints
469
+ 2, 7, 1,
470
+ 3, 1, 1, 2,
471
+ 3, 2, 1, 2,
472
+ 3, 1, 2, 2,
473
+ 3, 4, 2, 3,
474
+ 3, 3, 1, 4,
475
+ 3, 3, 1, 3,
476
+ 3, 2, 1, 4,
477
+ 2, 2, 9,
478
+ 3, 2, 1, 5,
479
+ 2, 2, 7,
480
+ 1, 14,
481
+ 2, 8, 2,
482
+ 3, 6, 2, 2,
483
+ 4, 2, 8, 1, 3,
484
+ 4, 1, 5, 5, 2,
485
+ 5, 1, 3, 2, 4, 1,
486
+ 5, 3, 1, 2, 4, 1,
487
+ 5, 1, 1, 3, 1, 3,
488
+ 4, 2, 1, 1, 2
489
+ };
490
+
491
+ /// From http://www.cs.kuleuven.be/~bmd/nonogram.pl
492
+ const int castle[] = {
493
+ 60, 35,
494
+ // Column constraints
495
+ 7, 2,3,1,5,1,7,1,
496
+ 7, 2,4,2,3,2,3,5,
497
+ 8, 2,6,3,1,1,5,1,5,
498
+ 10, 2,4,2,1,1,1,4,1,1,2,
499
+ 7, 2,8,2,1,5,2,5,
500
+ 7, 3,1,6,2,5,1,5,
501
+ 9, 3,3,3,1,1,6,1,1,1,
502
+ 9, 3,2,2,2,2,8,1,1,3,
503
+ 7, 1,4,4,3,7,1,1,
504
+ 7, 1,2,2,2,3,7,9,
505
+ 8, 1,2,3,1,1,5,2,2,
506
+ 7, 2,2,3,1,1,6,1,
507
+ 6, 1,3,1,5,4,1,
508
+ 8, 1,3,1,1,6,1,3,1,
509
+ 8, 3,3,4,5,1,4,2,1,
510
+ 6, 2,3,3,9,7,1,
511
+ 8, 2,3,2,2,1,1,3,5,
512
+ 8, 4,2,1,1,1,1,2,3,
513
+ 7, 4,2,2,1,4,3,2,
514
+ 4, 4,3,16,2,
515
+ 5, 1,2,5,7,1,
516
+ 6, 4,3,2,2,7,1,
517
+ 5, 2,3,1,10,1,
518
+ 6, 2,4,2,1,4,1,
519
+ 5, 1,6,7,3,1,
520
+ 4, 3,11,3,1,
521
+ 5, 7,1,11,2,1,
522
+ 7, 2,2,2,2,2,2,2,
523
+ 7, 3,1,1,1,1,2,1,
524
+ 7, 2,2,2,2,1,1,1,
525
+ 7, 1,1,1,1,2,1,2,
526
+ 8, 2,2,2,2,1,1,1,1,
527
+ 5, 4,1,1,2,2,
528
+ 5, 5,2,17,2,1,
529
+ 6, 9,2,3,1,4,2,
530
+ 6, 9,4,2,1,1,1,
531
+ 5, 5,4,2,1,4,
532
+ 7, 11,1,2,1,4,1,2,
533
+ 5, 3,4,2,4,4,
534
+ 8, 2,1,4,1,2,1,5,2,
535
+ 5, 8,4,1,1,2,
536
+ 5, 1,1,3,2,3,
537
+ 6, 1,3,1,8,1,6,
538
+ 4, 2,1,7,14,
539
+ 7, 1,2,4,4,1,2,3,
540
+ 10, 1,1,4,2,1,1,1,1,1,4,
541
+ 6, 3,5,3,1,1,4,
542
+ 6, 2,4,2,2,1,2,
543
+ 5, 4,2,3,8,4,
544
+ 5, 4,15,2,2,4,
545
+ 6, 4,1,10,2,1,2,
546
+ 6, 2,12,6,1,2,4,
547
+ 7, 3,1,3,1,3,3,4,
548
+ 6, 3,1,2,3,4,1,
549
+ 7, 5,2,2,2,3,3,3,
550
+ 9, 1,2,2,2,2,4,1,1,3,
551
+ 7, 2,1,4,2,7,1,1,
552
+ 6, 5,2,2,3,6,3,
553
+ 7, 3,3,2,2,3,2,3,
554
+ 7, 4,1,2,1,1,2,1,
555
+
556
+ // Row constraints
557
+ 4, 12,1,1,1,
558
+ 5, 8,6,3,1,3,
559
+ 6, 5,8,4,3,1,5,
560
+ 8, 7,3,4,1,3,5,1,7,
561
+ 13, 2,2,4,9,1,5,1,1,1,1,1,1,1,
562
+ 8, 4,5,10,2,1,8,7,1,
563
+ 7, 5,1,3,3,16,1,2,
564
+ 8, 8,5,1,2,4,9,1,3,
565
+ 12, 4,5,3,14,1,1,1,1,4,1,1,3,
566
+ 19, 3,3,2,2,2,4,1,1,1,1,1,1,1,1,3,1,1,3,2,
567
+ 11, 8,2,7,2,1,1,2,1,1,3,3,
568
+ 13, 1,5,9,12,2,1,1,3,1,1,2,2,1,
569
+ 17, 3,2,2,1,1,1,1,4,1,1,1,3,3,1,1,2,2,
570
+ 12, 5,2,2,2,2,1,5,2,1,1,2,5,
571
+ 12, 3,5,9,2,1,1,6,3,1,3,2,3,
572
+ 12, 1,4,1,1,1,4,1,5,5,3,3,3,
573
+ 10, 4,1,1,1,1,3,4,6,6,3,
574
+ 12, 3,1,3,1,1,3,3,1,1,4,6,1,
575
+ 11, 3,1,5,1,1,3,1,1,9,4,1,
576
+ 14, 2,1,1,7,1,4,1,1,1,1,1,1,3,5,
577
+ 11, 9,2,1,3,1,1,1,1,4,2,1,
578
+ 10, 1,14,1,1,2,2,2,10,1,2,
579
+ 10, 1,9,2,1,2,6,1,5,3,2,
580
+ 12, 1,9,9,1,2,2,3,1,1,4,3,1,
581
+ 10, 10,1,3,4,1,3,2,1,2,8,
582
+ 9, 9,1,3,5,1,1,1,2,7,
583
+ 12, 4,5,1,2,5,1,3,1,1,2,1,3,
584
+ 14, 1,1,1,1,2,6,2,3,2,1,1,2,3,1,
585
+ 11, 1,6,1,5,7,1,3,3,2,4,3,
586
+ 10, 1,2,1,2,9,1,5,2,6,2,
587
+ 8, 10,2,2,13,1,3,3,1,
588
+ 11, 2,2,1,6,2,3,3,2,2,2,1,
589
+ 12, 2,2,1,1,12,2,2,9,2,2,2,2,
590
+ 9, 5,1,2,4,1,5,11,2,2,
591
+ 3, 15,6,18,
592
+ };
593
+
594
+ /** \brief Specification for a picture of cupid.
595
+ *
596
+ * From http://www.icparc.ic.ac.uk/eclipse/examples/nono.ecl.txt, the
597
+ * hardest instance.
598
+ */
599
+ const int p200[] =
600
+ { 25, 25,
601
+ // Column constraints
602
+ 4, 1,1,2,2,
603
+ 3, 5,5,7,
604
+ 4, 5,2,2,9,
605
+ 4, 3,2,3,9,
606
+ 5, 1,1,3,2,7,
607
+ 3, 3,1,5,
608
+ 5, 7,1,1,1,3,
609
+ 6, 1,2,1,1,2,1,
610
+ 3, 4,2,4,
611
+ 4, 1,2,2,2,
612
+ 3, 4,6,2,
613
+ 4, 1,2,2,1,
614
+ 4, 3,3,2,1,
615
+ 3, 4,1,15,
616
+ 6, 1,1,1,3,1,1,
617
+ 6, 2,1,1,2,2,3,
618
+ 4, 1,4,4,1,
619
+ 4, 1,4,3,2,
620
+ 4, 1,1,2,2,
621
+ 5, 7,2,3,1,1,
622
+ 5, 2,1,1,1,5,
623
+ 3, 1,2,5,
624
+ 4, 1,1,1,3,
625
+ 3, 4,2,1,
626
+ 1, 3,
627
+ // Row constraints
628
+ 3, 2,2,3,
629
+ 5, 4,1,1,1,4,
630
+ 5, 4,1,2,1,1,
631
+ 7, 4,1,1,1,1,1,1,
632
+ 6, 2,1,1,2,3,5,
633
+ 6, 1,1,1,1,2,1,
634
+ 5, 3,1,5,1,2,
635
+ 6, 3,2,2,1,2,2,
636
+ 7, 2,1,4,1,1,1,1,
637
+ 6, 2,2,1,2,1,2,
638
+ 6, 1,1,1,3,2,3,
639
+ 5, 1,1,2,7,3,
640
+ 5, 1,2,2,1,5,
641
+ 5, 3,2,2,1,2,
642
+ 4, 3,2,1,2,
643
+ 3, 5,1,2,
644
+ 4, 2,2,1,2,
645
+ 4, 4,2,1,2,
646
+ 4, 6,2,3,2,
647
+ 4, 7,4,3,2,
648
+ 3, 7,4,4,
649
+ 3, 7,1,4,
650
+ 3, 6,1,4,
651
+ 3, 4,2,2,
652
+ 2, 2,1
653
+ };
654
+
655
+ // The following instances are from the http://webpbn.com site and
656
+ // are all designed by Jan Wolter.
657
+ // See also the survey at http://webpbn.com/survey/
658
+
659
+ /// Petro
660
+ const int webpbn436[]=
661
+ { 40, 35,
662
+ // Column constraints
663
+ 1, 1,
664
+ 2, 3, 2,
665
+ 3, 2, 3, 3,
666
+ 3, 3, 3, 3,
667
+ 4, 3, 3, 3, 3,
668
+ 4, 4, 2, 2, 2,
669
+ 4, 3, 3, 2, 3,
670
+ 4, 3, 2, 2, 2,
671
+ 3, 3, 2, 6,
672
+ 2, 2, 9,
673
+ 3, 2, 3, 3,
674
+ 5, 4, 4, 3, 2, 4,
675
+ 5, 7, 2, 5, 2, 6,
676
+ 6, 12, 2, 3, 2, 3, 2,
677
+ 6, 3, 1, 2, 2, 2, 3,
678
+ 6, 2, 2, 3, 2, 2, 2,
679
+ 6, 6, 2, 6, 2, 2, 2,
680
+ 5, 12, 4, 3, 2, 2,
681
+ 4, 12, 2, 2, 2,
682
+ 3, 2, 6, 2,
683
+ 4, 2, 6, 5, 2,
684
+ 4, 10, 9, 2, 2,
685
+ 5, 12, 3, 3, 2, 2,
686
+ 7, 6, 2, 2, 2, 2, 2, 2,
687
+ 6, 2, 2, 3, 2, 2, 2,
688
+ 6, 4, 3, 2, 2, 2, 3,
689
+ 6, 7, 3, 3, 2, 3, 2,
690
+ 5, 5, 3, 5, 2, 6,
691
+ 5, 4, 3, 3, 3, 4,
692
+ 3, 3, 5, 3,
693
+ 2, 3, 9,
694
+ 3, 4, 2, 6,
695
+ 4, 4, 2, 2, 2,
696
+ 4, 4, 2, 2, 3,
697
+ 4, 3, 2, 2, 3,
698
+ 3, 3, 3, 3,
699
+ 3, 3, 3, 3,
700
+ 3, 4, 3, 3,
701
+ 3, 2, 3, 3,
702
+ 2, 2, 1,
703
+ // Row constraints
704
+ 2, 2, 2,
705
+ 3, 2, 3, 2,
706
+ 4, 3, 3, 3, 2,
707
+ 4, 3, 3, 3, 3,
708
+ 6, 2, 3, 3, 3, 3, 2,
709
+ 6, 3, 3, 3, 3, 3, 3,
710
+ 6, 4, 2, 3, 2, 2, 4,
711
+ 7, 4, 2, 2, 2, 2, 3, 1,
712
+ 7, 3, 1, 2, 2, 2, 3, 3,
713
+ 7, 3, 2, 2, 2, 2, 2, 4,
714
+ 5, 3, 2, 15, 2, 4,
715
+ 3, 5, 19, 4,
716
+ 4, 6, 4, 3, 3,
717
+ 3, 6, 4, 4,
718
+ 4, 2, 4, 6, 2,
719
+ 6, 2, 2, 3, 3, 3, 2,
720
+ 6, 9, 2, 2, 2, 3, 9,
721
+ 7, 10, 2, 2, 2, 2, 2, 10,
722
+ 9, 4, 2, 3, 3, 2, 2, 3, 2, 5,
723
+ 5, 2, 5, 2, 4, 2,
724
+ 5, 5, 3, 2, 2, 5,
725
+ 5, 6, 3, 2, 3, 7,
726
+ 4, 6, 8, 9, 7,
727
+ 4, 4, 8, 7, 5,
728
+ 1, 4,
729
+ 1, 2,
730
+ 1, 2,
731
+ 1, 14,
732
+ 1, 16,
733
+ 2, 3, 3,
734
+ 2, 2, 2,
735
+ 2, 2, 2,
736
+ 2, 4, 4,
737
+ 1, 16,
738
+ 1, 12,
739
+ };
740
+
741
+ /// Skid
742
+ const int webpbn21[]=
743
+ { 14, 25,
744
+ // Column constraints
745
+ 1, 2,
746
+ 2, 4, 6,
747
+ 4, 9, 4, 4, 2,
748
+ 4, 1, 6, 2, 6,
749
+ 3, 1, 5, 2,
750
+ 2, 1, 6,
751
+ 2, 1, 5,
752
+ 2, 1, 4,
753
+ 2, 1, 4,
754
+ 3, 1, 4, 2,
755
+ 3, 1, 4, 6,
756
+ 5, 1, 6, 4, 4, 2,
757
+ 3, 9, 2, 6,
758
+ 2, 4, 2,
759
+ // Row constraints
760
+ 1, 9,
761
+ 2, 1, 1,
762
+ 3, 1, 1, 1,
763
+ 3, 1, 3, 1,
764
+ 1, 13,
765
+ 1, 13,
766
+ 1, 13,
767
+ 1, 13,
768
+ 2, 2, 2,
769
+ 2, 2, 2,
770
+ 0,
771
+ 2, 2, 2,
772
+ 2, 2, 2,
773
+ 2, 2, 2,
774
+ 2, 2, 2,
775
+ 2, 2, 2,
776
+ 2, 2, 2,
777
+ 2, 2, 2,
778
+ 2, 2, 2,
779
+ 2, 2, 2,
780
+ 2, 2, 2,
781
+ 2, 2, 2,
782
+ 2, 2, 2,
783
+ 2, 2, 2,
784
+ 2, 2, 2,
785
+ };
786
+
787
+ /// Bucks
788
+ const int webpbn27[]=
789
+ { 27, 23,
790
+ // Column constraints
791
+ 2, 4, 12,
792
+ 3, 6, 1, 1,
793
+ 3, 8, 1, 1,
794
+ 5, 3, 2, 2, 1, 1,
795
+ 6, 2, 1, 1, 2, 1, 6,
796
+ 4, 1, 1, 1, 1,
797
+ 6, 3, 1, 1, 2, 1, 1,
798
+ 5, 3, 2, 3, 1, 1,
799
+ 3, 10, 1, 1,
800
+ 5, 4, 2, 2, 1, 1,
801
+ 6, 3, 1, 1, 2, 1, 1,
802
+ 4, 2, 1, 1, 1,
803
+ 6, 3, 1, 1, 2, 1, 1,
804
+ 5, 3, 2, 3, 1, 6,
805
+ 3, 10, 1, 1,
806
+ 5, 4, 2, 2, 1, 1,
807
+ 6, 3, 1, 1, 2, 1, 1,
808
+ 4, 1, 1, 1, 9,
809
+ 6, 2, 1, 1, 2, 1, 1,
810
+ 5, 2, 2, 3, 1, 3,
811
+ 3, 8, 1, 5,
812
+ 3, 6, 1, 1,
813
+ 3, 4, 9, 1,
814
+ 2, 1, 1,
815
+ 2, 2, 1,
816
+ 2, 1, 1,
817
+ 1, 4,
818
+ // Row constraints
819
+ 1, 11,
820
+ 1, 17,
821
+ 4, 3, 5, 5, 3,
822
+ 4, 2, 2, 2, 1,
823
+ 7, 2, 1, 3, 1, 3, 1, 4,
824
+ 4, 3, 3, 3, 3,
825
+ 7, 5, 1, 3, 1, 3, 1, 3,
826
+ 4, 3, 2, 2, 4,
827
+ 4, 5, 5, 5, 5,
828
+ 1, 23,
829
+ 0,
830
+ 1, 23,
831
+ 2, 1, 1,
832
+ 2, 1, 1,
833
+ 3, 1, 2, 1,
834
+ 4, 1, 1, 1, 1,
835
+ 4, 1, 1, 1, 1,
836
+ 5, 1, 10, 1, 2, 1,
837
+ 7, 1, 1, 1, 1, 1, 1, 3,
838
+ 8, 1, 1, 1, 1, 1, 1, 1, 1,
839
+ 7, 1, 1, 1, 1, 1, 1, 1,
840
+ 6, 1, 1, 1, 1, 2, 2,
841
+ 3, 5, 5, 3,
842
+ };
843
+
844
+ /// Dancer
845
+ const int webpbn1[]=
846
+ { 5, 10,
847
+ // Column constraints
848
+ 2, 2, 1,
849
+ 3, 2, 1, 3,
850
+ 1, 7,
851
+ 2, 1, 3,
852
+ 2, 2, 1,
853
+ // Row constraints
854
+ 1, 2,
855
+ 2, 2, 1,
856
+ 2, 1, 1,
857
+ 1, 3,
858
+ 2, 1, 1,
859
+ 2, 1, 1,
860
+ 1, 2,
861
+ 2, 1, 1,
862
+ 2, 1, 2,
863
+ 1, 2,
864
+ };
865
+
866
+ /// Cat
867
+ const int webpbn6[]=
868
+ { 20, 20,
869
+ // Column constraints
870
+ 1, 5,
871
+ 2, 5, 3,
872
+ 3, 2, 3, 4,
873
+ 3, 1, 7, 2,
874
+ 1, 8,
875
+ 1, 9,
876
+ 1, 9,
877
+ 1, 8,
878
+ 1, 7,
879
+ 1, 8,
880
+ 1, 9,
881
+ 1, 10,
882
+ 1, 13,
883
+ 2, 6, 2,
884
+ 1, 4,
885
+ 1, 6,
886
+ 1, 6,
887
+ 1, 5,
888
+ 1, 6,
889
+ 1, 6,
890
+ // Row constraints
891
+ 1, 2,
892
+ 1, 2,
893
+ 1, 1,
894
+ 1, 1,
895
+ 2, 1, 3,
896
+ 2, 2, 5,
897
+ 4, 1, 7, 1, 1,
898
+ 4, 1, 8, 2, 2,
899
+ 3, 1, 9, 5,
900
+ 2, 2, 16,
901
+ 2, 1, 17,
902
+ 2, 7, 11,
903
+ 3, 5, 5, 3,
904
+ 2, 5, 4,
905
+ 2, 3, 3,
906
+ 2, 2, 2,
907
+ 2, 2, 1,
908
+ 2, 1, 1,
909
+ 2, 2, 2,
910
+ 2, 2, 2,
911
+ };
912
+
913
+ /// Edge
914
+ const int webpbn23[]=
915
+ { 10, 11,
916
+ // Column constraints
917
+ 1, 1,
918
+ 1, 3,
919
+ 1, 1,
920
+ 2, 2, 2,
921
+ 1, 2,
922
+ 1, 4,
923
+ 1, 1,
924
+ 1, 3,
925
+ 1, 3,
926
+ 1, 1,
927
+ // Row constraints
928
+ 1, 1,
929
+ 1, 3,
930
+ 1, 1,
931
+ 1, 2,
932
+ 1, 1,
933
+ 1, 3,
934
+ 1, 3,
935
+ 1, 1,
936
+ 1, 2,
937
+ 1, 2,
938
+ 1, 4,
939
+ };
940
+
941
+ /// Knot
942
+ const int webpbn16[]=
943
+ { 34, 34,
944
+ // Column constraints
945
+ 2, 1, 1,
946
+ 2, 2, 2,
947
+ 2, 3, 3,
948
+ 4, 2, 1, 1, 2,
949
+ 4, 2, 1, 1, 2,
950
+ 4, 1, 1, 1, 1,
951
+ 4, 1, 1, 1, 1,
952
+ 1, 18,
953
+ 6, 2, 1, 1, 1, 1, 2,
954
+ 6, 1, 1, 1, 1, 1, 1,
955
+ 6, 1, 1, 1, 1, 1, 1,
956
+ 1, 26,
957
+ 8, 2, 1, 1, 1, 1, 1, 1, 2,
958
+ 8, 2, 1, 1, 2, 2, 1, 1, 2,
959
+ 8, 2, 1, 1, 2, 2, 1, 1, 2,
960
+ 2, 14, 14,
961
+ 4, 1, 1, 1, 1,
962
+ 4, 1, 1, 1, 1,
963
+ 2, 14, 14,
964
+ 8, 2, 1, 1, 2, 2, 1, 1, 2,
965
+ 8, 2, 1, 1, 2, 2, 1, 1, 2,
966
+ 8, 2, 1, 1, 1, 1, 1, 1, 2,
967
+ 1, 26,
968
+ 6, 1, 1, 1, 1, 1, 1,
969
+ 6, 1, 1, 1, 1, 1, 1,
970
+ 6, 2, 1, 1, 1, 1, 2,
971
+ 1, 18,
972
+ 4, 1, 1, 1, 1,
973
+ 4, 1, 1, 1, 1,
974
+ 4, 2, 1, 1, 2,
975
+ 4, 2, 1, 1, 2,
976
+ 2, 3, 3,
977
+ 2, 2, 2,
978
+ 2, 1, 1,
979
+ // Row constraints
980
+ 2, 1, 1,
981
+ 2, 2, 2,
982
+ 2, 3, 3,
983
+ 4, 2, 1, 1, 2,
984
+ 4, 2, 1, 1, 2,
985
+ 4, 1, 1, 1, 1,
986
+ 4, 1, 1, 1, 1,
987
+ 1, 18,
988
+ 6, 2, 1, 1, 1, 1, 2,
989
+ 6, 1, 1, 1, 1, 1, 1,
990
+ 6, 1, 1, 1, 1, 1, 1,
991
+ 1, 26,
992
+ 8, 2, 1, 1, 1, 1, 1, 1, 2,
993
+ 8, 2, 1, 1, 2, 2, 1, 1, 2,
994
+ 8, 2, 1, 1, 2, 2, 1, 1, 2,
995
+ 2, 14, 14,
996
+ 4, 1, 1, 1, 1,
997
+ 4, 1, 1, 1, 1,
998
+ 2, 14, 14,
999
+ 8, 2, 1, 1, 2, 2, 1, 1, 2,
1000
+ 8, 2, 1, 1, 2, 2, 1, 1, 2,
1001
+ 8, 2, 1, 1, 1, 1, 1, 1, 2,
1002
+ 1, 26,
1003
+ 6, 1, 1, 1, 1, 1, 1,
1004
+ 6, 1, 1, 1, 1, 1, 1,
1005
+ 6, 2, 1, 1, 1, 1, 2,
1006
+ 1, 18,
1007
+ 4, 1, 1, 1, 1,
1008
+ 4, 1, 1, 1, 1,
1009
+ 4, 2, 1, 1, 2,
1010
+ 4, 2, 1, 1, 2,
1011
+ 2, 3, 3,
1012
+ 2, 2, 2,
1013
+ 2, 1, 1,
1014
+ };
1015
+
1016
+ /// Swing
1017
+ const int webpbn529[]=
1018
+ { 45, 45,
1019
+ // Column constraints
1020
+ 6, 7, 1, 1, 1, 1, 1,
1021
+ 13, 2, 2, 4, 1, 4, 1, 5, 1, 4, 1, 4, 1, 2,
1022
+ 10, 3, 1, 4, 1, 4, 1, 14, 4, 1, 2,
1023
+ 8, 1, 1, 5, 1, 2, 3, 4, 1,
1024
+ 4, 3, 13, 1, 10,
1025
+ 3, 1, 9, 4,
1026
+ 4, 6, 7, 2, 2,
1027
+ 4, 8, 4, 1, 4,
1028
+ 6, 2, 8, 3, 2, 5, 3,
1029
+ 5, 10, 1, 3, 7, 2,
1030
+ 6, 8, 6, 2, 8, 1, 2,
1031
+ 7, 1, 1, 2, 2, 8, 1, 1,
1032
+ 11, 2, 1, 1, 1, 2, 1, 3, 1, 3, 3, 1,
1033
+ 8, 2, 1, 1, 1, 5, 4, 2, 1,
1034
+ 8, 2, 1, 1, 1, 1, 7, 2, 1,
1035
+ 8, 2, 1, 1, 2, 9, 1, 2, 1,
1036
+ 5, 4, 6, 12, 1, 3,
1037
+ 4, 16, 13, 3, 2,
1038
+ 3, 12, 21, 2,
1039
+ 3, 2, 13, 23,
1040
+ 3, 2, 14, 19,
1041
+ 4, 2, 14, 20, 2,
1042
+ 6, 2, 13, 7, 2, 8, 2,
1043
+ 5, 12, 8, 1, 7, 2,
1044
+ 9, 5, 1, 1, 1, 2, 8, 1, 5, 2,
1045
+ 8, 2, 1, 1, 1, 9, 1, 1, 4,
1046
+ 8, 2, 1, 1, 1, 6, 1, 3, 5,
1047
+ 6, 2, 2, 1, 5, 6, 2,
1048
+ 8, 2, 1, 3, 1, 3, 7, 3, 2,
1049
+ 9, 2, 3, 2, 1, 1, 2, 4, 4, 2,
1050
+ 9, 2, 2, 1, 1, 2, 3, 1, 8, 2,
1051
+ 5, 9, 3, 1, 7, 2,
1052
+ 5, 12, 4, 1, 6, 2,
1053
+ 5, 7, 4, 1, 2, 5,
1054
+ 5, 2, 6, 6, 5, 6,
1055
+ 4, 8, 8, 6, 3,
1056
+ 5, 3, 10, 8, 4, 2,
1057
+ 5, 5, 11, 9, 5, 2,
1058
+ 5, 3, 1, 12, 16, 2,
1059
+ 4, 3, 1, 12, 16,
1060
+ 4, 5, 2, 13, 21,
1061
+ 6, 6, 1, 3, 3, 1, 1,
1062
+ 14, 5, 1, 3, 1, 3, 1, 1, 2, 1, 4, 1, 3, 1, 3,
1063
+ 13, 5, 1, 3, 1, 3, 1, 4, 1, 4, 1, 3, 1, 3,
1064
+ 6, 1, 1, 1, 1, 1, 1,
1065
+ // Row constraints
1066
+ 6, 7, 1, 1, 1, 1, 1,
1067
+ 13, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 2,
1068
+ 14, 1, 1, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 2,
1069
+ 9, 2, 1, 2, 1, 1, 1, 1, 6, 2,
1070
+ 4, 3, 30, 1, 5,
1071
+ 9, 1, 5, 8, 1, 1, 7, 1, 1, 3,
1072
+ 7, 3, 4, 8, 1, 5, 1, 2,
1073
+ 4, 3, 20, 6, 6,
1074
+ 6, 3, 3, 7, 2, 5, 1,
1075
+ 9, 3, 3, 1, 1, 9, 1, 1, 5, 6,
1076
+ 7, 2, 3, 8, 1, 3, 4, 2,
1077
+ 7, 5, 3, 1, 10, 4, 5, 2,
1078
+ 6, 1, 2, 3, 8, 4, 6,
1079
+ 5, 2, 2, 3, 11, 10,
1080
+ 5, 2, 2, 3, 10, 7,
1081
+ 6, 2, 3, 1, 7, 12, 2,
1082
+ 6, 2, 3, 1, 4, 11, 2,
1083
+ 6, 4, 1, 2, 1, 11, 2,
1084
+ 4, 9, 1, 2, 9,
1085
+ 5, 6, 2, 1, 4, 11,
1086
+ 6, 2, 5, 1, 2, 6, 6,
1087
+ 5, 6, 2, 4, 8, 4,
1088
+ 4, 4, 2, 16, 1,
1089
+ 4, 2, 2, 15, 2,
1090
+ 4, 3, 2, 15, 4,
1091
+ 4, 3, 3, 13, 4,
1092
+ 3, 4, 12, 9,
1093
+ 3, 1, 9, 10,
1094
+ 5, 2, 1, 17, 7, 2,
1095
+ 6, 2, 2, 8, 3, 8, 2,
1096
+ 6, 2, 3, 6, 3, 8, 2,
1097
+ 6, 2, 4, 5, 4, 7, 2,
1098
+ 5, 2, 5, 5, 4, 6,
1099
+ 5, 4, 4, 5, 4, 9,
1100
+ 5, 1, 4, 6, 4, 4,
1101
+ 6, 4, 3, 6, 4, 3, 2,
1102
+ 7, 2, 1, 2, 7, 4, 4, 2,
1103
+ 7, 2, 2, 2, 9, 5, 5, 2,
1104
+ 6, 2, 2, 2, 10, 6, 6,
1105
+ 5, 3, 2, 1, 9, 18,
1106
+ 3, 8, 4, 23,
1107
+ 9, 1, 2, 1, 2, 2, 1, 1, 1, 2,
1108
+ 12, 2, 1, 4, 2, 1, 4, 1, 5, 1, 3, 1, 2,
1109
+ 11, 2, 1, 5, 4, 4, 1, 5, 1, 3, 1, 2,
1110
+ 5, 1, 10, 1, 1, 1,
1111
+ };
1112
+
1113
+
1114
+ /// Mum
1115
+ const int webpbn65[]=
1116
+ { 34, 40,
1117
+ // Column constraints
1118
+ 1, 5,
1119
+ 3, 3, 2, 1,
1120
+ 4, 3, 2, 2, 1,
1121
+ 5, 3, 2, 2, 2, 2,
1122
+ 6, 3, 2, 2, 2, 2, 3,
1123
+ 7, 1, 2, 2, 2, 2, 2, 16,
1124
+ 9, 1, 2, 2, 2, 2, 2, 2, 1, 2,
1125
+ 9, 1, 2, 2, 2, 2, 2, 2, 13, 1,
1126
+ 10, 3, 2, 2, 2, 2, 2, 2, 4, 1, 1,
1127
+ 9, 6, 5, 2, 2, 2, 2, 6, 1, 1,
1128
+ 11, 1, 7, 3, 2, 2, 2, 2, 2, 1, 1, 1,
1129
+ 12, 3, 4, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1,
1130
+ 11, 6, 1, 2, 3, 2, 2, 2, 2, 1, 1, 1,
1131
+ 6, 1, 7, 2, 16, 1, 1,
1132
+ 11, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1133
+ 11, 1, 2, 1, 3, 1, 1, 6, 1, 1, 1, 1,
1134
+ 9, 2, 7, 1, 1, 11, 1, 1, 1, 1,
1135
+ 9, 2, 7, 1, 1, 11, 1, 1, 1, 1,
1136
+ 11, 1, 2, 1, 3, 1, 1, 6, 1, 1, 1, 1,
1137
+ 11, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1138
+ 6, 1, 7, 2, 16, 1, 1,
1139
+ 11, 6, 1, 2, 3, 2, 2, 2, 2, 1, 1, 1,
1140
+ 12, 3, 4, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1,
1141
+ 11, 1, 7, 3, 2, 2, 2, 2, 2, 1, 1, 1,
1142
+ 9, 6, 5, 2, 2, 2, 2, 6, 1, 1,
1143
+ 10, 3, 2, 2, 2, 2, 2, 2, 4, 1, 1,
1144
+ 9, 1, 2, 2, 2, 2, 2, 2, 13, 1,
1145
+ 9, 1, 2, 2, 2, 2, 2, 2, 1, 2,
1146
+ 7, 1, 2, 2, 2, 2, 2, 16,
1147
+ 6, 3, 2, 2, 2, 2, 3,
1148
+ 5, 3, 2, 2, 2, 2,
1149
+ 4, 3, 2, 2, 1,
1150
+ 3, 3, 2, 1,
1151
+ 1, 5,
1152
+ // Row constraints
1153
+ 1, 12,
1154
+ 3, 5, 2, 5,
1155
+ 4, 5, 2, 2, 5,
1156
+ 7, 1, 2, 2, 2, 2, 2, 1,
1157
+ 7, 4, 2, 2, 4, 2, 2, 4,
1158
+ 7, 4, 2, 2, 4, 2, 2, 4,
1159
+ 7, 1, 2, 2, 2, 2, 2, 1,
1160
+ 7, 6, 2, 2, 2, 2, 2, 6,
1161
+ 7, 6, 2, 2, 2, 2, 2, 6,
1162
+ 3, 1, 14, 1,
1163
+ 2, 10, 10,
1164
+ 4, 8, 3, 3, 8,
1165
+ 8, 1, 1, 2, 1, 1, 2, 1, 1,
1166
+ 6, 9, 2, 2, 2, 2, 9,
1167
+ 2, 9, 9,
1168
+ 6, 1, 1, 1, 1, 1, 1,
1169
+ 3, 12, 2, 12,
1170
+ 2, 12, 12,
1171
+ 5, 1, 1, 4, 1, 1,
1172
+ 2, 14, 14,
1173
+ 2, 12, 12,
1174
+ 5, 2, 1, 4, 1, 2,
1175
+ 3, 9, 4, 9,
1176
+ 5, 1, 7, 4, 7, 1,
1177
+ 7, 1, 1, 1, 4, 1, 1, 1,
1178
+ 5, 1, 7, 4, 7, 1,
1179
+ 5, 1, 7, 4, 7, 1,
1180
+ 7, 1, 2, 1, 2, 1, 2, 1,
1181
+ 5, 1, 7, 2, 7, 1,
1182
+ 7, 1, 1, 6, 2, 6, 1, 1,
1183
+ 9, 1, 1, 1, 1, 2, 1, 1, 1, 1,
1184
+ 7, 1, 1, 6, 2, 6, 1, 1,
1185
+ 6, 1, 1, 5, 5, 1, 1,
1186
+ 7, 1, 1, 1, 8, 1, 1, 1,
1187
+ 6, 1, 1, 4, 4, 1, 1,
1188
+ 5, 1, 2, 6, 2, 1,
1189
+ 4, 2, 4, 4, 2,
1190
+ 3, 2, 6, 2,
1191
+ 2, 4, 4,
1192
+ 1, 6,
1193
+ };
1194
+
1195
+
1196
+ const int *specs[] = {heart, bear, crocodile, unknown,
1197
+ pinwheel, difficult, non_unique, dragonfly,
1198
+ castle, p200,
1199
+ // From the webpbn survey
1200
+ webpbn1, // 10
1201
+ webpbn6, // 11
1202
+ webpbn21, // 12
1203
+ webpbn27, // 13
1204
+ webpbn23, // 14
1205
+ webpbn16, // 15
1206
+ webpbn529, // 16
1207
+ webpbn65, // 17
1208
+ webpbn436, // 18
1209
+ };
1210
+ const unsigned n_examples = sizeof(specs)/sizeof(int*);
1211
+ //@}
1212
+
1213
+ }
1214
+
1215
+ // STATISTICS: example-any