Program: 108457
Project: 108457
Buggy source:
/** 
 * Semantics of method name: monotonicity of criteria + monotonicity of metric
 * @param lattice
 * @param checker
 * @param strategy
 * @return
 */
private static AbstractAlgorithm createPartialFull(final Lattice lattice,final INodeChecker checker,final FLASHStrategy strategy){
  int binaryAnonymityProperty=Node.PROPERTY_K_ANONYMOUS;
  NodeTrigger binaryTriggerSkip=new NodeTrigger(){
    public boolean appliesTo(    Node node){
      return node.hasProperty(Node.PROPERTY_K_ANONYMOUS) || node.hasProperty(Node.PROPERTY_NOT_K_ANONYMOUS) || node.hasProperty(Node.PROPERTY_INSUFFICIENT_UTILITY);
    }
  }
;
  NodeTrigger binaryTriggerTag=new NodeTrigger(){
    public boolean appliesTo(    Node node){
      return node.hasProperty(Node.PROPERTY_K_ANONYMOUS) || node.hasProperty(Node.PROPERTY_NOT_K_ANONYMOUS) || node.hasProperty(Node.PROPERTY_ANONYMOUS);
    }
    public void action(    Node node){
      if (node.hasProperty(Node.PROPERTY_K_ANONYMOUS)) {
        lattice.setPropertyUpwards(node,false,Node.PROPERTY_K_ANONYMOUS);
      }
 else {
        lattice.setPropertyDownwards(node,false,Node.PROPERTY_NOT_K_ANONYMOUS);
      }
      if (node.hasProperty(Node.PROPERTY_ANONYMOUS)) {
        lattice.setPropertyUpwards(node,false,Node.PROPERTY_INSUFFICIENT_UTILITY);
      }
    }
  }
;
  NodeTrigger binaryTriggerSnapshotStore=History.STORAGE_TRIGGER_NON_ANONYMOUS;
  NodeTrigger binaryTriggerSnapshotEvict=History.EVICTION_TRIGGER_K_ANONYMOUS;
  NodeTrigger binaryTriggerCheck=new NodeTriggerInverse(binaryTriggerSkip);
  NodeTrigger binaryTriggerEvaluate=new NodeTriggerConstant(false);
  int linearAnonymityProperty=Node.PROPERTY_ANONYMOUS;
  NodeTrigger linearTriggerSkip=new NodeTrigger(){
    public boolean appliesTo(    Node node){
      return node.hasProperty(Node.PROPERTY_VISITED) || node.hasProperty(Node.PROPERTY_NOT_K_ANONYMOUS) || node.hasProperty(Node.PROPERTY_INSUFFICIENT_UTILITY);
    }
  }
;
  NodeTrigger linearTriggerSnapshotStore=History.STORAGE_TRIGGER_ALL;
  NodeTrigger linearTriggerSnapshotEvict=History.EVICTION_TRIGGER_CHECKED;
  NodeTrigger linearTriggerEvaluate=new NodeTriggerConstant(false);
  NodeTrigger linearTriggerCheck=new NodeTriggerInverse(linearTriggerSkip);
  NodeTrigger linearTriggerTag=new NodeTrigger(){
    public boolean appliesTo(    Node node){
      return true;
    }
    public void action(    Node node){
      node.setProperty(Node.PROPERTY_VISITED);
      if (node.hasProperty(Node.PROPERTY_ANONYMOUS)) {
        lattice.setPropertyUpwards(node,false,Node.PROPERTY_INSUFFICIENT_UTILITY);
      }
    }
  }
;
  FLASHConfiguration binaryConfiguration=new FLASHConfiguration(binaryAnonymityProperty,binaryTriggerTag,binaryTriggerCheck,binaryTriggerEvaluate,binaryTriggerSkip,binaryTriggerSnapshotStore,binaryTriggerSnapshotEvict);
  FLASHConfiguration linearConfiguration=new FLASHConfiguration(linearAnonymityProperty,linearTriggerTag,linearTriggerCheck,linearTriggerEvaluate,linearTriggerSkip,linearTriggerSnapshotStore,linearTriggerSnapshotEvict);
  return new FLASHAlgorithmImpl(lattice,checker,strategy,binaryConfiguration,linearConfiguration);
}

Fixed version (ground truth):
/** 
 * Semantics of method name: monotonicity of criteria + monotonicity of metric
 * @param lattice
 * @param checker
 * @param strategy
 * @return
 */
private static AbstractAlgorithm createPartialFull(final Lattice lattice,final INodeChecker checker,final FLASHStrategy strategy){
  int binaryAnonymityProperty=Node.PROPERTY_K_ANONYMOUS;
  NodeTrigger binaryTriggerSkip=new NodeTrigger(){
    public boolean appliesTo(    Node node){
      return node.hasProperty(Node.PROPERTY_K_ANONYMOUS) || node.hasProperty(Node.PROPERTY_NOT_K_ANONYMOUS) || node.hasProperty(Node.PROPERTY_INSUFFICIENT_UTILITY);
    }
  }
;
  NodeTrigger binaryTriggerTag=new NodeTrigger(){
    public boolean appliesTo(    Node node){
      return node.hasProperty(Node.PROPERTY_K_ANONYMOUS) || node.hasProperty(Node.PROPERTY_NOT_K_ANONYMOUS) || node.hasProperty(Node.PROPERTY_ANONYMOUS);
    }
    public void action(    Node node){
      if (node.hasProperty(Node.PROPERTY_K_ANONYMOUS)) {
        lattice.setPropertyUpwards(node,false,Node.PROPERTY_K_ANONYMOUS);
      }
 else {
        lattice.setPropertyDownwards(node,false,Node.PROPERTY_NOT_K_ANONYMOUS);
      }
      if (node.hasProperty(Node.PROPERTY_ANONYMOUS)) {
        lattice.setPropertyUpwards(node,false,Node.PROPERTY_INSUFFICIENT_UTILITY);
      }
    }
  }
;
  NodeTrigger binaryTriggerSnapshotStore=History.STORAGE_TRIGGER_NON_ANONYMOUS;
  NodeTrigger binaryTriggerSnapshotEvict=History.EVICTION_TRIGGER_K_ANONYMOUS;
  NodeTrigger binaryTriggerCheck=new NodeTriggerInverse(binaryTriggerSkip);
  NodeTrigger binaryTriggerEvaluate=new NodeTriggerConstant(false);
  int linearAnonymityProperty=Node.PROPERTY_ANONYMOUS;
  NodeTrigger linearTriggerSkip=new NodeTrigger(){
    public boolean appliesTo(    Node node){
      return node.hasProperty(Node.PROPERTY_VISITED) || node.hasProperty(Node.PROPERTY_NOT_K_ANONYMOUS) || node.hasProperty(Node.PROPERTY_INSUFFICIENT_UTILITY);
    }
  }
;
  NodeTrigger linearTriggerSnapshotStore=History.STORAGE_TRIGGER_ALL;
  NodeTrigger linearTriggerSnapshotEvict=History.EVICTION_TRIGGER_CHECKED;
  NodeTrigger linearTriggerEvaluate=new NodeTriggerConstant(false);
  NodeTrigger linearTriggerCheck=new NodeTrigger(){
    public boolean appliesTo(    Node node){
      return !node.hasProperty(Node.PROPERTY_VISITED) && !node.hasProperty(Node.PROPERTY_NOT_K_ANONYMOUS) && !node.hasProperty(Node.PROPERTY_INSUFFICIENT_UTILITY)&& !node.hasProperty(Node.PROPERTY_CHECKED);
    }
  }
;
  NodeTrigger linearTriggerTag=new NodeTrigger(){
    public boolean appliesTo(    Node node){
      return true;
    }
    public void action(    Node node){
      node.setProperty(Node.PROPERTY_VISITED);
      if (node.hasProperty(Node.PROPERTY_ANONYMOUS)) {
        lattice.setPropertyUpwards(node,false,Node.PROPERTY_INSUFFICIENT_UTILITY);
      }
    }
  }
;
  FLASHConfiguration binaryConfiguration=new FLASHConfiguration(binaryAnonymityProperty,binaryTriggerTag,binaryTriggerCheck,binaryTriggerEvaluate,binaryTriggerSkip,binaryTriggerSnapshotStore,binaryTriggerSnapshotEvict);
  FLASHConfiguration linearConfiguration=new FLASHConfiguration(linearAnonymityProperty,linearTriggerTag,linearTriggerCheck,linearTriggerEvaluate,linearTriggerSkip,linearTriggerSnapshotStore,linearTriggerSnapshotEvict);
  return new FLASHAlgorithmImpl(lattice,checker,strategy,binaryConfiguration,linearConfiguration);
}