CPD Results

The following document contains the results of PMD's CPD 4.3.

Duplications

File Line
org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java 577
org/apache/commons/nabla/forward/instructions/WideningTransformer.java 64
        list.add(new VarInsnNode(Opcodes.ALOAD, getInputDSIndex()));                 // => y_ds y_ds d x_ds
        list.add(new MethodInsnNode(Opcodes.INVOKEVIRTUAL,
                                    Type.getInternalName(DerivativeStructure.class),
                                    "getFreeParameters",
                                    Type.getMethodDescriptor(Type.INT_TYPE)));       // => y_ds y_ds d params
        list.add(new VarInsnNode(Opcodes.ALOAD, 1));                                 // => y_ds y_ds d params x_ds
        list.add(new MethodInsnNode(Opcodes.INVOKEVIRTUAL,
                                    Type.getInternalName(DerivativeStructure.class),
                                    "getOrder",
                                    Type.getMethodDescriptor(Type.INT_TYPE)));       // => y_ds y_ds d params order
        list.add(new InsnNode(Opcodes.DUP2_X2));                                     // => y_ds y_ds params order d params order
        list.add(new InsnNode(Opcodes.POP2));                                        // => y_ds y_ds params order d
        list.add(new MethodInsnNode(Opcodes.INVOKESPECIAL,
                                    Type.getInternalName(DerivativeStructure.class),
                                    "<init>",
                                    Type.getMethodDescriptor(Type.VOID_TYPE,
                                                             Type.INT_TYPE,
                                                             Type.INT_TYPE,
                                                             Type.DOUBLE_TYPE)));    // => y_ds

        return list;

    }