Java Code Examples for kodkod.engine.Solution#stats()

The following examples show how to use kodkod.engine.Solution#stats() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SymmetryBreakingTest.java    From org.alloytools.alloy with Apache License 2.0 5 votes vote down vote up
private Instance solve(Formula f, Bounds b) {

        final Solution sol = solver.solve(f, b);
        final Statistics stats = sol.stats();
        pVars = stats.primaryVariables();
        iVars = stats.variables() - pVars;
        clauses = stats.clauses();
        return sol.instance();

    }
 
Example 2
Source File: SymmetryBreakingTest.java    From kodkod with MIT License 5 votes vote down vote up
private Instance solve(Formula f, Bounds b) {
	
		final Solution sol = solver.solve(f, b);
		final Statistics stats = sol.stats();
		pVars = stats.primaryVariables();
		iVars = stats.variables() - pVars;
		clauses = stats.clauses();
		return sol.instance();
	
}