Skip to content

Commit

Permalink
Added BFS and SAT tests to MddCheckerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
mondokm committed Jul 12, 2024
1 parent 23cbb78 commit 3a80d94
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,21 @@ public static Collection<Object[]> data() {
}

@Test
public void test() throws Exception {
public void testBfs() throws Exception {
testWithIterationStrategy(MddChecker.IterationStrategy.BFS);
}

@Test
public void testSat() throws Exception {
testWithIterationStrategy(MddChecker.IterationStrategy.SAT);
}

@Test
public void testGsat() throws Exception {
testWithIterationStrategy(MddChecker.IterationStrategy.GSAT);
}

public void testWithIterationStrategy(MddChecker.IterationStrategy iterationStrategy) throws Exception {

final Logger logger = new ConsoleLogger(Logger.Level.SUBSTEP);

Expand All @@ -141,7 +155,7 @@ public Expr<BoolType> toExpr() {
public VarIndexing nextIndexing() {
return VarIndexingFactory.indexing(1);
}
}, propExpr, solverPool, logger);
}, propExpr, solverPool, logger, iterationStrategy);
status = checker.check(null);
}

Expand Down

0 comments on commit 3a80d94

Please sign in to comment.