// Path: test/conform/org/objectweb/asm/attrs/CodeComment.java
// public class CodeComment extends Attribute implements ASMifiable, Textifiable {
// 
//     public CodeComment() {
//         super("CodeComment");
//     }
// 
//     @Override
//     public boolean isUnknown() {
//         return false;
//     }
// 
//     @Override
//     public boolean isCodeAttribute() {
//         return true;
//     }
// 
//     @Override
//     protected Attribute read(final ClassReader cr, final int off,
//             final int len, final char[] buf, final int codeOff,
//             final Label[] labels) {
// 
//         return new CodeComment();
//     }
// 
//     @Override
//     protected ByteVector write(final ClassWriter cw, final byte[] code,
//             final int len, final int maxStack, final int maxLocals) {
//         return new ByteVector();
//     }
// 
//     @Override
//     protected Label[] getLabels() {
//         super.getLabels();
//         return new Label[] { new Label() };
//     }
// 
//     public void asmify(final StringBuffer buf, final String varName,
//             final Map<Label, String> labelNames) {
//         buf.append("Attribute ").append(varName)
//                 .append(" = new org.objectweb.asm.attrs.CodeComment();");
//     }
// 
//     public void textify(final StringBuffer buf,
//             final Map<Label, String> labelNames) {
//     }
// }


import java.lang.instrument.IllegalClassFormatException;
import java.lang.instrument.Instrumentation;
import java.security.ProtectionDomain;
import java.util.HashSet;
import junit.framework.TestSuite;
import org.objectweb.asm.attrs.CodeComment;
import java.lang.instrument.ClassFileTransformer;
            @Override
            public MethodVisitor visitMethod(final int access,
                    final String name, final String desc,
                    final String signature, final String[] exceptions) {
                return new MethodVisitor(Opcodes.ASM5, cv.visitMethod(access,
                        name, desc, signature, exceptions)) {
                    private final HashSet<Label> labels = new HashSet<Label>();

                    @Override
                    public void visitLabel(final Label label) {
                        super.visitLabel(label);
                        labels.add(label);
                    }

                    @Override
                    public void visitJumpInsn(final int opcode,
                            final Label label) {
                        super.visitJumpInsn(opcode, label);
                        if (opcode != Opcodes.GOTO) {
                            if (!transformed && !labels.contains(label)) {
                                transformed = true;
                                for (int i = 0; i < 33000; ++i) {
                                    mv.visitInsn(Opcodes.NOP);
                                }
                            }
                        }
                    }
                };
            }
        };
// Path: test/conform/org/objectweb/asm/attrs/CodeComment.java
// public class CodeComment extends Attribute implements ASMifiable, Textifiable {
// 
//     public CodeComment() {
//         super("CodeComment");
//     }
// 
//     @Override
//     public boolean isUnknown() {
//         return false;
//     }
// 
//     @Override
//     public boolean isCodeAttribute() {
//         return true;
//     }
// 
//     @Override
//     protected Attribute read(final ClassReader cr, final int off,
//             final int len, final char[] buf, final int codeOff,
//             final Label[] labels) {
// 
//         return new CodeComment();
//     }
// 
//     @Override
//     protected ByteVector write(final ClassWriter cw, final byte[] code,
//             final int len, final int maxStack, final int maxLocals) {
//         return new ByteVector();
//     }
// 
//     @Override
//     protected Label[] getLabels() {
//         super.getLabels();
//         return new Label[] { new Label() };
//     }
// 
//     public void asmify(final StringBuffer buf, final String varName,
//             final Map<Label, String> labelNames) {
//         buf.append("Attribute ").append(varName)
//                 .append(" = new org.objectweb.asm.attrs.CodeComment();");
//     }
// 
//     public void textify(final StringBuffer buf,
//             final Map<Label, String> labelNames) {
//     }
// }


// Path: test/conform/org/objectweb/asm/ClassWriterResizeInsnsTest.java
import java.lang.instrument.IllegalClassFormatException;
import java.lang.instrument.Instrumentation;
import java.security.ProtectionDomain;
import java.util.HashSet;
import junit.framework.TestSuite;
import org.objectweb.asm.attrs.CodeComment;
import java.lang.instrument.ClassFileTransformer;

            @Override
            public MethodVisitor visitMethod(final int access,
                    final String name, final String desc,
                    final String signature, final String[] exceptions) {
                return new MethodVisitor(Opcodes.ASM5, cv.visitMethod(access,
                        name, desc, signature, exceptions)) {
                    private final HashSet<Label> labels = new HashSet<Label>();

                    @Override
                    public void visitLabel(final Label label) {
                        super.visitLabel(label);
                        labels.add(label);
                    }

                    @Override
                    public void visitJumpInsn(final int opcode,
                            final Label label) {
                        super.visitJumpInsn(opcode, label);
                        if (opcode != Opcodes.GOTO) {
                            if (!transformed && !labels.contains(label)) {
                                transformed = true;
                                for (int i = 0; i < 33000; ++i) {
                                    mv.visitInsn(Opcodes.NOP);
                                }
                            }
                        }
                    }
                };
            }
        };
        cr.accept(ca, new Attribute[] { new CodeComment() }, 0);