Search in sources :

Example 36 with Solution

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

the class ExamplesTest method testNUM374.

/**
 * Runs NUM374.checkWilkie for 3.
 */
public void testNUM374() {
    final NUM374 prob = new NUM374();
    final Solution sol = solve(prob.checkWilkie(), prob.bounds(3));
    check(prob.getClass().getSimpleName(), sol, UNSATISFIABLE, 407, 6968, 15413);
}
Also used : NUM374(examples.tptp.NUM374) Solution(kodkod.engine.Solution)

Example 37 with Solution

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

the class ExamplesTest method testALG195.

/**
 * Runs ALG195.checkCO1.
 */
public void testALG195() {
    final ALG195 prob = new ALG195();
    final Solution sol = solve(prob.checkCO1(), prob.bounds());
    check(prob.getClass().getSimpleName(), sol, UNSATISFIABLE, 407, 6968, 15413);
}
Also used : ALG195(examples.tptp.ALG195) Solution(kodkod.engine.Solution)

Example 38 with Solution

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

the class ExamplesTest method testSET948.

/**
 * Runs SET948.checkT101_zfmisc_1 for 3.
 */
public void testSET948() {
    final SET948 prob = new SET948();
    final Solution sol = solve(prob.checkT101_zfmisc_1(), prob.bounds(3));
    check(prob.getClass().getSimpleName(), sol, UNSATISFIABLE, 407, 6968, 15413);
}
Also used : SET948(examples.tptp.SET948) Solution(kodkod.engine.Solution)

Example 39 with Solution

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

the class ExamplesTest method testLists_checkSymmetric.

/**
 * Runs Lists.checkSymmetric for 5.
 */
public void testLists_checkSymmetric() {
    final Lists prob = new Lists();
    final Solution sol = solve(prob.checkSymmetric(), prob.bounds(5));
    check(prob.getClass().getSimpleName(), sol, UNSATISFIABLE, 444, 4341, 18485);
}
Also used : Lists(examples.alloy.Lists) Solution(kodkod.engine.Solution)

Example 40 with Solution

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

the class ExamplesTest method testHandshake.

/**
 * Runs Handshake.runPuzzle for 6.
 */
public void testHandshake() {
    final Handshake prob = new Handshake();
    final Solution sol = solve(prob.runPuzzle(), prob.bounds(6));
    check(prob.getClass().getSimpleName(), sol, SATISFIABLE, 444, 4341, 18485);
}
Also used : Solution(kodkod.engine.Solution) Handshake(examples.alloy.Handshake)

Aggregations

Solution (kodkod.engine.Solution)153 Formula (kodkod.ast.Formula)101 Bounds (kodkod.instance.Bounds)75 Solver (kodkod.engine.Solver)72 Universe (kodkod.instance.Universe)32 Relation (kodkod.ast.Relation)30 TupleFactory (kodkod.instance.TupleFactory)30 TupleSet (kodkod.instance.TupleSet)25 Variable (kodkod.ast.Variable)24 IntExpression (kodkod.ast.IntExpression)19 Expression (kodkod.ast.Expression)17 Test (org.junit.Test)16 QuantifiedFormula (kodkod.ast.QuantifiedFormula)15 Decls (kodkod.ast.Decls)11 Evaluator (kodkod.engine.Evaluator)10 HigherOrderDeclException (kodkod.engine.fol2sat.HigherOrderDeclException)7 UnboundLeafException (kodkod.engine.fol2sat.UnboundLeafException)7 ConsoleReporter (kodkod.engine.config.ConsoleReporter)6 Instance (kodkod.instance.Instance)6 ArrayList (java.util.ArrayList)5