Program: 106458
Project: 106458
Buggy source:
protected NicDaoImpl(){
  super();
  AllFieldsSearch=createSearchBuilder();
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getInstanceId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getNetworkId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getVmType(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getIp4Address(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().isDefaultNic(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getBroadcastUri(),Op.EQ);
  AllFieldsSearch.done();
  IpSearch=createSearchBuilder(String.class);
  IpSearch.select(null,Func.DISTINCT,IpSearch.entity().getIp4Address());
  IpSearch.and("String_Node_Str",IpSearch.entity().getNetworkId(),Op.EQ);
  IpSearch.and("String_Node_Str",IpSearch.entity().getIp4Address(),Op.NNULL);
  IpSearch.done();
  NonReleasedSearch=createSearchBuilder();
  NonReleasedSearch.and("String_Node_Str",NonReleasedSearch.entity().getInstanceId(),Op.EQ);
  NonReleasedSearch.and("String_Node_Str",NonReleasedSearch.entity().getNetworkId(),Op.EQ);
  NonReleasedSearch.and("String_Node_Str",NonReleasedSearch.entity().getState(),Op.NOTIN);
  NonReleasedSearch.done();
  CountBy=createSearchBuilder(Integer.class);
  CountBy.select(null,Func.COUNT,CountBy.entity().getId());
  CountBy.and("String_Node_Str",CountBy.entity().getInstanceId(),Op.EQ);
  CountBy.and("String_Node_Str",CountBy.entity().getRemoved(),Op.NULL);
  CountBy.done();
}

Fixed version (ground truth):
protected NicDaoImpl(){
  super();
  AllFieldsSearch=createSearchBuilder();
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getInstanceId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getNetworkId(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getGateway(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getVmType(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getIp4Address(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().isDefaultNic(),Op.EQ);
  AllFieldsSearch.and("String_Node_Str",AllFieldsSearch.entity().getBroadcastUri(),Op.EQ);
  AllFieldsSearch.done();
  IpSearch=createSearchBuilder(String.class);
  IpSearch.select(null,Func.DISTINCT,IpSearch.entity().getIp4Address());
  IpSearch.and("String_Node_Str",IpSearch.entity().getNetworkId(),Op.EQ);
  IpSearch.and("String_Node_Str",IpSearch.entity().getIp4Address(),Op.NNULL);
  IpSearch.done();
  NonReleasedSearch=createSearchBuilder();
  NonReleasedSearch.and("String_Node_Str",NonReleasedSearch.entity().getInstanceId(),Op.EQ);
  NonReleasedSearch.and("String_Node_Str",NonReleasedSearch.entity().getNetworkId(),Op.EQ);
  NonReleasedSearch.and("String_Node_Str",NonReleasedSearch.entity().getState(),Op.NOTIN);
  NonReleasedSearch.done();
  CountBy=createSearchBuilder(Integer.class);
  CountBy.select(null,Func.COUNT,CountBy.entity().getId());
  CountBy.and("String_Node_Str",CountBy.entity().getInstanceId(),Op.EQ);
  CountBy.and("String_Node_Str",CountBy.entity().getRemoved(),Op.NULL);
  CountBy.done();
}