use of com.microsoft.z3.Status in project bmoth by hhu-stups.
the class SetFormulaEvaluationTest method testIntersection2.
@Test
public void testIntersection2() {
String formula = "{1} /\\ {2,3} = {2}";
BoolExpr constraint = translatePredicate(formula, z3Context);
z3Solver.add(constraint);
Status check = z3Solver.check();
assertEquals(Status.UNSATISFIABLE, check);
}
use of com.microsoft.z3.Status in project bmoth by hhu-stups.
the class SetFormulaEvaluationTest method testDifference.
@Test
public void testDifference() {
String formula = "{1,2}\\{2,3} = {1}";
BoolExpr constraint = translatePredicate(formula, z3Context);
z3Solver.add(constraint);
Status check = z3Solver.check();
assertEquals(Status.SATISFIABLE, check);
}
use of com.microsoft.z3.Status in project bmoth by hhu-stups.
the class SetFormulaEvaluationTest method testNoProperSubset3.
@Test
public void testNoProperSubset3() {
String formula = "{1} /<<: {2,3}";
BoolExpr constraint = translatePredicate(formula, z3Context);
z3Solver.add(constraint);
Status check = z3Solver.check();
assertEquals(Status.SATISFIABLE, check);
}
use of com.microsoft.z3.Status in project bmoth by hhu-stups.
the class SetFormulaEvaluationTest method testUnion.
@Test
public void testUnion() {
String formula = "{1,2} \\/ {2,3} = {2}";
BoolExpr constraint = translatePredicate(formula, z3Context);
z3Solver.add(constraint);
Status check = z3Solver.check();
assertEquals(Status.UNSATISFIABLE, check);
}
use of com.microsoft.z3.Status in project bmoth by hhu-stups.
the class SetFormulaEvaluationTest method testStrictSubset3.
@Test
public void testStrictSubset3() {
String formula = "{1} <<: {1,1}";
BoolExpr constraint = translatePredicate(formula, z3Context);
z3Solver.add(constraint);
Status check = z3Solver.check();
assertEquals(Status.UNSATISFIABLE, check);
}
Aggregations