gecoder 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +11 -0
- data/README +12 -1
- data/example/example_helper.rb +1 -0
- data/example/magic_sequence.rb +43 -0
- data/example/queens.rb +43 -0
- data/example/raw_bindings.rb +42 -0
- data/example/send_more_money.rb +43 -0
- data/example/sudoku.rb +65 -0
- data/ext/missing.cpp +15 -21
- data/ext/missing.h +14 -20
- data/ext/vararray.cpp +14 -20
- data/ext/vararray.h +18 -22
- data/lib/gecoder/bindings/bindings.rb +1979 -1969
- data/lib/gecoder/interface/binding_changes.rb +123 -2
- data/lib/gecoder/interface/constraints/bool/boolean.rb +80 -65
- data/lib/gecoder/interface/constraints/bool_enum/boolean.rb +59 -0
- data/lib/gecoder/interface/constraints/bool_enum_constraints.rb +8 -0
- data/lib/gecoder/interface/constraints/bool_var_constraints.rb +42 -0
- data/lib/gecoder/interface/constraints/int/arithmetic.rb +21 -44
- data/lib/gecoder/interface/constraints/int/domain.rb +6 -4
- data/lib/gecoder/interface/constraints/int_enum/arithmetic.rb +18 -44
- data/lib/gecoder/interface/constraints/int_enum/count.rb +3 -18
- data/lib/gecoder/interface/constraints/int_enum/distinct.rb +4 -16
- data/lib/gecoder/interface/constraints/int_enum/element.rb +9 -20
- data/lib/gecoder/interface/constraints/int_var_constraints.rb +28 -0
- data/lib/gecoder/interface/constraints/set/cardinality.rb +56 -0
- data/lib/gecoder/interface/constraints/set/domain.rb +66 -0
- data/lib/gecoder/interface/constraints/set/relation.rb +125 -0
- data/lib/gecoder/interface/constraints/set_var_constraints.rb +37 -0
- data/lib/gecoder/interface/constraints.rb +229 -65
- data/lib/gecoder/interface/enum_wrapper.rb +42 -11
- data/lib/gecoder/interface/model.rb +75 -0
- data/lib/gecoder/interface/search.rb +4 -9
- data/lib/gecoder/interface/variables.rb +36 -2
- data/lib/gecoder/version.rb +1 -1
- data/specs/bool_var.rb +58 -0
- data/specs/constraints/arithmetic.rb +91 -90
- data/specs/constraints/bool_enum.rb +130 -0
- data/specs/constraints/boolean.rb +95 -2
- data/specs/constraints/cardinality.rb +127 -0
- data/specs/constraints/constraint_helper.rb +91 -0
- data/specs/constraints/constraints.rb +31 -0
- data/specs/constraints/element.rb +43 -72
- data/specs/constraints/{domain.rb → int_domain.rb} +4 -0
- data/specs/constraints/{relation.rb → int_relation.rb} +0 -0
- data/specs/constraints/set_domain.rb +165 -0
- data/specs/constraints/set_relation.rb +181 -0
- data/specs/enum_wrapper.rb +13 -2
- data/specs/int_var.rb +33 -1
- data/specs/model.rb +80 -0
- data/specs/set_var.rb +39 -0
- data/specs/spec_helper.rb +35 -0
- data/specs/tmp +11 -124
- data/tasks/distribution.rake +1 -1
- data/vendor/rust/rust/class.rb +10 -10
- data/vendor/rust/rust/constants.rb +1 -1
- data/vendor/rust/rust/function.rb +5 -5
- data/vendor/rust/rust/type.rb +1 -1
- data/vendor/rust/test/constants.rb +1 -0
- data/vendor/rust/test/cppclass.cc +5 -0
- data/vendor/rust/test/cppclass.hh +4 -0
- data/vendor/rust/test/lib/extension-test.rb +1 -1
- data/vendor/rust/test/operators.cc +41 -0
- data/vendor/rust/test/operators.hh +39 -0
- data/vendor/rust/test/operators.rb +39 -0
- data/vendor/rust/test/test-cwrapper.rb +3 -0
- data/vendor/rust/test/test-operators.rb +42 -0
- metadata +31 -4
@@ -31,7 +31,7 @@ ruby2intargs = %@
|
|
31
31
|
|
32
32
|
bool is_Gecode_IntArgs(VALUE arr)
|
33
33
|
{
|
34
|
-
|
34
|
+
return is_array(arr);
|
35
35
|
}
|
36
36
|
|
37
37
|
Gecode::IntArgs ruby2Gecode_IntArgs(VALUE arr, int argn = -1);
|
@@ -50,394 +50,399 @@ Gecode::IntArgs ruby2Gecode_IntArgs(VALUE arr, int argn)
|
|
50
50
|
|
51
51
|
|
52
52
|
Rust::Bindings::create_bindings Rust::Bindings::LangCxx, "gecode" do |b|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
53
|
+
b.include_header 'gecode/kernel.hh', Rust::Bindings::HeaderGlobal
|
54
|
+
b.include_header 'gecode/int.hh', Rust::Bindings::HeaderGlobal
|
55
|
+
b.include_header 'gecode/search.hh', Rust::Bindings::HeaderGlobal
|
56
|
+
b.include_header 'gecode/minimodel.hh', Rust::Bindings::HeaderGlobal
|
57
|
+
b.include_header 'missing.h', Rust::Bindings::HeaderLocal
|
58
|
+
|
59
|
+
b.add_custom_definition ruby2intargs
|
60
|
+
|
61
61
|
# Is it possible to use namespaces with multiple levels in Rust? I.e. use
|
62
62
|
# Gecode::Raw instead of GecodeRaw here (and avoid the hidious renaming)
|
63
63
|
# when requiring them.
|
64
|
-
|
64
|
+
b.add_namespace "GecodeRaw", "Gecode" do |ns|
|
65
65
|
ns.add_enum "BvarSel" do |enum|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
66
|
+
enum.add_value "BVAR_NONE"
|
67
|
+
enum.add_value "BVAR_MIN_MIN"
|
68
|
+
enum.add_value "BVAR_MIN_MAX"
|
69
|
+
enum.add_value "BVAR_MAX_MIN"
|
70
|
+
enum.add_value "BVAR_MAX_MAX"
|
71
|
+
enum.add_value "BVAR_SIZE_MIN"
|
72
|
+
enum.add_value "BVAR_SIZE_MAX"
|
73
|
+
enum.add_value "BVAR_DEGREE_MAX"
|
74
|
+
enum.add_value "BVAR_DEGREE_MIN"
|
75
|
+
enum.add_value "BVAR_REGRET_MIN_MIN"
|
76
|
+
enum.add_value "BVAR_REGRET_MIN_MAX"
|
77
|
+
enum.add_value "BVAR_REGRET_MAX_MIN"
|
78
|
+
enum.add_value "BVAR_REGRET_MAX_MAX"
|
79
|
+
end
|
80
|
+
|
81
|
+
ns.add_enum "SetBvarSel" do |enum|
|
82
|
+
enum.add_value "SETBVAR_NONE"
|
83
|
+
enum.add_value "SETBVAR_MIN_CARD"
|
84
|
+
enum.add_value "SETBVAR_MAX_CARD"
|
85
|
+
enum.add_value "SETBVAR_MIN_UNKNOWN_ELEM"
|
86
|
+
enum.add_value "SETBVAR_MAX_UNKNOWN_ELEM"
|
87
|
+
end
|
88
|
+
|
89
89
|
ns.add_enum "SetBvalSel" do |enum|
|
90
|
-
|
91
|
-
|
92
|
-
|
90
|
+
enum.add_value "SETBVAL_MIN"
|
91
|
+
enum.add_value "SETBVAL_MAX"
|
92
|
+
end
|
93
93
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
klass.add_constructor do |func|
|
163
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
164
|
-
func.add_parameter "int", "n"
|
165
|
-
func.add_parameter "Gecode::IntSet", "s"
|
166
|
-
end
|
167
|
-
|
168
|
-
klass.add_method "at", "Gecode::IntVar&" do |method|
|
169
|
-
method.add_parameter "int", "index"
|
170
|
-
end
|
171
|
-
|
172
|
-
klass.add_operator "[]", "Gecode::IntVar&" do |method|
|
173
|
-
method.add_parameter "int", "index"
|
174
|
-
end
|
175
|
-
|
176
|
-
klass.add_operator "[]=", "Gecode::IntVar&" do |method|
|
177
|
-
method.add_parameter "int", "index"
|
178
|
-
method.add_parameter "Gecode::IntVar", "val"
|
179
|
-
end
|
180
|
-
|
181
|
-
klass.add_method "size", "int"
|
182
|
-
|
183
|
-
klass.add_method "debug"
|
184
|
-
|
185
|
-
end
|
186
|
-
|
187
|
-
|
188
|
-
ns.add_cxx_class "MBoolVarArray" do |klass|
|
189
|
-
klass.bindname = "BoolVarArray"
|
190
|
-
klass.add_constructor
|
94
|
+
|
95
|
+
ns.add_enum "BvalSel" do |enum|
|
96
|
+
enum.add_value "BVAL_MIN"
|
97
|
+
enum.add_value "BVAL_MED"
|
98
|
+
enum.add_value "BVAL_MAX"
|
99
|
+
enum.add_value "BVAL_SPLIT_MIN"
|
100
|
+
enum.add_value "BVAL_SPLIT_MAX"
|
101
|
+
end
|
102
|
+
|
103
|
+
ns.add_enum "IntRelType" do |enum|
|
104
|
+
enum.add_value "IRT_EQ"
|
105
|
+
enum.add_value "IRT_NQ"
|
106
|
+
enum.add_value "IRT_LQ"
|
107
|
+
enum.add_value "IRT_LE"
|
108
|
+
enum.add_value "IRT_GQ"
|
109
|
+
enum.add_value "IRT_GR"
|
110
|
+
end
|
111
|
+
|
112
|
+
ns.add_enum "SetRelType" do |enum|
|
113
|
+
enum.add_value "SRT_EQ"
|
114
|
+
enum.add_value "SRT_NQ"
|
115
|
+
enum.add_value "SRT_SUB"
|
116
|
+
enum.add_value "SRT_SUP"
|
117
|
+
enum.add_value "SRT_DISJ"
|
118
|
+
enum.add_value "SRT_CMPL"
|
119
|
+
end
|
120
|
+
|
121
|
+
ns.add_enum "SetOpType " do |enum|
|
122
|
+
enum.add_value "SOT_UNION"
|
123
|
+
enum.add_value "SOT_DUNION"
|
124
|
+
enum.add_value "SOT_INTER"
|
125
|
+
enum.add_value "SOT_MINUS"
|
126
|
+
end
|
127
|
+
|
128
|
+
ns.add_enum "IntConLevel" do |enum|
|
129
|
+
enum.add_value "ICL_VAL"
|
130
|
+
enum.add_value "ICL_BND"
|
131
|
+
enum.add_value "ICL_DOM"
|
132
|
+
enum.add_value "ICL_DEF"
|
133
|
+
end
|
134
|
+
|
135
|
+
ns.add_enum "SpaceStatus" do |enum|
|
136
|
+
enum.add_value "SS_FAILED"
|
137
|
+
enum.add_value "SS_SOLVED"
|
138
|
+
enum.add_value "SS_BRANCH"
|
139
|
+
end
|
140
|
+
|
141
|
+
ns.add_enum "AvalSel" do |enum|
|
142
|
+
enum.add_value "AVAL_MIN"
|
143
|
+
enum.add_value "AVAL_MED"
|
144
|
+
enum.add_value "AVAL_MAX"
|
145
|
+
end
|
146
|
+
|
147
|
+
ns.add_cxx_class "MIntVarArray" do |klass|
|
148
|
+
klass.bindname = "IntVarArray"
|
149
|
+
klass.add_constructor
|
150
|
+
klass.add_constructor do |func|
|
151
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
152
|
+
func.add_parameter "int", "n"
|
153
|
+
end
|
154
|
+
|
155
|
+
klass.add_constructor do |func|
|
156
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
157
|
+
func.add_parameter "int", "n"
|
158
|
+
func.add_parameter "int", "min"
|
159
|
+
func.add_parameter "int", "max"
|
160
|
+
end
|
161
|
+
|
191
162
|
klass.add_constructor do |func|
|
192
163
|
func.add_parameter "Gecode::MSpace *", "home"
|
193
164
|
func.add_parameter "int", "n"
|
165
|
+
func.add_parameter "Gecode::IntSet", "s"
|
194
166
|
end
|
195
167
|
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
168
|
+
klass.add_method "at", "Gecode::IntVar&" do |method|
|
169
|
+
method.add_parameter "int", "index"
|
170
|
+
end
|
171
|
+
|
172
|
+
klass.add_operator "[]", "Gecode::IntVar&" do |method|
|
173
|
+
method.add_parameter "int", "index"
|
174
|
+
end
|
175
|
+
|
176
|
+
klass.add_operator "[]=", "Gecode::IntVar&" do |method|
|
177
|
+
method.add_parameter "int", "index"
|
178
|
+
method.add_parameter "Gecode::IntVar", "val"
|
179
|
+
end
|
180
|
+
|
181
|
+
klass.add_method "size", "int"
|
182
|
+
|
183
|
+
klass.add_method "debug"
|
184
|
+
|
185
|
+
end
|
186
|
+
|
187
|
+
|
188
|
+
ns.add_cxx_class "MBoolVarArray" do |klass|
|
189
|
+
klass.bindname = "BoolVarArray"
|
190
|
+
klass.add_constructor
|
191
|
+
klass.add_constructor do |func|
|
192
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
193
|
+
func.add_parameter "int", "n"
|
194
|
+
end
|
195
|
+
|
196
|
+
klass.add_method "at", "Gecode::BoolVar&" do |method|
|
197
|
+
method.add_parameter "int", "index"
|
198
|
+
end
|
199
|
+
|
200
|
+
klass.add_operator "[]", "Gecode::BoolVar&" do |method|
|
201
|
+
method.add_parameter "int", "index"
|
202
|
+
end
|
203
203
|
|
204
204
|
klass.add_operator "[]=", "Gecode::BoolVar&" do |method|
|
205
205
|
method.add_parameter "int", "index"
|
206
206
|
method.add_parameter "Gecode::BoolVar", "val"
|
207
207
|
end
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
208
|
+
|
209
|
+
klass.add_method "size", "int"
|
210
|
+
|
211
|
+
klass.add_method "debug"
|
212
|
+
|
213
|
+
end
|
214
|
+
|
215
|
+
ns.add_cxx_class "MSetVarArray" do |klass|
|
216
|
+
klass.bindname = "SetVarArray"
|
217
|
+
klass.add_constructor
|
218
|
+
|
219
|
+
klass.add_constructor do |method|
|
220
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
221
|
+
method.add_parameter "int", "n"
|
222
|
+
end
|
223
|
+
|
224
|
+
klass.add_constructor do |method|
|
225
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
226
|
+
method.add_parameter "int", "n"
|
227
|
+
method.add_parameter "int", "glbMin"
|
228
|
+
method.add_parameter "int", "glbMax"
|
229
|
+
method.add_parameter "int", "lubMin"
|
230
|
+
method.add_parameter "int", "lubMax"
|
231
|
+
method.add_parameter "int", "minCard"
|
232
|
+
method.add_parameter "int", "maxCard"
|
233
|
+
end
|
234
|
+
|
235
|
+
klass.add_constructor do |method|
|
236
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
237
|
+
method.add_parameter "int", "n"
|
238
|
+
method.add_parameter "Gecode::IntSet", "glb"
|
239
|
+
method.add_parameter "int", "lubMin"
|
240
|
+
method.add_parameter "int", "lubMax"
|
241
|
+
method.add_parameter "int", "minCard", true
|
242
|
+
method.add_parameter "int", "maxCard", true
|
243
|
+
end
|
244
|
+
|
245
|
+
klass.add_constructor do |method|
|
246
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
247
|
+
method.add_parameter "int", "n"
|
248
|
+
method.add_parameter "int", "glbMin"
|
249
|
+
method.add_parameter "int", "glbMax"
|
250
|
+
method.add_parameter "Gecode::IntSet", "lub"
|
251
|
+
method.add_parameter "int", "minCard", true
|
252
|
+
method.add_parameter "int", "maxCard", true
|
253
|
+
end
|
254
|
+
|
255
|
+
klass.add_constructor do |method|
|
256
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
257
|
+
method.add_parameter "int", "n"
|
258
|
+
method.add_parameter "Gecode::IntSet", "glb"
|
259
|
+
method.add_parameter "Gecode::IntSet", "lub"
|
260
|
+
method.add_parameter "int", "minCard", true
|
261
|
+
method.add_parameter "int", "maxCard", true
|
262
|
+
end
|
263
|
+
|
264
|
+
klass.add_method "at", "Gecode::SetVar&" do |method|
|
265
|
+
method.add_parameter "int", "index"
|
266
|
+
end
|
267
|
+
|
268
|
+
klass.add_operator "[]", "Gecode::SetVar&" do |method|
|
269
|
+
method.add_parameter "int", "index"
|
270
|
+
end
|
271
|
+
|
272
|
+
klass.add_operator "[]=", "Gecode::SetVar&" do |method|
|
273
|
+
method.add_parameter "int", "index"
|
274
|
+
method.add_parameter "Gecode::SetVar", "val"
|
275
|
+
end
|
276
|
+
|
277
|
+
klass.add_method "size", "int"
|
278
|
+
|
279
|
+
klass.add_method "debug"
|
280
|
+
end
|
281
|
+
|
282
|
+
ns.add_cxx_class "MBranchingDesc" do |klass|
|
283
|
+
klass.bindname = "BranchingDesc"
|
284
|
+
klass.add_constructor
|
285
|
+
klass.add_method "alternatives", "int"
|
286
|
+
klass.add_method "size", "int"
|
287
|
+
end
|
288
|
+
|
289
|
+
ns.add_cxx_class "MSpace" do |klass|
|
290
|
+
klass.bindname = "Space"
|
291
|
+
|
292
|
+
klass.add_constructor
|
293
|
+
|
294
|
+
klass.add_method "debug"
|
295
|
+
|
296
|
+
klass.add_method "own" do |method|
|
297
|
+
method.add_parameter "Gecode::MIntVarArray *", "x"
|
298
|
+
method.add_parameter "char*", "name"
|
299
|
+
end
|
300
|
+
|
301
|
+
klass.add_method "own" do |method|
|
302
|
+
method.add_parameter "Gecode::MBoolVarArray *", "x"
|
303
|
+
method.add_parameter "char*", "name"
|
304
|
+
end
|
305
|
+
|
306
|
+
klass.add_method "own" do |method|
|
307
|
+
method.add_parameter "Gecode::MSetVarArray *", "x"
|
308
|
+
method.add_parameter "char*", "name"
|
309
|
+
end
|
310
|
+
|
311
|
+
klass.add_method "intVarArray", "Gecode::MIntVarArray *" do |method|
|
312
|
+
method.add_parameter "char *", "name"
|
313
|
+
end
|
314
|
+
|
315
|
+
klass.add_method "boolVarArray", "Gecode::MBoolVarArray *" do |method|
|
316
|
+
method.add_parameter "char *", "name"
|
317
|
+
end
|
318
|
+
|
319
|
+
klass.add_method "setVarArray", "Gecode::MSetVarArray *" do |method|
|
320
|
+
method.add_parameter "char *", "name"
|
321
|
+
end
|
322
|
+
|
323
|
+
klass.add_method "clone", "Gecode::MSpace *" do |method|
|
324
|
+
method.add_parameter "bool", "shared"
|
325
|
+
end
|
326
|
+
|
327
|
+
klass.add_method "status", "int"
|
328
|
+
|
329
|
+
klass.add_method "propagators", "int"
|
330
|
+
klass.add_method "branchings", "int"
|
331
|
+
klass.add_method "failed", "bool"
|
332
|
+
klass.add_method "cached", "int"
|
333
|
+
|
334
|
+
klass.add_method "mdescription", "Gecode::MBranchingDesc *", "description"
|
335
|
+
|
336
|
+
klass.add_method "commit" do |method|
|
337
|
+
method.add_parameter "Gecode::MBranchingDesc", "desc" do |param|
|
338
|
+
param.custom_conversion = "ruby2Gecode_MBranchingDescPtr(desc, 1)->ptr()"
|
339
|
+
end
|
340
|
+
method.add_parameter "int", "a"
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
344
|
+
ns.add_namespace "Limits" do |limitsns|
|
345
|
+
limitsns.add_namespace "Int" do |intns|
|
346
|
+
intns.add_constant "INT_MAX", "Gecode::Limits::Int::int_max"
|
347
|
+
intns.add_constant "INT_MIN", "Gecode::Limits::Int::int_min"
|
348
|
+
intns.add_constant "DOUBLE_MAX", "Gecode::Limits::Int::double_max"
|
349
|
+
intns.add_constant "DOUBLE_MIN", "Gecode::Limits::Int::double_min"
|
350
|
+
end
|
351
|
+
limitsns.add_namespace "Set" do |setns|
|
352
|
+
setns.add_constant "INT_MAX", "Gecode::Limits::Set::int_max"
|
353
|
+
setns.add_constant "INT_MIN", "Gecode::Limits::Set::int_min"
|
354
|
+
setns.add_constant "CARD_MAX", "Gecode::Limits::Set::card_max"
|
355
|
+
end
|
356
|
+
end
|
357
|
+
|
358
|
+
ns.add_cxx_class "IntSet" do |klass|
|
359
|
+
klass.add_constructor do |method|
|
360
|
+
method.add_parameter "int", "min"
|
361
|
+
method.add_parameter "int", "max"
|
362
|
+
end
|
363
|
+
|
364
|
+
klass.add_constructor do |method|
|
365
|
+
method.add_parameter "int []", "r"
|
366
|
+
method.add_parameter "int", "n"
|
367
|
+
end
|
368
|
+
|
369
|
+
klass.add_method "size", "int"
|
370
|
+
|
371
|
+
klass.add_method "width", "unsigned int" do |method|
|
372
|
+
method.add_parameter "int", "i"
|
373
|
+
end
|
374
|
+
|
375
|
+
klass.add_method "max", "int" do |method|
|
376
|
+
method.add_parameter "int", "i"
|
377
|
+
end
|
378
|
+
|
379
|
+
klass.add_method "min", "int" do |method|
|
380
|
+
method.add_parameter "int", "i"
|
381
|
+
end
|
382
|
+
|
383
|
+
klass.add_constant "Empty", "(Gecode::IntSet *)&Gecode::IntSet::empty"
|
384
|
+
end
|
385
|
+
|
386
|
+
ns.add_cxx_class "IntVar" do |klass|
|
387
|
+
klass.add_constructor do |method|
|
388
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
389
|
+
method.add_parameter "int", "min"
|
390
|
+
method.add_parameter "int", "max"
|
391
|
+
end
|
392
|
+
|
393
|
+
klass.add_method "max", "int"
|
394
|
+
|
395
|
+
klass.add_method "min", "int"
|
396
|
+
klass.add_method "med", "int"
|
397
|
+
klass.add_method "val", "int"
|
398
|
+
klass.add_method "size", "unsigned int"
|
399
|
+
klass.add_method "width", "unsigned int"
|
400
|
+
klass.add_method "degree", "unsigned int"
|
401
|
+
|
402
|
+
klass.add_method "range", "bool"
|
403
|
+
klass.add_method "assigned", "bool"
|
404
|
+
klass.add_method "in", "bool" do |method|
|
405
|
+
method.add_parameter "int", "n"
|
406
|
+
end
|
407
|
+
|
408
|
+
klass.add_method "update" do |method|
|
409
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
410
|
+
method.add_parameter "bool", "share"
|
411
|
+
method.add_parameter "Gecode::IntVar", "x"
|
412
|
+
end
|
413
|
+
|
414
|
+
klass.add_operator "+", "Gecode::MiniModel::LinExpr" do |operator|
|
415
|
+
operator.add_parameter("int", "i")
|
416
|
+
end
|
417
|
+
|
418
|
+
klass.add_operator "-", "Gecode::MiniModel::LinExpr" do |operator|
|
419
|
+
operator.add_parameter("int", "i")
|
420
|
+
end
|
421
|
+
|
422
|
+
klass.add_operator "*", "Gecode::MiniModel::LinExpr" do |operator|
|
423
|
+
operator.add_parameter("int", "i")
|
424
|
+
end
|
425
|
+
|
426
|
+
klass.add_operator "!=", "Gecode::MiniModel::LinRel", "different" do |operator|
|
427
|
+
operator.add_parameter("Gecode::IntVar", "other")
|
428
|
+
end
|
429
|
+
|
430
|
+
klass.add_operator "==", "Gecode::MiniModel::LinRel", "equal" do |operator|
|
431
|
+
operator.add_parameter("Gecode::IntVar", "other")
|
432
|
+
end
|
433
|
+
|
434
|
+
end
|
435
|
+
|
436
|
+
ns.add_cxx_class "BoolVar" do |klass|
|
437
|
+
klass.add_constructor
|
438
|
+
klass.add_constructor do |method|
|
439
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
440
|
+
method.add_parameter "int", "min"
|
441
|
+
method.add_parameter "int", "max"
|
442
|
+
end
|
443
|
+
klass.add_constructor do |method|
|
444
|
+
method.add_parameter "Gecode::IntVar", "x"
|
445
|
+
end
|
441
446
|
|
442
447
|
klass.add_method "max", "int"
|
443
448
|
|
@@ -454,137 +459,142 @@ Rust::Bindings::create_bindings Rust::Bindings::LangCxx, "gecode" do |b|
|
|
454
459
|
method.add_parameter "int", "n"
|
455
460
|
end
|
456
461
|
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
462
|
+
klass.add_method "update", "void" do |method|
|
463
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
464
|
+
method.add_parameter "bool", "share"
|
465
|
+
method.add_parameter "Gecode::BoolVar", "x"
|
466
|
+
end
|
467
|
+
end
|
468
|
+
|
469
|
+
ns.add_cxx_class "SetVar" do |klass|
|
470
|
+
klass.add_constructor
|
471
|
+
klass.add_constructor do |method|
|
472
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
473
|
+
end
|
474
|
+
klass.add_constructor do |method|
|
475
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
476
|
+
method.add_parameter "int", "glbMin"
|
477
|
+
method.add_parameter "int", "glbMax"
|
478
|
+
method.add_parameter "int", "lubMin"
|
479
|
+
method.add_parameter "int", "lubMax"
|
480
|
+
method.add_parameter "int", "cardMin"
|
481
|
+
method.add_parameter "int", "cardMax"
|
482
|
+
end
|
483
|
+
|
484
|
+
klass.add_constructor do |method|
|
485
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
486
|
+
method.add_parameter "Gecode::IntSet", "glbD"
|
487
|
+
method.add_parameter "int", "lubMin"
|
488
|
+
method.add_parameter "int", "lubMax"
|
489
|
+
method.add_parameter "int", "cardMin", true
|
490
|
+
method.add_parameter "int", "cardMax", true
|
491
|
+
end
|
492
|
+
|
493
|
+
klass.add_constructor do |method|
|
494
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
495
|
+
method.add_parameter "int", "glbMin"
|
496
|
+
method.add_parameter "int", "glbMax"
|
497
|
+
method.add_parameter "Gecode::IntSet", "lubD"
|
498
|
+
method.add_parameter "int", "cardMin", true
|
499
|
+
method.add_parameter "int", "cardMax", true
|
500
|
+
end
|
501
|
+
|
502
|
+
klass.add_constructor do |method|
|
503
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
504
|
+
method.add_parameter "Gecode::IntSet", "glbD"
|
505
|
+
method.add_parameter "Gecode::IntSet", "lubD"
|
506
|
+
method.add_parameter "int", "cardMin", true
|
507
|
+
method.add_parameter "int", "cardMax", true
|
508
|
+
end
|
509
|
+
|
510
|
+
klass.add_method "glbSize", "int"
|
511
|
+
klass.add_method "lubSize", "int"
|
512
|
+
klass.add_method "unknownSize", "int"
|
513
|
+
klass.add_method "cardMin", "int"
|
514
|
+
klass.add_method "cardMax", "int"
|
515
|
+
klass.add_method "lubMin", "int"
|
516
|
+
klass.add_method "lubMax", "int"
|
517
|
+
klass.add_method "glbMin", "int"
|
518
|
+
klass.add_method "glbMax", "int"
|
519
|
+
klass.add_method "glbSize", "int"
|
520
|
+
klass.add_method "contains", "bool" do |method|
|
521
|
+
method.add_parameter "int", "i"
|
522
|
+
end
|
523
|
+
|
524
|
+
klass.add_method "notContains", "bool" do |method|
|
525
|
+
method.add_parameter "int", "i"
|
526
|
+
end
|
527
|
+
|
528
|
+
klass.add_method "assigned", "bool"
|
529
|
+
|
530
|
+
klass.add_method "update" do |method|
|
531
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
532
|
+
method.add_parameter "bool", "shared"
|
533
|
+
method.add_parameter "Gecode::SetVar", "x"
|
534
|
+
end
|
535
|
+
end
|
536
|
+
|
537
|
+
ns.add_cxx_class "MDFS" do |klass|
|
538
|
+
klass.bindname = "DFS"
|
539
|
+
klass.add_constructor do |method|
|
540
|
+
method.add_parameter "Gecode::MSpace *", "s"
|
541
|
+
method.add_parameter "int", "c_d"
|
542
|
+
method.add_parameter "int", "a_d"
|
543
|
+
method.add_parameter "Gecode::Search::MStop *", "st"
|
544
|
+
end
|
545
|
+
|
546
|
+
klass.add_method "next", "Gecode::MSpace *"
|
547
|
+
klass.add_method "statistics", "Gecode::Search::Statistics"
|
548
|
+
end
|
549
|
+
|
550
|
+
# SEARCH NAMESPACE
|
551
|
+
|
552
|
+
ns.add_namespace "Search" do |searchns|
|
553
|
+
searchns.add_cxx_class "MStop" do |klass|
|
554
|
+
klass.bindname = "Stop"
|
555
|
+
klass.add_constructor
|
556
|
+
end
|
557
|
+
|
558
|
+
searchns.add_cxx_class "Statistics" do |klass|
|
559
|
+
klass.add_constructor
|
560
|
+
klass.add_attribute "memory", "int"
|
561
|
+
klass.add_attribute "propagate", "int"
|
562
|
+
klass.add_attribute "fail", "int"
|
563
|
+
klass.add_attribute "clone", "int"
|
564
|
+
klass.add_attribute "commit", "int"
|
565
|
+
end
|
566
|
+
|
567
|
+
searchns.add_namespace "Config" do |intns|
|
568
|
+
intns.add_constant "ADAPTIVE_DISTANCE", "Gecode::Search::Config::a_d"
|
569
|
+
intns.add_constant "MINIMAL_DISTANCE", "Gecode::Search::Config::c_d"
|
570
|
+
end
|
571
|
+
end
|
572
|
+
|
573
|
+
# MINIMODEL NAMESPACE
|
574
|
+
|
575
|
+
ns.add_namespace "MiniModel" do |minimodelns|
|
576
|
+
minimodelns.add_cxx_class "LinExpr" do |klass|
|
577
|
+
klass.add_constructor
|
578
|
+
|
579
|
+
klass.add_method "post" do |method|
|
580
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
581
|
+
method.add_parameter "Gecode::IntRelType", "irt"
|
582
|
+
method.add_parameter "Gecode::IntConLevel", "icl"
|
583
|
+
end
|
574
584
|
|
575
585
|
klass.add_method "post" do |method|
|
576
586
|
method.add_parameter "Gecode::MSpace *", "home"
|
577
587
|
method.add_parameter "Gecode::IntRelType", "irt"
|
578
588
|
method.add_parameter "Gecode::BoolVar", "b"
|
579
589
|
end
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
590
|
+
|
591
|
+
klass.add_operator "+", "Gecode::MiniModel::LinExpr" do |operator|
|
592
|
+
operator.add_parameter("Gecode::MiniModel::LinExpr", "exp")
|
593
|
+
end
|
594
|
+
|
595
|
+
klass.add_operator "+", "Gecode::MiniModel::LinExpr" do |operator|
|
596
|
+
operator.add_parameter("Gecode::IntVar", "exp")
|
597
|
+
end
|
588
598
|
|
589
599
|
klass.add_operator "+", "Gecode::MiniModel::LinExpr" do |operator|
|
590
600
|
operator.add_parameter("int", "c")
|
@@ -606,48 +616,48 @@ Rust::Bindings::create_bindings Rust::Bindings::LangCxx, "gecode" do |b|
|
|
606
616
|
operator.add_parameter("int", "c")
|
607
617
|
end
|
608
618
|
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
619
|
+
klass.add_operator "==", "Gecode::MiniModel::LinRel", "equal" do |operator|
|
620
|
+
operator.add_parameter "Gecode::MiniModel::LinExpr", "other"
|
621
|
+
end
|
622
|
+
|
623
|
+
klass.add_operator "!=", "Gecode::MiniModel::LinRel", "different" do |operator|
|
624
|
+
operator.add_parameter "Gecode::MiniModel::LinExpr", "other"
|
625
|
+
end
|
626
|
+
end
|
627
|
+
|
628
|
+
minimodelns.add_cxx_class "BoolExpr" do |klass| # TODO
|
629
|
+
klass.add_enum "NodeType" do |enum|
|
630
|
+
enum.add_value "BT_VAR"
|
631
|
+
enum.add_value "BT_NOT"
|
632
|
+
enum.add_value "BT_AND"
|
633
|
+
enum.add_value "BT_OR"
|
634
|
+
enum.add_value "BT_IMP"
|
635
|
+
enum.add_value "BT_XOR"
|
636
|
+
enum.add_value "BT_EQV"
|
637
|
+
enum.add_value "BT_RLIN"
|
638
|
+
end
|
639
|
+
klass.add_constructor do |method|
|
640
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr", "e"
|
641
|
+
end
|
632
642
|
|
633
|
-
|
643
|
+
klass.add_constructor do |method|
|
634
644
|
method.add_parameter "Gecode::BoolVar", "e"
|
635
645
|
end
|
636
646
|
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
647
|
+
klass.add_constructor do |method|
|
648
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr", "l"
|
649
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr::NodeType", "t"
|
650
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr", "r"
|
651
|
+
end
|
652
|
+
|
653
|
+
klass.add_constructor do |method|
|
654
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr", "l"
|
655
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr::NodeType", "t"
|
656
|
+
end
|
657
|
+
|
658
|
+
klass.add_constructor do |method|
|
659
|
+
method.add_parameter "Gecode::MiniModel::LinRel", "e"
|
660
|
+
end
|
651
661
|
|
652
662
|
klass.add_method "post" do |method|
|
653
663
|
method.add_parameter "Gecode::MSpace *", "home"
|
@@ -657,738 +667,738 @@ Rust::Bindings::create_bindings Rust::Bindings::LangCxx, "gecode" do |b|
|
|
657
667
|
method.add_parameter "Gecode::MSpace *", "home"
|
658
668
|
method.add_parameter "bool", "t"
|
659
669
|
end
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
670
|
+
end
|
671
|
+
|
672
|
+
minimodelns.add_cxx_class "BoolRel" do |klass|
|
673
|
+
klass.add_constructor do |method|
|
674
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr", "e"
|
675
|
+
method.add_parameter "bool", "t"
|
676
|
+
end
|
677
|
+
end
|
678
|
+
|
679
|
+
minimodelns.add_cxx_class "LinRel" do |klass|
|
680
|
+
klass.add_constructor
|
681
|
+
|
682
|
+
klass.add_constructor do |method|
|
683
|
+
method.add_parameter "Gecode::MiniModel::LinExpr", "l"
|
684
|
+
method.add_parameter "Gecode::IntRelType", "irt"
|
685
|
+
method.add_parameter "Gecode::MiniModel::LinExpr", "r"
|
686
|
+
end
|
687
|
+
|
688
|
+
klass.add_constructor do |method|
|
689
|
+
method.add_parameter "Gecode::MiniModel::LinExpr", "l"
|
690
|
+
method.add_parameter "Gecode::IntRelType", "irt"
|
691
|
+
method.add_parameter "int", "r"
|
692
|
+
end
|
693
|
+
|
694
|
+
klass.add_constructor do |method|
|
695
|
+
method.add_parameter "int", "l"
|
696
|
+
method.add_parameter "Gecode::IntRelType", "irt"
|
697
|
+
method.add_parameter "Gecode::MiniModel::LinExpr", "r"
|
698
|
+
end
|
699
|
+
|
700
|
+
klass.add_method "post", "void" do |method|
|
701
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
702
|
+
method.add_parameter "bool", "t"
|
703
|
+
method.add_parameter "Gecode::IntConLevel", "icl"
|
704
|
+
end
|
705
|
+
klass.add_method "post", "void" do |method|
|
706
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
707
|
+
method.add_parameter "Gecode::BoolVar", "b"
|
708
|
+
end
|
709
|
+
|
700
710
|
# klass.add_operator "==", "Gecode::MiniModel::LinRel", "equal" do |operator|
|
701
711
|
# operator.add_parameter "int", "i"
|
702
712
|
# end
|
703
|
-
end
|
704
|
-
end
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
# INT POSTING FUNCTIONS
|
709
|
-
|
710
|
-
ns.add_function "abs" do |func|
|
711
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
712
|
-
func.add_parameter "Gecode::IntVar", "x0"
|
713
|
-
func.add_parameter "Gecode::IntVar", "x1"
|
714
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
715
|
-
end
|
716
|
-
|
717
|
-
ns.add_function "max" do |func|
|
718
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
719
|
-
func.add_parameter "Gecode::IntVar", "x0"
|
720
|
-
func.add_parameter "Gecode::IntVar", "x1"
|
721
|
-
func.add_parameter "Gecode::IntVar", "x2"
|
722
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
723
|
-
end
|
724
|
-
|
725
|
-
ns.add_function "max" do |func|
|
726
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
727
|
-
func.add_parameter "Gecode::MIntVarArray", "arr" do |param|
|
728
|
-
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 1)->ptr()"
|
729
|
-
end
|
730
|
-
func.add_parameter "Gecode::IntVar", "y"
|
731
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
732
|
-
end
|
733
|
-
|
734
|
-
ns.add_function "min" do |func|
|
735
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
736
|
-
func.add_parameter "Gecode::IntVar", "x0"
|
737
|
-
func.add_parameter "Gecode::IntVar", "x1"
|
738
|
-
func.add_parameter "Gecode::IntVar", "x2"
|
739
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
740
|
-
end
|
741
|
-
|
742
|
-
ns.add_function "min" do |func|
|
743
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
744
|
-
func.add_parameter "Gecode::MIntVarArray", "x" do |param|
|
745
|
-
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 1)->ptr()"
|
746
|
-
end
|
747
|
-
func.add_parameter "Gecode::IntVar", "y"
|
748
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
749
|
-
end
|
750
|
-
|
751
|
-
ns.add_function "mult" do |func|
|
752
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
753
|
-
func.add_parameter "Gecode::IntVar", "x0"
|
754
|
-
func.add_parameter "Gecode::IntVar", "x1"
|
755
|
-
func.add_parameter "Gecode::IntVar", "x2"
|
756
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
757
|
-
end
|
758
|
-
|
759
|
-
# Bool post functions
|
760
|
-
|
761
|
-
ns.add_function "bool_not" do |func|
|
762
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
763
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
764
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
765
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
766
|
-
end
|
767
|
-
|
768
|
-
ns.add_function "bool_eq" do |func|
|
769
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
770
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
771
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
772
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
773
|
-
end
|
774
|
-
|
775
|
-
ns.add_function "bool_and" do |func|
|
776
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
777
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
778
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
779
|
-
func.add_parameter "Gecode::BoolVar", "b2"
|
780
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
781
|
-
end
|
782
|
-
|
783
|
-
ns.add_function "bool_and" do |func|
|
784
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
785
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
786
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
787
|
-
func.add_parameter "bool", "b2"
|
788
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
789
|
-
end
|
790
|
-
|
791
|
-
ns.add_function "bool_and" do |func|
|
792
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
793
|
-
func.add_parameter "Gecode::MBoolVarArray", "b0" do |param|
|
794
|
-
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 1)->ptr())"
|
795
|
-
end
|
796
|
-
func.add_parameter "Gecode::BoolVar", "c"
|
797
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
798
|
-
end
|
799
|
-
|
800
|
-
ns.add_function "bool_and" do |func|
|
801
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
802
|
-
func.add_parameter "Gecode::MBoolVarArray", "b0" do |param|
|
803
|
-
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 1)->ptr())"
|
804
|
-
end
|
805
|
-
func.add_parameter "bool", "c"
|
806
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
807
|
-
end
|
808
|
-
|
809
|
-
ns.add_function "bool_or" do |func|
|
810
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
811
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
812
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
813
|
-
func.add_parameter "Gecode::BoolVar", "b2"
|
814
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
815
|
-
end
|
816
|
-
|
817
|
-
ns.add_function "bool_or" do |func|
|
818
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
819
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
820
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
821
|
-
func.add_parameter "bool", "b2"
|
822
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
823
|
-
end
|
824
|
-
|
825
|
-
ns.add_function "bool_or" do |func|
|
826
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
827
|
-
func.add_parameter "Gecode::MBoolVarArray", "b" do |param|
|
828
|
-
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr())"
|
829
|
-
end
|
830
|
-
func.add_parameter "Gecode::BoolVar", "c"
|
831
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
832
|
-
end
|
833
|
-
|
834
|
-
ns.add_function "bool_or" do |func|
|
835
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
836
|
-
func.add_parameter "Gecode::MBoolVarArray", "b" do |param|
|
837
|
-
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr())"
|
838
|
-
end
|
839
|
-
func.add_parameter "bool", "c"
|
840
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
841
|
-
end
|
842
|
-
|
843
|
-
ns.add_function "bool_imp" do |func|
|
844
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
845
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
846
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
847
|
-
func.add_parameter "Gecode::BoolVar", "b2"
|
848
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
849
|
-
end
|
850
|
-
|
851
|
-
ns.add_function "bool_imp" do |func|
|
852
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
853
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
854
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
855
|
-
func.add_parameter "bool", "b2"
|
856
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
857
|
-
end
|
858
|
-
|
859
|
-
ns.add_function "bool_eqv" do |func|
|
860
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
861
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
862
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
863
|
-
func.add_parameter "Gecode::BoolVar", "b2"
|
864
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
865
|
-
end
|
866
|
-
|
867
|
-
ns.add_function "bool_eqv" do |func|
|
868
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
869
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
870
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
871
|
-
func.add_parameter "bool", "b2"
|
872
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
873
|
-
end
|
874
|
-
|
875
|
-
ns.add_function "bool_xor" do |func|
|
876
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
877
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
878
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
879
|
-
func.add_parameter "Gecode::BoolVar", "b2"
|
880
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
881
|
-
end
|
882
|
-
|
883
|
-
ns.add_function "bool_xor" do |func|
|
884
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
885
|
-
func.add_parameter "Gecode::BoolVar", "b0"
|
886
|
-
func.add_parameter "Gecode::BoolVar", "b1"
|
887
|
-
func.add_parameter "bool", "b2"
|
888
|
-
func.add_parameter "Gecode::IntConLevel", "icl", true
|
889
|
-
end
|
890
|
-
|
891
|
-
#
|
892
|
-
|
893
|
-
ns.add_function "branch" do |func|
|
894
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
895
|
-
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
896
|
-
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
897
|
-
end
|
898
|
-
func.add_parameter "Gecode::BvarSel", "vars"
|
899
|
-
func.add_parameter "Gecode::BvalSel", "vals"
|
900
|
-
end
|
901
|
-
|
902
|
-
ns.add_function "branch" do |func|
|
903
|
-
func.add_parameter "Gecode::MSpace *", "home"
|
904
|
-
func.add_parameter "Gecode::MBoolVarArray *", "iva" do |param|
|
905
|
-
param.custom_conversion = "*ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr()"
|
906
713
|
end
|
907
|
-
func.add_parameter "Gecode::BvarSel", "vars"
|
908
|
-
func.add_parameter "Gecode::BvalSel", "vals"
|
909
714
|
end
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
# INT POSTING FUNCTIONS
|
719
|
+
|
720
|
+
ns.add_function "abs" do |func|
|
721
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
722
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
723
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
724
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
725
|
+
end
|
726
|
+
|
727
|
+
ns.add_function "max" do |func|
|
728
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
729
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
730
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
731
|
+
func.add_parameter "Gecode::IntVar", "x2"
|
732
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
733
|
+
end
|
734
|
+
|
735
|
+
ns.add_function "max" do |func|
|
736
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
737
|
+
func.add_parameter "Gecode::MIntVarArray", "arr" do |param|
|
738
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 1)->ptr()"
|
739
|
+
end
|
740
|
+
func.add_parameter "Gecode::IntVar", "y"
|
741
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
742
|
+
end
|
743
|
+
|
744
|
+
ns.add_function "min" do |func|
|
745
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
746
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
747
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
748
|
+
func.add_parameter "Gecode::IntVar", "x2"
|
749
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
750
|
+
end
|
751
|
+
|
752
|
+
ns.add_function "min" do |func|
|
753
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
754
|
+
func.add_parameter "Gecode::MIntVarArray", "x" do |param|
|
755
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 1)->ptr()"
|
756
|
+
end
|
757
|
+
func.add_parameter "Gecode::IntVar", "y"
|
758
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
759
|
+
end
|
760
|
+
|
761
|
+
ns.add_function "mult" do |func|
|
762
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
763
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
764
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
765
|
+
func.add_parameter "Gecode::IntVar", "x2"
|
766
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
767
|
+
end
|
768
|
+
|
769
|
+
# Bool post functions
|
770
|
+
|
771
|
+
ns.add_function "bool_not" do |func|
|
772
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
773
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
774
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
775
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
776
|
+
end
|
777
|
+
|
778
|
+
ns.add_function "bool_eq" do |func|
|
779
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
780
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
781
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
782
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
783
|
+
end
|
784
|
+
|
785
|
+
ns.add_function "bool_and" do |func|
|
786
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
787
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
788
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
789
|
+
func.add_parameter "Gecode::BoolVar", "b2"
|
790
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
791
|
+
end
|
792
|
+
|
793
|
+
ns.add_function "bool_and" do |func|
|
794
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
795
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
796
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
797
|
+
func.add_parameter "bool", "b2"
|
798
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
799
|
+
end
|
800
|
+
|
801
|
+
ns.add_function "bool_and" do |func|
|
802
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
803
|
+
func.add_parameter "Gecode::MBoolVarArray", "b0" do |param|
|
804
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 1)->ptr())"
|
805
|
+
end
|
806
|
+
func.add_parameter "Gecode::BoolVar", "c"
|
807
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
808
|
+
end
|
809
|
+
|
810
|
+
ns.add_function "bool_and" do |func|
|
811
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
812
|
+
func.add_parameter "Gecode::MBoolVarArray", "b0" do |param|
|
813
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 1)->ptr())"
|
814
|
+
end
|
815
|
+
func.add_parameter "bool", "c"
|
816
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
817
|
+
end
|
818
|
+
|
819
|
+
ns.add_function "bool_or" do |func|
|
820
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
821
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
822
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
823
|
+
func.add_parameter "Gecode::BoolVar", "b2"
|
824
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
825
|
+
end
|
826
|
+
|
827
|
+
ns.add_function "bool_or" do |func|
|
828
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
829
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
830
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
831
|
+
func.add_parameter "bool", "b2"
|
832
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
833
|
+
end
|
834
|
+
|
835
|
+
ns.add_function "bool_or" do |func|
|
836
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
837
|
+
func.add_parameter "Gecode::MBoolVarArray", "b" do |param|
|
838
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr())"
|
839
|
+
end
|
840
|
+
func.add_parameter "Gecode::BoolVar", "c"
|
841
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
842
|
+
end
|
843
|
+
|
844
|
+
ns.add_function "bool_or" do |func|
|
845
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
846
|
+
func.add_parameter "Gecode::MBoolVarArray", "b" do |param|
|
847
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr())"
|
848
|
+
end
|
849
|
+
func.add_parameter "bool", "c"
|
850
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
851
|
+
end
|
852
|
+
|
853
|
+
ns.add_function "bool_imp" do |func|
|
854
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
855
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
856
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
857
|
+
func.add_parameter "Gecode::BoolVar", "b2"
|
858
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
859
|
+
end
|
860
|
+
|
861
|
+
ns.add_function "bool_imp" do |func|
|
862
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
863
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
864
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
865
|
+
func.add_parameter "bool", "b2"
|
866
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
867
|
+
end
|
868
|
+
|
869
|
+
ns.add_function "bool_eqv" do |func|
|
870
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
871
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
872
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
873
|
+
func.add_parameter "Gecode::BoolVar", "b2"
|
874
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
875
|
+
end
|
876
|
+
|
877
|
+
ns.add_function "bool_eqv" do |func|
|
878
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
879
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
880
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
881
|
+
func.add_parameter "bool", "b2"
|
882
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
883
|
+
end
|
884
|
+
|
885
|
+
ns.add_function "bool_xor" do |func|
|
886
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
887
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
888
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
889
|
+
func.add_parameter "Gecode::BoolVar", "b2"
|
890
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
891
|
+
end
|
892
|
+
|
893
|
+
ns.add_function "bool_xor" do |func|
|
894
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
895
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
896
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
897
|
+
func.add_parameter "bool", "b2"
|
898
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
899
|
+
end
|
900
|
+
|
901
|
+
#
|
902
|
+
|
903
|
+
ns.add_function "branch" do |func|
|
904
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
905
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
906
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
907
|
+
end
|
908
|
+
func.add_parameter "Gecode::BvarSel", "vars"
|
909
|
+
func.add_parameter "Gecode::BvalSel", "vals"
|
910
|
+
end
|
911
|
+
|
912
|
+
ns.add_function "branch" do |func|
|
913
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
914
|
+
func.add_parameter "Gecode::MBoolVarArray *", "iva" do |param|
|
915
|
+
param.custom_conversion = "*ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr()"
|
916
|
+
end
|
917
|
+
func.add_parameter "Gecode::BvarSel", "vars"
|
918
|
+
func.add_parameter "Gecode::BvalSel", "vals"
|
919
|
+
end
|
920
|
+
|
921
|
+
ns.add_function "branch" do |func|
|
922
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
923
|
+
func.add_parameter "Gecode::MSetVarArray *", "sva" do |param|
|
924
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(argv[1], 2)->ptr()"
|
925
|
+
end
|
926
|
+
func.add_parameter "Gecode::SetBvarSel", "vars"
|
927
|
+
func.add_parameter "Gecode::SetBvalSel", "vals"
|
928
|
+
end
|
929
|
+
|
930
|
+
ns.add_function "assign" do |func|
|
931
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
932
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
933
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(iva, 1)->ptr()"
|
934
|
+
end
|
935
|
+
func.add_parameter "Gecode::AvalSel", "vals"
|
936
|
+
end
|
937
|
+
|
938
|
+
ns.add_function "channel" do |func|
|
939
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
940
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
941
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
942
|
+
end
|
943
|
+
func.add_parameter "Gecode::MIntVarArray *", "y" do |param|
|
944
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
945
|
+
end
|
946
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
947
|
+
end
|
948
|
+
|
949
|
+
ns.add_function "count" do |func|
|
950
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
951
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
952
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
953
|
+
end
|
954
|
+
|
955
|
+
func.add_parameter "int", "y"
|
956
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
957
|
+
func.add_parameter "int", "m"
|
958
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
959
|
+
end
|
960
|
+
|
961
|
+
ns.add_function "count" do |func|
|
962
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
963
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
964
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
965
|
+
end
|
966
|
+
|
967
|
+
func.add_parameter "Gecode::IntVar", "y"
|
968
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
969
|
+
func.add_parameter "int", "m"
|
970
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
971
|
+
end
|
972
|
+
|
973
|
+
ns.add_function "count" do |func|
|
974
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
975
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
976
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
977
|
+
end
|
978
|
+
|
979
|
+
func.add_parameter "int", "y"
|
980
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
981
|
+
func.add_parameter "Gecode::IntVar", "m"
|
982
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
983
|
+
end
|
984
|
+
|
985
|
+
ns.add_function "count" do |func|
|
986
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
987
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
988
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
989
|
+
end
|
990
|
+
|
991
|
+
func.add_parameter "Gecode::IntVar", "y"
|
992
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
993
|
+
func.add_parameter "Gecode::IntVar", "m"
|
994
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
995
|
+
end
|
996
|
+
|
997
|
+
|
998
|
+
ns.add_function "cumulatives", "void" do |method|
|
999
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1000
|
+
method.add_parameter "Gecode::IntArgs&", "machine" do |param|
|
1001
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1002
|
+
end
|
1003
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1004
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1005
|
+
end
|
1006
|
+
method.add_parameter "Gecode::MIntVarArray", "duration" do |param|
|
1007
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1008
|
+
end
|
1009
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1010
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1011
|
+
end
|
1012
|
+
method.add_parameter "Gecode::MIntVarArray", "height" do |param|
|
1013
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[5], 6)->ptr()"
|
1014
|
+
end
|
1015
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1016
|
+
method.add_parameter "bool", "at_most"
|
1017
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
ns.add_function "cumulatives", "void" do |method|
|
1021
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1022
|
+
method.add_parameter "Gecode::IntArgs&", "machine" do |param|
|
1023
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1024
|
+
end
|
1025
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1026
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1027
|
+
end
|
1028
|
+
method.add_parameter "Gecode::IntArgs&", "duration"
|
1029
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1030
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1031
|
+
end
|
1032
|
+
method.add_parameter "Gecode::MIntVarArray", "height" do |param|
|
1033
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[5], 6)->ptr()"
|
1034
|
+
end
|
1035
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1036
|
+
method.add_parameter "bool", "at_most"
|
1037
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
ns.add_function "cumulatives", "void" do |method|
|
1041
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1042
|
+
method.add_parameter "Gecode::IntArgs&", "machine"
|
1043
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1044
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1045
|
+
end
|
1046
|
+
method.add_parameter "Gecode::IntArgs&", "duration"
|
1047
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1048
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1049
|
+
end
|
1050
|
+
method.add_parameter "Gecode::MIntVarArray", "height" do |param|
|
1051
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[5], 6)->ptr()"
|
1052
|
+
end
|
1053
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1054
|
+
method.add_parameter "bool", "at_most"
|
1055
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
ns.add_function "cumulatives", "void" do |method|
|
1059
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1060
|
+
method.add_parameter "Gecode::IntArgs&", "machine" do |param|
|
1061
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1062
|
+
end
|
1063
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1064
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1065
|
+
end
|
1066
|
+
method.add_parameter "Gecode::MIntVarArray", "duration" do |param|
|
1067
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1068
|
+
end
|
1069
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1070
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1071
|
+
end
|
1072
|
+
method.add_parameter "Gecode::IntArgs&", "height"
|
1073
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1074
|
+
method.add_parameter "bool", "at_most"
|
1075
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
ns.add_function "cumulatives", "void" do |method|
|
1079
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1080
|
+
method.add_parameter "Gecode::IntArgs&", "machine"
|
1081
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1082
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1083
|
+
end
|
1084
|
+
method.add_parameter "Gecode::MIntVarArray", "duration" do |param|
|
1085
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1086
|
+
end
|
1087
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1088
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1089
|
+
end
|
1090
|
+
method.add_parameter "Gecode::IntArgs&", "height"
|
1091
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1092
|
+
method.add_parameter "bool", "at_most"
|
1093
|
+
method.add_parameter "Gecode::IntConLevel", "icl"
|
1094
|
+
end
|
1095
|
+
|
1096
|
+
ns.add_function "cumulatives", "void" do |method|
|
1097
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1098
|
+
method.add_parameter "Gecode::IntArgs&", "machine" do |param|
|
1099
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1100
|
+
end
|
1101
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1102
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1103
|
+
end
|
1104
|
+
method.add_parameter "Gecode::IntArgs&", "duration"
|
1105
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1106
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1107
|
+
end
|
1108
|
+
method.add_parameter "Gecode::IntArgs&", "height"
|
1109
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1110
|
+
method.add_parameter "bool", "at_most"
|
1111
|
+
method.add_parameter "Gecode::IntConLevel", "icl"
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
ns.add_function "cumulatives", "void" do |method|
|
1115
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1116
|
+
method.add_parameter "Gecode::IntArgs&", "machine"
|
1117
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1118
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1119
|
+
end
|
1120
|
+
method.add_parameter "Gecode::IntArgs&", "duration"
|
1121
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1122
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1123
|
+
end
|
1124
|
+
method.add_parameter "Gecode::IntArgs&", "height"
|
1125
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1126
|
+
method.add_parameter "bool", "at_most"
|
1127
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
ns.add_function "distinct" do |func|
|
1131
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1132
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
1133
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1134
|
+
end
|
1135
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
ns.add_function "distinct" do |func|
|
1139
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1140
|
+
func.add_parameter "Gecode::IntArgs", "x"
|
1141
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
1142
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1143
|
+
end
|
1144
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
|
1148
|
+
ns.add_function "dom" do |func|
|
1149
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1150
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1151
|
+
func.add_parameter "int", "l"
|
1152
|
+
func.add_parameter "int", "m"
|
1153
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
ns.add_function "dom" do |func|
|
1157
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1158
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
1159
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::IntVarArgs *>(ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr())"
|
1160
|
+
end
|
1161
|
+
func.add_parameter "int", "l"
|
1162
|
+
func.add_parameter "int", "m"
|
1163
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
ns.add_function "dom" do |func|
|
1167
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1168
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1169
|
+
func.add_parameter "Gecode::IntSet", "s"
|
1170
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1171
|
+
end
|
1172
|
+
|
1173
|
+
ns.add_function "dom" do |func|
|
1174
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1175
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
1176
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::IntVarArgs *>(ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr())"
|
1177
|
+
end
|
1178
|
+
func.add_parameter "Gecode::IntSet", "s"
|
1179
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
ns.add_function "dom" do |func|
|
1183
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1184
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1185
|
+
func.add_parameter "int", "l"
|
1186
|
+
func.add_parameter "int", "m"
|
1187
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1188
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
ns.add_function "dom" do |func|
|
1192
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1193
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1194
|
+
func.add_parameter "Gecode::IntSet", "s"
|
1195
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1196
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
ns.add_function "element", "void" do |func|
|
1200
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1201
|
+
func.add_parameter "Gecode::IntArgs&", "x"
|
1202
|
+
func.add_parameter "Gecode::IntVar", "y0"
|
1203
|
+
func.add_parameter "Gecode::IntVar", "y1"
|
1204
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1205
|
+
end
|
1206
|
+
|
1207
|
+
ns.add_function "element", "void" do |func|
|
1208
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1209
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
1210
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1211
|
+
end
|
1212
|
+
func.add_parameter "Gecode::IntVar", "y0"
|
1213
|
+
func.add_parameter "Gecode::IntVar", "y1"
|
1214
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1215
|
+
end
|
1216
|
+
|
1217
|
+
ns.add_function "gcc", "void" do |func|
|
1218
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1219
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1220
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1221
|
+
end
|
1222
|
+
func.add_parameter "Gecode::IntArgs", "c"
|
1223
|
+
func.add_parameter "int", "m"
|
1224
|
+
func.add_parameter "int", "unspec_low"
|
1225
|
+
func.add_parameter "int", "unspec_up"
|
1226
|
+
func.add_parameter "int", "min"
|
1227
|
+
func.add_parameter "int", "max"
|
1228
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
ns.add_function "gcc", "void" do |func|
|
1232
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1233
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1234
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1235
|
+
end
|
1236
|
+
func.add_parameter "Gecode::IntArgs", "c"
|
1237
|
+
func.add_parameter "int", "m"
|
1238
|
+
func.add_parameter "int", "unspec"
|
1239
|
+
func.add_parameter "int", "min"
|
1240
|
+
func.add_parameter "int", "max"
|
1241
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
ns.add_function "gcc", "void" do |func|
|
1245
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1246
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1247
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::IntVarArgs *>(ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr())"
|
1248
|
+
end
|
1249
|
+
func.add_parameter "int", "lb"
|
1250
|
+
func.add_parameter "int", "ub"
|
1251
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1252
|
+
end
|
1253
|
+
|
1254
|
+
ns.add_function "gcc", "void" do |func|
|
1255
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1256
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1257
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1258
|
+
end
|
1259
|
+
func.add_parameter "int", "ub"
|
1260
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
ns.add_function "gcc", "void" do |func|
|
1264
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1265
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1266
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1267
|
+
end
|
1268
|
+
func.add_parameter "Gecode::MIntVarArray *", "c" do |param|
|
1269
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1270
|
+
end
|
1271
|
+
func.add_parameter "int", "min"
|
1272
|
+
func.add_parameter "int", "max"
|
1273
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
ns.add_function "gcc", "void" do |func|
|
1277
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1278
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1279
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1280
|
+
end
|
1281
|
+
func.add_parameter "Gecode::IntArgs", "v"
|
1282
|
+
func.add_parameter "Gecode::MIntVarArray *", "c" do |param|
|
1283
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1284
|
+
end
|
1285
|
+
func.add_parameter "int", "m"
|
1286
|
+
func.add_parameter "int", "unspec"
|
1287
|
+
func.add_parameter "bool", "all"
|
1288
|
+
func.add_parameter "int", "min"
|
1289
|
+
func.add_parameter "int", "max"
|
1290
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1291
|
+
end
|
1292
|
+
|
1293
|
+
ns.add_function "linear", "void" do |func|
|
1294
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1295
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1296
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1297
|
+
end
|
1298
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1299
|
+
func.add_parameter "int", "c"
|
1300
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1301
|
+
end
|
1302
|
+
ns.add_function "linear", "void" do |func|
|
1303
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1304
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1305
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1306
|
+
end
|
1307
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1308
|
+
func.add_parameter "int", "c"
|
1309
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1310
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1311
|
+
end
|
1312
|
+
|
1313
|
+
ns.add_function "linear", "void" do |func|
|
1314
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1315
|
+
func.add_parameter "Gecode::IntArgs", "a"
|
1316
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1317
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1318
|
+
end
|
1319
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1320
|
+
func.add_parameter "int", "c"
|
1321
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1322
|
+
end
|
1323
|
+
|
1324
|
+
ns.add_function "linear", "void" do |func|
|
1325
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1326
|
+
func.add_parameter "Gecode::IntArgs", "a"
|
1327
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1328
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1329
|
+
end
|
1330
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1331
|
+
func.add_parameter "int", "c"
|
1332
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1333
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1334
|
+
end
|
1335
|
+
|
1336
|
+
ns.add_function "linear", "void" do |func|
|
1337
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1338
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1339
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1340
|
+
end
|
1341
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1342
|
+
func.add_parameter "Gecode::IntVar", "c"
|
1343
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1344
|
+
end
|
1345
|
+
|
1346
|
+
ns.add_function "linear", "void" do |func|
|
1347
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1348
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1349
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1350
|
+
end
|
1351
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1352
|
+
func.add_parameter "Gecode::IntVar", "c"
|
1353
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1354
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
|
1358
|
+
ns.add_function "linear", "void" do |func|
|
1359
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1360
|
+
func.add_parameter "Gecode::IntArgs", "a"
|
1361
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1362
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1363
|
+
end
|
1364
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1365
|
+
func.add_parameter "Gecode::IntVar", "y"
|
1366
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1367
|
+
end
|
1368
|
+
|
1369
|
+
ns.add_function "linear", "void" do |func|
|
1370
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1371
|
+
func.add_parameter "Gecode::IntArgs", "a"
|
1372
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1373
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1374
|
+
end
|
1375
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1376
|
+
func.add_parameter "Gecode::IntVar", "y"
|
1377
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1378
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1379
|
+
end
|
1380
|
+
|
1381
|
+
ns.add_function "linear", "void" do |func|
|
1382
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1383
|
+
func.add_parameter "Gecode::MBoolVarArray *", "x" do |param|
|
1384
|
+
param.custom_conversion = "*ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr()"
|
1385
|
+
end
|
1386
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1387
|
+
func.add_parameter "int", "y"
|
1388
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1389
|
+
end
|
1390
|
+
|
1391
|
+
ns.add_function "linear", "void" do |func|
|
1392
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1393
|
+
func.add_parameter "Gecode::MBoolVarArray *", "x" do |param|
|
1394
|
+
param.custom_conversion = "*ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr()"
|
1395
|
+
end
|
1396
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1397
|
+
func.add_parameter "Gecode::IntVar", "y"
|
1398
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1399
|
+
end
|
1400
|
+
|
1401
|
+
# ns.add_function "regular", "void" do |func|
|
1392
1402
|
# func.add_parameter "Gecode::MSpace*", "home"
|
1393
1403
|
# func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1394
1404
|
# param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
@@ -1396,710 +1406,710 @@ Rust::Bindings::create_bindings Rust::Bindings::LangCxx, "gecode" do |b|
|
|
1396
1406
|
# func.add_parameter "Gecode::DFA", "dfa" # TODO: add class DFA
|
1397
1407
|
# func.add_parameter "Gecode::IntConLevel", "icl", true
|
1398
1408
|
# end
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1748
|
-
|
1749
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1903
|
-
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
1908
|
-
|
1909
|
-
|
1910
|
-
|
1911
|
-
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2006
|
-
|
2007
|
-
|
2008
|
-
|
2009
|
-
|
2010
|
-
|
2011
|
-
|
2012
|
-
|
2013
|
-
|
2014
|
-
|
2015
|
-
|
2016
|
-
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
2020
|
-
|
2021
|
-
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
|
2026
|
-
|
2027
|
-
|
2028
|
-
|
2029
|
-
|
2030
|
-
|
2031
|
-
|
2032
|
-
|
2033
|
-
|
2034
|
-
|
2035
|
-
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2042
|
-
|
2043
|
-
|
2044
|
-
|
2045
|
-
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2049
|
-
|
2050
|
-
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2054
|
-
|
2055
|
-
|
2056
|
-
|
2057
|
-
|
2058
|
-
|
2059
|
-
|
2060
|
-
|
2061
|
-
|
2062
|
-
|
2063
|
-
|
2064
|
-
|
2065
|
-
|
2066
|
-
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2079
|
-
|
2080
|
-
|
2081
|
-
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
2087
|
-
|
2088
|
-
|
2089
|
-
|
2090
|
-
|
2091
|
-
|
2092
|
-
|
2093
|
-
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
|
2102
|
-
|
2103
|
-
|
2104
|
-
|
1409
|
+
|
1410
|
+
ns.add_function "rel" do |func|
|
1411
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1412
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
1413
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1414
|
+
func.add_parameter "int", "c"
|
1415
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
ns.add_function "rel" do |func|
|
1419
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1420
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
1421
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1422
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
1423
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1424
|
+
end
|
1425
|
+
|
1426
|
+
ns.add_function "rel" do |func|
|
1427
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1428
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
1429
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1430
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
1431
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1432
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1433
|
+
end
|
1434
|
+
|
1435
|
+
ns.add_function "rel" do |func|
|
1436
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1437
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
1438
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1439
|
+
func.add_parameter "int", "c"
|
1440
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1441
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1442
|
+
end
|
1443
|
+
|
1444
|
+
ns.add_function "rel" do |func|
|
1445
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1446
|
+
func.add_parameter "Gecode::MBoolVarArray *", "x" do |param|
|
1447
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1448
|
+
end
|
1449
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1450
|
+
func.add_parameter "Gecode::MIntVarArray *", "y" do |param|
|
1451
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1452
|
+
end
|
1453
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
ns.add_function "eq", "void" do |func|
|
1457
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1458
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
1459
|
+
func.add_parameter "Gecode::IntVar", "x2"
|
1460
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
ns.add_function "eq", "void" do |func|
|
1464
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1465
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1466
|
+
func.add_parameter "int", "n"
|
1467
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1468
|
+
end
|
1469
|
+
|
1470
|
+
ns.add_function "eq", "void" do |method|
|
1471
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1472
|
+
method.add_parameter "Gecode::IntVar", "x0"
|
1473
|
+
method.add_parameter "Gecode::IntVar", "x1"
|
1474
|
+
method.add_parameter "Gecode::BoolVar", "b"
|
1475
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1476
|
+
end
|
1477
|
+
|
1478
|
+
ns.add_function "eq", "void" do |method|
|
1479
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1480
|
+
method.add_parameter "Gecode::IntVar", "x"
|
1481
|
+
method.add_parameter "int", "n"
|
1482
|
+
method.add_parameter "Gecode::BoolVar", "b"
|
1483
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1484
|
+
end
|
1485
|
+
|
1486
|
+
ns.add_function "eq", "void" do |method|
|
1487
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1488
|
+
method.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1489
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1490
|
+
end
|
1491
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1492
|
+
end
|
1493
|
+
|
1494
|
+
ns.add_function "sortedness", "void" do |method|
|
1495
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1496
|
+
method.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1497
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1498
|
+
end
|
1499
|
+
method.add_parameter "Gecode::MIntVarArray *", "y" do |param|
|
1500
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1501
|
+
end
|
1502
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1503
|
+
end
|
1504
|
+
ns.add_function "sortedness", "void" do |method|
|
1505
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1506
|
+
method.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1507
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1508
|
+
end
|
1509
|
+
method.add_parameter "Gecode::MIntVarArray *", "y" do |param|
|
1510
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1511
|
+
end
|
1512
|
+
method.add_parameter "Gecode::MIntVarArray *", "z" do |param|
|
1513
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1514
|
+
end
|
1515
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1516
|
+
end
|
1517
|
+
|
1518
|
+
ns.add_function "post", "Gecode::BoolVar" do |func|
|
1519
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1520
|
+
func.add_parameter "Gecode::MiniModel::BoolExpr", "e"
|
1521
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
ns.add_function "post", "Gecode::BoolVar" do |func|
|
1525
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1526
|
+
func.add_parameter "Gecode::BoolVar", "e"
|
1527
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1528
|
+
end
|
1529
|
+
|
1530
|
+
ns.add_function "post" do |func|
|
1531
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1532
|
+
func.add_parameter "Gecode::MiniModel::BoolRel", "r"
|
1533
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1534
|
+
end
|
1535
|
+
|
1536
|
+
ns.add_function "post", "Gecode::IntVar" do |func|
|
1537
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1538
|
+
func.add_parameter "Gecode::IntVar", "e"
|
1539
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1540
|
+
end
|
1541
|
+
|
1542
|
+
ns.add_function "post", "Gecode::IntVar" do |func|
|
1543
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1544
|
+
func.add_parameter "int", "n"
|
1545
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1546
|
+
end
|
1547
|
+
|
1548
|
+
ns.add_function "post", "Gecode::IntVar" do |func|
|
1549
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1550
|
+
func.add_parameter "Gecode::MiniModel::LinExpr", "e"
|
1551
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1552
|
+
end
|
1553
|
+
|
1554
|
+
ns.add_function "post" do |func|
|
1555
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1556
|
+
func.add_parameter "Gecode::MiniModel::LinRel", "e"
|
1557
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1558
|
+
end
|
1559
|
+
|
1560
|
+
ns.add_function "post" do |func|
|
1561
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1562
|
+
func.add_parameter "bool", "r"
|
1563
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1564
|
+
end
|
1565
|
+
|
1566
|
+
ns.add_function "producer_consumer" do |func|
|
1567
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1568
|
+
func.add_parameter "Gecode::MIntVarArray *", "produce_date" do |param|
|
1569
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1570
|
+
end
|
1571
|
+
func.add_parameter "Gecode::IntArgs", "produce_amount"
|
1572
|
+
func.add_parameter "Gecode::MIntVarArray *", "consume_date" do |param|
|
1573
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1574
|
+
end
|
1575
|
+
func.add_parameter "Gecode::IntArgs", "consume_amount"
|
1576
|
+
func.add_parameter "int", "initial"
|
1577
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1578
|
+
end
|
1579
|
+
|
1580
|
+
ns.add_function "cumulative" do |func|
|
1581
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1582
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1583
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1584
|
+
end
|
1585
|
+
func.add_parameter "Gecode::MIntVarArray *", "duration" do |param|
|
1586
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1587
|
+
end
|
1588
|
+
func.add_parameter "Gecode::MIntVarArray *", "height" do |param|
|
1589
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1590
|
+
end
|
1591
|
+
func.add_parameter "int", "limit"
|
1592
|
+
func.add_parameter "bool", "at_most", true
|
1593
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1594
|
+
end
|
1595
|
+
|
1596
|
+
ns.add_function "cumulative" do |func|
|
1597
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1598
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1599
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1600
|
+
end
|
1601
|
+
func.add_parameter "Gecode::IntArgs", "duration"
|
1602
|
+
func.add_parameter "Gecode::MIntVarArray *", "height" do |param|
|
1603
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1604
|
+
end
|
1605
|
+
func.add_parameter "int", "limit"
|
1606
|
+
func.add_parameter "bool", "at_most", true
|
1607
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1608
|
+
end
|
1609
|
+
|
1610
|
+
ns.add_function "cumulative" do |func|
|
1611
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1612
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1613
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1614
|
+
end
|
1615
|
+
func.add_parameter "Gecode::MIntVarArray *", "duration" do |param|
|
1616
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1617
|
+
end
|
1618
|
+
func.add_parameter "Gecode::IntArgs", "height"
|
1619
|
+
func.add_parameter "int", "limit"
|
1620
|
+
func.add_parameter "bool", "at_most", true
|
1621
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
ns.add_function "cumulative" do |func|
|
1625
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1626
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1627
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1628
|
+
end
|
1629
|
+
func.add_parameter "Gecode::IntArgs", "duration"
|
1630
|
+
func.add_parameter "Gecode::IntArgs", "height"
|
1631
|
+
func.add_parameter "int", "limit"
|
1632
|
+
func.add_parameter "bool", "at_most", true
|
1633
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1634
|
+
end
|
1635
|
+
|
1636
|
+
ns.add_function "serialized" do |func|
|
1637
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1638
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1639
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1640
|
+
end
|
1641
|
+
func.add_parameter "Gecode::MIntVarArray *", "duration" do |param|
|
1642
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1643
|
+
end
|
1644
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1645
|
+
end
|
1646
|
+
|
1647
|
+
ns.add_function "serialized" do |func|
|
1648
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1649
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1650
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1651
|
+
end
|
1652
|
+
func.add_parameter "Gecode::IntArgs", "duration"
|
1653
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1654
|
+
end
|
1655
|
+
|
1656
|
+
ns.add_function "atmost" do |func|
|
1657
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1658
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1659
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1660
|
+
end
|
1661
|
+
func.add_parameter "int", "n"
|
1662
|
+
func.add_parameter "int", "m"
|
1663
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1664
|
+
end
|
1665
|
+
|
1666
|
+
ns.add_function "atmost" do |func|
|
1667
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1668
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1669
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1670
|
+
end
|
1671
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1672
|
+
func.add_parameter "int", "m"
|
1673
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1674
|
+
end
|
1675
|
+
|
1676
|
+
ns.add_function "atmost" do |func|
|
1677
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1678
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1679
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1680
|
+
end
|
1681
|
+
func.add_parameter "int", "n"
|
1682
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1683
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1684
|
+
end
|
1685
|
+
|
1686
|
+
ns.add_function "atmost" do |func|
|
1687
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1688
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1689
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1690
|
+
end
|
1691
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1692
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1693
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1694
|
+
end
|
1695
|
+
|
1696
|
+
ns.add_function "atleast" do |func|
|
1697
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1698
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1699
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1700
|
+
end
|
1701
|
+
func.add_parameter "int", "n"
|
1702
|
+
func.add_parameter "int", "m"
|
1703
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1704
|
+
end
|
1705
|
+
|
1706
|
+
ns.add_function "atleast" do |func|
|
1707
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1708
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1709
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1710
|
+
end
|
1711
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1712
|
+
func.add_parameter "int", "m"
|
1713
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1714
|
+
end
|
1715
|
+
|
1716
|
+
ns.add_function "atleast" do |func|
|
1717
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1718
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1719
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1720
|
+
end
|
1721
|
+
func.add_parameter "int", "n"
|
1722
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1723
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
ns.add_function "atleast" do |func|
|
1727
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1728
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1729
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1730
|
+
end
|
1731
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1732
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1733
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1734
|
+
end
|
1735
|
+
|
1736
|
+
ns.add_function "exactly" do |func|
|
1737
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1738
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1739
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1740
|
+
end
|
1741
|
+
func.add_parameter "int", "n"
|
1742
|
+
func.add_parameter "int", "m"
|
1743
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
ns.add_function "exactly" do |func|
|
1747
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1748
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1749
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1750
|
+
end
|
1751
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1752
|
+
func.add_parameter "int", "m"
|
1753
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1754
|
+
end
|
1755
|
+
|
1756
|
+
ns.add_function "exactly" do |func|
|
1757
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1758
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1759
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1760
|
+
end
|
1761
|
+
func.add_parameter "int", "n"
|
1762
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1763
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1764
|
+
end
|
1765
|
+
|
1766
|
+
ns.add_function "exactly" do |func|
|
1767
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1768
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1769
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1770
|
+
end
|
1771
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1772
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1773
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1774
|
+
end
|
1775
|
+
|
1776
|
+
ns.add_function "lex" do |func|
|
1777
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1778
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1779
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1780
|
+
end
|
1781
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1782
|
+
func.add_parameter "Gecode::MIntVarArray *", "y" do |param|
|
1783
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1784
|
+
end
|
1785
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1786
|
+
end
|
1787
|
+
|
1788
|
+
ns.add_function "cardinality" do |func|
|
1789
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1790
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1791
|
+
func.add_parameter "int", "i"
|
1792
|
+
func.add_parameter "int", "j"
|
1793
|
+
end
|
1794
|
+
|
1795
|
+
ns.add_function "cardinality" do |func|
|
1796
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1797
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1798
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1799
|
+
end
|
1800
|
+
|
1801
|
+
ns.add_function "convex" do |func|
|
1802
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1803
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1804
|
+
end
|
1805
|
+
|
1806
|
+
ns.add_function "convexHull" do |func|
|
1807
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1808
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1809
|
+
func.add_parameter "Gecode::SetVar", "y"
|
1810
|
+
end
|
1811
|
+
|
1812
|
+
ns.add_function "atmostOne" do |func|
|
1813
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1814
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
1815
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
1816
|
+
end
|
1817
|
+
func.add_parameter "int", "c"
|
1818
|
+
end
|
1819
|
+
|
1820
|
+
ns.add_function "distinct" do |func|
|
1821
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1822
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
1823
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(argv[1], 2)->ptr()"
|
1824
|
+
end
|
1825
|
+
func.add_parameter "int", "c"
|
1826
|
+
end
|
1827
|
+
|
1828
|
+
ns.add_function "dom" do |func|
|
1829
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1830
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1831
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1832
|
+
func.add_parameter "int", "i"
|
1833
|
+
end
|
1834
|
+
|
1835
|
+
ns.add_function "dom" do |func|
|
1836
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1837
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1838
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1839
|
+
func.add_parameter "int", "i"
|
1840
|
+
func.add_parameter "int", "j"
|
1841
|
+
end
|
1842
|
+
|
1843
|
+
|
1844
|
+
ns.add_function "dom" do |func|
|
1845
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1846
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1847
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1848
|
+
func.add_parameter "Gecode::IntSet", "s"
|
1849
|
+
end
|
1850
|
+
|
1851
|
+
ns.add_function "dom" do |func|
|
1852
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1853
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1854
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1855
|
+
func.add_parameter "int", "i"
|
1856
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1857
|
+
end
|
1858
|
+
|
1859
|
+
ns.add_function "dom" do |func|
|
1860
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1861
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1862
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1863
|
+
func.add_parameter "int", "i"
|
1864
|
+
func.add_parameter "int", "j"
|
1865
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1866
|
+
end
|
1867
|
+
|
1868
|
+
ns.add_function "dom" do |func|
|
1869
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1870
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1871
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1872
|
+
func.add_parameter "Gecode::IntSet", "s"
|
1873
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
ns.add_function "rel" do |func|
|
1877
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1878
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1879
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1880
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1881
|
+
end
|
1882
|
+
|
1883
|
+
ns.add_function "rel" do |func|
|
1884
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1885
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1886
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1887
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1888
|
+
end
|
1889
|
+
|
1890
|
+
ns.add_function "min" do |func|
|
1891
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1892
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1893
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1894
|
+
end
|
1895
|
+
|
1896
|
+
ns.add_function "max" do |func|
|
1897
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1898
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1899
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1900
|
+
end
|
1901
|
+
|
1902
|
+
ns.add_function "match" do |func|
|
1903
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1904
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1905
|
+
func.add_parameter "Gecode::MIntVarArray", "x" do |param|
|
1906
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(x, 3)->ptr()"
|
1907
|
+
end
|
1908
|
+
end
|
1909
|
+
|
1910
|
+
ns.add_function "channel" do |func|
|
1911
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1912
|
+
func.add_parameter "Gecode::MIntVarArray", "x" do |param|
|
1913
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1914
|
+
end
|
1915
|
+
func.add_parameter "Gecode::MSetVarArray", "y" do |param|
|
1916
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(argv[2], 3)->ptr()"
|
1917
|
+
end
|
1918
|
+
end
|
1919
|
+
|
1920
|
+
ns.add_function "weights" do |func|
|
1921
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1922
|
+
func.add_parameter "Gecode::IntArgs", "elements"
|
1923
|
+
func.add_parameter "Gecode::IntArgs", "weights"
|
1924
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1925
|
+
func.add_parameter "Gecode::IntVar", "y"
|
1926
|
+
end
|
1927
|
+
|
1928
|
+
ns.add_function "rel" do |func|
|
1929
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1930
|
+
func.add_parameter "Gecode::IntSet", "x"
|
1931
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
1932
|
+
func.add_parameter "Gecode::SetVar", "y"
|
1933
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1934
|
+
func.add_parameter "Gecode::SetVar", "z"
|
1935
|
+
end
|
1936
|
+
|
1937
|
+
ns.add_function "rel" do |func|
|
1938
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1939
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1940
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
1941
|
+
func.add_parameter "Gecode::IntSet", "y"
|
1942
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1943
|
+
func.add_parameter "Gecode::SetVar", "z"
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
ns.add_function "rel" do |func|
|
1947
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1948
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1949
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
1950
|
+
func.add_parameter "Gecode::SetVar", "y"
|
1951
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1952
|
+
func.add_parameter "Gecode::IntSet", "z"
|
1953
|
+
end
|
1954
|
+
|
1955
|
+
ns.add_function "rel" do |func|
|
1956
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1957
|
+
func.add_parameter "Gecode::IntSet", "x"
|
1958
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
1959
|
+
func.add_parameter "Gecode::IntSet", "y"
|
1960
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1961
|
+
func.add_parameter "Gecode::SetVar", "z"
|
1962
|
+
end
|
1963
|
+
|
1964
|
+
ns.add_function "rel" do |func|
|
1965
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1966
|
+
func.add_parameter "Gecode::IntSet", "x"
|
1967
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
1968
|
+
func.add_parameter "Gecode::SetVar", "y"
|
1969
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1970
|
+
func.add_parameter "Gecode::IntSet", "z"
|
1971
|
+
end
|
1972
|
+
|
1973
|
+
ns.add_function "rel" do |func|
|
1974
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1975
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1976
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
1977
|
+
func.add_parameter "Gecode::IntSet", "y"
|
1978
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1979
|
+
func.add_parameter "Gecode::IntSet", "z"
|
1980
|
+
end
|
1981
|
+
|
1982
|
+
ns.add_function "rel" do |func|
|
1983
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1984
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1985
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
1986
|
+
func.add_parameter "Gecode::SetVar", "y"
|
1987
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1988
|
+
func.add_parameter "Gecode::SetVar", "z"
|
1989
|
+
end
|
1990
|
+
|
1991
|
+
|
1992
|
+
ns.add_function "rel" do |func|
|
1993
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1994
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
1995
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
1996
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(argv[2], 3)->ptr()"
|
1997
|
+
end
|
1998
|
+
func.add_parameter "Gecode::SetVar", "y"
|
1999
|
+
end
|
2000
|
+
|
2001
|
+
ns.add_function "rel" do |func|
|
2002
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2003
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
2004
|
+
func.add_parameter "Gecode::MIntVarArray", "x" do |param|
|
2005
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
2006
|
+
end
|
2007
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2008
|
+
end
|
2009
|
+
|
2010
|
+
ns.add_function "rel" do |func|
|
2011
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2012
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2013
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2014
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2015
|
+
end
|
2016
|
+
|
2017
|
+
ns.add_function "rel" do |func|
|
2018
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2019
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2020
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2021
|
+
func.add_parameter "Gecode::IntVar", "y"
|
2022
|
+
end
|
2023
|
+
|
2024
|
+
ns.add_function "rel" do |func|
|
2025
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2026
|
+
func.add_parameter "Gecode::IntVar", "x"
|
2027
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2028
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2029
|
+
end
|
2030
|
+
|
2031
|
+
ns.add_function "rel" do |func|
|
2032
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2033
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2034
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2035
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2036
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
2037
|
+
end
|
2038
|
+
|
2039
|
+
ns.add_function "rel" do |func|
|
2040
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2041
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2042
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2043
|
+
func.add_parameter "Gecode::IntVar", "y"
|
2044
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
2045
|
+
end
|
2046
|
+
|
2047
|
+
ns.add_function "rel" do |func|
|
2048
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2049
|
+
func.add_parameter "Gecode::IntVar", "x"
|
2050
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2051
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2052
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
2053
|
+
end
|
2054
|
+
|
2055
|
+
ns.add_function "selectUnion" do |func|
|
2056
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2057
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2058
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2059
|
+
end
|
2060
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2061
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2062
|
+
end
|
2063
|
+
|
2064
|
+
ns.add_function "selectInter" do |func|
|
2065
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2066
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2067
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2068
|
+
end
|
2069
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2070
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2071
|
+
end
|
2072
|
+
|
2073
|
+
ns.add_function "selectInterIn" do |func|
|
2074
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2075
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2076
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2077
|
+
end
|
2078
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2079
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2080
|
+
func.add_parameter "Gecode::IntSet", "universe"
|
2081
|
+
end
|
2082
|
+
|
2083
|
+
ns.add_function "selectSet" do |func|
|
2084
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2085
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2086
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2087
|
+
end
|
2088
|
+
func.add_parameter "Gecode::IntVar", "y"
|
2089
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2090
|
+
end
|
2091
|
+
|
2092
|
+
ns.add_function "selectDisjoint" do |func|
|
2093
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2094
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2095
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2096
|
+
end
|
2097
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2098
|
+
end
|
2099
|
+
|
2100
|
+
ns.add_function "sequence" do |func|
|
2101
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2102
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2103
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2104
|
+
end
|
2105
|
+
end
|
2106
|
+
|
2107
|
+
ns.add_function "sequentialUnion" do |func|
|
2108
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2109
|
+
func.add_parameter "Gecode::MSetVarArray", "y" do |param|
|
2110
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(y, 2)->ptr()"
|
2111
|
+
end
|
2112
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2113
|
+
end
|
2114
|
+
end
|
2105
2115
|
end
|