@Test(groups = "1s")
public void testJGF() {
for (int i = 0; i < 2; i++) {
Solver solver = new Solver();
BoolVar a = VariableFactory.bool("a", solver);
BoolVar b = VariableFactory.bool("b", solver);
IntVar x = VariableFactory.bounded("x", 0, 24, solver);
IntVar y = VariableFactory.bounded("y", 0, 24, solver);
if (i == 0) {
SatFactory.addClauses(LogOp.implies(
a,
b
), solver);
} else {
SatFactory.addClauses(LogOp.implies(
b.not(),
a.not()
), solver);
}
solver.post(LogicalConstraintFactory.ifThenElse(b, IntConstraintFactory.arithm(x, ">=", y), IntConstraintFactory.arithm(x, "<", y)));
// SearchMonitorFactory.log(solver, true, true);