Skip to content

Commit

Permalink
Make sure that the right post events are generated
Browse files Browse the repository at this point in the history
  • Loading branch information
chschulte committed Dec 5, 2018
1 parent 2b6ca1c commit 9b0c510
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion gecode/minimodel/bool-expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,12 +619,15 @@ namespace Gecode {
return BoolExpr(BoolExpr(r,BoolExpr::NT_NOT),
BoolExpr::NT_OR,l);
}


/*
* Posting Boolean expressions and relations
*
*/
BoolVar
expr(Home home, const BoolExpr& e, const IntPropLevels& ipls) {
PostInfo pi(home);
if (!home.failed())
return e.expr(home,ipls);
BoolVar x(home,0,1);
Expand All @@ -633,7 +636,7 @@ namespace Gecode {

void
rel(Home home, const BoolExpr& e, const IntPropLevels& ipls) {
if (home.failed()) return;
GECODE_POST;
e.rel(home,ipls);
}

Expand Down
1 change: 0 additions & 1 deletion gecode/minimodel/set-expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,6 @@ namespace Gecode {
return x;
}


}

#endif
Expand Down

0 comments on commit 9b0c510

Please sign in to comment.