use of kodkod.engine.satlab.SATProver in project org.alloytools.alloy by AlloyTools.
the class Solver method unsat.
/**
* Returns the result of solving an unsat formula.
*
* @param translation the translation
* @param stats translation / solving stats
* @return the result of solving an unsat formula.
*/
static Solution unsat(Translation.Whole translation, Statistics stats) {
final SATSolver cnf = translation.cnf();
final TranslationLog log = translation.log();
if (cnf instanceof SATProver && log != null) {
return Solution.unsatisfiable(stats, new ResolutionBasedProof((SATProver) cnf, log));
} else {
// can free memory
final Solution sol = Solution.unsatisfiable(stats, null);
cnf.free();
return sol;
}
}
Aggregations