Program: 2384
Project: 2384
Buggy source:
public Map<Role,List<IOAction>> getAcceptable(){
  Map<Role,List<IOAction>> res=new HashMap<>();
  for (  Role r : this.states.keySet()) {
    EndpointState s=this.states.get(r);
switch (s.getStateKind()) {
case OUTPUT:
{
        List<IOAction> as=s.getAllAcceptable();
        for (        IOAction a : as) {
          if (a.isSend()) {
            if (this.buffs.canSend(r,(Send)a)) {
              List<IOAction> tmp=res.get(r);
              if (tmp == null) {
                tmp=new LinkedList<>();
                res.put(r,tmp);
              }
              tmp.add(a);
            }
          }
 else           if (a.isConnect()) {
            Connect c=(Connect)a;
            EndpointState speer=this.states.get(c.peer);
{
              List<IOAction> peeras=speer.getAllAcceptable();
              for (              IOAction peera : peeras) {
                if (peera.equals(c.toDual(r)) && this.buffs.canConnect(r,c)) {
                  List<IOAction> tmp=res.get(r);
                  if (tmp == null) {
                    tmp=new LinkedList<>();
                    res.put(r,tmp);
                  }
                  tmp.add(a);
                }
              }
            }
          }
 else           if (a.isDisconnect()) {
            if (this.buffs.canDisconnect(r,(Disconnect)a)) {
              List<IOAction> tmp=res.get(r);
              if (tmp == null) {
                tmp=new LinkedList<>();
                res.put(r,tmp);
              }
              tmp.add(a);
            }
          }
 else {
            throw new RuntimeException("String_Node_Str" + a);
          }
        }
        break;
      }
case UNARY_INPUT:
case POLY_INPUT:
{
      for (      IOAction a : this.buffs.inputable(r)) {
        if (a.isReceive()) {
          if (s.isAcceptable(a)) {
            List<IOAction> tmp=res.get(r);
            if (tmp == null) {
              tmp=new LinkedList<>();
              res.put(r,tmp);
            }
            tmp.add(a);
          }
        }
 else         if (a.isAccept()) {
          Accept c=(Accept)a;
          EndpointState speer=this.states.get(c.peer);
{
            List<IOAction> peeras=speer.getAllAcceptable();
            for (            IOAction peera : peeras) {
              if (peera.equals(c.toDual(r)) && this.buffs.canAccept(r,c)) {
                List<IOAction> tmp=res.get(r);
                if (tmp == null) {
                  tmp=new LinkedList<>();
                  res.put(r,tmp);
                }
                tmp.add(a);
              }
            }
          }
        }
 else {
          throw new RuntimeException("String_Node_Str" + a);
        }
      }
      break;
    }
case TERMINAL:
{
    break;
  }
default :
{
  throw new RuntimeException("String_Node_Str" + s);
}
}
}
return res;
}

Fixed version (ground truth):
public Map<Role,List<IOAction>> getAcceptable(){
  Map<Role,List<IOAction>> res=new HashMap<>();
  for (  Role r : this.states.keySet()) {
    EndpointState s=this.states.get(r);
switch (s.getStateKind()) {
case OUTPUT:
{
        List<IOAction> as=s.getAllAcceptable();
        for (        IOAction a : as) {
          if (a.isSend()) {
            if (this.buffs.canSend(r,(Send)a)) {
              List<IOAction> tmp=res.get(r);
              if (tmp == null) {
                tmp=new LinkedList<>();
                res.put(r,tmp);
              }
              tmp.add(a);
            }
          }
 else           if (a.isDisconnect()) {
            if (this.buffs.canDisconnect(r,(Disconnect)a)) {
              List<IOAction> tmp=res.get(r);
              if (tmp == null) {
                tmp=new LinkedList<>();
                res.put(r,tmp);
              }
              tmp.add(a);
            }
          }
 else {
            throw new RuntimeException("String_Node_Str" + a);
          }
        }
        break;
      }
case UNARY_INPUT:
case POLY_INPUT:
{
      for (      IOAction a : this.buffs.inputable(r)) {
        if (a.isReceive()) {
          if (s.isAcceptable(a)) {
            List<IOAction> tmp=res.get(r);
            if (tmp == null) {
              tmp=new LinkedList<>();
              res.put(r,tmp);
            }
            tmp.add(a);
          }
        }
 else {
          throw new RuntimeException("String_Node_Str" + a);
        }
      }
      break;
    }
case TERMINAL:
{
    break;
  }
case CONNECTION:
{
  List<IOAction> as=s.getAllAcceptable();
  for (  IOAction a : as) {
    if (a.isConnect()) {
      Connect c=(Connect)a;
      EndpointState speer=this.states.get(c.peer);
{
        List<IOAction> peeras=speer.getAllAcceptable();
        for (        IOAction peera : peeras) {
          if (peera.equals(c.toDual(r)) && this.buffs.canConnect(r,c)) {
            List<IOAction> tmp=res.get(r);
            if (tmp == null) {
              tmp=new LinkedList<>();
              res.put(r,tmp);
            }
            tmp.add(a);
          }
        }
      }
    }
 else {
      throw new RuntimeException("String_Node_Str" + a);
    }
  }
}
default :
{
throw new RuntimeException("String_Node_Str" + s);
}
}
}
return res;
}