use of com.sri.ai.grinder.sgdpllt.theory.equality.SingleVariableEqualityConstraint in project aic-expresso by aic-sri-international.
the class AbstractEqualityConstraintTest method testSatisfiabilitySpecialCases.
@Test
public void testSatisfiabilitySpecialCases() {
String conjunction;
// looks unsatisfiable for type size 5, but it is not
conjunction = "X != a and X != b and X != c and X != Y and X != Z";
TheoryTestingSupport theoryTestingSupport = makeTheoryTestingSupport();
Constraint constraint = new SingleVariableEqualityConstraint(parse("X"), false, theoryTestingSupport.getTheory());
Context context = theoryTestingSupport.makeContextWithTestingInformation();
constraint = constraint.conjoinWithConjunctiveClause(parse(conjunction), context);
// satisfiable if either Y or Z is equal to a, b, c, or each other.
Assert.assertNotEquals(null, constraint);
}
Aggregations