Search in sources :

Example 31 with Solution

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

the class ExamplesTest method testBigconfig.

/**
 * Runs the Bigconfig example for 1 hq, 9 subs, 4 unwindings.
 */
public void testBigconfig() {
    final Bigconfig prob = new Bigconfig(4);
    final Solution sol = solve(prob.show(), prob.bounds(1, 9, 10));
    check(prob.getClass().getSimpleName(), sol, SATISFIABLE, 100, 2227, 4170);
}
Also used : Bigconfig(examples.netconfig.Bigconfig) Solution(kodkod.engine.Solution)

Example 32 with Solution

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

the class ExamplesTest method testGEO091.

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

Example 33 with Solution

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

the class ExamplesTest method testMED007.

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

Example 34 with Solution

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

the class ExamplesTest method testLAT258.

/**
 * Runs GRA019.checkGoalToBeProved for 6.
 */
// public void testGRA019() {
// final GRA013_026 prob = new GRA013_026();
// final Solution sol = solve(prob.checkGoalToBeProved(), prob.bounds(6));
// check(prob.getClass().getSimpleName(), sol, SATISFIABLE, 407, 6968,
// 15413);
// }
/**
 * Runs LAT258.checkGoalToBeProved for 6.
 */
public void testLAT258() {
    final LAT258 prob = new LAT258();
    final Solution sol = solve(prob.checkGoalToBeProved(), prob.bounds(6));
    check(prob.getClass().getSimpleName(), sol, UNSATISFIABLE, 407, 6968, 15413);
}
Also used : LAT258(examples.tptp.LAT258) Solution(kodkod.engine.Solution)

Example 35 with Solution

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

the class ExamplesTest method testGEO092.

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

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