Skip to content

Commit 409a171

Browse files
committed
Merge branch 'release/5.0.0'
2 parents 56148d9 + 8216ae7 commit 409a171

File tree

731 files changed

+64744
-32675
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

731 files changed

+64744
-32675
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ set(GECODE_HAS_INT_VARS "/**/")
190190
set(GECODE_HAS_SET_VARS "/**/")
191191
set(GECODE_HAS_FLOAT_VARS "/**/")
192192
set(GECODE_STATIC_LIBS 1)
193+
set(GECODE_ALLOCATOR "/**/")
193194

194195
check_cxx_compiler_flag(-fvisibility=hidden HAVE_VISIBILITY_HIDDEN_FLAG)
195196
if (HAVE_VISIBILITY_HIDDEN_FLAG)
@@ -402,7 +403,7 @@ if (FLOATSRC)
402403
endif ()
403404

404405
add_executable(gecode-test ${TESTSRC} ${TESTHDR})
405-
target_link_libraries(gecode-test gecodeminimodel)
406+
target_link_libraries(gecode-test gecodeflatzinc gecodeminimodel)
406407

407408
add_executable(fzn-gecode ${FLATZINCEXESRC})
408409
target_link_libraries(fzn-gecode gecodeflatzinc gecodegist gecodeminimodel gecodedriver)

Makefile.dep

Lines changed: 23483 additions & 18694 deletions
Large diffs are not rendered by default.

Makefile.in

Lines changed: 71 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -143,22 +143,23 @@ endif
143143
# SUPPORT COMPONENTS
144144
#
145145
SUPPORTSRC0 = \
146-
exception heap thread/thread thread/windows thread/pthreads \
146+
exception allocator heap \
147+
thread/thread thread/windows thread/pthreads \
147148
hw-rnd
148149
SUPPORTHDR0 = \
149150
block-allocator cast dynamic-array \
150-
dynamic-stack exception heap \
151+
dynamic-stack exception allocator heap \
151152
macros random sort static-stack \
152153
marked-pointer int-type auto-link \
153154
thread thread/thread thread/windows thread/pthreads thread/none timer \
154155
dynamic-queue bitset-base bitset bitset-offset \
155156
hw-rnd
156157

157-
SUPPORTSRC1 = $(SUPPORTSRC0:%=gecode/support/%.cpp)
158-
SUPPORTHDR = gecode/support.hh \
158+
SUPPORTSRC1 = $(SUPPORTSRC0:%=gecode/support/%.cpp)
159+
SUPPORTHDR = gecode/support.hh \
159160
$(SUPPORTHDR0:%=gecode/support/%.hpp)
160-
SUPPORTOBJ = $(SUPPORTSRC1:%.cpp=%$(OBJSUFFIX))
161-
SUPPORTSRC = $(SUPPORTSRC1)
161+
SUPPORTOBJ = $(SUPPORTSRC1:%.cpp=%$(OBJSUFFIX))
162+
SUPPORTSRC = $(SUPPORTSRC1)
162163

163164
export SUPPORTDLL = $(LIBPREFIX)@SUPPORT@$(DLLSUFFIX)
164165
export SUPPORTLIB = $(LIBPREFIX)@SUPPORT@$(LIBSUFFIX)
@@ -194,7 +195,7 @@ VARIMP = $(VARIMPHDR)
194195

195196
KERNELSRC0 = \
196197
archive core memory-manager branch region \
197-
afc activity rnd
198+
afc activity rnd exception trace-filter tracer
198199

199200
KERNELHDR0 = \
200201
archive array shared-array core exception \
@@ -204,11 +205,13 @@ KERNELHDR0 = \
204205
brancher-view-sel brancher-merit \
205206
brancher-val-sel brancher-val-commit brancher-view brancher-view-val \
206207
brancher-val-sel-commit \
207-
allocators global-afc \
208-
afc activity rnd branch-traits
208+
allocators print gpi \
209+
afc activity rnd branch-traits \
210+
trace-traits trace-filter tracer trace-recorder \
211+
subscribed-propagators
209212

210-
KERNELSRC = $(KERNELSRC0:%=gecode/kernel/%.cpp)
211-
KERNELHDR = \
213+
KERNELSRC = $(KERNELSRC0:%=gecode/kernel/%.cpp)
214+
KERNELHDR = \
212215
gecode/kernel.hh gecode/kernel/wait.hh \
213216
$(KERNELHDR0:%=gecode/kernel/%.hpp)
214217
KERNELOBJ = $(KERNELSRC:%.cpp=%$(OBJSUFFIX))
@@ -248,15 +251,24 @@ SEARCHSRC0 = \
248251
parallel/engine \
249252
dfs parallel/dfs \
250253
bab parallel/bab \
251-
meta/rbs meta/nogoods sequential/path parallel/path
254+
lds sequential/lds \
255+
sequential/path parallel/path \
256+
meta/rbs meta/nogoods meta/dead \
257+
meta/sequential/pbs meta/parallel/pbs \
258+
rbs pbs sebs exception
252259
SEARCHHDR0 = \
253260
statistics.hpp stop.hpp options.hpp cutoff.hpp \
254261
support.hh worker.hh exception.hpp \
262+
engine.hpp base.hpp build.hpp traits.hpp sebs.hpp \
255263
sequential/path.hh sequential/dfs.hh sequential/bab.hh \
264+
sequential/lds.hh \
256265
parallel/path.hh parallel/engine.hh \
257266
parallel/dfs.hh parallel/bab.hh \
258-
meta/rbs.hh meta/nogoods.hh \
259-
dfs.hpp bab.hpp rbs.hpp engine.hpp engine-base.hpp
267+
meta/rbs.hh meta/rbs.hpp meta/nogoods.hh meta/dead.hh \
268+
meta/sequential/pbs.hh meta/parallel/pbs.hh \
269+
meta/sequential/pbs.hpp meta/parallel/pbs.hpp \
270+
dfs.hpp bab.hpp lds.hpp rbs.hpp pbs.hpp \
271+
relax.hh
260272

261273
SEARCHSRC = $(SEARCHSRC0:%=gecode/search/%.cpp)
262274
SEARCHHDR = gecode/search.hh $(SEARCHHDR0:%=gecode/search/%)
@@ -288,7 +300,10 @@ export LINKSEARCH =
288300
export SEARCHRES =
289301
export SEARCHRC =
290302
endif
291-
SEARCHBUILDDIRS = search search/sequential search/parallel search/meta
303+
SEARCHBUILDDIRS = search \
304+
search/sequential search/parallel \
305+
search/meta \
306+
search/meta/sequential search/meta/parallel
292307

293308
#
294309
# INTEGER COMPONENTS
@@ -303,7 +318,7 @@ INTSRC0 = \
303318
exec/when.cpp element/pair.cpp \
304319
linear/int-post.cpp linear-int.cpp \
305320
linear/bool-post.cpp linear-bool.cpp \
306-
branch.cpp distinct.cpp sorted.cpp gcc.cpp \
321+
branch.cpp distinct/eqite.cpp distinct.cpp sorted.cpp gcc.cpp \
307322
channel.cpp channel/link-single.cpp channel/link-multi.cpp \
308323
unshare.cpp sequence.cpp \
309324
bin-packing.cpp bin-packing/propagate.cpp \
@@ -314,7 +329,10 @@ INTSRC0 = \
314329
arithmetic/mult.cpp \
315330
branch/view-sel.cpp branch/val-sel-commit.cpp \
316331
branch/view-values.cpp \
317-
ldsb.cpp ldsb/sym-imp.cpp ldsb/sym-obj.cpp
332+
relax.cpp \
333+
ldsb.cpp ldsb/sym-imp.cpp ldsb/sym-obj.cpp \
334+
trace.cpp trace/tracer.cpp \
335+
exception.cpp
318336

319337
INTHDR0 = \
320338
limits.hpp support-values.hh support-values.hpp \
@@ -341,6 +359,7 @@ INTHDR0 = \
341359
distinct/graph.hpp distinct/dom-ctrl.hpp \
342360
distinct/bnd.hpp distinct/dom.hpp \
343361
distinct/val.hpp distinct/ter-dom.hpp \
362+
distinct/eqite.hpp \
344363
dom/range.hpp dom/set.hpp \
345364
element/int.hpp element/view.hpp element/pair.hpp \
346365
gcc/bnd.hpp gcc/dom.hpp gcc/bnd-sup.hpp gcc/dom-sup.hpp \
@@ -364,7 +383,7 @@ INTHDR0 = \
364383
distinct.hh dom.hh \
365384
element.hh exception.hpp gcc.hh linear.hh \
366385
reify.hpp propagator.hpp extensional.hh rel.hh \
367-
sorted.hh var-imp.hpp view.hpp \
386+
sorted.hh var-imp.hpp view.hpp ipl.hpp \
368387
channel.hh channel/dom.hpp channel/val.hpp \
369388
channel/base.hpp channel/link-single.hpp channel/link-multi.hpp \
370389
sequence.hh sequence/int.hpp sequence/view.hpp \
@@ -373,16 +392,18 @@ INTHDR0 = \
373392
bin-packing/conflict-graph.hpp \
374393
task.hh task/fwd-to-bwd.hpp task/array.hpp task/sort.hpp \
375394
task/iter.hpp task/tree.hpp task/purge.hpp task/prop.hpp \
376-
task/man-to-opt.hpp \
395+
task/man-to-opt.hpp task/event.hpp \
377396
unary.hh unary/task.hpp unary/task-view.hpp \
378397
unary/tree.hpp unary/overload.hpp unary/detectable.hpp \
379-
unary/not-first-not-last.hpp \
398+
unary/time-tabling.hpp unary/not-first-not-last.hpp \
380399
unary/edge-finding.hpp unary/subsumption.hpp \
381-
unary/man-prop.hpp unary/opt-prop.hpp \
400+
unary/man-prop.hpp unary/opt-prop.hpp unary/post.hpp \
382401
cumulative.hh cumulative/man-prop.hpp cumulative/opt-prop.hpp \
383402
cumulative/task-view.hpp cumulative/overload.hpp \
384-
cumulative/basic.hpp cumulative/task.hpp cumulative/edge-finding.hpp \
403+
cumulative/time-tabling.hpp cumulative/task.hpp \
404+
cumulative/edge-finding.hpp cumulative/post.hpp \
385405
cumulative/tree.hpp cumulative/limits.hpp \
406+
cumulative/subsumption.hpp \
386407
cumulatives.hh cumulatives/val.hpp \
387408
circuit.hh circuit/base.hpp circuit/val.hpp circuit/dom.hpp \
388409
no-overlap.hh no-overlap/dim.hpp no-overlap/box.hpp \
@@ -396,7 +417,10 @@ INTHDR0 = \
396417
val-set.hh val-set.hpp \
397418
member.hh member/prop.hpp member/re-prop.hpp \
398419
branch/afc.hpp branch/activity.hpp \
399-
ldsb.hh ldsb/brancher.hpp ldsb/sym-imp.hpp
420+
ldsb.hh ldsb/brancher.hpp ldsb/sym-imp.hpp \
421+
trace.hpp \
422+
trace/bool-trace-view.hpp trace/int-trace-view.hpp \
423+
trace/bool-delta.hpp trace/int-delta.hpp trace/traits.hpp
400424

401425
INTSRC = $(INTSRC0:%=gecode/int/%)
402426
INTHDR = gecode/int.hh $(INTHDR0:%=gecode/int/%)
@@ -433,7 +457,7 @@ INTBUILDDIRS = \
433457
int/channel int/arithmetic int/linear int/bool int/branch int/exec \
434458
int/element int/sequence int/bin-packing \
435459
int/unary int/cumulative int/cumulatives int/task \
436-
int/ldsb
460+
int/ldsb int/distinct int/trace
437461

438462
#
439463
# FLOAT COMPONENTS
@@ -442,7 +466,10 @@ INTBUILDDIRS = \
442466
FLOATSRC0 = \
443467
var/float.cpp arithmetic.cpp array.cpp branch.cpp rel.cpp linear.cpp \
444468
linear/post.cpp branch/activity.cpp rounding.cpp exec.cpp \
445-
branch/val-sel-commit.cpp branch/view-sel.cpp dom.cpp
469+
branch/val-sel-commit.cpp branch/view-sel.cpp dom.cpp \
470+
relax.cpp \
471+
trace.cpp trace/tracer.cpp \
472+
exception.cpp
446473

447474
FLOATHDR0 = \
448475
var-imp.hpp array.hpp array-traits.hpp limits.hpp exception.hpp \
@@ -459,7 +486,8 @@ FLOATHDR0 = \
459486
branch.hh branch/afc.hpp branch/activity.hpp branch/traits.hpp \
460487
branch/var.hpp branch/val.hpp branch/assign.hpp \
461488
branch/val-commit.hpp branch/val-sel.hpp branch/merit.hpp \
462-
num.hpp val.hpp rounding.hpp nextafter.hpp
489+
num.hpp val.hpp rounding.hpp nextafter.hpp \
490+
trace.hpp trace/trace-view.hpp trace/delta.hpp trace/traits.hpp
463491

464492
FLOATSRC = $(FLOATSRC0:%=gecode/float/%)
465493
FLOATHDR = gecode/float.hh $(FLOATHDR0:%=gecode/float/%)
@@ -494,7 +522,8 @@ endif
494522
FLOATBUILDDIRS = \
495523
float float/var float/var-imp float/view \
496524
float/linear float/branch float/rel float/branch \
497-
float/arithmetic float/transcendental float/trigonometric
525+
float/arithmetic float/transcendental float/trigonometric \
526+
float/trace
498527

499528
#
500529
# SET COMPONENTS
@@ -518,7 +547,10 @@ SETSRC0 = \
518547
var-imp/integerset.cpp var/set.cpp \
519548
exec.cpp branch/activity.cpp branch/view-sel.cpp \
520549
branch/val-sel-commit.cpp branch/ngl.cpp \
521-
ldsb.cpp ldsb/sym-imp.cpp
550+
ldsb.cpp ldsb/sym-imp.cpp \
551+
relax.cpp \
552+
trace.cpp trace/tracer.cpp \
553+
exception.cpp
522554
SETHDR0 = \
523555
limits.hpp \
524556
view.hpp exception.hpp int.hh element.hh var-imp.hpp \
@@ -548,7 +580,9 @@ SETHDR0 = \
548580
branch/var.hpp branch/val.hpp branch/assign.hpp \
549581
branch/merit.hpp branch/val-commit.hpp branch/val-sel.hpp \
550582
branch/ngl.hpp \
551-
ldsb.hh ldsb/brancher.hpp channel.hh
583+
ldsb.hh ldsb/brancher.hpp channel.hh \
584+
trace.hpp trace/trace-view.hpp trace/delta.hpp trace/traits.hpp
585+
552586

553587
SETSRC = $(SETSRC0:%=gecode/set/%)
554588
SETHDR = gecode/set.hh $(SETHDR0:%=gecode/set/%)
@@ -583,7 +617,7 @@ endif
583617
SETBUILDDIRS = \
584618
set set/convex set/distinct set/int set/rel set/rel-op \
585619
set/element set/sequence set/var set/var-imp set/view \
586-
set/branch set/channel set/ldsb
620+
set/branch set/channel set/ldsb set/trace
587621

588622

589623
#
@@ -594,7 +628,7 @@ MMSRC0 = \
594628
int-expr.cpp int-rel.cpp int-arith.cpp bool-expr.cpp \
595629
set-expr.cpp set-rel.cpp \
596630
float-expr.cpp float-rel.cpp float-arith.cpp \
597-
reg.cpp optimize.cpp
631+
reg.cpp optimize.cpp exception.cpp
598632
MMHDR0 = \
599633
int-rel.hpp float-rel.hpp exception.hpp matrix.hpp \
600634
bool-expr.hpp set-expr.hpp set-rel.hpp \
@@ -1163,7 +1197,7 @@ SEARCHTESTSRC0 = \
11631197
ARRAYTESTSRC0 = \
11641198
test/array.cpp
11651199

1166-
TESTSRC0 = test/test.cpp test/afc.cpp test/brancher-handle.cpp test/ldsb.cpp
1200+
TESTSRC0 = test/test.cpp test/afc.cpp test/ldsb.cpp test/region.cpp
11671201

11681202
TESTSRC = \
11691203
$(TESTSRC0) $(INTTESTSRC0) $(SETTESTSRC0) $(FLOATTESTSRC0) \
@@ -1446,7 +1480,7 @@ export LINKALL = -F. -framework gecode
14461480
else
14471481
export LINKALL = \
14481482
$(LINKFLATZINC) $(LINKDRIVER) $(LINKGIST) \
1449-
$(LINKSEARCH) $(LINKMM) $(LINKSET) $(LINKFLOAT) $(LINKINT) \
1483+
$(LINKSEARCH) $(LINKMM) $(LINKSET) $(LINKFLOAT) $(LINKMPFR) $(LINKINT) \
14501484
$(LINKKERNEL) $(LINKSUPPORT)
14511485
endif
14521486

@@ -1719,7 +1753,7 @@ TESTRES =
17191753
endif
17201754
$(TESTEXE): $(TESTOBJ) $(TESTRES) $(ALLLIB)
17211755
$(CXX) @EXEOUTPUT@$@ $(TESTOBJ) $(TESTRES) $(DLLPATH) $(CXXFLAGS) \
1722-
$(LINKALL) $(GLDFLAGS)
1756+
$(LINKALL) $(GLDFLAGS) $(LINKQT)
17231757
$(FIXMANIFEST) $@.manifest $(DLLSUFFIX)
17241758
$(MANIFEST) -manifest $@.manifest -outputresource:$@\;1
17251759

@@ -2003,7 +2037,8 @@ distdoc: doc
20032037

20042038
clean:
20052039
$(RMF) *.stackdump core gmon.out \
2006-
vc70.pdb vc80.pdb vc90.pdb vc100.pdb vc110.pdb vc120.pdb
2040+
vc70.pdb vc80.pdb vc90.pdb vc100.pdb vc110.pdb \
2041+
vc120.pdb vc130.pdb vc140.pdb
20072042
$(RMF) doxygen.log doxygen.hh doxygen.conf.use stat.hh \
20082043
changelog.hh doxygen.hh license.hh header.html
20092044
$(RMF) $(ALLOBJ) $(ALLSBJ) $(ALLOBJ:%$(OBJSUFFIX)=%.pdb)
@@ -2040,7 +2075,7 @@ distclean: veryclean
20402075
$(RMF) config.log config.status Makefile.dep
20412076

20422077
depend: mkcompiledirs
2043-
@$(MAKE) $(VARIMP)
2078+
@$(MAKE) $(VARIMP) gecode/flatzinc/parser.tab.hh
20442079
perl $(top_srcdir)/misc/makedepend.perl \
20452080
$(top_srcdir) \
20462081
$(ALLSRC) \

0 commit comments

Comments
 (0)