コード例 #1
0
 private void checkSatisfiable(RexNode e, String s) {
   assertTrue(SubstitutionVisitor.mayBeSatisfiable(e));
   final RexNode simple = SubstitutionVisitor.simplify(rexBuilder, e);
   assertEquals(s, simple.toString());
 }
コード例 #2
0
 private void checkNotSatisfiable(RexNode e) {
   assertFalse(SubstitutionVisitor.mayBeSatisfiable(e));
   final RexNode simple = SubstitutionVisitor.simplify(rexBuilder, e);
   assertFalse(RexLiteral.booleanValue(simple));
 }