Skip to content

Commit 39f0aab

Browse files
committed
Merge branch 'develop' of https://github.com/Gecode/gecode into develop
2 parents f281580 + e6abc78 commit 39f0aab

File tree

7 files changed

+22
-10
lines changed

7 files changed

+22
-10
lines changed

changelog.in

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,21 @@ initializer lists. In addition, the release has lots of bug fixes
7373
and performance improvements. It is highly recommended to switch
7474
as soon as possible!
7575

76+
[ENTRY]
77+
Module: search
78+
What: change
79+
Rank: minor
80+
[DESCRIPTION]
81+
Support for the CPProfiler is now enabled by default.
82+
7683
[ENTRY]
7784
Module: int
7885
What: change
7986
Rank: minor
8087
Thanks: Sara Frimodig
8188
[DESCRIPTION]
82-
The default propagation for unary has been too weak (possibly
83-
hurting Gecode in the MiniZinc competitions of 2017 and 2018),
89+
The default propagation for unary has been too weak (likely to
90+
hurt Gecode in the MiniZinc competitions of 2017 and 2018),
8491
now the default is back to maximal propagation.
8592

8693
[ENTRY]

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ Optional Features:
14861486
--enable-gist build Gecode Interactive Search Tool [default=yes]
14871487
--enable-cbs build with support for counting-based search
14881488
[default=no]
1489-
--enable-cpprofiler build with support for CPProfiler [default=no]
1489+
--enable-cpprofiler build with support for CPProfiler [default=yes]
14901490
--enable-driver build script commandline driver library
14911491
[default=yes]
14921492
--enable-flatzinc build FlatZinc interpreter [default=yes]

gecode.m4

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ AC_DEFUN([AC_GECODE_CPPROFILER],
14341434
[
14351435
AC_ARG_ENABLE([cpprofiler],
14361436
AC_HELP_STRING([--enable-cpprofiler],
1437-
[build with support for CPProfiler @<:@default=no@:>@]))
1437+
[build with support for CPProfiler @<:@default=yes@:>@]))
14381438
AC_MSG_CHECKING(whether to build with support for CPProfiler)
14391439
if test "${enable_cpprofiler:-no}" = "yes"; then
14401440
AC_MSG_RESULT(yes)

gecode/int/distinct/cbs.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,3 +906,6 @@ namespace Gecode { namespace Int { namespace Distinct {
906906
}}}
907907

908908
#endif
909+
910+
// STATISTICS: int-prop
911+

gecode/int/distinct/cbs.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,6 @@ namespace Gecode { namespace Int { namespace Distinct {
227227
}}}
228228

229229
#endif
230+
231+
// STATISTICS: int-prop
232+

gecode/int/extensional.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ namespace Gecode { namespace Int { namespace Extensional {
470470
/// Constructor for cloning \a p
471471
Compact(Space& home, Compact& p);
472472
/// Constructor for posting
473-
Compact(Home home, ViewArray<View>& x, const TupleSet& ts);
473+
Compact(Home home, const TupleSet& ts);
474474
/// Setup the actual table
475475
template<class Table>
476476
void setup(Space& home, Table& table, ViewArray<View>& x);

gecode/int/extensional/compact.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,7 @@ namespace Gecode { namespace Int { namespace Extensional {
339339

340340
template<class View, bool pos>
341341
forceinline
342-
Compact<View,pos>::Compact(Home home, ViewArray<View>& x,
343-
const TupleSet& ts0)
342+
Compact<View,pos>::Compact(Home home, const TupleSet& ts0)
344343
: Propagator(home), n_words(ts0.words()), ts(ts0), c(home) {
345344
home.notice(*this, AP_DISPOSE);
346345
}
@@ -514,7 +513,7 @@ namespace Gecode { namespace Int { namespace Extensional {
514513
forceinline
515514
PosCompact<View,Table>::PosCompact(Home home, ViewArray<View>& x,
516515
const TupleSet& ts)
517-
: Compact<View,true>(home,x,ts), status(MULTIPLE), table(home,ts.words()) {
516+
: Compact<View,true>(home,ts), status(MULTIPLE), table(home,ts.words()) {
518517
setup(home,table,x);
519518
}
520519

@@ -790,7 +789,7 @@ namespace Gecode { namespace Int { namespace Extensional {
790789
forceinline
791790
NegCompact<View,Table>::NegCompact(Home home, ViewArray<View>& x,
792791
const TupleSet& ts)
793-
: Compact<View,false>(home,x,ts), table(home,ts.words()) {
792+
: Compact<View,false>(home,ts), table(home,ts.words()) {
794793
setup(home,table,x);
795794
}
796795

@@ -1068,7 +1067,7 @@ namespace Gecode { namespace Int { namespace Extensional {
10681067
forceinline
10691068
ReCompact<View,Table,CtrlView,rm>::ReCompact(Home home, ViewArray<View>& x,
10701069
const TupleSet& ts, CtrlView b0)
1071-
: Compact<View,false>(home,x,ts), table(home,ts.words()), b(b0), y(x) {
1070+
: Compact<View,false>(home,ts), table(home,ts.words()), b(b0), y(x) {
10721071
b.subscribe(home,*this,PC_BOOL_VAL);
10731072
setup(home,table,x);
10741073
}

0 commit comments

Comments
 (0)