Program: 178280
Project: 178280
Buggy source:
public DecodedMethodInvocationOp(MethodInvocationOpcode mop,Context context,int index) throws NotFoundException {
  super(mop,context,index);
  ConstPool constPool=Utils.getConstPool(context.behavior);
  boolean interfaceMethod=constPool.getTag(getMethodRefIndex()) == ConstPool.CONST_InterfaceMethodref;
  descriptor=interfaceMethod ? constPool.getInterfaceMethodrefType(getMethodRefIndex()) : constPool.getMethodrefType(getMethodRefIndex());
  name=interfaceMethod ? constPool.getInterfaceMethodrefName(getMethodRefIndex()) : constPool.getMethodrefName(getMethodRefIndex());
  declaringClassName=context.behavior.getDeclaringClass().getName();
  ClassPool cp=context.behavior.getDeclaringClass().getClassPool();
  parameterTypes=Descriptor.getParameterTypes(descriptor,cp);
  nbParameters=parameterTypes.length;
  StackElementLength[] pops=new StackElementLength[parameterTypes.length];
  for (int i=parameterTypes.length - 1, j=0; i >= 0; i--, j++) {
    CtClass ctClass=parameterTypes[i];
    if (ctClass.isPrimitive()) {
      char d=((CtPrimitiveType)ctClass).getDescriptor();
      if (d == 'J' || d == 'D') {
        pops[j]=DOUBLE;
      }
 else {
        pops[j]=ONE;
      }
    }
  }
  this.pops=pops;
  CtClass returnType=Descriptor.getReturnType(descriptor,cp);
  StackElementLength returnTypeLength=ONE;
  if (returnType.isPrimitive()) {
    char d=((CtPrimitiveType)returnType).getDescriptor();
    if (d == 'V') {
      returnTypeLength=null;
    }
    if (d == 'J' || d == 'D') {
      returnTypeLength=DOUBLE;
    }
  }
  this.returnType=returnTypeLength != null ? returnTypeLength : null;
}

Fixed version (ground truth):
public DecodedMethodInvocationOp(MethodInvocationOpcode mop,Context context,int index) throws NotFoundException {
  super(mop,context,index);
  ConstPool constPool=Utils.getConstPool(context.behavior);
  boolean interfaceMethod=constPool.getTag(getMethodRefIndex()) == ConstPool.CONST_InterfaceMethodref;
  descriptor=interfaceMethod ? constPool.getInterfaceMethodrefType(getMethodRefIndex()) : constPool.getMethodrefType(getMethodRefIndex());
  name=interfaceMethod ? constPool.getInterfaceMethodrefName(getMethodRefIndex()) : constPool.getMethodrefName(getMethodRefIndex());
  declaringClassName=interfaceMethod ? constPool.getInterfaceMethodrefClassName(getMethodRefIndex()) : constPool.getMethodrefClassName(getMethodRefIndex());
  ClassPool cp=context.behavior.getDeclaringClass().getClassPool();
  parameterTypes=Descriptor.getParameterTypes(descriptor,cp);
  nbParameters=parameterTypes.length;
  StackElementLength[] pops=new StackElementLength[parameterTypes.length];
  for (int i=parameterTypes.length - 1, j=0; i >= 0; i--, j++) {
    pops[j]=ONE;
    CtClass ctClass=parameterTypes[i];
    if (ctClass.isPrimitive()) {
      char d=((CtPrimitiveType)ctClass).getDescriptor();
      if (d == 'J' || d == 'D') {
        pops[j]=DOUBLE;
      }
    }
  }
  this.pops=pops;
  returnType=Descriptor.getReturnType(descriptor,cp);
  StackElementLength returnTypeLength=ONE;
  if (returnType.isPrimitive()) {
    char d=((CtPrimitiveType)returnType).getDescriptor();
    if (d == 'V') {
      returnTypeLength=null;
    }
    if (d == 'J' || d == 'D') {
      returnTypeLength=DOUBLE;
    }
  }
  this.returnTypeLength=returnTypeLength != null ? returnTypeLength : null;
}