Search in sources :

Example 1 with NCEStrategy

use of kodkod.engine.ucore.NCEStrategy in project org.alloytools.alloy by AlloyTools.

the class ReductionAndProofTest method core.

private Set<Node> core(Formula formula, int granularity) {
    solver.options().setCoreGranularity(granularity);
    final Solution sol = solver.solve(formula, bounds);
    assertEquals(Solution.Outcome.UNSATISFIABLE, sol.outcome());
    sol.proof().minimize(new NCEStrategy(sol.proof().log()));
    return new IdentityHashSet<Node>(sol.proof().highLevelCore().values());
}
Also used : NCEStrategy(kodkod.engine.ucore.NCEStrategy) IdentityHashSet(kodkod.util.collections.IdentityHashSet) Solution(kodkod.engine.Solution)

Aggregations

Solution (kodkod.engine.Solution)1 NCEStrategy (kodkod.engine.ucore.NCEStrategy)1 IdentityHashSet (kodkod.util.collections.IdentityHashSet)1