Exemplo n.º 1
0
  public boolean implies(Node a, Node b, ExampleCalculator example) throws TimeoutException {
    if (b == null) return true;

    if (!strategy.contains(Strategy.SingleTesting)) {
      Node node = new And(a.clone(), new Not(b.clone()));
      SatSolver solver = new SatSolver(node, timeout);
      return !solver.isSatisfiable();
    }

    example.setLeft(a);
    example.setRight(b);
    return !example.findSatisfiable(strategy.contains(Strategy.SingleTestingAborted));
  }
Exemplo n.º 2
0
 public Configuration calculateExample(boolean added) throws TimeoutException {
   return added ? addedProducts.nextExample() : removedProducts.nextExample();
 }