Skip to content

Commit 9b0c510

Browse files
committed
Make sure that the right post events are generated
1 parent 2b6ca1c commit 9b0c510

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

gecode/minimodel/bool-expr.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,12 +619,15 @@ namespace Gecode {
619619
return BoolExpr(BoolExpr(r,BoolExpr::NT_NOT),
620620
BoolExpr::NT_OR,l);
621621
}
622+
623+
622624
/*
623625
* Posting Boolean expressions and relations
624626
*
625627
*/
626628
BoolVar
627629
expr(Home home, const BoolExpr& e, const IntPropLevels& ipls) {
630+
PostInfo pi(home);
628631
if (!home.failed())
629632
return e.expr(home,ipls);
630633
BoolVar x(home,0,1);
@@ -633,7 +636,7 @@ namespace Gecode {
633636

634637
void
635638
rel(Home home, const BoolExpr& e, const IntPropLevels& ipls) {
636-
if (home.failed()) return;
639+
GECODE_POST;
637640
e.rel(home,ipls);
638641
}
639642

gecode/minimodel/set-expr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,6 @@ namespace Gecode {
842842
return x;
843843
}
844844

845-
846845
}
847846

848847
#endif

0 commit comments

Comments
 (0)