{"Template_token": ["", "return", "new", "AsmBackend", "(", "TT", ".", "isArch64Bit", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMAsmBackend", "Func": "createJVMAsmBackend", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86830, "Length": 12, "Cover_Rate": 0.5454545454545454} {"Template_token": ["", "unsigned", "AsmBackend", "::", "getNumFixupKinds", "(", ")", "const", "{"], "ground_truth": ["return", "", ";"], "File": "JVMAsmBackend", "Func": "getNumFixupKinds", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86835, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "explicit", "AsmBackend", "(", "bool", "Is64Bit", ")", ":", "MCAsmBackend", "(", "", ")", ",", "Is64Bit", "(", "Is64Bit", ")", "{"], "ground_truth": ["}"], "File": "JVMAsmBackend", "Func": "JVMAsmBackend", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86837, "Length": 18, "Cover_Rate": 0.9} {"Template_token": ["", "explicit", "AsmBackend", "(", "bool", "Is64Bit", ")", ":", "MCAsmBackend", "(", "", ")", ",", "Is64Bit", "(", "Is64Bit", ")", "{"], "ground_truth": ["}"], "File": "JVMAsmBackend", "Func": "JVMAsmBackend", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86838, "Length": 18, "Cover_Rate": 0.9} {"Template_token": ["", "bool", "AsmBackend", "::", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{"], "ground_truth": ["return", "false", ";"], "File": "JVMAsmBackend", "Func": "mayNeedRelaxation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86839, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "bool", "AsmBackend", "::", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{"], "ground_truth": ["return", "false", ";"], "File": "JVMAsmBackend", "Func": "mayNeedRelaxation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86840, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "~", "AsmBackend", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "JVMAsmBackend", "Func": "~JVMAsmBackend", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86844, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "~", "AsmBackend", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "JVMAsmBackend", "Func": "~JVMAsmBackend", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86845, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "ClassDef", "+=", "ClassName", ";", "ClassDef", "+=", "", ";", "EmitClassFields", "(", "ClassDef", ",", "STy", ",", "CompFields", ")", ";", "ClassDef", "+=", "", ";", "for", "(", "auto", "&", "TyFIDPair", ":", "CompFields", ")", "EmitFieldAllocation", "(", "ClassDef", ",", "TyFIDPair", ".", "first", ",", "ClassName", ",", "TyFIDPair", ".", "second", ")", ";", "ClassDef", "+=", "", ";", "return", "ClassDef", ";"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "EmitClassDefinition", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86846, "Length": 52, "Cover_Rate": 0.48148148148148145} {"Template_token": ["", "ClassDef", "+=", "", ";", "for", "(", "auto", "&", "TyFIDPair", ":", "CompFields", ")", "EmitFieldAllocation", "(", "ClassDef", ",", "TyFIDPair", ".", "first", ",", "ClassName", ",", "TyFIDPair", ".", "second", ")", ";", "ClassDef", "+=", "", ";"], "ground_truth": ["return", "ClassDef", ";"], "File": "JVMAsmPrinter", "Func": "EmitClassDefinition", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86847, "Length": 34, "Cover_Rate": 0.3148148148148148} {"Template_token": ["", "std", "::", "string", "ClassDef", "=", "EmitClassDefinition", "(", "TyNmPair", ".", "first", ",", "ClassName", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "ClassDef", ";", ")", ";", "std", "::", "error_code", "EC", ";", "sys", "::", "fs", "::", "OpenFlags", "OpenFlags", "=", "sys", "::", "fs", "::", "F_None", ";", "raw_fd_ostream", "ClassFile", "(", "ClassName", "+", "", ",", "EC", ",", "OpenFlags", ")", ";"], "ground_truth": ["ClassFile", "<<", "ClassDef", ";"], "File": "JVMAsmPrinter", "Func": "EmitClassDefinitions", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86848, "Length": 60, "Cover_Rate": 0.5660377358490566} {"Template_token": ["", "StrBuf", "+=", "", ";", "sprintf", "(", "fieldBuf", ",", "", ",", "i", ")", ";", "StrBuf", "+=", "fieldBuf", ";", "StrBuf", "+=", "", ";", "Type", "*", "FieldTy", "=", "STy", "->", "getElementType", "(", "i", ")", ";", "MFI", "->", "getTypeDescriptor", "(", "FieldTy", ",", "StrBuf", ")", ";", "if", "(", "isa", "<", "CompositeType", ">", "(", "FieldTy", ")", ")", "CompFields", ".", "push_back", "(", "std", "::", "make_pair", "(", "FieldTy", ",", "i", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "EmitClassFields", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86849, "Length": 66, "Cover_Rate": 0.5689655172413793} {"Template_token": ["", "Assembler", "obj", ";", "Optional", "<", "std", "::", "unique_ptr", "<", "", ">>", "classPkt", "=", "obj", ".", "AssembleClass", "(", "TM", ".", "getMCAsmInfo", "(", ")", "->", "getAsmMemoryBuffer", "(", ")", ")", ";", "if", "(", "DumpClassFile", "&&", "classPkt", ".", "hasValue", "(", ")", ")", "{", "std", "::", "error_code", "EC", ";", "sys", "::", "fs", "::", "OpenFlags", "OpenFlags", "=", "sys", "::", "fs", "::", "F_None", ";", "std", "::", "string", "ModName", "(", "M", ".", "getName", "(", ")", ".", "data", "(", ")", ")", ";", "std", "::", "string", "ClassName", "=", "ModName", ".", "substr", "(", "", ",", "ModName", ".", "find", "(", "", ")", ")", ";", "raw_fd_ostream", "ClassFile", "(", "ClassName", "+", "", ",", "EC", ",", "OpenFlags", ")", ";"], "ground_truth": ["ClassFile", ".", "write", "(", "classPkt", "->", "get", "(", ")", "->", "getPayload", "(", ")", ",", "classPkt", "->", "get", "(", ")", "->", "getSize", "(", ")", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitEndOfAsmFile", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86850, "Length": 129, "Cover_Rate": 0.591743119266055} {"Template_token": ["", "if", "(", "DumpClassFile", "&&", "classPkt", ".", "hasValue", "(", ")", ")", "{", "std", "::", "error_code", "EC", ";", "sys", "::", "fs", "::", "OpenFlags", "OpenFlags", "=", "sys", "::", "fs", "::", "F_None", ";", "std", "::", "string", "ModName", "(", "M", ".", "getName", "(", ")", ".", "data", "(", ")", ")", ";", "std", "::", "string", "ClassName", "=", "ModName", ".", "substr", "(", "", ",", "ModName", ".", "find", "(", "", ")", ")", ";", "raw_fd_ostream", "ClassFile", "(", "ClassName", "+", "", ",", "EC", ",", "OpenFlags", ")", ";", "ClassFile", ".", "write", "(", "classPkt", "->", "get", "(", ")", "->", "getPayload", "(", ")", ",", "classPkt", "->", "get", "(", ")", "->", "getSize", "(", ")", ")", ";", "ClassFile", ".", "close", "(", ")", ";", "}", "else", "if", "(", "classPkt", ".", "hasValue", "(", ")", ")", "{", "classPkt", "->", "get", "(", ")", "->", "dump", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "EmitEndOfAsmFile", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86851, "Length": 129, "Cover_Rate": 0.591743119266055} {"Template_token": ["", "if", "(", "isa", "<", "ArrayType", ">", "(", "Ty", ")", ")", "{", "char", "IDStr", "[", "", "]", "=", "{", "'\\0'", "}", ";", "Type", "*", "ElmTy", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ";", "unsigned", "NumElm", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ";", "std", "::", "string", "ElmTyStr", "=", "EmitTypeString", "(", "ElmTy", ")", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "sprintf", "(", "IDStr", ",", "", ",", "NumElm", ")", ";", "FieldInit", "+=", "IDStr", ";", "if", "(", "isa", "<", "StructType", ">", "(", "ElmTy", ")", ")", "FieldInit", "+=", "", ";", "else", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ElmTyStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ClassName", ";", "FieldInit", "+=", "", ";", "IDStr", "[", "", "]", "=", "'\\0'", ";", "sprintf", "(", "IDStr", ",", "", ",", "FieldID", ")", ";", "FieldInit", "+=", "IDStr", ";", "FieldInit", "+=", "", ";", "MFI", "->", "getTypeDescriptor", "(", "Ty", ",", "FieldInit", ")", ";", "if", "(", "isa", "<", "StructType", ">", "(", "ElmTy", ")", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "NumElm", ";", "i", "++", ")", "{", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ClassName", ";", "FieldInit", "+=", "", ";", "IDStr", "[", "", "]", "=", "'\\0'", ";", "sprintf", "(", "IDStr", ",", "", ",", "FieldID", ")", ";", "FieldInit", "+=", "IDStr", ";", "FieldInit", "+=", "", ";", "MFI", "->", "getTypeDescriptor", "(", "Ty", ",", "FieldInit", ")", ";", "if", "(", "i", "<", "", ")", "FieldInit", "+=", "", ";", "else", "FieldInit", "+=", "", ";", "IDStr", "[", "", "]", "=", "'\\0'", ";", "sprintf", "(", "IDStr", ",", "", ",", "i", ")", ";", "FieldInit", "+=", "IDStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ElmTyStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ElmTyStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "}", "}", "}", "else", "if", "(", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", "{", "char", "IDStr", "[", "", "]", "=", "{", "'\\0'", "}", ";", "std", "::", "string", "TypeStr", "=", "EmitTypeString", "(", "Ty", ")", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "TypeStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "TypeStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ClassName", ";"], "ground_truth": ["FieldInit", "+=", "", ";"], "File": "JVMAsmPrinter", "Func": "EmitFieldAllocation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86852, "Length": 364, "Cover_Rate": 0.875} {"Template_token": ["", "FieldInit", "+=", "IDStr", ";", "if", "(", "isa", "<", "StructType", ">", "(", "ElmTy", ")", ")", "FieldInit", "+=", "", ";", "else", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ElmTyStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ClassName", ";", "FieldInit", "+=", "", ";", "IDStr", "[", "", "]", "=", "'\\0'", ";", "sprintf", "(", "IDStr", ",", "", ",", "FieldID", ")", ";", "FieldInit", "+=", "IDStr", ";", "FieldInit", "+=", "", ";", "MFI", "->", "getTypeDescriptor", "(", "Ty", ",", "FieldInit", ")", ";", "if", "(", "isa", "<", "StructType", ">", "(", "ElmTy", ")", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "NumElm", ";", "i", "++", ")", "{", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ClassName", ";", "FieldInit", "+=", "", ";", "IDStr", "[", "", "]", "=", "'\\0'", ";", "sprintf", "(", "IDStr", ",", "", ",", "FieldID", ")", ";", "FieldInit", "+=", "IDStr", ";", "FieldInit", "+=", "", ";", "MFI", "->", "getTypeDescriptor", "(", "Ty", ",", "FieldInit", ")", ";", "if", "(", "i", "<", "", ")", "FieldInit", "+=", "", ";", "else", "FieldInit", "+=", "", ";", "IDStr", "[", "", "]", "=", "'\\0'", ";", "sprintf", "(", "IDStr", ",", "", ",", "i", ")", ";", "FieldInit", "+=", "IDStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ElmTyStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ElmTyStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "}", "}", "}", "else", "if", "(", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", "{", "char", "IDStr", "[", "", "]", "=", "{", "'\\0'", "}", ";", "std", "::", "string", "TypeStr", "=", "EmitTypeString", "(", "Ty", ")", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "TypeStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "TypeStr", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "", ";", "FieldInit", "+=", "ClassName", ";", "FieldInit", "+=", "", ";"], "ground_truth": ["sprintf", "(", "IDStr", ",", "", ",", "FieldID", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFieldAllocation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86853, "Length": 294, "Cover_Rate": 0.7067307692307693} {"Template_token": ["", "Type", "*", "ElmTy", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ";", "unsigned", "NumElems", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "NumElems", ";", "i", "++", ")", "{", "if", "(", "i", "<", "NumElems", "-", "", ")", "AsmBuf", "+=", "", ";", "AsmBuf", "+=", "", ";", "IDStr", "[", "", "]", "=", "'\\0'", ";", "sprintf", "(", "IDStr", ",", "", ",", "i", ")", ";", "AsmBuf", "+=", "IDStr", ";", "EmitFieldInitialization", "(", "AsmBuf", ",", "Ty", ",", "ElmTy", ",", "ConstIdx", ",", "CVec", ",", "FieldID", ",", "false", ")", ";", "}", "}", "else", "if", "(", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", "{", "char", "IDStr", "[", "", "]", "=", "{", "'\\0'", "}", ";", "AsmBuf", "+=", "GetLoadString", "(", "PTy", ")", ";", "if", "(", "isa", "<", "StructType", ">", "(", "PTy", ")", ")", "{", "AsmBuf", "+=", "", ";", "AsmBuf", "+=", "MFI", "->", "getFromTypeNameMap", "(", "PTy", ")", ";", "AsmBuf", "+=", "", ";", "IDStr", "[", "", "]", "=", "'\\0'", ";"], "ground_truth": ["sprintf", "(", "IDStr", ",", "", ",", "FieldID", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFieldInitialization", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86854, "Length": 174, "Cover_Rate": 0.327683615819209} {"Template_token": ["", "Type", "*", "FldTy", "=", "cast", "<", "StructType", ">", "(", "Ty", ")", "->", "getTypeAtIndex", "(", "i", ")", ";", "if", "(", "i", "<", "NumFields", "-", "", ")", "AsmBuf", "+=", "", ";", "EmitFieldInitialization", "(", "AsmBuf", ",", "FldTy", ",", "Ty", ",", "ConstIdx", ",", "CVec", ",", "i", ",", "false", ")", ";", "}", "}", "else", "{", "char", "IDStr", "[", "", "]", "=", "{", "'\\0'", "}", ";", "assert", "(", "isa", "<", "ConstantInt", ">", "(", "CVec", "[", "ConstIdx", "]", ")", ")", ";", "unsigned", "InitVal", "=", "cast", "<", "ConstantInt", ">", "(", "CVec", "[", "ConstIdx", "++", "]", ")", "->", "getZExtValue", "(", ")", ";", "sprintf", "(", "IDStr", ",", "", ",", "InitVal", ")", ";", "AsmBuf", "+=", "", ";", "AsmBuf", "+=", "IDStr", ";", "AsmBuf", "+=", "GetStoreString", "(", "PTy", ")", ";", "if", "(", "isa", "<", "StructType", ">", "(", "PTy", ")", ")", "{", "AsmBuf", "+=", "MFI", "->", "getFromTypeNameMap", "(", "PTy", ")", ";", "AsmBuf", "+=", "", ";", "IDStr", "[", "", "]", "=", "'\\0'", ";", "sprintf", "(", "IDStr", ",", "", ",", "FieldID", ")", ";", "AsmBuf", "+=", "IDStr", ";", "AsmBuf", "+=", "", ";"], "ground_truth": ["MFI", "->", "getTypeDescriptor", "(", "Ty", ",", "AsmBuf", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFieldInitialization", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86855, "Length": 174, "Cover_Rate": 0.327683615819209} {"Template_token": ["", "TS", "->", "emitString", "(", "", ")", ";"], "ground_truth": ["EmitClassDefinitions", "(", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFunctionBodyEnd", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86856, "Length": 11, "Cover_Rate": 0.4074074074074074} {"Template_token": ["", "TargetStreamer", "*", "TS", "=", "getTargetStreamer", "(", ")", ";"], "ground_truth": ["TS", "->", "emitString", "(", "", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFunctionBodyEnd", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86857, "Length": 15, "Cover_Rate": 0.5555555555555556} {"Template_token": ["", "std", "::", "string", "ClassName", "=", "ModName", ".", "substr", "(", "", ",", "ModName", ".", "find", "(", "", ")", ")", ";", "const", "GlobalVariable", "*", "GCStructObj", "=", "Mod", "->", "getNamedGlobal", "(", "", ")", ";", "Type", "*", "GCStructTy", "=", "GetRootType", "(", "GCStructObj", "->", "getType", "(", ")", ")", ";", "assert", "(", "isa", "<", "StructType", ">", "(", "GCStructTy", ")", ")", ";", "StructType", "*", "STy", "=", "cast", "<", "StructType", ">", "(", "GCStructTy", ")", ";", "FieldTypeIndexVec", "CompFields", ";", "EmitClassFields", "(", "ConstrStr", ",", "STy", ",", "CompFields", ")", ";", "ConstrStr", "+=", "", ";", "for", "(", "auto", "TyIdx", ":", "CompFields", ")", "EmitFieldAllocation", "(", "ConstrStr", ",", "TyIdx", ".", "first", ",", "ClassName", ",", "TyIdx", ".", "second", ")", ";", "PopulateConstValVector", "(", "GCStructObj", "->", "getInitializer", "(", ")", ",", "CVec", ")", ";", "for", "(", "auto", "TyIdx", ":", "CompFields", ")", "EmitFieldInitialization", "(", "ConstrStr", ",", "STy", ",", "TyIdx", ".", "first", ",", "ConstIdx", ",", "CVec", ",", "TyIdx", ".", "second", ",", "true", ")", ";", "FunctionInfo", "::", "TypeNameMap", "*", "STyName", "=", "const_cast", "<", "FunctionInfo", "*", ">", "(", "MFI", ")", "->", "getTypeNameMap", "(", ")", ";", "STyName", "->", "erase", "(", "STy", ")", ";", "}", "else", "{", "ConstrStr", "+=", "", ";", "}", "ConstrStr", "+=", "", ";", "ConstrPrint", "=", "true", ";", "}", "TS", "->", "emitString", "(", "ConstrStr", ")", ";", "std", "::", "string", "str", "(", "", ")", ";", "str", "+=", "F", ".", "getName", "(", ")", ";", "str", "+=", "", ";", "for", "(", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "Type", "*", "T", "=", "Arg", ".", "getType", "(", ")", ";", "if", "(", "isa", "<", "PointerType", ">", "(", "T", ")", ")", "T", "=", "cast", "<", "PointerType", ">", "(", "T", ")", "->", "getElementType", "(", ")", ";", "MFI", "->", "getTypeDescriptor", "(", "T", ",", "str", ")", ";", "}", "Type", "*", "RetType", "=", "F", ".", "getReturnType", "(", ")", ";", "str", "+=", "", ";", "MFI", "->", "getTypeDescriptor", "(", "RetType", ",", "str", ")", ";", "TS", "->", "emitString", "(", "str", ")", ";", "str", "=", "", ";", "limit", "[", "", "]", "=", "'\\0'", ";", "sprintf", "(", "limit", ",", "", ",", "MFI", "->", "getLocalsLimit", "(", ")", ")", ";", "str", "+=", "limit", ";"], "ground_truth": ["TS", "->", "emitString", "(", "str", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFunctionBodyStart", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86858, "Length": 336, "Cover_Rate": 0.6679920477137177} {"Template_token": ["", "void", "EmitFunctionEntryLabel", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "EmitFunctionEntryLabel", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86859, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "void", "EmitFunctionEntryLabel", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "EmitFunctionEntryLabel", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86860, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "void", "AsmPrinter", "::", "EmitGlobalVariable", "(", "const", "GlobalVariable", "*", "GV", ")", "{", "assert", "(", "GV", "->", "isConstant", "(", ")", "&&", "", ")", ";"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "EmitGlobalVariable", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86861, "Length": 23, "Cover_Rate": 1.0} {"Template_token": ["", "void", "AsmPrinter", "::", "EmitGlobalVariable", "(", "const", "GlobalVariable", "*", "GV", ")", "{"], "ground_truth": ["assert", "(", "GV", "->", "isConstant", "(", ")", "&&", "", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitGlobalVariable", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86862, "Length": 22, "Cover_Rate": 0.9565217391304348} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "*", "MI", "<<", "'\\n'", ")", ";", "MCInstLower", "InstLower", "(", "OutContext", ",", "*", "this", ")", ";", "MCInst", "TmpInst", ";"], "ground_truth": ["InstLower", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitInstruction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86863, "Length": 35, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "std", "::", "string", "str", "(", "", ")", ";", "str", "+=", "", ";", "str", "+=", "ClassName", ";", "str", "+=", "", ";"], "ground_truth": ["TS", "->", "emitString", "(", "str", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitStartOfAsmFile", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86864, "Length": 27, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "default", ":", "assert", "(", "", ")", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";"], "ground_truth": ["case", "", ":"], "File": "JVMAsmPrinter", "Func": "EmitTypeString", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86865, "Length": 57, "Cover_Rate": 0.32571428571428573} {"Template_token": ["", "if", "(", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", "return", "", ";", "else", "if", "(", "isa", "<", "ArrayType", ">", "(", "Ty", ")", ")", "{", "Type", "*", "ElmTy", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ";", "if", "(", "isa", "<", "CompositeType", ">", "(", "ElmTy", ")", ")", "return", "", ";", "return", "GetLoadString", "(", "ElmTy", ")", ";", "}", "else", "{", "const", "DataLayout", "&", "DL", "=", "MF", "->", "getDataLayout", "(", ")", ";", "const", "TargetLowering", "&", "TLI", "=", "*", "MF", "->", "getTarget", "(", ")", ".", "getSubtarget", "<", "Subtarget", ">", "(", "MF", "->", "getFunction", "(", ")", ")", ".", "getTargetLowering", "(", ")", ";"], "ground_truth": ["EVT", "VT", "=", "TLI", ".", "getValueType", "(", "DL", ",", "Ty", ")", ";"], "File": "JVMAsmPrinter", "Func": "GetLoadString", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86866, "Length": 114, "Cover_Rate": 0.6368715083798883} {"Template_token": ["", "Type", "*", "ElmTy", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ";", "if", "(", "isa", "<", "CompositeType", ">", "(", "ElmTy", ")", ")", "return", "", ";", "return", "GetLoadString", "(", "ElmTy", ")", ";", "}", "else", "{", "const", "DataLayout", "&", "DL", "=", "MF", "->", "getDataLayout", "(", ")", ";", "const", "TargetLowering", "&", "TLI", "=", "*", "MF", "->", "getTarget", "(", ")", ".", "getSubtarget", "<", "Subtarget", ">", "(", "MF", "->", "getFunction", "(", ")", ")", ".", "getTargetLowering", "(", ")", ";", "EVT", "VT", "=", "TLI", ".", "getValueType", "(", "DL", ",", "Ty", ")", ";", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "", ":"], "ground_truth": ["return", "", ";"], "File": "JVMAsmPrinter", "Func": "GetLoadString", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86867, "Length": 113, "Cover_Rate": 0.6312849162011173} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "getPassName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86868, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "", ";"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "getPassName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86869, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "const", "TargetLowering", "&", "TLI", "=", "*", "MF", "->", "getTarget", "(", ")", ".", "getSubtarget", "<", "Subtarget", ">", "(", "MF", "->", "getFunction", "(", ")", ")", ".", "getTargetLowering", "(", ")", ";", "EVT", "VT", "=", "TLI", ".", "getValueType", "(", "DL", ",", "Ty", ")", ";", "switch", "(", "VT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":"], "ground_truth": ["return", "", ";"], "File": "JVMAsmPrinter", "Func": "GetStoreString", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86870, "Length": 76, "Cover_Rate": 0.4245810055865922} {"Template_token": ["", "TargetStreamer", "*", "AsmPrinter", "::", "getTargetStreamer", "(", ")", "{", "MCTargetStreamer", "*", "TS", "=", "OutStreamer", "->", "getTargetStreamer", "(", ")", ";"], "ground_truth": ["return", "static_cast", "<", "TargetStreamer", "*", ">", "(", "TS", ")", ";"], "File": "JVMAsmPrinter", "Func": "getTargetStreamer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86873, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "TargetStreamer", "*", "AsmPrinter", "::", "getTargetStreamer", "(", ")", "{"], "ground_truth": ["MCTargetStreamer", "*", "TS", "=", "OutStreamer", "->", "getTargetStreamer", "(", ")", ";"], "File": "JVMAsmPrinter", "Func": "getTargetStreamer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86874, "Length": 18, "Cover_Rate": 0.6206896551724138} {"Template_token": ["", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "MI", ".", "getDesc", "(", ")", ".", "isRegCConv", "(", ")", ")", "return", "true", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "false", ";", "case", "", ":", "case", "", ":"], "ground_truth": ["case", "", ":"], "File": "JVMAsmPrinter", "Func": "IsSkipInstruction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86875, "Length": 43, "Cover_Rate": 0.48314606741573035} {"Template_token": ["", "explicit", "AsmPrinter", "(", "TargetMachine", "&", "TM", ",", "std", "::", "unique_ptr", "<", "MCStreamer", ">", "Streamer", ")", ":", "AsmPrinter", "(", "TM", ",", "std", "::", "move", "(", "Streamer", ")", ")", ",", "Subtarget", "(", "nullptr", ")", ",", "MRI", "(", "nullptr", ")", ",", "MFI", "(", "nullptr", ")", "{"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "JVMAsmPrinter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86876, "Length": 44, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "AsmPrinter", "(", "TargetMachine", "&", "TM", ",", "std", "::", "unique_ptr", "<", "MCStreamer", ">", "Streamer", ")", ":", "AsmPrinter", "(", "TM", ",", "std", "::", "move", "(", "Streamer", ")", ")", ",", "Subtarget", "(", "nullptr", ")", ",", "MRI", "(", "nullptr", ")", ",", "MFI", "(", "nullptr", ")", "{"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "JVMAsmPrinter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86877, "Length": 44, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "X", "(", "getTheTarget32", "(", ")", ")", ";", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "Y", "(", "getTheTarget64", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "LLVMInitializeJVMAsmPrinter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86878, "Length": 23, "Cover_Rate": 0.8214285714285714} {"Template_token": ["", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "X", "(", "getTheTarget32", "(", ")", ")", ";"], "ground_truth": ["RegisterAsmPrinter", "<", "AsmPrinter", ">", "Y", "(", "getTheTarget64", "(", ")", ")", ";"], "File": "JVMAsmPrinter", "Func": "LLVMInitializeJVMAsmPrinter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86879, "Length": 22, "Cover_Rate": 0.7857142857142857} {"Template_token": ["", "return", "AsmPrinter", "::", "lowerConstant", "(", "CV", ")", ";"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "lowerConstant", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86880, "Length": 9, "Cover_Rate": 0.4090909090909091} {"Template_token": ["", "Type", "*", "Ty", "=", "Init", "->", "getType", "(", ")", ";", "if", "(", "isa", "<", "ArrayType", ">", "(", "Ty", ")", "||", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", "{", "unsigned", "NumElems", "=", "isa", "<", "ArrayType", ">", "(", "Ty", ")", "?", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ":", "cast", "<", "StructType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "NumElems", ";", "i", "++", ")", "PopulateConstValVector", "(", "Init", "->", "getAggregateElement", "(", "i", ")", ",", "CVec", ")", ";"], "ground_truth": ["}", "else", "CVec", ".", "push_back", "(", "Init", ")", ";"], "File": "JVMAsmPrinter", "Func": "PopulateConstValVector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86882, "Length": 99, "Cover_Rate": 0.8608695652173913} {"Template_token": ["", "void", "AsmPrinter", "::", "PopulateConstValVector", "(", "const", "Constant", "*", "Init", ",", "ConstantVals", "&", "CVec", ")", "{", "Type", "*", "Ty", "=", "Init", "->", "getType", "(", ")", ";", "if", "(", "isa", "<", "ArrayType", ">", "(", "Ty", ")", "||", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", "{"], "ground_truth": ["unsigned", "NumElems", "=", "isa", "<", "ArrayType", ">", "(", "Ty", ")", "?", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ":", "cast", "<", "StructType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ";"], "File": "JVMAsmPrinter", "Func": "PopulateConstValVector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86883, "Length": 79, "Cover_Rate": 0.6869565217391305} {"Template_token": ["", "if", "(", "!", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNo", ",", "AsmVariant", ",", "ExtraCode", ",", "OS", ")", ")", "return", "false", ";", "if", "(", "!", "ExtraCode", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "case", "MachineOperand", "::", "MO_Immediate", ":", "OS", "<<", "MO", ".", "getImm", "(", ")", ";", "return", "false", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "case", "MachineOperand", "::", "MO_Register", ":", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "assert", "(", "", "&&", "", ")", ";", "return", "false", ";", "default", ":", "break", ";", "}"], "ground_truth": ["}"], "File": "JVMAsmPrinter", "Func": "PrintAsmOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86884, "Length": 100, "Cover_Rate": 0.7092198581560284} {"Template_token": ["", "bool", "AsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "OS", ")", "{", "if", "(", "AsmVariant", "!=", "", ")", "report_fatal_error", "(", "", ")", ";", "if", "(", "!", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNo", ",", "AsmVariant", ",", "ExtraCode", ",", "OS", ")", ")", "return", "false", ";", "if", "(", "!", "ExtraCode", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "case", "MachineOperand", "::", "MO_Immediate", ":", "OS", "<<", "MO", ".", "getImm", "(", ")", ";", "return", "false", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "case", "MachineOperand", "::", "MO_Register", ":", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "assert", "(", "", "&&", "", ")", ";", "return", "false", ";", "default", ":"], "ground_truth": ["break", ";"], "File": "JVMAsmPrinter", "Func": "PrintAsmOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86885, "Length": 135, "Cover_Rate": 0.9574468085106383} {"Template_token": ["", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";"], "ground_truth": ["MFI", "=", "MF", ".", "getInfo", "<", "FunctionInfo", ">", "(", ")", ";"], "File": "JVMAsmPrinter", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86886, "Length": 20, "Cover_Rate": 0.32786885245901637} {"Template_token": ["", "JNIEXPORT", "void", "JNICALL", "Java_jasmin_Main_llc_1dump_1classObj", "(", "JNIEnv", "*", "env", ",", "jobject", "obj", ",", "jbyteArray", "bytes", ")", "{", "jint", "len", "=", "env", "->", "GetArrayLength", "(", "reinterpret_cast", "<", "jarray", "*", ">", "(", "&", "bytes", ")", "[", "", "]", ")", ";", "classObjectBuffer", "=", "(", "char", "*", ")", "malloc", "(", "sizeof", "(", "int", ")", "+", "len", "+", "", ")", ";", "int", "*", "payLoadSize", "=", "(", "int", "*", ")", "classObjectBuffer", ";", "char", "*", "objectPayLoad", "=", "classObjectBuffer", "+", "sizeof", "(", "int", ")", ";"], "ground_truth": ["std", "::", "cout", "<<", "", "<<", "std", "::", "endl", ";"], "File": "JVMAssemblerNativeUtils", "Func": "Java_jasmin_Main_llc_1dump_1classObj", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86887, "Length": 86, "Cover_Rate": 0.5} {"Template_token": ["", "jobject", "jobj", "=", "env", "->", "NewObject", "(", "cls", ",", "cnstr", ")", ";", "if", "(", "NULL", "==", "jobj", ")", "return", "nullptr", ";", "jmethodID", "mid", "=", "env", "->", "GetMethodID", "(", "cls", ",", "", ",", "", ")", ";", "if", "(", "NULL", "==", "mid", ")", "return", "nullptr", ";", "jstring", "jstr", "=", "env", "->", "NewStringUTF", "(", "asmFile", ".", "c_str", "(", ")", ")", ";", "if", "(", "NULL", "==", "jstr", ")", "return", "nullptr", ";", "LLVM_DEBUG", "(", "llvm", "::", "dbgs", "(", ")", "<<", "", "<<", "strlen", "(", "asmFile", ".", "c_str", "(", ")", ")", "<<", "", ")", ";"], "ground_truth": ["env", "->", "CallVoidMethod", "(", "jobj", ",", "mid", ",", "jstr", ")", ";"], "File": "JVMAssembler", "Func": "assemble", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86888, "Length": 100, "Cover_Rate": 0.5319148936170213} {"Template_token": ["", "Optional", "<", "std", "::", "unique_ptr", "<", "", ">>", "", "(", "std", "::", "string", "asmFile", ")", "{", "std", "::", "unique_ptr", "<", "", ">", "Packet", ";", "char", "*", "classObject", "=", "Impl", "->", "assemble", "(", "asmFile", ")", ";", "if", "(", "!", "classObject", ")", "return", "None", ";", "Packet", "=", "llvm", "::", "make_unique", "<", "", ">", "(", "classObject", ")", ";", "Impl", "->", "freeClassObjectBuffer", "(", ")", ";", "return", "std", "::", "move", "(", "Packet", ")", ";"], "ground_truth": ["}"], "File": "JVMAssembler", "Func": "AssembleClass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86889, "Length": 70, "Cover_Rate": 0.8974358974358975} {"Template_token": ["", "void", "AssemblerImpl", "::", "freeClassObjectBuffer", "(", ")", "{"], "ground_truth": ["if", "(", "classObjectBuffer", ")", "free", "(", "classObjectBuffer", ")", ";"], "File": "JVMAssembler", "Func": "freeClassObjectBuffer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86890, "Length": 16, "Cover_Rate": 0.7619047619047619} {"Template_token": ["", "void", "AssemblerImpl", "::", "freeClassObjectBuffer", "(", ")", "{", "if", "(", "classObjectBuffer", ")", "free", "(", "classObjectBuffer", ")", ";", "classObjectBuffer", "=", "nullptr", ";"], "ground_truth": ["}"], "File": "JVMAssembler", "Func": "freeClassObjectBuffer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86891, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "inst", "=", "new", "AssemblerImpl", "(", ")", ";", "}"], "ground_truth": ["return", "inst", ";"], "File": "JVMAssembler", "Func": "getInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86892, "Length": 11, "Cover_Rate": 0.44} {"Template_token": ["", "int", "getSize", "(", ")", "{", "return", "size", ";"], "ground_truth": ["}"], "File": "JVMAssembler", "Func": "getSize", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86895, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "LLVM_DEBUG", "(", "llvm", "::", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["}"], "File": "JVMAssembler", "Func": "JVMAssembler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86897, "Length": 12, "Cover_Rate": 0.46153846153846156} {"Template_token": ["", "LLVM_DEBUG", "(", "llvm", "::", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["}"], "File": "JVMAssembler", "Func": "JVMAssembler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86898, "Length": 12, "Cover_Rate": 0.46153846153846156} {"Template_token": ["", "AssemblerImpl", "::", "AssemblerImpl", "(", ")", "{", "JavaVMInitArgs", "vm_args", ";", "JavaVMOption", "options", "[", "", "]", ";", "std", "::", "string", "libPath", "=", "", ";", "std", "::", "string", "classPath", "=", "", ";", "if", "(", "!", "Process", "::", "GetEnv", "(", "", ")", ".", "hasValue", "(", ")", ")", "report_fatal_error", "(", "", ")", ";", "classPath", "=", "classPath", "+", "Process", "::", "GetEnv", "(", "", ")", ".", "getValue", "(", ")", ";", "classPath", "=", "classPath", "+", "", ";", "libPath", "=", "libPath", "+", "Process", "::", "GetEnv", "(", "", ")", ".", "getValue", "(", ")", ";", "classObjectBuffer", "=", "nullptr", ";"], "ground_truth": ["llvm", "::", "outs", "(", ")", "<<", "classPath", ";"], "File": "JVMAssembler", "Func": "JVMAssemblerImpl", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86899, "Length": 96, "Cover_Rate": 0.35687732342007433} {"Template_token": ["", "ExceptionChecker", "(", "JNIEnv", "*", "jenv", ")", ":", "env", "(", "jenv", ")", "{"], "ground_truth": ["}"], "File": "JVMAssembler", "Func": "JVMExceptionChecker", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86900, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "ExceptionChecker", "(", "JNIEnv", "*", "jenv", ")", ":", "env", "(", "jenv", ")", "{"], "ground_truth": ["}"], "File": "JVMAssembler", "Func": "JVMExceptionChecker", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86901, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "", "Assembler", "(", ")", "{", "delete", "Impl", ";"], "ground_truth": ["}"], "File": "JVMAssembler", "Func": "~JVMAssembler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86902, "Length": 9, "Cover_Rate": 0.8181818181818182} {"Template_token": ["", "", "Assembler", "(", ")", "{"], "ground_truth": ["delete", "Impl", ";"], "File": "JVMAssembler", "Func": "~JVMAssembler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86903, "Length": 8, "Cover_Rate": 0.7272727272727273} {"Template_token": ["", "jvm", "->", "DestroyJavaVM", "(", ")", ";"], "ground_truth": ["freeClassObjectBuffer", "(", ")", ";"], "File": "JVMAssembler", "Func": "~JVMAssemblerImpl", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86905, "Length": 10, "Cover_Rate": 0.5555555555555556} {"Template_token": ["", "~", "ExceptionChecker", "(", ")", "{", "if", "(", "env", "->", "ExceptionOccurred", "(", ")", ")", "{", "env", "->", "ExceptionDescribe", "(", ")", ";", "}"], "ground_truth": ["}"], "File": "JVMAssembler", "Func": "~JVMExceptionChecker", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86906, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "env", "->", "ExceptionOccurred", "(", ")", ")", "{", "env", "->", "ExceptionDescribe", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMAssembler", "Func": "~JVMExceptionChecker", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86907, "Length": 16, "Cover_Rate": 0.7272727272727273} {"Template_token": ["", "CastHandler", "(", "Function", "&", "F", ")", ":", "Func", "(", "&", "F", ")", "{"], "ground_truth": ["}"], "File": "JVMCastHandler", "Func": "CastHandler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86910, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "CastHandler", "(", "Function", "&", "F", ")", ":", "Func", "(", "&", "F", ")", "{"], "ground_truth": ["}"], "File": "JVMCastHandler", "Func": "CastHandler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86911, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "Value", "*", "CastHandler", "::", "GenMask", "(", "IRBuilder", "<", ">", "&", "IRB", ",", "Type", "*", "SrcTy", ",", "Type", "*", "DestTy", ",", "Value", "*", "Offset", ",", "bool", "IsLoad", ")", "{", "LLVMContext", "&", "Cxt", "=", "Func", "->", "getContext", "(", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "unsigned", "SrcSz", "=", "DL", ".", "getTypeSizeInBits", "(", "SrcTy", ")", ";", "unsigned", "DestSz", "=", "DL", ".", "getTypeSizeInBits", "(", "DestTy", ")", ";"], "ground_truth": ["return", "llvm", "::", "GenMask", "(", "Cxt", ",", "DL", ",", "IRB", ",", "SrcSz", ",", "DestSz", ",", "Offset", ",", "IsLoad", ")", ";"], "File": "JVMCastHandler", "Func": "GenMask", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86912, "Length": 93, "Cover_Rate": 0.9893617021276596} {"Template_token": ["", "if", "(", "User", "->", "getNumUses", "(", ")", ")", "PopulateEraseUsers", "(", "User", ",", "Users", ")", ";", "Users", ".", "insert", "(", "User", ")", ";", "}"], "ground_truth": ["}"], "File": "JVMCastHandler", "Func": "PopulateEraseUsers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86913, "Length": 24, "Cover_Rate": 0.43636363636363634} {"Template_token": ["", "if", "(", "User", "->", "getNumUses", "(", ")", ")", "PopulateEraseUsers", "(", "User", ",", "Users", ")", ";"], "ground_truth": ["Users", ".", "insert", "(", "User", ")", ";"], "File": "JVMCastHandler", "Func": "PopulateEraseUsers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86914, "Length": 22, "Cover_Rate": 0.4} {"Template_token": ["", "for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "User", ",", "Offset", ",", "false", ")", ";"], "ground_truth": ["ProcessMemOpWRTCompositeSource", "(", "SrcMem", ",", "MemOpOffsetMap", ",", "DestTy", ",", "", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessArrays", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86915, "Length": 35, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "void", "CastHandler", "::", "ProcessFunction", "(", ")", "{", "LLVMContext", "&", "Cxt", "=", "Func", "->", "getContext", "(", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";"], "ground_truth": ["TargetIdxTy", "=", "GetTargetIndexType", "(", "DL", ",", "Cxt", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86917, "Length": 41, "Cover_Rate": 0.803921568627451} {"Template_token": ["", "bool", "RetVal", "=", "true", ";", "bool", "AllConstantIndices", "=", "I", ".", "hasAllConstantIndices", "(", ")", ";", "if", "(", "isStruct", "&&", "!", "AllConstantIndices", ")", "return", "false", ";", "Offset", "=", "ComputeOffsetForGEP", "(", "IRB", ",", "I", ",", "Offset", ")", ";", "AddToLazyDeletionSet", "(", "&", "I", ")", ";"], "ground_truth": ["for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "RetVal", "&=", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "User", ",", "Offset", ",", "isStruct", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessGEPChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86918, "Length": 67, "Cover_Rate": 0.6633663366336634} {"Template_token": ["", "bool", "CastHandler", "::", "ProcessGEPChain", "(", "SrcMemOpOffset", "&", "MemOpOffsetMap", ",", "GetElementPtrInst", "&", "I", ",", "Value", "*", "Offset", ",", "bool", "isStruct", ")", "{", "IRBuilder", "<", ">", "IRB", "(", "&", "I", ")", ";"], "ground_truth": ["bool", "RetVal", "=", "true", ";"], "File": "JVMCastHandler", "Func": "ProcessGEPChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86919, "Length": 35, "Cover_Rate": 0.3465346534653465} {"Template_token": ["", "Users", ".", "insert", "(", "Val", ")", ";", "}"], "ground_truth": ["for", "(", "auto", "*", "I", ":", "Users", ")", "cast", "<", "Instruction", ">", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86920, "Length": 28, "Cover_Rate": 0.4307692307692308} {"Template_token": ["", "Users", ".", "insert", "(", "Val", ")", ";", "}", "for", "(", "auto", "*", "I", ":", "Users", ")", "cast", "<", "Instruction", ">", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";"], "ground_truth": ["DeletionSet", ".", "clear", "(", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86921, "Length": 34, "Cover_Rate": 0.5230769230769231} {"Template_token": ["", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "assert", "(", "isa", "<", "ArrayType", ">", "(", "SrcTy", ")", "||", "isa", "<", "StructType", ">", "(", "SrcTy", ")", ")", ";", "for", "(", "auto", "&", "MemOpOffsetPair", ":", "MemOpOffsetMap", ")", "{", "IRBuilder", "<", ">", "IRB", "(", "cast", "<", "Instruction", ">", "(", "MemOpOffsetPair", ".", "first", ")", ")", ";", "Value", "*", "Offset", "=", "MemOpOffsetPair", ".", "second", ";", "Value", "*", "SrcElement", "=", "llvm", "::", "CreateCompositeElemAccessGEP", "(", "DL", ",", "IRB", ",", "SrcMem", ",", "TargetIdxTy", ",", "SrcTy", ",", "&", "Offset", ")", ";", "ProcessLoadStorePrimtive", "(", "IRB", ",", "SrcElement", ",", "MemOpOffsetPair", ".", "first", ",", "Offset", ",", "Align", ")", ";", "}"], "ground_truth": ["}"], "File": "JVMCastHandler", "Func": "ProcessMemOpWRTCompositeSource", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86922, "Length": 106, "Cover_Rate": 0.7571428571428571} {"Template_token": ["", "IRBuilder", "<", ">", "IRB", "(", "cast", "<", "Instruction", ">", "(", "MemOpOffsetPair", ".", "first", ")", ")", ";", "ProcessLoadStorePrimtive", "(", "IRB", ",", "SrcMem", ",", "MemOpOffsetPair", ".", "first", ",", "MemOpOffsetPair", ".", "second", ",", "", ")", ";"], "ground_truth": ["}"], "File": "JVMCastHandler", "Func": "ProcessMemOpWRTSourcePrimitive", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86923, "Length": 34, "Cover_Rate": 0.5483870967741935} {"Template_token": ["", "assert", "(", "isa", "<", "StructType", ">", "(", "SrcTy", ")", "&&", "", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";"], "ground_truth": ["const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "cast", "<", "StructType", ">", "(", "SrcTy", ")", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessStructures", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86925, "Length": 46, "Cover_Rate": 0.35384615384615387} {"Template_token": ["", "assert", "(", "isa", "<", "StructType", ">", "(", "SrcTy", ")", "&&", "", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "cast", "<", "StructType", ">", "(", "SrcTy", ")", ")", ";", "unsigned", "Align", "=", "SL", "->", "hasPadding", "(", ")", "?", "SL", "->", "getAlignment", "(", ")", "*", "", ":", "", ";", "SrcMemOpOffset", "MemOpOffsetMap", ";", "for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "User", ",", "Offset", ",", "false", ")", ";"], "ground_truth": ["ProcessMemOpWRTCompositeSource", "(", "SrcMem", ",", "MemOpOffsetMap", ",", "DestTy", ",", "Align", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessStructures", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86926, "Length": 103, "Cover_Rate": 0.7923076923076923} {"Template_token": ["", "AddToLazyDeletionSet", "(", "&", "I", ")", ";", "for", "(", "auto", "*", "BCUser", ":", "cast", "<", "BitCastInst", ">", "(", "&", "I", ")", "->", "users", "(", ")", ")", "RetVal", "&=", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "BCUser", ",", "Offset", ",", "isStruct", ")", ";", "}", "else", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["return", "RetVal", ";"], "File": "JVMCastHandler", "Func": "ProcessUser", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86927, "Length": 49, "Cover_Rate": 0.32666666666666666} {"Template_token": ["", "void", "setFunction", "(", "Function", "&", "F", ")", "{", "Func", "=", "&", "F", ";"], "ground_truth": ["}"], "File": "JVMCastHandler", "Func": "setFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86928, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "Func", "=", "&", "F", ";"], "ground_truth": ["}"], "File": "JVMCastHandler", "Func": "setFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86929, "Length": 6, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "Value", "*", "Offset", "=", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "", ")", ";", "Value", "*", "Root", "=", "GetRootObject", "(", "&", "I", ",", "&", "Offset", ",", "HasBitCastInChain", ")", ";", "assert", "(", "Root", "&&", "isa", "<", "PointerType", ">", "(", "Root", "->", "getType", "(", ")", ")", "&&", "", ")", ";", "if", "(", "HasBitCastInChain", ")", "return", ";", "Type", "*", "RootTy", "=", "GetRootType", "(", "Root", "->", "getType", "(", ")", ")", ";"], "ground_truth": ["Type", "*", "DestTy", "=", "GetRootType", "(", "I", ".", "getDestTy", "(", ")", ")", ";"], "File": "JVMCastHandler", "Func": "visitBitCastInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86930, "Length": 79, "Cover_Rate": 0.47023809523809523} {"Template_token": ["", "for", "(", "auto", "&", "Idx", ":", "GI", "->", "indices", "(", ")", ")", "if", "(", "!", "isa", "<", "ConstantInt", ">", "(", "Idx", ")", ")", "return", "false", ";", "}", "}"], "ground_truth": ["return", "true", ";"], "File": "JVMCompositeHandler", "Func": "AreAllUsesConstantIndexedReferences", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86931, "Length": 31, "Cover_Rate": 0.37349397590361444} {"Template_token": ["", "bool", "CompositeHandler", "::", "AreAllUsesConstantIndexedReferences", "(", "Value", "*", "I", ")", "{", "for", "(", "auto", "*", "User", ":", "I", "->", "users", "(", ")", ")", "{", "if", "(", "!", "isa", "<", "GetElementPtrInst", ">", "(", "User", ")", ")", "return", "false", ";"], "ground_truth": ["else", "{"], "File": "JVMCompositeHandler", "Func": "AreAllUsesConstantIndexedReferences", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86932, "Length": 39, "Cover_Rate": 0.46987951807228917} {"Template_token": ["", "Argument", "*", "NewArguments", "=", "std", "::", "allocator", "<", "Argument", ">", "(", ")", ".", "allocate", "(", "ArgsCnt", ")", ";", "Func", "->", "setArguments", "(", "NewArguments", ",", "ArgsCnt", ")", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "ArgsCnt", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Type", "*", "ArgTy", "=", "Func", "->", "getFunctionType", "(", ")", "->", "getParamType", "(", "i", ")", ";", "assert", "(", "!", "ArgTy", "->", "isVoidTy", "(", ")", "&&", "", ")", ";", "new", "(", "NewArguments", "+", "i", ")", "Argument", "(", "ArgTy", ",", "", ",", "const_cast", "<", "Function", "*", ">", "(", "Func", ")", ",", "i", ")", ";", "CopyArgumentAttributes", "(", "Arguments", "+", "i", ",", "Func", ",", "i", ")", ";", "}", "}"], "ground_truth": ["return", "Arguments", ";"], "File": "JVMCompositeHandler", "Func": "BuildAndSetArgsList", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86933, "Length": 113, "Cover_Rate": 0.7533333333333333} {"Template_token": ["", "Argument", "*", "NewArguments", "=", "std", "::", "allocator", "<", "Argument", ">", "(", ")", ".", "allocate", "(", "ArgsCnt", ")", ";", "Func", "->", "setArguments", "(", "NewArguments", ",", "ArgsCnt", ")", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "ArgsCnt", ";", "i", "!=", "e", ";", "++", "i", ")", "{"], "ground_truth": ["Type", "*", "ArgTy", "=", "Func", "->", "getFunctionType", "(", ")", "->", "getParamType", "(", "i", ")", ";"], "File": "JVMCompositeHandler", "Func": "BuildAndSetArgsList", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86934, "Length": 61, "Cover_Rate": 0.4066666666666667} {"Template_token": ["", "bool", "CompositeHandler", "::", "canFlattenType", "(", "Type", "*", "Ty", ")", "{", "if", "(", "Ty", "->", "isPointerTy", "(", ")", ")", "Ty", "=", "cast", "<", "PointerType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ";", "if", "(", "CompositeType", "::", "classof", "(", "Ty", ")", "&&", "(", "dyn_cast", "<", "StructType", ">", "(", "Ty", ")", "||", "(", "dyn_cast", "<", "ArrayType", ">", "(", "Ty", ")", "&&", "!", "CheckIfFlattendType", "(", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ")", ")", ")", ")", "return", "true", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "canFlattenType", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86935, "Length": 84, "Cover_Rate": 1.0} {"Template_token": ["", "for", "(", "StructType", "::", "element_iterator", "EB", "=", "STy", "->", "element_begin", "(", ")", ",", "EI", "=", "EB", ",", "EE", "=", "STy", "->", "element_end", "(", ")", ";", "EI", "!=", "EE", ";", "++", "EI", ")", "{", "if", "(", "isa", "<", "StructType", ">", "(", "*", "EI", ")", ")", "return", "false", ";"], "ground_truth": ["else", "if", "(", "isa", "<", "ArrayType", ">", "(", "*", "EI", ")", ")", "retVal", "&=", "CheckIfFlattendType", "(", "*", "EI", ")", ";"], "File": "JVMCompositeHandler", "Func": "CheckIfFlattendType", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86936, "Length": 67, "Cover_Rate": 0.3526315789473684} {"Template_token": ["", "if", "(", "StructType", "*", "STy", "=", "dyn_cast", "<", "StructType", ">", "(", "Ty", ")", ")", "{", "for", "(", "StructType", "::", "element_iterator", "EB", "=", "STy", "->", "element_begin", "(", ")", ",", "EI", "=", "EB", ",", "EE", "=", "STy", "->", "element_end", "(", ")", ";", "EI", "!=", "EE", ";", "++", "EI", ")", "{", "CollectPrimitiveTypes", "(", "*", "EI", ",", "TyVec", ")", ";", "}", "}", "else", "if", "(", "dyn_cast", "<", "PointerType", ">", "(", "Ty", ")", ")", "{", "CollectPrimitiveTypes", "(", "cast", "<", "PointerType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ",", "TyVec", ")", ";", "}", "else", "if", "(", "dyn_cast", "<", "ArrayType", ">", "(", "Ty", ")", ")", "{", "Type", "*", "ElmTy", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ";", "if", "(", "isa", "<", "StructType", ">", "(", "ElmTy", ")", "||", "(", "isa", "<", "ArrayType", ">", "(", "ElmTy", ")", "&&", "!", "CheckIfFlattendType", "(", "ElmTy", ")", ")", ")", "{", "CompositeHandler", "::", "TypeVec", "ElmSubTys", ";", "CollectPrimitiveTypes", "(", "ElmTy", ",", "ElmSubTys", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ";", "i", "++", ")", "TyVec", ".", "append", "(", "ElmSubTys", ".", "begin", "(", ")", ",", "ElmSubTys", ".", "end", "(", ")", ")", ";", "}", "else", "TyVec", ".", "push_back", "(", "Ty", ")", ";", "}", "else", "TyVec", ".", "push_back", "(", "Ty", ")", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "CollectPrimitiveTypes", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86937, "Length": 215, "Cover_Rate": 0.9347826086956522} {"Template_token": ["", "CompositeHandler", "(", "Function", "&", "F", ")", ":", "Func", "(", "&", "F", ")", "{"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "CompositeHandler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86938, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "CompositeHandler", "(", "Function", "&", "F", ")", ":", "Func", "(", "&", "F", ")", "{"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "CompositeHandler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86939, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "Old", "->", "hasSwiftSelfAttr", "(", ")", ")", "Func", "->", "addParamAttr", "(", "ArgNo", ",", "Attribute", "::", "SwiftSelf", ")", ";", "if", "(", "Old", "->", "hasSwiftErrorAttr", "(", ")", ")", "Func", "->", "addParamAttr", "(", "ArgNo", ",", "Attribute", "::", "SwiftError", ")", ";", "if", "(", "Old", "->", "hasInAllocaAttr", "(", ")", ")", "Func", "->", "addParamAttr", "(", "ArgNo", ",", "Attribute", "::", "InAlloca", ")", ";"], "ground_truth": ["if", "(", "Old", "->", "hasNestAttr", "(", ")", ")", "Func", "->", "addParamAttr", "(", "ArgNo", ",", "Attribute", "::", "Nest", ")", ";"], "File": "JVMCompositeHandler", "Func": "CopyArgumentAttributes", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86940, "Length": 76, "Cover_Rate": 0.31020408163265306} {"Template_token": ["", "if", "(", "Old", "->", "hasNestAttr", "(", ")", ")", "Func", "->", "addParamAttr", "(", "ArgNo", ",", "Attribute", "::", "Nest", ")", ";", "if", "(", "Old", "->", "hasNoAliasAttr", "(", ")", ")", "Func", "->", "addParamAttr", "(", "ArgNo", ",", "Attribute", "::", "NoAlias", ")", ";", "if", "(", "Old", "->", "hasNoCaptureAttr", "(", ")", ")", "Func", "->", "addParamAttr", "(", "ArgNo", ",", "Attribute", "::", "NoCapture", ")", ";", "if", "(", "Old", "->", "hasStructRetAttr", "(", ")", ")", "Func", "->", "addParamAttr", "(", "ArgNo", ",", "Attribute", "::", "StructRet", ")", ";"], "ground_truth": ["if", "(", "Old", "->", "hasReturnedAttr", "(", ")", ")", "Func", "->", "addParamAttr", "(", "ArgNo", ",", "Attribute", "::", "Returned", ")", ";"], "File": "JVMCompositeHandler", "Func": "CopyArgumentAttributes", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86941, "Length": 95, "Cover_Rate": 0.3877551020408163} {"Template_token": ["", "assert", "(", "objFlatObjArr", ".", "find", "(", "Src", ")", "!=", "objFlatObjArr", ".", "end", "(", ")", "&&", "", ")", ";", "ValueVec", "IdxVec", ";", "IdxVec", ".", "push_back", "(", "ConstantInt", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "Func", "->", "getContext", "(", ")", ")", ",", "APInt", "(", "", ",", "", ")", ")", ")", ";", "if", "(", "!", "isa", "<", "ConstantInt", ">", "(", "Src", ")", ")", "{", "if", "(", "isBlastedType", "(", "Ty", ")", ")", "{", "Type", "*", "BlTy", "=", "typeDefs", "[", "Ty", "]", ";", "assert", "(", "isa", "<", "StructType", ">", "(", "BlTy", ")", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "cast", "<", "StructType", ">", "(", "BlTy", ")", "->", "getNumElements", "(", ")", ";", "i", "++", ")", "{", "Type", "*", "ElmTy", "=", "cast", "<", "StructType", ">", "(", "BlTy", ")", "->", "getElementType", "(", "i", ")", ";", "Value", "*", "SrcObj", "=", "objFlatObjArr", "[", "Src", "]", "[", "i", "]", ";", "Value", "*", "DstObj", "=", "objFlatObjArr", "[", "Dst", "]", "[", "i", "]", ";", "if", "(", "isa", "<", "SequentialType", ">", "(", "ElmTy", ")", ")", "{", "int", "NumElms", "=", "cast", "<", "SequentialType", ">", "(", "ElmTy", ")", "->", "getNumElements", "(", ")", ";", "CopyCompositeObj", "(", "DstObj", ",", "SrcObj", ",", "ElmTy", ",", "NumElms", ",", "IdxVec", ",", "IRB", ",", "Func", "->", "getContext", "(", ")", ")", ";", "}", "else", "{", "CopyScalarObj", "(", "DstObj", ",", "SrcObj", ",", "ElmTy", ",", "IRB", ")", ";", "}", "}", "}", "else", "{", "Value", "*", "SrcObj", "=", "objFlatObjArr", "[", "Src", "]", "[", "", "]", ";", "Value", "*", "DstObj", "=", "objFlatObjArr", "[", "Dst", "]", "[", "", "]", ";", "Type", "*", "SrcObjTy", "=", "GetRootType", "(", "SrcObj", "->", "getType", "(", ")", ")", ";", "Type", "*", "DstObjTy", "=", "GetRootType", "(", "DstObj", "->", "getType", "(", ")", ")", ";"], "ground_truth": ["assert", "(", "isa", "<", "ArrayType", ">", "(", "SrcObjTy", ")", "&&", "isa", "<", "ArrayType", ">", "(", "DstObjTy", ")", ")", ";"], "File": "JVMCompositeHandler", "Func": "copyMemory", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86942, "Length": 290, "Cover_Rate": 0.7733333333333333} {"Template_token": ["", "static", "void", "CopyScalarObj", "(", "Value", "*", "Dst", ",", "Value", "*", "Src", ",", "Type", "*", "ElmTy", ",", "IRBuilder", "<", ">", "&", "IRB", ")", "{"], "ground_truth": ["Value", "*", "SrcLoad", "=", "IRB", ".", "CreateLoad", "(", "Src", ")", ";"], "File": "JVMCompositeHandler", "Func": "CopyScalarObj", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86943, "Length": 34, "Cover_Rate": 0.7727272727272727} {"Template_token": ["", "static", "void", "CopyScalarObj", "(", "Value", "*", "Dst", ",", "Value", "*", "Src", ",", "Type", "*", "ElmTy", ",", "IRBuilder", "<", ">", "&", "IRB", ")", "{"], "ground_truth": ["Value", "*", "SrcLoad", "=", "IRB", ".", "CreateLoad", "(", "Src", ")", ";"], "File": "JVMCompositeHandler", "Func": "CopyScalarObj", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86944, "Length": 34, "Cover_Rate": 0.7727272727272727} {"Template_token": ["", "DenseSet", "<", "Argument", "*", ">", "WorkListArgs", ";", "IRBuilder", "<", ">", "IRB", "(", "&", "Func", "->", "getEntryBlock", "(", ")", ".", "front", "(", ")", ")", ";", "for", "(", "auto", "&", "TyValPair", ":", "typeValues", ")", "{", "for", "(", "Value", "*", "V", ":", "TyValPair", ".", "second", ")", "{", "if", "(", "isa", "<", "AllocaInst", ">", "(", "V", ")", ")", "{", "ValueVec", "ValArr", ";", "Value", "*", "ArraySize", "=", "nullptr", ";", "Type", "*", "FlatTy", "=", "typeDefs", "[", "TyValPair", ".", "first", "]", ";", "FlatTy", "=", "GetRootType", "(", "FlatTy", ")", ";", "if", "(", "isBlastedType", "(", "TyValPair", ".", "first", ")", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "cast", "<", "StructType", ">", "(", "FlatTy", ")", "->", "getNumElements", "(", ")", ";", "i", "++", ")", "{", "Type", "*", "ElmTy", "=", "cast", "<", "StructType", ">", "(", "FlatTy", ")", "->", "getStructElementType", "(", "i", ")", ";", "if", "(", "isa", "<", "ArrayType", ">", "(", "ElmTy", ")", ")", "{", "uint64_t", "ElemCount", "=", "cast", "<", "ArrayType", ">", "(", "ElmTy", ")", "->", "getNumElements", "(", ")", ";", "ArraySize", "=", "Constant", "::", "getIntegerValue", "(", "Type", "::", "getInt32Ty", "(", "Func", "->", "getContext", "(", ")", ")", ",", "APInt", "(", "", ",", "ElemCount", ")", ")", ";", "ElmTy", "=", "cast", "<", "ArrayType", ">", "(", "ElmTy", ")", "->", "getElementType", "(", ")", ";", "}", "AllocaInst", "*", "AI", "=", "IRB", ".", "CreateAlloca", "(", "ElmTy", ",", "ArraySize", ")", ";", "ValArr", ".", "push_back", "(", "AI", ")", ";", "IRB", ".", "SetInsertPoint", "(", "AI", ")", ";", "}", "}", "else", "ValArr", ".", "push_back", "(", "IRB", ".", "CreateAlloca", "(", "FlatTy", ",", "ArraySize", ")", ")", ";", "if", "(", "objFlatObjArr", ".", "find", "(", "V", ")", "==", "objFlatObjArr", ".", "end", "(", ")", ")", "objFlatObjArr", "[", "V", "]", "=", "ValArr", ";", "}", "else", "if", "(", "isa", "<", "Argument", ">", "(", "V", ")", ")", "WorkListArgs", ".", "insert", "(", "cast", "<", "Argument", ">", "(", "V", ")", ")", ";", "}", "}", "if", "(", "WorkListArgs", ".", "size", "(", ")", ">", "", ")", "{", "Argument", "*", "OldArgs", "=", "BuildAndSetArgsList", "(", "Func", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "Func", "->", "arg_size", "(", ")", ";", "i", "++", ")", "{", "Argument", "*", "OldArg", "=", "OldArgs", "+", "i", ";", "Type", "*", "ArgTy", "=", "OldArg", "->", "getType", "(", ")", ";", "if", "(", "WorkListArgs", ".", "find", "(", "OldArg", ")", "==", "WorkListArgs", ".", "end", "(", ")", ")", "OldArg", "->", "replaceAllUsesWith", "(", "Func", "->", "arg_begin", "(", ")", "+", "i", ")", ";", "else", "{", "ValueVec", "ValArr", ";", "assert", "(", "typeDefs", ".", "find", "(", "ArgTy", ")", "!=", "typeDefs", ".", "end", "(", ")", "&&", "typeDefs", "[", "ArgTy", "]", ")", ";", "Argument", "*", "NewArg", "=", "new", "(", "Func", "->", "arg_begin", "(", ")", "+", "i", ")", "Argument", "(", "typeDefs", "[", "ArgTy", "]", ",", "", ",", "const_cast", "<", "Function", "*", ">", "(", "Func", ")", ",", "i", ")", ";"], "ground_truth": ["CopyArgumentAttributes", "(", "OldArg", ",", "Func", ",", "i", ")", ";"], "File": "JVMCompositeHandler", "Func": "doAllocations", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86945, "Length": 448, "Cover_Rate": 0.9180327868852459} {"Template_token": ["", "}", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "ArgFixupCount", "<<", "", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "AllocaFixupCount", "<<", "", ")", ";", "for", "(", "auto", "*", "User", ":", "LazyRemovalSet", ")", "cast", "<", "Instruction", ">", "(", "User", ")", "->", "removeFromParent", "(", ")", ";", "if", "(", "ArgFixupCount", ")", "{"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "doReplacements", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86946, "Length": 54, "Cover_Rate": 0.34177215189873417} {"Template_token": ["", "void", "CompositeHandler", "::", "doTypeCollection", "(", ")", "{", "for", "(", "Argument", "&", "Arg", ":", "Func", "->", "args", "(", ")", ")", "visitValue", "(", "&", "Arg", ",", "Arg", ".", "getType", "(", ")", ")", ";", "visit", "(", "Func", ")", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "doTypeCollection", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86947, "Length": 37, "Cover_Rate": 1.0} {"Template_token": ["", "void", "CompositeHandler", "::", "doTypeCollection", "(", ")", "{", "for", "(", "Argument", "&", "Arg", ":", "Func", "->", "args", "(", ")", ")", "visitValue", "(", "&", "Arg", ",", "Arg", ".", "getType", "(", ")", ")", ";", "visit", "(", "Func", ")", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "doTypeCollection", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86948, "Length": 37, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "Ty", ".", "second", ")", "Ty", ".", "second", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "", ";", "dbgs", "(", ")", "<<", "", ";"], "ground_truth": ["}", ")", ";"], "File": "JVMCompositeHandler", "Func": "dump", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86949, "Length": 30, "Cover_Rate": 0.3191489361702128} {"Template_token": ["", "for", "(", "auto", "Val", ":", "typeValues", "[", "Ty", ".", "first", "]", ")", "Val", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "", ";", "if", "(", "Ty", ".", "second", ")", "Ty", ".", "second", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "", ";"], "ground_truth": ["dbgs", "(", ")", "<<", "", ";"], "File": "JVMCompositeHandler", "Func": "dump", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86950, "Length": 51, "Cover_Rate": 0.5425531914893617} {"Template_token": ["", "unsigned", "NumLeadingNonLeafArrDim", "=", "GetNumLeadingNonLeafArrDim", "(", "Elm", ")", ";", "IList", ".", "append", "(", "Elm", "->", "idx_begin", "(", ")", ",", "Elm", "->", "idx_begin", "(", ")", "+", "NumLeadingNonLeafArrDim", "+", "", ")", ";", "}", "else", "IList", ".", "append", "(", "Elm", "->", "idx_begin", "(", ")", ",", "Elm", "->", "idx_end", "(", ")", ")", ";", "User", "*", "OnlyUse", "=", "*", "(", "Elm", "->", "user_begin", "(", ")", ")", ";", "if", "(", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "OnlyUse", ")", ")", "{", "InsertIntoSet", "(", "LazyRemovalSet", ",", "Elm", ")", ";", "return", "extractIndices", "(", "Ty", ",", "cast", "<", "GetElementPtrInst", ">", "(", "OnlyUse", ")", ",", "IList", ",", "LazyRemovalSet", ",", "AccessMemFormFlatStruct", ")", ";", "}", "return", "Elm", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "extractIndices", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86951, "Length": 104, "Cover_Rate": 0.6419753086419753} {"Template_token": ["", "IList", ".", "append", "(", "Elm", "->", "idx_begin", "(", ")", ",", "Elm", "->", "idx_begin", "(", ")", "+", "NumLeadingNonLeafArrDim", "+", "", ")", ";", "}", "else", "IList", ".", "append", "(", "Elm", "->", "idx_begin", "(", ")", ",", "Elm", "->", "idx_end", "(", ")", ")", ";", "User", "*", "OnlyUse", "=", "*", "(", "Elm", "->", "user_begin", "(", ")", ")", ";", "if", "(", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "OnlyUse", ")", ")", "{"], "ground_truth": ["InsertIntoSet", "(", "LazyRemovalSet", ",", "Elm", ")", ";"], "File": "JVMCompositeHandler", "Func": "extractIndices", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86952, "Length": 71, "Cover_Rate": 0.4382716049382716} {"Template_token": ["", "assert", "(", "typeDefs", ".", "find", "(", "TyPair", ".", "first", ")", "!=", "typeDefs", ".", "end", "(", ")", ")", ";", "if", "(", "typeDefs", "[", "TyPair", ".", "first", "]", "==", "nullptr", ")", "typeDefs", "[", "TyPair", ".", "first", "]", "=", "flattenType_core", "(", "Func", "->", "getContext", "(", ")", ",", "TyPair", ".", "first", ")", ";", "}"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "flattenTypes", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86953, "Length": 51, "Cover_Rate": 0.7611940298507462} {"Template_token": ["", "assert", "(", "typeDefs", ".", "find", "(", "TyPair", ".", "first", ")", "!=", "typeDefs", ".", "end", "(", ")", ")", ";", "if", "(", "typeDefs", "[", "TyPair", ".", "first", "]", "==", "nullptr", ")", "typeDefs", "[", "TyPair", ".", "first", "]", "=", "flattenType_core", "(", "Func", "->", "getContext", "(", ")", ",", "TyPair", ".", "first", ")", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "flattenTypes", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86954, "Length": 50, "Cover_Rate": 0.746268656716418} {"Template_token": ["", "Type", "*", "MPT", "=", "GetMostPreferredTypeForStruct", "(", "Func", "->", "getContext", "(", ")", ",", "TyVec", ",", "NumElements", ")", ";", "NewTy", "=", "ArrayType", "::", "get", "(", "MPT", ",", "NumElements", ")", ";", "typeIsBlasted", "[", "Ty", "]", "=", "false", ";", "}", "else", "{", "NewTy", "=", "StructType", "::", "get", "(", "Cxt", ",", "TyVec", ")", ";", "typeIsBlasted", "[", "Ty", "]", "=", "true", ";", "}", "if", "(", "Ty", "->", "isPointerTy", "(", ")", ")", "return", "PointerType", "::", "get", "(", "NewTy", ",", "cast", "<", "PointerType", ">", "(", "Ty", ")", "->", "getAddressSpace", "(", ")", ")", ";"], "ground_truth": ["else", "return", "NewTy", ";"], "File": "JVMCompositeHandler", "Func": "flattenType_core", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86955, "Length": 89, "Cover_Rate": 0.5056818181818182} {"Template_token": ["", "Type", "*", "MPT", "=", "Type", "::", "getInt32Ty", "(", "Cxt", ")", ";", "for", "(", "auto", "Ty", ":", "TyVec", ")", "{", "int", "ElmCnt", "=", "", ";", "Type", "*", "ElmTy", "=", "nullptr", ";", "if", "(", "isa", "<", "ArrayType", ">", "(", "Ty", ")", ")", "{", "ElmCnt", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ";", "ElmTy", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ";", "while", "(", "isa", "<", "ArrayType", ">", "(", "ElmTy", ")", ")", "{", "ElmCnt", "*=", "cast", "<", "ArrayType", ">", "(", "ElmTy", ")", "->", "getNumElements", "(", ")", ";", "ElmTy", "=", "cast", "<", "ArrayType", ">", "(", "ElmTy", ")", "->", "getElementType", "(", ")", ";", "}", "}", "else", "{", "ElmTy", "=", "Ty", ";", "ElmCnt", "=", "", ";", "}", "if", "(", "ElmTy", "->", "getPrimitiveSizeInBits", "(", ")", ">", "MPT", "->", "getPrimitiveSizeInBits", "(", ")", ")", "{", "ElmCnt", "*=", "ElmTy", "->", "getPrimitiveSizeInBits", "(", ")", "/", "MPT", "->", "getPrimitiveSizeInBits", "(", ")", ";", "llvm_unreachable", "(", "", ")", ";", "}"], "ground_truth": ["NumElements", "+=", "ElmCnt", ";"], "File": "JVMCompositeHandler", "Func": "GetMostPreferredTypeForStruct", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86956, "Length": 160, "Cover_Rate": 0.8648648648648649} {"Template_token": ["", "Type", "*", "ElmTy", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ";", "bool", "exploreArr", "=", "!", "CheckIfFlattendType", "(", "ElmTy", ")", "||", "!", "AccessMemFormFlatStruct", ";", "if", "(", "isa", "<", "StructType", ">", "(", "ElmTy", ")", "||", "(", "isa", "<", "ArrayType", ">", "(", "ElmTy", ")", "&&", "exploreArr", ")", ")", "{", "int", "NumArrElems", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ";", "NumElems", "+=", "NumArrElems", "*", "getNumElements", "(", "ElmTy", ",", "AccessMemFormFlatStruct", ")", ";", "}", "else", "NumElems", "+=", "exploreArr", "?", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ":", "", ";"], "ground_truth": ["}", "else", "if", "(", "isa", "<", "PointerType", ">", "(", "Ty", ")", ")", "{"], "File": "JVMCompositeHandler", "Func": "getNumElements", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86957, "Length": 110, "Cover_Rate": 0.36065573770491804} {"Template_token": ["", "static", "unsigned", "GetNumLeadingNonLeafArrDim", "(", "GetElementPtrInst", "*", "GI", ")", "{"], "ground_truth": ["if", "(", "GI", "->", "getNumIndices", "(", ")", ">", "", ")", "return", "(", "GI", "->", "getNumIndices", "(", ")", "-", "(", "GetNumLeafArrayDimensions", "(", "GI", ")", "+", "", ")", ")", ";"], "File": "JVMCompositeHandler", "Func": "GetNumLeadingNonLeafArrDim", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86958, "Length": 37, "Cover_Rate": 0.8809523809523809} {"Template_token": ["", "static", "unsigned", "GetNumLeafArrayDimensions", "(", "GetElementPtrInst", "*", "V", ")", "{", "int", "i", "=", "", ";", "SmallVector", "<", "Type", "*", ",", "", ">", "WorkList", ";", "for", "(", "gep_type_iterator", "Itr", "=", "gep_type_begin", "(", "V", ")", ";", "Itr", "!=", "gep_type_end", "(", "V", ")", ";", "Itr", "++", ")", "WorkList", ".", "push_back", "(", "Itr", ".", "getIndexedType", "(", ")", ")", ";", "WorkList", ".", "pop_back", "(", ")", ";", "while", "(", "WorkList", ".", "size", "(", ")", ")", "{"], "ground_truth": ["Type", "*", "Ty", "=", "WorkList", ".", "back", "(", ")", ";"], "File": "JVMCompositeHandler", "Func": "GetNumLeafArrayDimensions", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86959, "Length": 79, "Cover_Rate": 0.7452830188679245} {"Template_token": ["", "OTy", "=", "GetRootType", "(", "OTy", ")", ";", "gep_type_iterator", "IdxTyItr", "=", "gep_type_begin", "(", "GI", ")", ";", "assert", "(", "OTy", "==", "IdxTyItr", ".", "getIndexedType", "(", ")", "&&", "", ")", ";"], "ground_truth": ["return", "getTyIndexInFlattenedType_core", "(", "Func", ",", "ConstantInt", "::", "get", "(", "Int32Ty", ",", "APInt", "(", "", ",", "", ")", ")", ",", "GI", ",", "AccessMemFormFlatStruct", ")", ";"], "File": "JVMCompositeHandler", "Func": "getTyIndexInFlattenedType", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86960, "Length": 52, "Cover_Rate": 0.6046511627906976} {"Template_token": ["", "assert", "(", "OTy", "==", "IdxTyItr", ".", "getIndexedType", "(", ")", "&&", "", ")", ";", "return", "getTyIndexInFlattenedType_core", "(", "Func", ",", "ConstantInt", "::", "get", "(", "Int32Ty", ",", "APInt", "(", "", ",", "", ")", ")", ",", "GI", ",", "AccessMemFormFlatStruct", ")", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "getTyIndexInFlattenedType", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86961, "Length": 38, "Cover_Rate": 0.4418604651162791} {"Template_token": ["", "IdxOffset", "=", "ConstantInt", "::", "get", "(", "Int32Ty", ",", "CumulativeIndex", ")", ";", "}", "else", "if", "(", "NextRef", "==", "ArrayElemRef", ")", "{", "IdxOffset", "=", "IRB", ".", "CreateBinOp", "(", "Instruction", "::", "Mul", ",", "ConstantInt", "::", "get", "(", "Int32Ty", ",", "APInt", "(", "", ",", "getNumElements", "(", "cast", "<", "ArrayType", ">", "(", "PrevTy", ")", "->", "getElementType", "(", ")", ",", "AccessMemFormFlatStruct", ")", ")", ")", ",", "IdxVal", ")", ";", "}", "else", "IdxOffset", "=", "IdxVal", ";", "if", "(", "isa", "<", "ArrayType", ">", "(", "IdxTy", ")", ")", "NextRef", "=", "ArrayElemRef", ";", "else", "if", "(", "isa", "<", "StructType", ">", "(", "IdxTy", ")", "||", "isa", "<", "PointerType", ">", "(", "IdxTy", ")", ")", "NextRef", "=", "StructFieldRef", ";", "else", "NextRef", "=", "ScalarRef", ";", "Idx", "=", "IRB", ".", "CreateBinOp", "(", "Instruction", "::", "Add", ",", "Idx", ",", "IdxOffset", ")", ";", "if", "(", "--", "NumLeadingNonLeafArrDim", "==", "", ")", "return", "Idx", ";", "PrevTy", "=", "IdxTy", ";", "}"], "ground_truth": ["if", "(", "isa", "<", "GetElementPtrInst", ">", "(", "*", "(", "GI", "->", "user_begin", "(", ")", ")", ")", ")", "return", "getTyIndexInFlattenedType_core", "(", "Func", ",", "Idx", ",", "cast", "<", "GetElementPtrInst", ">", "(", "*", "(", "GI", "->", "user_begin", "(", ")", ")", ")", ",", "AccessMemFormFlatStruct", ")", ";"], "File": "JVMCompositeHandler", "Func": "getTyIndexInFlattenedType_core", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86962, "Length": 182, "Cover_Rate": 0.4155251141552511} {"Template_token": ["", "return", "typeDefs", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "getTypeDefMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86963, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "if", "(", "Set", ".", "find", "(", "Val", ")", "==", "Set", ".", "end", "(", ")", ")", "Set", ".", "insert", "(", "Val", ")", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "InsertIntoSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86965, "Length": 23, "Cover_Rate": 0.6052631578947368} {"Template_token": ["", "void", "CompositeHandler", "::", "ProcessFunction", "(", ")", "{", "doTypeCollection", "(", ")", ";", "dump", "(", ")", ";", "flattenTypes", "(", ")", ";", "dump", "(", ")", ";", "doAllocations", "(", ")", ";", "doReplacements", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "ProcessFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86969, "Length": 32, "Cover_Rate": 1.0} {"Template_token": ["", "dump", "(", ")", ";", "flattenTypes", "(", ")", ";", "dump", "(", ")", ";", "doAllocations", "(", ")", ";"], "ground_truth": ["doReplacements", "(", ")", ";"], "File": "JVMCompositeHandler", "Func": "ProcessFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86970, "Length": 20, "Cover_Rate": 0.625} {"Template_token": ["", "void", "CompositeHandler", "::", "replaceAllUsesWithUnwrapped", "(", "Value", "*", "Old", ",", "Value", "*", "New", ")", "{"], "ground_truth": ["assert", "(", "Old", "->", "getType", "(", ")", "!=", "New", "->", "getType", "(", ")", "&&", "", ")", ";"], "File": "JVMCompositeHandler", "Func": "replaceAllUsesWithUnwrapped", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86971, "Length": 31, "Cover_Rate": 0.3780487804878049} {"Template_token": ["", "assert", "(", "Old", "->", "getType", "(", ")", "!=", "New", "->", "getType", "(", ")", "&&", "", ")", ";"], "ground_truth": ["for", "(", "auto", "*", "User", ":", "Old", "->", "users", "(", ")", ")", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "User", "->", "getNumOperands", "(", ")", ";", "i", "++", ")", "if", "(", "User", "->", "getOperand", "(", "i", ")", "==", "Old", ")", "User", "->", "setOperand", "(", "i", ",", "New", ")", ";"], "File": "JVMCompositeHandler", "Func": "replaceAllUsesWithUnwrapped", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86972, "Length": 67, "Cover_Rate": 0.8170731707317073} {"Template_token": ["", "void", "CompositeHandler", "::", "replaceCastChainAndMemIntrinsics", "(", "Type", "*", "Ty", ",", "BitCastInst", "*", "V", ",", "ValueSet", "&", "LazyRemovalSet", ",", "ValueVec", "&", "ValArr", ")", "{", "if", "(", "!", "isa", "<", "BitCastInst", ">", "(", "V", ")", "||", "!", "cast", "<", "BitCastInst", ">", "(", "V", ")", "->", "hasOneUse", "(", ")", ")", "return", ";", "Value", "*", "OnlyUser", "=", "*", "(", "V", "->", "user_begin", "(", ")", ")", ";", "if", "(", "isa", "<", "CallInst", ">", "(", "OnlyUser", ")", "&&", "cast", "<", "CallInst", ">", "(", "OnlyUser", ")", "->", "getCalledFunction", "(", ")", ")", "{", "unsigned", "ID", "=", "cast", "<", "CallInst", ">", "(", "OnlyUser", ")", "->", "getCalledFunction", "(", ")", "->", "getIntrinsicID", "(", ")", ";"], "ground_truth": ["assert", "(", "(", "ID", "==", "", "||", "ID", "==", "", "||", "ID", "==", "", ")", "&&", "", ")", ";"], "File": "JVMCompositeHandler", "Func": "replaceCastChainAndMemIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86973, "Length": 122, "Cover_Rate": 0.8299319727891157} {"Template_token": ["", "Value", "*", "Base", "=", "AIArr", "[", "", "]", ";", "Type", "*", "Int32Ty", "=", "Type", "::", "getInt32Ty", "(", "Func", "->", "getContext", "(", ")", ")", ";", "Mem", "=", "IRB", ".", "CreateGEP", "(", "Base", ",", "{", "ConstantInt", "::", "get", "(", "Int32Ty", ",", "APInt", "(", "", ",", "", ")", ")", ",", "AIArrIdx", "}", ")", ";", "}", "if", "(", "isa", "<", "ArrayType", ">", "(", "IndexType", ")", ")", "{", "int", "NumLeadingNonLeafArrDim", "=", "GetNumLeadingNonLeafArrDim", "(", "lastGEP", ")", ";", "bool", "CreateNewLeafGEP", "=", "NumLeadingNonLeafArrDim", ">", "", ";", "if", "(", "CreateNewLeafGEP", ")", "{", "IRB", ".", "SetInsertPoint", "(", "lastGEP", ")", ";", "SmallVector", "<", "Value", "*", ",", "", ">", "IdxVec", ";", "IdxVec", ".", "append", "(", "lastGEP", "->", "idx_begin", "(", ")", "+", "NumLeadingNonLeafArrDim", ",", "lastGEP", "->", "idx_end", "(", ")", ")", ";", "Value", "*", "NewGEP", "=", "IRB", ".", "CreateGEP", "(", "Mem", ",", "IdxVec", ")", ";", "lastGEP", "->", "replaceAllUsesWith", "(", "NewGEP", ")", ";", "InsertIntoSet", "(", "LazyRemovalSet", ",", "lastGEP", ")", ";", "}", "else", "lastGEP", "->", "getOperand", "(", "", ")", "->", "replaceAllUsesWith", "(", "Mem", ")", ";", "}", "else", "if", "(", "isa", "<", "StructType", ">", "(", "IndexType", ")", ")", "{", "replaceAllUsesWithUnwrapped", "(", "lastGEP", ",", "Mem", ")", ";", "InsertIntoSet", "(", "LazyRemovalSet", ",", "lastGEP", ")", ";", "}", "else", "{", "lastGEP", "->", "replaceAllUsesWith", "(", "Mem", ")", ";"], "ground_truth": ["InsertIntoSet", "(", "LazyRemovalSet", ",", "lastGEP", ")", ";"], "File": "JVMCompositeHandler", "Func": "replaceGetElementPtrChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86974, "Length": 203, "Cover_Rate": 0.5867052023121387} {"Template_token": ["", "unsigned", "TySize", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ".", "getTypeSizeInBits", "(", "RootTy", ")", "/", "", ";", "IRBuilder", "<", ">", "IRB", "(", "CI", ")", ";", "if", "(", "isa", "<", "ConstantInt", ">", "(", "Size", ")", "&&", "TySize", "==", "cast", "<", "ConstantInt", ">", "(", "Size", ")", "->", "getZExtValue", "(", ")", ")", "{", "copyMemory", "(", "Dst", ",", "Src", ",", "Ty", ",", "ValArr", ",", "IRB", ")", ";", "RemoveInstrs", ".", "push_back", "(", "CI", ")", ";", "for", "(", "auto", "Val", ":", "RemoveInstrs", ")", "InsertIntoSet", "(", "LazyRemovalSet", ",", "Val", ")", ";", "}", "else", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "JVMCompositeHandler", "Func": "replaceMemoryIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86975, "Length": 95, "Cover_Rate": 0.36964980544747084} {"Template_token": ["", "ValueVec", "RemoveInstrs", ";", "auto", "GetRootValue", "=", "[", "&", "]", "(", "Value", "*", "V", ")", "->", "Value", "*", "{", "while", "(", "isa", "<", "CastInst", ">", "(", "V", ")", ")", "{", "RemoveInstrs", ".", "push_back", "(", "V", ")", ";", "V", "=", "cast", "<", "User", ">", "(", "V", ")", "->", "getOperand", "(", "", ")", ";", "}", "return", "V", ";", "}", ";", "Value", "*", "Dst", "=", "CI", "->", "getOperand", "(", "", ")", ";", "Value", "*", "Src", "=", "CI", "->", "getOperand", "(", "", ")", ";", "Value", "*", "Size", "=", "CI", "->", "getOperand", "(", "", ")", ";"], "ground_truth": ["Dst", "=", "GetRootValue", "(", "Dst", ")", ";"], "File": "JVMCompositeHandler", "Func": "replaceMemoryIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86976, "Length": 97, "Cover_Rate": 0.377431906614786} {"Template_token": ["", "else", "if", "(", "isa", "<", "BitCastInst", ">", "(", "User", ")", ")", "replaceCastChainAndMemIntrinsics", "(", "Ty", ",", "cast", "<", "BitCastInst", ">", "(", "User", ")", ",", "LazyRemovalSet", ",", "ValArr", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";", "}", "if", "(", "RemoveVal", ")", "InsertIntoSet", "(", "LazyRemovalSet", ",", "V", ")", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "replaceValue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86977, "Length": 47, "Cover_Rate": 0.31125827814569534} {"Template_token": ["", "visitValue", "(", "&", "I", ",", "I", ".", "getType", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMCompositeHandler", "Func": "visitAlloca", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86979, "Length": 13, "Cover_Rate": 0.5652173913043478} {"Template_token": ["", "void", "CompositeHandler", "::", "visitCallInst", "(", "CallInst", "&", "I", ")", "{", "for", "(", "Value", "*", "Arg", ":", "I", ".", "arg_operands", "(", ")", ")", "{"], "ground_truth": ["visitValue", "(", "Arg", ",", "Arg", "->", "getType", "(", ")", ")", ";"], "File": "JVMCompositeHandler", "Func": "visitCallInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86980, "Length": 34, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "if", "(", "canFlattenType", "(", "VT", ")", ")", "{", "if", "(", "typeDefs", ".", "find", "(", "VT", ")", "==", "typeDefs", ".", "end", "(", ")", ")", "typeDefs", "[", "VT", "]", "=", "nullptr", ";"], "ground_truth": ["typeValues", "[", "VT", "]", ".", "push_back", "(", "V", ")", ";"], "File": "JVMCompositeHandler", "Func": "visitValue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86981, "Length": 40, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "if", "(", "EraseSet", ".", "find", "(", "MI", ")", "==", "EraseSet", ".", "end", "(", ")", ")", "EraseSet", ".", "insert", "(", "MI", ")", ";"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "AddToDeferredEraseSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86982, "Length": 23, "Cover_Rate": 0.696969696969697} {"Template_token": ["", "for", "(", "DeferredEraseSetIter", "I", "=", "EraseSet", ".", "begin", "(", ")", ",", "E", "=", "EraseSet", ".", "end", "(", ")", ";", "I", "!=", "E", ";"], "ground_truth": ["I", "++", ")", "{"], "File": "JVMCopyElision", "Func": "Cleanup", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86984, "Length": 27, "Cover_Rate": 0.5294117647058824} {"Template_token": ["", "I", "++", ")", "{", "(", "*", "I", ")", "->", "eraseFromParent", "(", ")", ";", "}"], "ground_truth": ["EraseSet", ".", "clear", "(", ")", ";"], "File": "JVMCopyElision", "Func": "Cleanup", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86985, "Length": 20, "Cover_Rate": 0.39215686274509803} {"Template_token": ["", "FunctionPass", "*", "createCopyElision", "(", ")", "{"], "ground_truth": ["return", "new", "CopyElision", "(", ")", ";"], "File": "JVMCopyElision", "Func": "createJVMCopyElision", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86986, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "FunctionPass", "*", "createCopyElision", "(", ")", "{", "return", "new", "CopyElision", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "createJVMCopyElision", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86987, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "void", "CopyElision", "::", "EnterScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86988, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "void", "CopyElision", "::", "ExitScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86990, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "void", "CopyElision", "::", "ExitScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMCopyElision", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86991, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "ExitScope", "(", "Node", "->", "getBlock", "(", ")", ")", ";", "while", "(", "MachineDomTreeNode", "*", "Parent", "=", "Node", "->", "getIDom", "(", ")", ")", "{", "unsigned", "Left", "=", "--", "OpenChildren", "[", "Parent", "]", ";", "if", "(", "Left", "!=", "", ")", "break", ";", "ExitScope", "(", "Parent", "->", "getBlock", "(", ")", ")", ";", "Node", "=", "Parent", ";"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "ExitScopeIfDone", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86992, "Length": 53, "Cover_Rate": 0.6385542168674698} {"Template_token": ["", "AU", ".", "setPreservesCFG", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";"], "ground_truth": ["AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";"], "File": "JVMCopyElision", "Func": "getAnalysisUsage", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86993, "Length": 22, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "getAnalysisUsage", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86994, "Length": 17, "Cover_Rate": 0.5151515151515151} {"Template_token": ["", "MachineOperand", "RHS", "=", "MI", "->", "getOperand", "(", "", ")", ";", "const", "TargetRegisterClass", "*", "LHSRC", "=", "MRI", "->", "getRegClass", "(", "LHS", ".", "getReg", "(", ")", ")", ";", "const", "TargetRegisterClass", "*", "RHSRC", "=", "MRI", "->", "getRegClass", "(", "RHS", ".", "getReg", "(", ")", ")", ";"], "ground_truth": ["if", "(", "LHSRC", "!=", "RHSRC", ")", "{"], "File": "JVMCopyElision", "Func": "IsCopyElisionCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86995, "Length": 49, "Cover_Rate": 0.30434782608695654} {"Template_token": ["", "CopyElision", "(", ")", ":", "MachineFunctionPass", "(", "ID", ")", "{", "initializeCopyElisionPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "JVMCopyElision", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86996, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "initializeCopyElisionPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "JVMCopyElision", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86997, "Length": 11, "Cover_Rate": 0.55} {"Template_token": ["", "Scopes", ".", "push_back", "(", "Node", ")", ";", "const", "std", "::", "vector", "<", "MachineDomTreeNode", "*", ">", "&", "Children", "=", "Node", "->", "getChildren", "(", ")", ";", "OpenChildren", "[", "Node", "]", "=", "Children", ".", "size", "(", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Child", ":", "Children", ")", "WorkList", ".", "push_back", "(", "Child", ")", ";", "}", "while", "(", "!", "WorkList", ".", "empty", "(", ")", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Node", ":", "Scopes", ")", "{", "MachineBasicBlock", "*", "MBB", "=", "Node", "->", "getBlock", "(", ")", ";", "EnterScope", "(", "MBB", ")", ";"], "ground_truth": ["ProcessCopyElisionBlock", "(", "MBB", ")", ";"], "File": "JVMCopyElision", "Func": "PerformCopyElision", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86998, "Length": 90, "Cover_Rate": 0.5732484076433121} {"Template_token": ["", "DenseMap", "<", "MachineDomTreeNode", "*", ",", "unsigned", ">", "OpenChildren", ";", "WorkList", ".", "push_back", "(", "Node", ")", ";", "do", "{", "Node", "=", "WorkList", ".", "pop_back_val", "(", ")", ";", "Scopes", ".", "push_back", "(", "Node", ")", ";", "const", "std", "::", "vector", "<", "MachineDomTreeNode", "*", ">", "&", "Children", "=", "Node", "->", "getChildren", "(", ")", ";", "OpenChildren", "[", "Node", "]", "=", "Children", ".", "size", "(", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Child", ":", "Children", ")", "WorkList", ".", "push_back", "(", "Child", ")", ";", "}", "while", "(", "!", "WorkList", ".", "empty", "(", ")", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Node", ":", "Scopes", ")", "{", "MachineBasicBlock", "*", "MBB", "=", "Node", "->", "getBlock", "(", ")", ";"], "ground_truth": ["EnterScope", "(", "MBB", ")", ";"], "File": "JVMCopyElision", "Func": "PerformCopyElision", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 86999, "Length": 111, "Cover_Rate": 0.7070063694267515} {"Template_token": ["", "MachineOperand", "MORHS", "=", "MI", "->", "getOperand", "(", "", ")", ";", "unsigned", "NewReg", "=", "MRI", "->", "createVirtualRegister", "(", "MRI", "->", "getRegClass", "(", "MORHS", ".", "getReg", "(", ")", ")", ")", ";", "if", "(", "HasConstantDriver", "(", "MRI", ",", "MORHS", ",", "isInt", ",", "&", "ConstNode", ")", ")", "{", "BuildMI", "(", "*", "MBB", ",", "I", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", "(", "MRI", "->", "getRegClass", "(", "MORHS", ".", "getReg", "(", ")", ")", ")", ")", ")", ".", "addDef", "(", "NewReg", ")", ".", "addImm", "(", "ConstNode", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ";", "AddToDeferredEraseSet", "(", "ConstNode", ")", ";", "}", "else", "{", "unsigned", "LoadOpcode", "=", "", "(", "MRI", "->", "getRegClass", "(", "MORHS", ".", "getReg", "(", ")", ")", ")", ";", "BuildMI", "(", "*", "MBB", ",", "I", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "LoadOpcode", ")", ")", ".", "addDef", "(", "NewReg", ")", ".", "addUse", "(", "MORHS", ".", "getReg", "(", ")", ")", ";", "}", "MachineOperand", "MOLHS", "=", "MI", "->", "getOperand", "(", "", ")", ";", "unsigned", "StoreOpcode", "=", "", "(", "MRI", "->", "getRegClass", "(", "MOLHS", ".", "getReg", "(", ")", ")", ")", ";", "BuildMI", "(", "*", "MBB", ",", "I", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "StoreOpcode", ")", ")", ".", "addDef", "(", "MOLHS", ".", "getReg", "(", ")", ")", ".", "addUse", "(", "NewReg", ")", ";"], "ground_truth": ["AddToDeferredEraseSet", "(", "MI", ")", ";"], "File": "JVMCopyElision", "Func": "ProcessCopyElisionBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87000, "Length": 224, "Cover_Rate": 0.6978193146417445} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";", "bool", "isInt", ";", "MachineInstr", "*", "ConstNode", "=", "nullptr", ";", "MachineOperand", "MORHS", "=", "MI", "->", "getOperand", "(", "", ")", ";", "unsigned", "NewReg", "=", "MRI", "->", "createVirtualRegister", "(", "MRI", "->", "getRegClass", "(", "MORHS", ".", "getReg", "(", ")", ")", ")", ";", "if", "(", "HasConstantDriver", "(", "MRI", ",", "MORHS", ",", "isInt", ",", "&", "ConstNode", ")", ")", "{", "BuildMI", "(", "*", "MBB", ",", "I", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", "(", "MRI", "->", "getRegClass", "(", "MORHS", ".", "getReg", "(", ")", ")", ")", ")", ")", ".", "addDef", "(", "NewReg", ")", ".", "addImm", "(", "ConstNode", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ";", "AddToDeferredEraseSet", "(", "ConstNode", ")", ";", "}", "else", "{", "unsigned", "LoadOpcode", "=", "", "(", "MRI", "->", "getRegClass", "(", "MORHS", ".", "getReg", "(", ")", ")", ")", ";"], "ground_truth": ["BuildMI", "(", "*", "MBB", ",", "I", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "LoadOpcode", ")", ")", ".", "addDef", "(", "NewReg", ")", ".", "addUse", "(", "MORHS", ".", "getReg", "(", ")", ")", ";"], "File": "JVMCopyElision", "Func": "ProcessCopyElisionBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87001, "Length": 182, "Cover_Rate": 0.5669781931464174} {"Template_token": ["", "void", "releaseMemory", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "releaseMemory", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87002, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "void", "releaseMemory", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "releaseMemory", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87003, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "PerformCopyElision", "(", "DT", "->", "getRootNode", "(", ")", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87004, "Length": 32, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "bool", "CopyElision", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MFN", ")", "{", "MF", "=", "&", "MFN", ";", "TII", "=", "static_cast", "<", "const", "InstrInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "static_cast", "<", "const", "RegisterInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ")", ";", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "PerformCopyElision", "(", "DT", "->", "getRootNode", "(", ")", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMCopyElision", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87005, "Length": 96, "Cover_Rate": 1.0} {"Template_token": ["", "std", "::", "unique_ptr", "<", "const", "MCInstrInfo", ">", "MCII", "(", "T", ".", "createMCInstrInfo", "(", ")", ")", ";", "return", "new", "Disassembler", "(", "STI", ",", "Ctx", ",", "std", "::", "move", "(", "MCII", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMDisassembler", "Func": "createJVMDisassembler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87006, "Length": 33, "Cover_Rate": 0.6226415094339622} {"Template_token": ["", "return", "new", "Disassembler", "(", "STI", ",", "Ctx", ",", "std", "::", "move", "(", "MCII", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMDisassembler", "Func": "createJVMDisassembler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87007, "Length": 17, "Cover_Rate": 0.32075471698113206} {"Template_token": ["", "Disassembler", "(", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ",", "std", "::", "unique_ptr", "<", "const", "MCInstrInfo", ">", "MCII", ")", ":", "MCDisassembler", "(", "STI", ",", "Ctx", ")", ",", "MCII", "(", "std", "::", "move", "(", "MCII", ")", ")", "{"], "ground_truth": ["}"], "File": "JVMDisassembler", "Func": "JVMDisassembler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87009, "Length": 39, "Cover_Rate": 1.0} {"Template_token": ["", "Disassembler", "(", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ",", "std", "::", "unique_ptr", "<", "const", "MCInstrInfo", ">", "MCII", ")", ":", "MCDisassembler", "(", "STI", ",", "Ctx", ")", ",", "MCII", "(", "std", "::", "move", "(", "MCII", ")", ")", "{"], "ground_truth": ["}"], "File": "JVMDisassembler", "Func": "JVMDisassembler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87010, "Length": 39, "Cover_Rate": 1.0} {"Template_token": ["", "void", "LLVMInitializeDisassembler", "(", ")", "{", "TargetRegistry", "::", "RegisterMCDisassembler", "(", "getTheTarget32", "(", ")", ",", "createDisassembler", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCDisassembler", "(", "getTheTarget64", "(", ")", ",", "createDisassembler", ")", ";"], "File": "JVMDisassembler", "Func": "LLVMInitializeJVMDisassembler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87011, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "void", "FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "JVMFrameLowering", "Func": "emitEpilogue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87012, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "JVMFrameLowering", "Func": "emitEpilogue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87013, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "JVMFrameLowering", "Func": "emitPrologue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87014, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "JVMFrameLowering", "Func": "emitPrologue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87015, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "FrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{"], "ground_truth": ["return", "false", ";"], "File": "JVMFrameLowering", "Func": "hasFP", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87016, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "bool", "FrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "false", ";"], "ground_truth": ["}"], "File": "JVMFrameLowering", "Func": "hasFP", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87017, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "FrameLowering", "(", ")", ":", "TargetFrameLowering", "(", "StackGrowsDown", ",", "", ",", "", ",", "", ",", "true", ")", "{"], "ground_truth": ["}"], "File": "JVMFrameLowering", "Func": "JVMFrameLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87018, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "FrameLowering", "(", ")", ":", "TargetFrameLowering", "(", "StackGrowsDown", ",", "", ",", "", ",", "", ",", "true", ")", "{"], "ground_truth": ["}"], "File": "JVMFrameLowering", "Func": "JVMFrameLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87019, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "InstPrinter", "::", "InstPrinter", "(", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", ":", "MCInstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", "{"], "ground_truth": ["}"], "File": "JVMInstPrinter", "Func": "JVMInstPrinter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87020, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "InstPrinter", "::", "InstPrinter", "(", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", ":", "MCInstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", "{"], "ground_truth": ["}"], "File": "JVMInstPrinter", "Func": "JVMInstPrinter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87021, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "void", "InstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", ")", "{", "printInstruction", "(", "MI", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";"], "ground_truth": ["}"], "File": "JVMInstPrinter", "Func": "printInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87023, "Length": 37, "Cover_Rate": 1.0} {"Template_token": ["", "assert", "(", "DescVec", "&&", "", ")", ";"], "ground_truth": ["StringRef", "Desc", "=", "(", "*", "DescVec", ")", "[", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", "]", ";"], "File": "JVMInstPrinter", "Func": "printJVMDescriptorOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87024, "Length": 27, "Cover_Rate": 0.54} {"Template_token": ["", "if", "(", "Op", ".", "isReg", "(", ")", ")", "{", "llvm_unreachable", "(", "", ")", ";", "}", "else", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "O", "<<", "Op", ".", "getImm", "(", ")", ";", "}", "else", "if", "(", "Op", ".", "isFPImm", "(", ")", ")", "{", "assert", "(", "OpNo", "<", "Desc", ".", "getNumOperands", "(", ")", "&&", "", ")", ";", "assert", "(", "Desc", ".", "TSFlags", "==", "", "&&", "", ")", ";", "if", "(", "Info", ".", "OperandType", "==", "", ")", "{", "O", "<<", "Op", ".", "getFPImm", "(", ")", ";", "}", "else", "{", "assert", "(", "Info", ".", "OperandType", "==", "", ")", ";"], "ground_truth": ["O", "<<", "Op", ".", "getFPImm", "(", ")", ";"], "File": "JVMInstPrinter", "Func": "printOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87025, "Length": 105, "Cover_Rate": 0.5303030303030303} {"Template_token": ["", "}", "else", "{", "assert", "(", "!", "CBR", "&&", "", ")", ";", "CBR", "=", "&", "MI", ";", "}", "}", "if", "(", "nullptr", "==", "CBR", "&&", "nullptr", "==", "UBR", ")", "return", "true", ";", "else", "if", "(", "UBR", "&&", "!", "CBR", ")", "{", "TBB", "=", "UBR", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";", "}", "else", "if", "(", "CBR", ")", "{", "TBB", "=", "CBR", "->", "getOperand", "(", "CBR", "->", "getNumOperands", "(", ")", "-", "", ")", ".", "getMBB", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "CBR", "->", "getNumOperands", "(", ")", "-", "", ";", "i", "++", ")", "Cond", ".", "push_back", "(", "CBR", "->", "getOperand", "(", "i", ")", ")", ";", "FBB", "=", "UBR", "?", "UBR", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ":", "nullptr", ";", "}", "else", "{", "llvm_unreachable", "(", "", ")", ";", "}"], "ground_truth": ["return", "false", ";"], "File": "JVMInstrInfo", "Func": "analyzeBranch", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87028, "Length": 140, "Cover_Rate": 0.5668016194331984} {"Template_token": ["", "void", "InstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "JVMInstrInfo", "Func": "copyPhysReg", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87030, "Length": 35, "Cover_Rate": 0.9722222222222222} {"Template_token": ["", "else", "return", "MI", ".", "getOperand", "(", "MI", ".", "getNumOperands", "(", ")", "-", "", ")", ".", "getMBB", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMInstrInfo", "Func": "getBranchDestBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87031, "Length": 20, "Cover_Rate": 0.30303030303030304} {"Template_token": ["", "else", "if", "(", "!", "IsConditionalBranch", "(", "MI", ")", ")", "return", "MI", ".", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";"], "ground_truth": ["else", "return", "MI", ".", "getOperand", "(", "MI", ".", "getNumOperands", "(", ")", "-", "", ")", ".", "getMBB", "(", ")", ";"], "File": "JVMInstrInfo", "Func": "getBranchDestBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87032, "Length": 40, "Cover_Rate": 0.6060606060606061} {"Template_token": ["", "return", "RI", ";"], "ground_truth": ["}"], "File": "JVMInstrInfo", "Func": "getRegisterInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87033, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "bool", "InstrInfo", "::", "IsConditionalBranch", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "assert", "(", "MI", ".", "isBranch", "(", ")", "&&", "", ")", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":"], "ground_truth": ["return", "true", ";"], "File": "JVMInstrInfo", "Func": "IsConditionalBranch", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87034, "Length": 37, "Cover_Rate": 0.7872340425531915} {"Template_token": ["", "InstrInfo", "::", "InstrInfo", "(", "const", "Subtarget", "&", "STI", ")", ":", "GenInstrInfo", "(", ")", ",", "RI", "(", "STI", ".", "getTargetTriple", "(", ")", ")", "{"], "ground_truth": ["}"], "File": "JVMInstrInfo", "Func": "JVMInstrInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87035, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "InstrInfo", "::", "InstrInfo", "(", "const", "Subtarget", "&", "STI", ")", ":", "GenInstrInfo", "(", ")", ",", "RI", "(", "STI", ".", "getTargetTriple", "(", ")", ")", "{"], "ground_truth": ["}"], "File": "JVMInstrInfo", "Func": "JVMInstrInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87036, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "!", "MI", ".", "isBranch", "(", ")", ")", "break", ";", "MI", ".", "eraseFromParent", "(", ")", ";", "Count", "++", ";", "}", "return", "Count", ";"], "ground_truth": ["}"], "File": "JVMInstrInfo", "Func": "removeBranch", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87037, "Length": 25, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "MachineInstr", "&", "MI", "=", "*", "ritr", ";", "if", "(", "!", "MI", ".", "isBranch", "(", ")", ")", "break", ";", "MI", ".", "eraseFromParent", "(", ")", ";", "Count", "++", ";"], "ground_truth": ["}"], "File": "JVMInstrInfo", "Func": "removeBranch", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87038, "Length": 28, "Cover_Rate": 0.37333333333333335} {"Template_token": ["", "break", ";", "case", "", ":", "NewCond", "=", "", ";", "break", ";", "case", "", ":", "NewCond", "=", "", ";", "break", ";", "case", "", ":", "NewCond", "=", "", ";", "break", ";", "case", "", ":", "NewCond", "=", "", ";", "break", ";", "case", "", ":", "NewCond", "=", "", ";", "break", ";", "case", "", ":", "NewCond", "=", "", ";", "break", ";", "case", "", ":", "NewCond", "=", "", ";"], "ground_truth": ["break", ";"], "File": "JVMInstrInfo", "Func": "reverseBranchCondition", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87039, "Length": 65, "Cover_Rate": 0.3051643192488263} {"Template_token": ["", "SmallVector", "<", "Instruction", "*", ",", "", ">", "DelList", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "for", "(", "auto", "&", "BB", ":", "*", "F", ")", "for", "(", "auto", "&", "II", ":", "BB", ")", "if", "(", "Value", "*", "Const", "=", "ConstantFoldInstruction", "(", "&", "II", ",", "DL", ",", "nullptr", ")", ")", "{", "II", ".", "replaceAllUsesWith", "(", "Const", ")", ";", "DelList", ".", "push_back", "(", "&", "II", ")", ";", "}", "for", "(", "auto", "Inst", ":", "DelList", ")", "{", "DropAllReferences", "(", "Inst", ")", ";", "Inst", "->", "removeFromParent", "(", ")", ";", "}"], "ground_truth": ["}"], "File": "JVMIRDecorator", "Func": "ConstantFoldInstructions", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87040, "Length": 95, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "II", ".", "replaceAllUsesWith", "(", "Const", ")", ";", "DelList", ".", "push_back", "(", "&", "II", ")", ";", "}", "for", "(", "auto", "Inst", ":", "DelList", ")", "{", "DropAllReferences", "(", "Inst", ")", ";"], "ground_truth": ["Inst", "->", "removeFromParent", "(", ")", ";"], "File": "JVMIRDecorator", "Func": "ConstantFoldInstructions", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87041, "Length": 35, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "new", "IRDecorator", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMIRDecorator", "Func": "createJVMIRDecorator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87042, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "return", "new", "IRDecorator", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMIRDecorator", "Func": "createJVMIRDecorator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87043, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "for", "(", "Use", "&", "U", ":", "V", "->", "operands", "(", ")", ")", "{"], "ground_truth": ["if", "(", "isa", "<", "ConstantExpr", ">", "(", "U", ".", "get", "(", ")", ")", ")", "DropAllReferences", "(", "cast", "<", "User", ">", "(", "U", ".", "get", "(", ")", ")", ")", ";"], "File": "JVMIRDecorator", "Func": "DropAllReferences", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87044, "Length": 42, "Cover_Rate": 0.6885245901639344} {"Template_token": ["", "void", "IRDecorator", "::", "DropAllReferences", "(", "User", "*", "V", ")", "{", "for", "(", "Use", "&", "U", ":", "V", "->", "operands", "(", ")", ")", "{", "if", "(", "isa", "<", "ConstantExpr", ">", "(", "U", ".", "get", "(", ")", ")", ")", "DropAllReferences", "(", "cast", "<", "User", ">", "(", "U", ".", "get", "(", ")", ")", ")", ";"], "ground_truth": ["U", ".", "set", "(", "nullptr", ")", ";"], "File": "JVMIRDecorator", "Func": "DropAllReferences", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87045, "Length": 59, "Cover_Rate": 0.9672131147540983} {"Template_token": ["", "void", "IRDecorator", "::", "EmitArgumentInitializationWrappers", "(", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "File": "JVMIRDecorator", "Func": "EmitArgumentInitializationWrappers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87046, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["}"], "File": "JVMIRDecorator", "Func": "EmitArgumentInitializationWrappers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87047, "Length": 10, "Cover_Rate": 0.5882352941176471} {"Template_token": ["", "SmallVector", "<", "Value", "*", ",", "", ">", "WorkList", ";", "using", "IndexKind", "=", "enum", "{", "SCALAR_REF", ",", "ARRAY_REF", ",", "STRUCT_REF", "}", ";", "LLVMContext", "&", "Cxt", "=", "Func", "->", "getContext", "(", ")", ";", "const", "DataLayout", "&", "DL", "=", "F", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "for", "(", "auto", "&", "BB", ":", "*", "F", ")", "{", "for", "(", "auto", "&", "II", ":", "BB", ")", "{", "if", "(", "isa", "<", "GetElementPtrInst", ">", "(", "&", "II", ")", ")", "{", "bool", "Change", "=", "false", ";", "SmallVector", "<", "Value", "*", ",", "", ">", "Indices", ";", "IRBuilder", "<", ">", "IRB", "(", "cast", "<", "Instruction", ">", "(", "&", "II", ")", ")", ";", "IndexKind", "NextIndex", "=", "SCALAR_REF", ";", "for", "(", "gep_type_iterator", "GTI", "=", "gep_type_begin", "(", "&", "II", ")", ",", "E", "=", "gep_type_end", "(", "&", "II", ")", ";", "GTI", "!=", "E", ";", "++", "GTI", ")", "{", "const", "Value", "*", "Idx", "=", "GTI", ".", "getOperand", "(", ")", ";", "Type", "*", "IdxTy", "=", "GTI", ".", "getIndexedType", "(", ")", ";", "if", "(", "NextIndex", "==", "ARRAY_REF", ")", "{", "Value", "*", "NewIdx", "=", "GetTypeNormalizedValue", "(", "DL", ",", "IRB", ",", "const_cast", "<", "Value", "*", ">", "(", "Idx", ")", ",", "Type", "::", "getInt32Ty", "(", "Cxt", ")", ")", ";", "Change", "=", "Idx", "!=", "NewIdx", ";", "Idx", "=", "NewIdx", ";"], "ground_truth": ["}"], "File": "JVMIRDecorator", "Func": "FixupCompositeIndexes", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87048, "Length": 204, "Cover_Rate": 0.6710526315789473} {"Template_token": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{"], "ground_truth": ["getLoopAnalysisUsage", "(", "AU", ")", ";"], "File": "JVMIRDecorator", "Func": "getAnalysisUsage", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87050, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "BitCastXForm", ".", "setFunction", "(", "*", "F", ")", ";", "BitCastXForm", ".", "ProcessFunction", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMIRDecorator", "Func": "HandleBitCastOperation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87052, "Length": 15, "Cover_Rate": 0.6} {"Template_token": ["", "TyDefCol", ".", "setFunction", "(", "*", "F", ")", ";"], "ground_truth": ["TyDefCol", ".", "ProcessFunction", "(", ")", ";"], "File": "JVMIRDecorator", "Func": "HandleCompositeTypes", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87054, "Length": 14, "Cover_Rate": 0.56} {"Template_token": ["", "void", "IRDecorator", "::", "HandleGlobalConstants", "(", "Function", "*", "F", ")", "{", "Module", "*", "M", "=", "F", "->", "getParent", "(", ")", ";", "if", "(", "M", "->", "global_empty", "(", ")", ")", "return", ";", "unsigned", "FieldIndex", "=", "", ";", "SmallVector", "<", "Type", "*", ",", "", ">", "TypeList", ";", "SmallVector", "<", "Constant", "*", ",", "", ">", "InitVals", ";", "GlobFieldOffsetMap", "GlobOffsetMap", ";", "for", "(", "auto", "&", "Glob", ":", "M", "->", "globals", "(", ")", ")", "{", "TypeList", ".", "push_back", "(", "GetRootType", "(", "Glob", ".", "getType", "(", ")", ")", ")", ";", "InitVals", ".", "push_back", "(", "Glob", ".", "getInitializer", "(", ")", ")", ";"], "ground_truth": ["GlobOffsetMap", "[", "&", "Glob", "]", "=", "FieldIndex", "++", ";"], "File": "JVMIRDecorator", "Func": "HandleGlobalConstants", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87055, "Length": 103, "Cover_Rate": 0.44782608695652176} {"Template_token": ["", "IRDecorator", "(", ")", ":", "FunctionPass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "JVMIRDecorator", "Func": "JVMIRDecorator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87056, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "IRDecorator", "(", ")", ":", "FunctionPass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "JVMIRDecorator", "Func": "JVMIRDecorator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87057, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "Indices", ".", "pop_back", "(", ")", ";", "Value", "*", "Index", "=", "cast", "<", "GetElementPtrInst", ">", "(", "GEP", ")", "->", "getOperand", "(", "", ")", ";", "Index", "=", "GetTypeNormalizedValue", "(", "DL", ",", "IRB", ",", "Index", ",", "LastIndex", "->", "getType", "(", ")", ")", ";", "Value", "*", "NextIndex", "=", "IRB", ".", "CreateAdd", "(", "LastIndex", ",", "Index", ")", ";", "Indices", ".", "push_back", "(", "NextIndex", ")", ";", "}", "else", "{", "init", "=", "SoC", "?", "", ":", "", ";", "for", "(", "i", "=", "init", ";", "i", "<", "cast", "<", "GetElementPtrInst", ">", "(", "GEP", ")", "->", "getNumIndices", "(", ")", ";", "i", "++", ")", "Indices", ".", "push_back", "(", "cast", "<", "GetElementPtrInst", ">", "(", "GEP", ")", "->", "getOperand", "(", "i", "+", "", ")", ")", ";", "}", "SmallVector", "<", "std", "::", "pair", "<", "Instruction", "*", ",", "Value", "*", ">", ",", "", ">", "UserGEPClonePairVec", ";", "for", "(", "auto", "*", "User", ":", "GEP", "->", "users", "(", ")", ")", "{", "IRB", ".", "SetInsertPoint", "(", "cast", "<", "Instruction", ">", "(", "User", ")", ")", ";", "if", "(", "isa", "<", "GetElementPtrInst", ">", "(", "User", ")", ")", "LinearizeGEP", "(", "IRB", ",", "Ptr", ",", "User", ",", "false", ",", "Indices", ")", ";", "else", "{", "Value", "*", "NewMergeGEP", "=", "IRB", ".", "CreateGEP", "(", "Ptr", ",", "Indices", ")", ";", "UserGEPClonePairVec", ".", "push_back", "(", "std", "::", "make_pair", "(", "cast", "<", "Instruction", ">", "(", "User", ")", ",", "NewMergeGEP", ")", ")", ";", "}", "}", "for", "(", "auto", "UserClonePair", ":", "UserGEPClonePairVec", ")", "UserClonePair", ".", "first", "->", "replaceUsesOfWith", "(", "GEP", ",", "UserClonePair", ".", "second", ")", ";", "for", "(", "i", "=", "init", ";", "i", "<", "cast", "<", "GetElementPtrInst", ">", "(", "GEP", ")", "->", "getNumIndices", "(", ")", ";", "i", "++", ")", "Indices", ".", "pop_back", "(", ")", ";", "if", "(", "LastIndex", ")", "Indices", ".", "push_back", "(", "LastIndex", ")", ";"], "ground_truth": ["}"], "File": "JVMIRDecorator", "Func": "LinearizeGEP", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87058, "Length": 279, "Cover_Rate": 0.6855036855036855} {"Template_token": ["", "Value", "*", "Ptr", "=", "cast", "<", "GetElementPtrInst", ">", "(", "&", "II", ")", "->", "getPointerOperand", "(", ")", ";", "bool", "IsInGEPChain", "=", "isa", "<", "GetElementPtrInst", ">", "(", "Ptr", ")", ";", "for", "(", "auto", "*", "User", ":", "II", ".", "users", "(", ")", ")", "{", "if", "(", "!", "IsInGEPChain", "&&", "isa", "<", "GetElementPtrInst", ">", "(", "User", ")", ")", "{", "WorkList", ".", "push_back", "(", "&", "II", ")", ";"], "ground_truth": ["break", ";"], "File": "JVMIRDecorator", "Func": "LinearizeGEPChains", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87059, "Length": 65, "Cover_Rate": 0.36312849162011174} {"Template_token": ["", "BasicBlock", "*", "NewBlk", "=", "OldTI", "->", "getParent", "(", ")", ";", "BasicBlock", "*", "TrueBlk", "=", "BasicBlock", "::", "Create", "(", "Cxt", ",", "NewBlk", "->", "getName", "(", ")", "+", "", ",", "Func", ")", ";", "TrueBlk", "->", "moveAfter", "(", "NewBlk", ")", ";", "BasicBlock", "*", "FalseBlk", "=", "BasicBlock", "::", "Create", "(", "Cxt", ",", "NewBlk", "->", "getName", "(", ")", "+", "", ",", "Func", ")", ";", "FalseBlk", "->", "moveAfter", "(", "TrueBlk", ")", ";", "IRB", ".", "SetInsertPoint", "(", "OldTI", ")", ";", "IRB", ".", "CreateCondBr", "(", "Cond", ",", "TrueBlk", ",", "FalseBlk", ")", ";", "OldTI", "->", "eraseFromParent", "(", ")", ";", "IRB", ".", "SetInsertPoint", "(", "TrueBlk", ")", ";", "IRB", ".", "CreateBr", "(", "EndBlk", ")", ";", "IRB", ".", "SetInsertPoint", "(", "FalseBlk", ")", ";", "IRB", ".", "CreateBr", "(", "EndBlk", ")", ";", "IRB", ".", "SetInsertPoint", "(", "EndBlk", "->", "getFirstNonPHI", "(", ")", ")", ";", "PHINode", "*", "PHI", "=", "IRB", ".", "CreatePHI", "(", "Select", "->", "getType", "(", ")", ",", "", ")", ";", "PHI", "->", "addIncoming", "(", "TrueVal", ",", "TrueBlk", ")", ";", "PHI", "->", "addIncoming", "(", "FalseVal", ",", "FalseBlk", ")", ";"], "ground_truth": ["Select", "->", "replaceAllUsesWith", "(", "PHI", ")", ";"], "File": "JVMIRDecorator", "Func": "LowerSELECTOp", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87061, "Length": 171, "Cover_Rate": 0.5662251655629139} {"Template_token": ["", "Value", "*", "FalseVal", "=", "Select", "->", "getFalseValue", "(", ")", ";", "BasicBlock", "::", "iterator", "SplitIt", "=", "Select", "->", "getIterator", "(", ")", ";", "BasicBlock", "*", "EndBlk", "=", "SplitBlock", "(", "Select", "->", "getParent", "(", ")", ",", "&", "*", "++", "SplitIt", ",", "DT", ")", ";", "Instruction", "*", "OldTI", "=", "cast", "<", "Instruction", ">", "(", "*", "EndBlk", "->", "user_begin", "(", ")", ")", ";", "BasicBlock", "*", "NewBlk", "=", "OldTI", "->", "getParent", "(", ")", ";", "BasicBlock", "*", "TrueBlk", "=", "BasicBlock", "::", "Create", "(", "Cxt", ",", "NewBlk", "->", "getName", "(", ")", "+", "", ",", "Func", ")", ";", "TrueBlk", "->", "moveAfter", "(", "NewBlk", ")", ";", "BasicBlock", "*", "FalseBlk", "=", "BasicBlock", "::", "Create", "(", "Cxt", ",", "NewBlk", "->", "getName", "(", ")", "+", "", ",", "Func", ")", ";", "FalseBlk", "->", "moveAfter", "(", "TrueBlk", ")", ";", "IRB", ".", "SetInsertPoint", "(", "OldTI", ")", ";", "IRB", ".", "CreateCondBr", "(", "Cond", ",", "TrueBlk", ",", "FalseBlk", ")", ";", "OldTI", "->", "eraseFromParent", "(", ")", ";", "IRB", ".", "SetInsertPoint", "(", "TrueBlk", ")", ";", "IRB", ".", "CreateBr", "(", "EndBlk", ")", ";", "IRB", ".", "SetInsertPoint", "(", "FalseBlk", ")", ";"], "ground_truth": ["IRB", ".", "CreateBr", "(", "EndBlk", ")", ";"], "File": "JVMIRDecorator", "Func": "LowerSELECTOp", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87062, "Length": 176, "Cover_Rate": 0.5827814569536424} {"Template_token": ["", "return", "true", ";", "}", "}", ";", "for", "(", "auto", "&", "BB", ":", "*", "F", ")", "for", "(", "auto", "&", "II", ":", "BB", ")", "if", "(", "IsFixupCandidate", "(", "II", ".", "getOpcode", "(", ")", ")", ")", "WorkList", ".", "push_back", "(", "&", "II", ")", ";", "for", "(", "auto", "Inst", ":", "WorkList", ")", "{", "switch", "(", "Inst", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "Instruction", "::", "ICmp", ":", "FixupICmp", "(", "Inst", ")", ";"], "ground_truth": ["break", ";"], "File": "JVMIRDecorator", "Func": "PerformIRFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87063, "Length": 78, "Cover_Rate": 0.624} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "Func", "->", "dump", "(", ")", ";", "FixupCompositeIndexes", "(", "Func", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "Func", "->", "dump", "(", ")", ";", "LinearizeGEPChains", "(", "Func", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "Func", "->", "dump", "(", ")", ";", "UniquifyGEPOperands", "(", "Func", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "Func", "->", "dump", "(", ")", ";", "PerformIRFixups", "(", "Func", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["Func", "->", "dump", "(", ")", ";"], "File": "JVMIRDecorator", "Func": "ProcessFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87064, "Length": 95, "Cover_Rate": 0.5191256830601093} {"Template_token": ["", "void", "IRDecorator", "::", "ReplaceConstantGlobsRefs", "(", "GlobalVariable", "*", "GV", ",", "GlobalVariable", "*", "GCStruct", ",", "GlobFieldOffsetMap", "&", "GlobOffsetMap", ")", "{", "LLVMContext", "&", "Cxt", "=", "Func", "->", "getContext", "(", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "Type", "*", "TargetIdxTy", "=", "GetTargetIndexType", "(", "DL", ",", "Cxt", ")", ";", "SmallVector", "<", "Instruction", "*", ",", "", ">", "RemoveList", ";", "SmallVector", "<", "std", "::", "pair", "<", "Instruction", "*", ",", "Value", "*", ">", ",", "", ">", "UserGEPClonePairVec", ";", "for", "(", "auto", "Use", "=", "GV", "->", "use_begin", "(", ")", ";", "Use", "!=", "GV", "->", "use_end", "(", ")", ";", "Use", "++", ")", "{", "SmallVector", "<", "Value", "*", ",", "", ">", "Indices", ";", "unsigned", "FldIndex", "=", "GlobOffsetMap", "[", "GV", "]", ";", "Indices", ".", "push_back", "(", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "", ")", ")", ";"], "ground_truth": ["Indices", ".", "push_back", "(", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "FldIndex", ")", ")", ";"], "File": "JVMIRDecorator", "Func": "ReplaceConstantGlobsRefs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87065, "Length": 148, "Cover_Rate": 0.3894736842105263} {"Template_token": ["", "DT", "=", "&", "getAnalysis", "<", "DominatorTreeWrapperPass", ">", "(", ")", ".", "getDomTree", "(", ")", ";"], "ground_truth": ["return", "ProcessFunction", "(", ")", ";"], "File": "JVMIRDecorator", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87066, "Length": 19, "Cover_Rate": 0.5588235294117647} {"Template_token": ["", "DT", "=", "&", "getAnalysis", "<", "DominatorTreeWrapperPass", ">", "(", ")", ".", "getDomTree", "(", ")", ";"], "ground_truth": ["return", "ProcessFunction", "(", ")", ";"], "File": "JVMIRDecorator", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87067, "Length": 19, "Cover_Rate": 0.5588235294117647} {"Template_token": ["", "if", "(", "isa", "<", "GetElementPtrInst", ">", "(", "GEPPtr", ")", ")", "{", "SmallVector", "<", "Value", "*", ",", "", ">", "Indices", ";", "for", "(", "auto", "&", "Index", ":", "cast", "<", "GetElementPtrInst", ">", "(", "GEPPtr", ")", "->", "indices", "(", ")", ")", "Indices", ".", "push_back", "(", "Index", ")", ";"], "ground_truth": ["IRBuilder", "<", ">", "IRB", "(", "cast", "<", "Instruction", ">", "(", "GEPclone", ")", ")", ";"], "File": "JVMIRDecorator", "Func": "UniquifyGEPChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87068, "Length": 59, "Cover_Rate": 0.3881578947368421} {"Template_token": ["", "if", "(", "isa", "<", "GetElementPtrInst", ">", "(", "GEPPtr", ")", ")", "{", "SmallVector", "<", "Value", "*", ",", "", ">", "Indices", ";", "for", "(", "auto", "&", "Index", ":", "cast", "<", "GetElementPtrInst", ">", "(", "GEPPtr", ")", "->", "indices", "(", ")", ")", "Indices", ".", "push_back", "(", "Index", ")", ";"], "ground_truth": ["IRBuilder", "<", ">", "IRB", "(", "cast", "<", "Instruction", ">", "(", "GEPclone", ")", ")", ";"], "File": "JVMIRDecorator", "Func": "UniquifyGEPChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87069, "Length": 59, "Cover_Rate": 0.3881578947368421} {"Template_token": ["", "if", "(", "!", "isa", "<", "GetElementPtrInst", ">", "(", "User", ")", ")", "{", "WorkList", ".", "push_back", "(", "&", "II", ")", ";", "break", ";", "}", "}", "}", "for", "(", "auto", "*", "II", ":", "WorkList", ")", "{", "GetElementPtrInst", "*", "GEP", "=", "cast", "<", "GetElementPtrInst", ">", "(", "II", ")", ";", "if", "(", "GEP", "->", "use_empty", "(", ")", ")", "continue", ";", "SmallVector", "<", "Value", "*", ",", "", ">", "Indices", ";", "for", "(", "auto", "&", "Index", ":", "GEP", "->", "indices", "(", ")", ")", "Indices", ".", "push_back", "(", "Index", ")", ";", "Value", "*", "GEPclone", "=", "nullptr", ";", "SmallVector", "<", "std", "::", "pair", "<", "Instruction", "*", ",", "Value", "*", ">", ",", "", ">", "UserGEPClonePairVec", ";", "for", "(", "auto", "&", "Use", ":", "GEP", "->", "uses", "(", ")", ")", "{", "Instruction", "*", "UI", "=", "cast", "<", "Instruction", ">", "(", "Use", ".", "getUser", "(", ")", ")", ";", "IRBuilder", "<", ">", "IRB", "(", "UI", ")", ";", "GEPclone", "=", "IRB", ".", "CreateGEP", "(", "GEP", "->", "getPointerOperand", "(", ")", ",", "Indices", ")", ";", "UserGEPClonePairVec", ".", "push_back", "(", "std", "::", "make_pair", "(", "UI", ",", "GEPclone", ")", ")", ";", "}", "for", "(", "auto", "UserClonePair", ":", "UserGEPClonePairVec", ")", "{", "UserClonePair", ".", "first", "->", "replaceUsesOfWith", "(", "GEP", ",", "UserClonePair", ".", "second", ")", ";", "UniquifyGEPChain", "(", "GEP", ",", "UserClonePair", ".", "second", ")", ";", "}", "}"], "ground_truth": ["}"], "File": "JVMIRDecorator", "Func": "UniquifyGEPOperands", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87070, "Length": 207, "Cover_Rate": 0.7723880597014925} {"Template_token": ["", "for", "(", "auto", "&", "BB", ":", "*", "F", ")", "for", "(", "auto", "&", "II", ":", "BB", ")", "if", "(", "isa", "<", "GetElementPtrInst", ">", "(", "&", "II", ")", ")", "{", "for", "(", "auto", "*", "User", ":", "II", ".", "users", "(", ")", ")", "{", "if", "(", "!", "isa", "<", "GetElementPtrInst", ">", "(", "User", ")", ")", "{", "WorkList", ".", "push_back", "(", "&", "II", ")", ";", "break", ";", "}", "}", "}", "for", "(", "auto", "*", "II", ":", "WorkList", ")", "{", "GetElementPtrInst", "*", "GEP", "=", "cast", "<", "GetElementPtrInst", ">", "(", "II", ")", ";", "if", "(", "GEP", "->", "use_empty", "(", ")", ")", "continue", ";", "SmallVector", "<", "Value", "*", ",", "", ">", "Indices", ";", "for", "(", "auto", "&", "Index", ":", "GEP", "->", "indices", "(", ")", ")", "Indices", ".", "push_back", "(", "Index", ")", ";", "Value", "*", "GEPclone", "=", "nullptr", ";"], "ground_truth": ["SmallVector", "<", "std", "::", "pair", "<", "Instruction", "*", ",", "Value", "*", ">", ",", "", ">", "UserGEPClonePairVec", ";"], "File": "JVMIRDecorator", "Func": "UniquifyGEPOperands", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87071, "Length": 149, "Cover_Rate": 0.5559701492537313} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createISelDag", "(", "TargetMachine", "&", "TM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{"], "ground_truth": ["return", "new", "DAGToDAGISel", "(", "TM", ",", "OptLevel", ")", ";"], "File": "JVMISelDAGToDAG", "Func": "createJVMISelDag", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87073, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{"], "ground_truth": ["return", "", ";"], "File": "JVMISelDAGToDAG", "Func": "getPassName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87074, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "JVMISelDAGToDAG", "Func": "getPassName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87075, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "DAGToDAGISel", "(", "TargetMachine", "&", "tm", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", ":", "SelectionDAGISel", "(", "tm", ",", "OptLevel", ")", ",", "Subtarget", "(", "nullptr", ")", ",", "ForCodeSize", "(", "false", ")", "{"], "ground_truth": ["}"], "File": "JVMISelDAGToDAG", "Func": "JVMDAGToDAGISel", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87076, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "DAGToDAGISel", "(", "TargetMachine", "&", "tm", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", ":", "SelectionDAGISel", "(", "tm", ",", "OptLevel", ")", ",", "Subtarget", "(", "nullptr", ")", ",", "ForCodeSize", "(", "false", ")", "{"], "ground_truth": ["}"], "File": "JVMISelDAGToDAG", "Func": "JVMDAGToDAGISel", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87077, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "ForCodeSize", "=", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "OptimizeForSize", ")", "||", "MF", ".", "getFunction", "(", ")", ".", "hasFnAttribute", "(", "Attribute", "::", "MinSize", ")", ";", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "Subtarget", ">", "(", ")", ";", "FunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "FunctionInfo", ">", "(", ")", ";", "for", "(", "auto", "&", "STy", ":", "Cxt", ".", "getNamedStructTypes", "(", ")", ")", "MFI", "->", "addToTypeNameMap", "(", "STy", ".", "getValue", "(", ")", ")", ";", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "if", "(", "F", ".", "hasFnAttribute", "(", "Attribute", "::", "InstMethod", ")", ")", "{", "const", "Module", "*", "Mod", "=", "F", ".", "getParent", "(", ")", ";", "StringRef", "ModName", "=", "Mod", "->", "getName", "(", ")", ";", "const", "GlobalVariable", "*", "GCStructObj", "=", "Mod", "->", "getNamedGlobal", "(", "", ")", ";", "assert", "(", "GCStructObj", "&&", "", ")", ";"], "ground_truth": ["std", "::", "string", "ClassName", "=", "ModName", ".", "substr", "(", "", ",", "ModName", ".", "find", "(", "", ")", ")", ";"], "File": "JVMISelDAGToDAG", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87078, "Length": 157, "Cover_Rate": 0.7621359223300971} {"Template_token": ["", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "LLVM_DEBUG", "(", "errs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "", ")", ";", "Node", "->", "setNodeId", "(", "-", "", ")", ";", "return", ";", "}", "EVT", "VT", "=", "Node", "->", "getValueType", "(", "", ")", ";", "switch", "(", "Node", "->", "getOpcode", "(", ")", ")", "{"], "ground_truth": ["default", ":"], "File": "JVMISelDAGToDAG", "Func": "Select", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87079, "Length": 63, "Cover_Rate": 0.5478260869565217} {"Template_token": ["", "if", "(", "RepMap", ".", "find", "(", "N", ")", "==", "RepMap", ".", "end", "(", ")", ")", "{", "RepMap", "[", "N", "]", "=", "Replicator", "-", "", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "addNodeToReplicationMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87080, "Length": 26, "Cover_Rate": 0.5098039215686274} {"Template_token": ["", "static", "bool", "CallingConvSupported", "(", "CallingConv", "::", "ID", "CallConv", ")", "{"], "ground_truth": ["return", "CallConv", "==", "CallingConv", "::", "C", ";"], "File": "JVMISelLowering", "Func": "CallingConvSupported", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87081, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "bool", "TargetLowering", "::", "CanLowerReturn", "(", "CallingConv", "::", "ID", ",", "MachineFunction", "&", ",", "bool", ",", "const", "SmallVectorImpl", "<", "", ">", "&", "Outs", ",", "LLVMContext", "&", ")", "const", "{"], "ground_truth": ["return", "Outs", ".", "size", "(", ")", "<=", "", ";"], "File": "JVMISelLowering", "Func": "CanLowerReturn", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87083, "Length": 36, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "void", "TargetLowering", "::", "clearAuxiliaryData", "(", ")", "{", "RepMap", ".", "clear", "(", ")", ";", "Replicator", "=", "", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "clearAuxiliaryData", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87087, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "const", "AllocaInst", "*", "AI", "=", "cast", "<", "const", "AllocaInst", ">", "(", "&", "I", ")", ";", "SDValue", "ArrSz", "=", "SDB", "->", "getValue", "(", "AI", "->", "getArraySize", "(", ")", ")", ";", "EVT", "VTs", "[", "]", "=", "{", "CompVT", ",", "", "}", ";", "SDValue", "Ops", "[", "]", "=", "{", "SDB", "->", "getRoot", "(", ")", ",", "ArrSz", ",", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "", ")", "}", ";", "SDValue", "DSA", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VTs", ",", "Ops", ")", ";", "Type", "*", "AllocatedTy", "=", "AI", "->", "getAllocatedType", "(", ")", ";", "MFI", "->", "addToNodeTypeMap", "(", "DSA", ".", "getNode", "(", ")", ",", "AllocatedTy", ")", ";", "if", "(", "isa", "<", "StructType", ">", "(", "AllocatedTy", ")", ")", "MFI", "->", "addToTypeNameMap", "(", "AllocatedTy", ")", ";"], "ground_truth": ["DAG", ".", "setRoot", "(", "DSA", ".", "getValue", "(", "", ")", ")", ";"], "File": "JVMISelLowering", "Func": "createAllocationMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87088, "Length": 134, "Cover_Rate": 0.6767676767676768} {"Template_token": ["", "SDValue", "TargetLowering", "::", "createAllocationMacros", "(", "SelectionDAGBuilder", "*", "SDB", ",", "const", "User", "&", "I", ",", "const", "SDLoc", "&", "DL", ")", "const", "{", "SelectionDAG", "&", "DAG", "=", "SDB", "->", "DAG", ";", "FunctionInfo", "*", "MFI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getInfo", "<", "FunctionInfo", ">", "(", ")", ";", "EVT", "CompVT", "(", "", ")", ";", "const", "AllocaInst", "*", "AI", "=", "cast", "<", "const", "AllocaInst", ">", "(", "&", "I", ")", ";", "SDValue", "ArrSz", "=", "SDB", "->", "getValue", "(", "AI", "->", "getArraySize", "(", ")", ")", ";", "EVT", "VTs", "[", "]", "=", "{", "CompVT", ",", "", "}", ";", "SDValue", "Ops", "[", "]", "=", "{", "SDB", "->", "getRoot", "(", ")", ",", "ArrSz", ",", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "", ")", "}", ";", "SDValue", "DSA", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VTs", ",", "Ops", ")", ";", "Type", "*", "AllocatedTy", "=", "AI", "->", "getAllocatedType", "(", ")", ";"], "ground_truth": ["MFI", "->", "addToNodeTypeMap", "(", "DSA", ".", "getNode", "(", ")", ",", "AllocatedTy", ")", ";"], "File": "JVMISelLowering", "Func": "createAllocationMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87089, "Length": 157, "Cover_Rate": 0.7929292929292929} {"Template_token": ["", "GTI", "!=", "E", ";", "++", "GTI", ")", "{", "NumIndices", "--", ";", "const", "Value", "*", "Idx", "=", "GTI", ".", "getOperand", "(", ")", ";", "Type", "*", "IdxTy", "=", "GTI", ".", "getIndexedType", "(", ")", ";", "if", "(", "NextIndex", "==", "ARRAY_REF", "||", "NextIndex", "==", "STRUCT_REF", ")", "{", "unsigned", "NodeOpcode", "=", "NextIndex", "==", "STRUCT_REF", "?", "", ":", "", ";", "IsInChain", "|=", "", "<<", "", ";", "IsInChain", "|=", "(", "", "==", "NumIndices", ")", "<<", "", ";", "SDValue", "InChainUse", "=", "DAG", ".", "getConstant", "(", "IsInChain", ",", "dl", ",", "", ")", ";", "IsInChain", "&=", "~", "", ";", "SDValue", "Ops", "[", "]", "=", "{", "SDB", "->", "getRoot", "(", ")", ",", "N", ",", "SDB", "->", "getValue", "(", "Idx", ")", ",", "InChainUse", "}", ";", "if", "(", "isa", "<", "CompositeType", ">", "(", "IdxTy", ")", ")", "{", "EVT", "VTs", "[", "]", "=", "{", "", ",", "", "}", ";", "N", "=", "DAG", ".", "getNode", "(", "NodeOpcode", ",", "dl", ",", "VTs", ",", "Ops", ")", ";", "SDNodeFlags", "Flags", "=", "N", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ";", "Flags", ".", "setIsComposite", "(", "true", ")", ";", "N", ".", "getNode", "(", ")", "->", "setFlags", "(", "Flags", ")", ";", "}", "else", "{", "EVT", "IdxVT", "=", "getValueType", "(", "DL", ",", "IdxTy", ")", ";"], "ground_truth": ["EVT", "VTs", "[", "]", "=", "{", "IdxVT", ",", "", "}", ";"], "File": "JVMISelLowering", "Func": "createCompositeMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87090, "Length": 205, "Cover_Rate": 0.35223367697594504} {"Template_token": ["", "FunctionInfo", "*", "MFI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getInfo", "<", "FunctionInfo", ">", "(", ")", ";", "PointerType", "*", "MemPtr", "=", "cast", "<", "PointerType", ">", "(", "PtrVal", "->", "getType", "(", ")", ")", ";", "assert", "(", "isa", "<", "StructType", ">", "(", "MemPtr", "->", "getElementType", "(", ")", ")", "||", "isa", "<", "ArrayType", ">", "(", "MemPtr", "->", "getElementType", "(", ")", ")", ")", ";", "int", "NumIndices", "=", "cast", "<", "GetElementPtrInst", ">", "(", "&", "I", ")", "->", "getNumIndices", "(", ")", ";", "int", "IsInChain", "=", "!", "isa", "<", "GetElementPtrInst", ">", "(", "PtrVal", ")", ";", "for", "(", "gep_type_iterator", "GTI", "=", "gep_type_begin", "(", "&", "I", ")", ",", "E", "=", "gep_type_end", "(", "&", "I", ")", ";", "GTI", "!=", "E", ";", "++", "GTI", ")", "{", "NumIndices", "--", ";", "const", "Value", "*", "Idx", "=", "GTI", ".", "getOperand", "(", ")", ";", "Type", "*", "IdxTy", "=", "GTI", ".", "getIndexedType", "(", ")", ";", "if", "(", "NextIndex", "==", "ARRAY_REF", "||", "NextIndex", "==", "STRUCT_REF", ")", "{", "unsigned", "NodeOpcode", "=", "NextIndex", "==", "STRUCT_REF", "?", "", ":", "", ";", "IsInChain", "|=", "", "<<", "", ";", "IsInChain", "|=", "(", "", "==", "NumIndices", ")", "<<", "", ";", "SDValue", "InChainUse", "=", "DAG", ".", "getConstant", "(", "IsInChain", ",", "dl", ",", "", ")", ";", "IsInChain", "&=", "~", "", ";", "SDValue", "Ops", "[", "]", "=", "{", "SDB", "->", "getRoot", "(", ")", ",", "N", ",", "SDB", "->", "getValue", "(", "Idx", ")", ",", "InChainUse", "}", ";", "if", "(", "isa", "<", "CompositeType", ">", "(", "IdxTy", ")", ")", "{", "EVT", "VTs", "[", "]", "=", "{", "", ",", "", "}", ";"], "ground_truth": ["N", "=", "DAG", ".", "getNode", "(", "NodeOpcode", ",", "dl", ",", "VTs", ",", "Ops", ")", ";"], "File": "JVMISelLowering", "Func": "createCompositeMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87091, "Length": 257, "Cover_Rate": 0.4415807560137457} {"Template_token": ["", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "doNotCSE", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87092, "Length": 25, "Cover_Rate": 0.3125} {"Template_token": ["", "bool", "doNotPerformImplicitStaticAllocation", "(", ")", "const", "override", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "doNotPerformImplicitStaticAllocation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87093, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "DAG", ".", "getContext", "(", ")", "->", "diagnose", "(", "DiagnosticInfoUnsupported", "(", "MF", ".", "getFunction", "(", ")", ",", "msg", ",", "DL", ".", "getDebugLoc", "(", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "fail", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87094, "Length": 37, "Cover_Rate": 0.6607142857142857} {"Template_token": ["", "DAG", ".", "getContext", "(", ")", "->", "diagnose", "(", "DiagnosticInfoUnsupported", "(", "MF", ".", "getFunction", "(", ")", ",", "msg", ",", "DL", ".", "getDebugLoc", "(", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "fail", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87095, "Length": 27, "Cover_Rate": 0.48214285714285715} {"Template_token": ["", "auto", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";"], "ground_truth": ["MRI", ".", "freezeReservedRegs", "(", "MF", ")", ";"], "File": "JVMISelLowering", "Func": "finalizeLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87096, "Length": 17, "Cover_Rate": 0.5862068965517241} {"Template_token": ["", "auto", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";"], "ground_truth": ["MRI", ".", "freezeReservedRegs", "(", "MF", ")", ";"], "File": "JVMISelLowering", "Func": "finalizeLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87097, "Length": 17, "Cover_Rate": 0.5862068965517241} {"Template_token": ["", "SDValue", "Chain", "=", "Alloc", ".", "getValue", "(", "", ")", ";", "EVT", "DupVTs", "[", "]", "=", "{", "Alloc", ".", "getValueType", "(", ")", ",", "", "}", ";", "SDValue", "DupOps", "[", "]", "=", "{", "Chain", ",", "Alloc", "}", ";", "SDValue", "Dup", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "DupVTs", ",", "DupOps", ")", ";", "Chain", "=", "Dup", ".", "getValue", "(", "", ")", ";"], "ground_truth": ["std", "::", "string", "MethodDescStr", "=", "MFI", "->", "getFromTypeNameMap", "(", "AllocatedTy", ")", ";"], "File": "JVMISelLowering", "Func": "GenConstructorCallSequence", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87098, "Length": 73, "Cover_Rate": 0.35609756097560974} {"Template_token": ["", "bool", "generateAllocationMacros", "(", ")", "const", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "generateAllocationMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87099, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "generateAllocationMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87100, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "bool", "generateCompositeMacros", "(", ")", "const", "override", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "generateCompositeMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87101, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "generateCompositeMacros", "(", ")", "const", "override", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "generateCompositeMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87102, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "SDValue", "Chain", "=", "Mem", ".", "getValue", "(", "", ")", ";", "EVT", "AllocStoreVTs", "[", "]", "=", "{", "Mem", ".", "getValueType", "(", ")", ",", "", "}", ";", "SDValue", "AllocStoreOps", "[", "]", "=", "{", "Chain", ",", "Mem", "}", ";", "SDValue", "AllocStore", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "AllocStoreVTs", ",", "AllocStoreOps", ")", ";", "SDNodeFlags", "Flags", "=", "AllocStore", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ";"], "ground_truth": ["Flags", ".", "setIsComposite", "(", "isComposite", ")", ";"], "File": "JVMISelLowering", "Func": "GenStoreForAllocatedMem", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87103, "Length": 72, "Cover_Rate": 0.5217391304347826} {"Template_token": ["", "assert", "(", "Mem", ".", "getNode", "(", ")", "->", "getValueType", "(", "Mem", ".", "getNode", "(", ")", "->", "getNumValues", "(", ")", "-", "", ")", "==", "", ")", ";", "SDValue", "Chain", "=", "Mem", ".", "getValue", "(", "", ")", ";", "EVT", "AllocStoreVTs", "[", "]", "=", "{", "Mem", ".", "getValueType", "(", ")", ",", "", "}", ";", "SDValue", "AllocStoreOps", "[", "]", "=", "{", "Chain", ",", "Mem", "}", ";", "SDValue", "AllocStore", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "AllocStoreVTs", ",", "AllocStoreOps", ")", ";", "SDNodeFlags", "Flags", "=", "AllocStore", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ";", "Flags", ".", "setIsComposite", "(", "isComposite", ")", ";", "AllocStore", ".", "getNode", "(", ")", "->", "setFlags", "(", "Flags", ")", ";"], "ground_truth": ["return", "AllocStore", ";"], "File": "JVMISelLowering", "Func": "GenStoreForAllocatedMem", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87104, "Length": 112, "Cover_Rate": 0.8115942028985508} {"Template_token": ["", "unsigned", "N", "=", "Node", "->", "getNumValues", "(", ")", ";"], "ground_truth": ["while", "(", "N", "&&", "Node", "->", "getValueType", "(", "N", "-", "", ")", "==", "", ")", "--", "N", ";"], "File": "JVMISelLowering", "Func": "GetChainOperandNumFromValue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87105, "Length": 27, "Cover_Rate": 0.36486486486486486} {"Template_token": ["", "static", "SDValue", "GetFieldSpecDescID", "(", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SDValue", "&", "Obj", ",", "SDValue", "&", "Idx", ")", "{", "FunctionInfo", "*", "MFI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getInfo", "<", "FunctionInfo", ">", "(", ")", ";", "Type", "*", "ObjTy", "=", "MFI", "->", "getFromNodeTypeMap", "(", "Obj", ".", "getNode", "(", ")", ")", ";", "assert", "(", "ObjTy", "&&", "", ")", ";", "assert", "(", "isa", "<", "StructType", ">", "(", "ObjTy", ")", "&&", "", ")", ";", "assert", "(", "isa", "<", "ConstantSDNode", ">", "(", "Idx", ".", "getNode", "(", ")", ")", ")", ";", "uint64_t", "IdxNum", "=", "cast", "<", "ConstantSDNode", ">", "(", "Idx", ".", "getNode", "(", ")", ")", "->", "getZExtValue", "(", ")", ";", "Type", "*", "FTy", "=", "cast", "<", "StructType", ">", "(", "ObjTy", ")", "->", "getElementType", "(", "(", "unsigned", ")", "IdxNum", ")", ";", "char", "fbuff", "[", "", "]", "=", "{", "'\\0'", "}", ";", "sprintf", "(", "fbuff", ",", "", ",", "IdxNum", ")", ";", "std", "::", "string", "FieldSpec", "=", "MFI", "->", "getFromTypeNameMap", "(", "ObjTy", ")", ";", "FieldSpec", "+=", "", ";", "FieldSpec", "+=", "fbuff", ";", "FieldSpec", "+=", "", ";", "MFI", "->", "getTypeDescriptor", "(", "FTy", ",", "FieldSpec", ")", ";", "unsigned", "DescID", "=", "MFI", "->", "addToDescriptorIDMap", "(", "FieldSpec", ")", ";", "return", "DAG", ".", "getConstant", "(", "DescID", ",", "DL", ",", "", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "GetFieldSpecDescID", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87106, "Length": 202, "Cover_Rate": 0.9901960784313726} {"Template_token": ["", "FunctionInfo", "*", "MFI", "=", "DAG", ".", "getMachineFunction", "(", ")", ".", "getInfo", "<", "FunctionInfo", ">", "(", ")", ";", "Type", "*", "ObjTy", "=", "MFI", "->", "getFromNodeTypeMap", "(", "Obj", ".", "getNode", "(", ")", ")", ";", "assert", "(", "ObjTy", "&&", "", ")", ";", "assert", "(", "isa", "<", "StructType", ">", "(", "ObjTy", ")", "&&", "", ")", ";", "assert", "(", "isa", "<", "ConstantSDNode", ">", "(", "Idx", ".", "getNode", "(", ")", ")", ")", ";", "uint64_t", "IdxNum", "=", "cast", "<", "ConstantSDNode", ">", "(", "Idx", ".", "getNode", "(", ")", ")", "->", "getZExtValue", "(", ")", ";"], "ground_truth": ["Type", "*", "FTy", "=", "cast", "<", "StructType", ">", "(", "ObjTy", ")", "->", "getElementType", "(", "(", "unsigned", ")", "IdxNum", ")", ";"], "File": "JVMISelLowering", "Func": "GetFieldSpecDescID", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87107, "Length": 106, "Cover_Rate": 0.5196078431372549} {"Template_token": ["", "if", "(", "VT", ".", "isInteger", "(", ")", "||", "VT", ".", "isFloatingPoint", "(", ")", ")", "return", "withChain", "?", "", ":", "", ";", "else", "llvm_unreachable", "(", "", ")", ";", "return", "", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "GetLoadOpcode", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87108, "Length": 31, "Cover_Rate": 0.62} {"Template_token": ["", "int", "TargetLowering", "::", "getNodeReplicatorCounter", "(", "unsigned", "Opcode", ",", "SDNode", "*", "N", ")", "{", "assert", "(", "doNotCSE", "(", "Opcode", ")", "&&", "", ")", ";", "if", "(", "N", "&&", "RepMap", ".", "find", "(", "N", ")", "!=", "RepMap", ".", "end", "(", ")", ")", "return", "RepMap", "[", "N", "]", ";", "return", "Replicator", "++", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "getNodeReplicatorCounter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87109, "Length": 51, "Cover_Rate": 1.0} {"Template_token": ["", "SDUse", "&", "Use", "=", "itr", ".", "getUse", "(", ")", ";", "if", "(", "CompRefNode", "!=", "Use", ".", "getUser", "(", ")", "&&", "Use", ".", "getValueType", "(", ")", "!=", "", ")", "{"], "ground_truth": ["User", "=", "*", "itr", ";"], "File": "JVMISelLowering", "Func": "GetRefUse", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87110, "Length": 34, "Cover_Rate": 0.3469387755102041} {"Template_token": ["", "return", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "IsCompositeRef", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87111, "Length": 22, "Cover_Rate": 0.55} {"Template_token": ["", "default", ":", "return", "false", ";", "case", "", ":", "case", "", ":", "case", "", ":", "return", "true", ";", "}"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "IsLoadLike", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87113, "Length": 19, "Cover_Rate": 0.5135135135135135} {"Template_token": ["", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "false", ";", "case", "", ":", "{", "SDValue", "Ptr", "=", "Opr", ".", "getOperand", "(", "", ")", ";", "return", "!", "Ptr", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ".", "hasIsAbsorptionCandidate", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "IsLoadOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87114, "Length": 41, "Cover_Rate": 0.5540540540540541} {"Template_token": ["", "SDValue", "Ptr", "=", "Opr", ".", "getOperand", "(", "", ")", ";", "return", "!", "Ptr", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ".", "hasIsAbsorptionCandidate", "(", ")", ";", "}"], "ground_truth": ["case", "", ":"], "File": "JVMISelLowering", "Func": "IsLoadOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87115, "Length": 30, "Cover_Rate": 0.40540540540540543} {"Template_token": ["", "bool", "isSuitableForJumpTable", "(", "const", "SwitchInst", "*", "SI", ",", "uint64_t", "NumCases", ",", "uint64_t", "Range", ")", "const", "override", "{"], "ground_truth": ["return", "false", ";"], "File": "JVMISelLowering", "Func": "isSuitableForJumpTable", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87116, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "setSchedulingPreference", "(", "Sched", "::", "RegPressure", ")", ";", "addRegisterClass", "(", "", ",", "&", "", ")", ";", "addRegisterClass", "(", "", ",", "&", "", ")", ";", "addRegisterClass", "(", "", ",", "&", "", ")", ";", "addRegisterClass", "(", "", ",", "&", "", ")", ";", "addRegisterClass", "(", "", ",", "&", "", ")", ";", "addRegisterClass", "(", "", ",", "&", "", ")", ";", "computeRegisterProperties", "(", "Subtarget", "->", "getRegisterInfo", "(", ")", ")", ";", "for", "(", "auto", "T", ":", "{", "", ",", "", "}", ")", "for", "(", "unsigned", "Opc", "=", "", ";", "Opc", "<", "", ";", "++", "Opc", ")", "setOperationAction", "(", "Opc", ",", "T", ",", "Legal", ")", ";", "for", "(", "auto", "T", ":", "{", "", ",", "", ",", "", ",", "", ",", "", ",", "", "}", ")", "{", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "T", ",", "Custom", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "JVMTargetLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87118, "Length": 245, "Cover_Rate": 0.394524959742351} {"Template_token": ["", "static", "SDValue", "LoadOperand", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "DL", ",", "EVT", "VT", ",", "SDValue", "Val", ")", "{", "SDNodeFlags", "Flags", "=", "Val", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ";", "auto", "CompatibleLoad", "=", "[", "=", "]", "(", "SDValue", "Opr", ",", "EVT", "VT", ")", "->", "bool", "{", "if", "(", "IsLoadOperand", "(", "Opr", ")", "&&", "Opr", ".", "getValueType", "(", ")", "==", "VT", ")", "return", "true", ";", "else", "return", "false", ";", "}", ";"], "ground_truth": ["bool", "CanSkipF", "=", "(", "!", "Flags", ".", "hasIsAbsorptionCandidate", "(", ")", "&&", "(", "CompatibleLoad", "(", "Val", ",", "VT", ")", "||", "IsLoadLike", "(", "Val", ".", "getOpcode", "(", ")", ")", ")", ")", ";"], "File": "JVMISelLowering", "Func": "LoadOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87119, "Length": 103, "Cover_Rate": 0.7744360902255639} {"Template_token": ["", "assert", "(", "Vals", "[", "", "]", ".", "getValueType", "(", ")", "==", "", "&&", "VTs", "[", "", "]", "==", "", ")", ";", "SDNode", "*", "ValNode", "=", "Vals", "[", "", "]", ".", "getNode", "(", ")", ";", "SDNodeFlags", "Flags", "=", "ValNode", "->", "getFlags", "(", ")", ";", "auto", "CompatibleLoad", "=", "[", "=", "]", "(", "SDValue", "Opr", ",", "EVT", "VT", ")", "->", "bool", "{", "if", "(", "Opr", ".", "getOpcode", "(", ")", "==", "", "&&", "Opr", ".", "getValueType", "(", ")", "==", "VT", ")", "return", "true", ";"], "ground_truth": ["else", "return", "false", ";"], "File": "JVMISelLowering", "Func": "LoadOperandWCh", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87120, "Length": 84, "Cover_Rate": 0.3888888888888889} {"Template_token": ["", "LoadInp1", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Opr1", ")", ";", "LoadInp2", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Opr2", ")", ";", "if", "(", "isa", "<", "ConstantSDNode", ">", "(", "LoadInp1", ".", "getNode", "(", ")", ")", ")", "LoadInp1", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "", ",", "LoadInp1", ")", ";", "if", "(", "isa", "<", "ConstantSDNode", ">", "(", "LoadInp2", ".", "getNode", "(", ")", ")", ")", "LoadInp2", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "", ",", "LoadInp2", ")", ";"], "ground_truth": ["BinOp", "=", "DAG", ".", "getNode", "(", "LowerBinOp", ",", "DL", ",", "", ",", "{", "LoadInp1", ",", "LoadInp2", "}", ")", ";"], "File": "JVMISelLowering", "Func": "LowerBinaryOp", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87121, "Length": 103, "Cover_Rate": 0.31402439024390244} {"Template_token": ["", "unsigned", "LowerBinOp", "=", "GetLowerBinaryOp", "(", "Op", ".", "getOpcode", "(", ")", ")", ";", "if", "(", "VT", "==", "", "||", "VT", "==", "", ")", "{", "LoadInp1", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Opr1", ")", ";", "LoadInp2", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Opr2", ")", ";", "if", "(", "isa", "<", "ConstantSDNode", ">", "(", "LoadInp1", ".", "getNode", "(", ")", ")", ")", "LoadInp1", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "", ",", "LoadInp1", ")", ";", "if", "(", "isa", "<", "ConstantSDNode", ">", "(", "LoadInp2", ".", "getNode", "(", ")", ")", ")", "LoadInp2", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "", ",", "LoadInp2", ")", ";", "BinOp", "=", "DAG", ".", "getNode", "(", "LowerBinOp", ",", "DL", ",", "", ",", "{", "LoadInp1", ",", "LoadInp2", "}", ")", ";", "}", "else", "{", "LoadInp1", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "Opr1", ".", "getValueType", "(", ")", ",", "Opr1", ")", ";", "LoadInp2", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "Opr2", ".", "getValueType", "(", ")", ",", "Opr2", ")", ";", "BinOp", "=", "DAG", ".", "getNode", "(", "LowerBinOp", ",", "DL", ",", "VT", ",", "{", "LoadInp1", ",", "LoadInp2", "}", ")", ";", "}", "TransferNodeFlagsWithGlue", "(", "Op", ",", "BinOp", ")", ";", "if", "(", "VT", "==", "", "||", "VT", "==", "", ")", "BinOp", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VT", ",", "BinOp", ")", ";", "return", "BinOp", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "LowerBinaryOp", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87122, "Length": 219, "Cover_Rate": 0.6676829268292683} {"Template_token": ["", "return", "", ";", "case", "", ":", "case", "", ":", "return", "", ";", "case", "", ":", "case", "", ":", "return", "", ";", "case", "", ":", "case", "", ":", "return", "", ";", "case", "", ":", "case", "", ":", "return", "", ";", "case", "", ":", "case", "", ":", "return", "", ";", "}", "}", ";", "SDValue", "Chain", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "CondNode", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "Opr1", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "Opr2", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "BBlock", "=", "Op", ".", "getOperand", "(", "", ")", ";", "EVT", "VT", "=", "Opr1", ".", "getValueType", "(", ")", ";", "SDValue", "LoadInp1", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "VT", ",", "Opr1", ")", ";", "SDValue", "LoadInp2", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "VT", ",", "Opr2", ")", ";", "", "CCode", "=", "cast", "<", "CondCodeSDNode", ">", "(", "CondNode", ".", "getNode", "(", ")", ")", "->", "get", "(", ")", ";", "if", "(", "VT", "==", "", ")", "{", "SDValue", "Ops", "[", "]", "=", "{", "LoadInp2", ",", "LoadInp1", "}", ";", "SDValue", "LCmp", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Ops", ")", ";", "LoadInp1", "=", "LCmp", ";", "LoadInp2", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "", ",", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "", ")", ")", ";", "CCode", "=", "GetNewCCode", "(", "CCode", ")", ";", "}", "CondNode", "=", "DAG", ".", "getConstant", "(", "CCode", ",", "DL", ",", "", ")", ";"], "ground_truth": ["SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "CondNode", ",", "LoadInp1", ",", "LoadInp2", ",", "BBlock", "}", ";"], "File": "JVMISelLowering", "Func": "LowerBR_CC", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87123, "Length": 255, "Cover_Rate": 0.6555269922879178} {"Template_token": ["", "SelectionDAG", "&", "DAG", "=", "CLI", ".", "DAG", ";", "const", "SDLoc", "DL", "=", "CLI", ".", "DL", ";", "SDValue", "Chain", "=", "CLI", ".", "Chain", ";", "SDValue", "Callee", "=", "CLI", ".", "Callee", ";", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "auto", "Layout", "=", "MF", ".", "getDataLayout", "(", ")", ";", "CallingConv", "::", "ID", "CallConv", "=", "CLI", ".", "CallConv", ";", "if", "(", "!", "CallingConvSupported", "(", "CallConv", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", "", ")", ";", "if", "(", "CLI", ".", "IsPatchPoint", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "SmallVectorImpl", "<", "", ">", "&", "Ins", "=", "CLI", ".", "Ins", ";", "if", "(", "Ins", ".", "size", "(", ")", ">", "", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "SmallVectorImpl", "<", "", ">", "&", "Outs", "=", "CLI", ".", "Outs", ";", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", "=", "CLI", ".", "OutVals", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "Outs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "const", "", "&", "Out", "=", "Outs", "[", "i", "]", ";", "SDValue", "&", "OutVal", "=", "OutVals", "[", "i", "]", ";", "EVT", "VT", "=", "OutVal", ".", "getValueType", "(", ")", ";", "if", "(", "Out", ".", "Flags", ".", "isNest", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "if", "(", "Out", ".", "Flags", ".", "isInAlloca", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "if", "(", "Out", ".", "Flags", ".", "isInConsecutiveRegs", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "if", "(", "Out", ".", "Flags", ".", "isInConsecutiveRegsLast", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "if", "(", "Out", ".", "Flags", ".", "isByVal", "(", ")", "&&", "Out", ".", "Flags", ".", "getByValSize", "(", ")", "!=", "", ")", "Chain", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VT", ",", "OutVal", ")", ";", "}", "bool", "IsVarArg", "=", "CLI", ".", "IsVarArg", ";", "unsigned", "NumFixedArgs", "=", "CLI", ".", "NumFixedArgs", ";", "SmallVector", "<", "CCValAssign", ",", "", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "if", "(", "IsVarArg", ")", "{", "for", "(", "SDValue", "Arg", ":", "make_range", "(", "OutVals", ".", "begin", "(", ")", "+", "NumFixedArgs", ",", "OutVals", ".", "end", "(", ")", ")", ")", "{", "EVT", "VT", "=", "Arg", ".", "getValueType", "(", ")", ";", "assert", "(", "VT", "!=", "", "&&", "", ")", ";", "Type", "*", "Ty", "=", "VT", ".", "getTypeForEVT", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "unsigned", "Offset", "=", "CCInfo", ".", "AllocateStack", "(", "Layout", ".", "getTypeAllocSize", "(", "Ty", ")", ",", "Layout", ".", "getABITypeAlignment", "(", "Ty", ")", ")", ";", "CCInfo", ".", "addLoc", "(", "CCValAssign", "::", "getMem", "(", "ArgLocs", ".", "size", "(", ")", ",", "VT", ".", "getSimpleVT", "(", ")", ",", "Offset", ",", "VT", ".", "getSimpleVT", "(", ")", ",", "CCValAssign", "::", "Full", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "LowerCall", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87125, "Length": 462, "Cover_Rate": 0.6516220028208745} {"Template_token": ["", "SDValue", "LoadInp", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "", ",", "CondNode", ")", ";", "SDValue", "CondCode", "=", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "CondCode", ",", "LoadInp", ",", "BBlock", "}", ";", "SDValue", "BrConstcc", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Ops", ")", ";", "TransferNodeFlagsWithGlue", "(", "CondNode", ",", "BrConstcc", ")", ";"], "ground_truth": ["return", "BrConstcc", ";"], "File": "JVMISelLowering", "Func": "LowerConstantCondition", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87126, "Length": 69, "Cover_Rate": 0.5798319327731093} {"Template_token": ["", "assert", "(", "CondNode", ".", "getOpcode", "(", ")", "==", "", "&&", "", ")", ";", "SDValue", "LoadInp", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "", ",", "CondNode", ")", ";", "SDValue", "CondCode", "=", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "CondCode", ",", "LoadInp", ",", "BBlock", "}", ";", "SDValue", "BrConstcc", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Ops", ")", ";", "TransferNodeFlagsWithGlue", "(", "CondNode", ",", "BrConstcc", ")", ";", "return", "BrConstcc", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "LowerConstantCondition", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87127, "Length": 83, "Cover_Rate": 0.6974789915966386} {"Template_token": ["", "if", "(", "isa", "<", "ArrayType", ">", "(", "AllocatedTy", ")", ")", "{", "int", "IsClassArr", "=", "isa", "<", "StructType", ">", "(", "cast", "<", "ArrayType", ">", "(", "AllocatedTy", ")", "->", "getElementType", "(", ")", ")", ";", "int", "ArrSz", "=", "cast", "<", "ArrayType", ">", "(", "AllocatedTy", ")", "->", "getNumElements", "(", ")", ";", "SDValue", "ArrSzVal", "=", "DAG", ".", "getConstant", "(", "ArrSz", ",", "dl", ",", "", ")", ";", "EVT", "LoadVTs", "[", "]", "=", "{", "ArrSzVal", ".", "getValueType", "(", ")", ",", "", "}", ";", "SDValue", "LoadOps", "[", "]", "=", "{", "Chain", ",", "ArrSzVal", "}", ";", "LoadSz", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "LoadVTs", ",", "LoadOps", ")", ";", "Chain", "=", "LoadSz", ".", "getValue", "(", "", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "LoadSz", ",", "TypeStrID", ",", "DAG", ".", "getConstant", "(", "", ",", "dl", ",", "", ")", ",", "DAG", ".", "getConstant", "(", "IsClassArr", ",", "dl", ",", "", ")", "}", ";", "Alloc", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "VTs", ",", "Ops", ")", ";", "}", "else", "if", "(", "isa", "<", "StructType", ">", "(", "AllocatedTy", ")", ")", "{"], "ground_truth": ["SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "LoadSz", ",", "TypeStrID", ",", "DAG", ".", "getConstant", "(", "", ",", "dl", ",", "", ")", ",", "DAG", ".", "getConstant", "(", "", ",", "dl", ",", "", ")", "}", ";"], "File": "JVMISelLowering", "Func": "LowerDYNAMIC_STACKALLOC", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87128, "Length": 209, "Cover_Rate": 0.34775374376039936} {"Template_token": ["", "if", "(", "Op", ".", "getOpcode", "(", ")", "==", "", ")", "return", "Op0", ";"], "ground_truth": ["Op0", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "Op0", ".", "getValueType", "(", ")", ",", "Op0", ")", ";"], "File": "JVMISelLowering", "Func": "LowerEXTEND", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87129, "Length": 30, "Cover_Rate": 0.3488372093023256} {"Template_token": ["", "FunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "FunctionInfo", ">", "(", ")", ";", "MF", ".", "getRegInfo", "(", ")", ".", "addLiveIn", "(", "", ")", ";", "for", "(", "const", "", "&", "In", ":", "Ins", ")", "{", "if", "(", "In", ".", "Flags", ".", "isInAlloca", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "if", "(", "In", ".", "Flags", ".", "isNest", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "if", "(", "In", ".", "Flags", ".", "isInConsecutiveRegs", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "if", "(", "In", ".", "Flags", ".", "isInConsecutiveRegsLast", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "SDValue", "Arg", ";", "if", "(", "In", ".", "Used", ")", "{", "bool", "IsCompositeArg", "=", "In", ".", "Flags", ".", "isByVal", "(", ")", ";", "EVT", "ArgTy", "=", "IsCompositeArg", "?", "", ":", "In", ".", "VT", ";", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "ArgTy", ",", "DAG", ".", "getTargetConstant", "(", "InVals", ".", "size", "(", ")", ",", "DL", ",", "", ")", ")", ";", "SDNodeFlags", "Flags", "=", "Arg", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ";", "Flags", ".", "setIsComposite", "(", "IsCompositeArg", ")", ";", "Arg", ".", "getNode", "(", ")", "->", "setFlags", "(", "Flags", ")", ";", "}", "else", "{", "Arg", "=", "DAG", ".", "getUNDEF", "(", "In", ".", "VT", ")", ";", "}", "InVals", ".", "push_back", "(", "Arg", ")", ";", "MFI", "->", "incrimentArgumentCount", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "LowerFormalArguments", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87130, "Length": 230, "Cover_Rate": 0.7098765432098766} {"Template_token": ["", "static", "SDValue", "LowerGlobalAddress", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ",", "EVT", "PtrVT", ")", "{", "SDLoc", "DL", "(", "Op", ")", ";", "const", "GlobalValue", "*", "GV", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "Op", ")", "->", "getGlobal", "(", ")", ";", "return", "DAG", ".", "getTargetGlobalAddress", "(", "GV", ",", "DL", ",", "PtrVT", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "LowerGlobalAddress", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87131, "Length": 51, "Cover_Rate": 1.0} {"Template_token": ["", "SDLoc", "DL", "(", "Op", ")", ";"], "ground_truth": ["const", "GlobalValue", "*", "GV", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "Op", ")", "->", "getGlobal", "(", ")", ";"], "File": "JVMISelLowering", "Func": "LowerGlobalAddress", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87132, "Length": 23, "Cover_Rate": 0.45098039215686275} {"Template_token": ["", "assert", "(", "Op", ".", "getOperand", "(", "", ")", ".", "isUndef", "(", ")", "&&", "", ")", ";", "EVT", "VTs", "[", "]", "=", "{", "Op", ".", "getValueType", "(", ")", ",", "", "}", ";", "SDValue", "Ops", "[", "]", "=", "{", "Op", ".", "getOperand", "(", "", ")", ",", "Ptr", "}", ";"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VTs", ",", "Ops", ")", ";"], "File": "JVMISelLowering", "Func": "LowerLOAD", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87133, "Length": 61, "Cover_Rate": 0.48031496062992124} {"Template_token": ["", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "return", "LowerBinaryOp", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "LowerLOAD", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "LowerSTORE", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ",", "PtrVT", ")", ";", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "return", "LowerEXTEND", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "LowerTRUNCATE", "(", "Op", ",", "DAG", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "LowerOperation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87134, "Length": 111, "Cover_Rate": 0.4036363636363636} {"Template_token": ["", "else", "Chain", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Chain", ")", ";", "for", "(", "const", "", "&", "Out", ":", "Outs", ")", "{", "assert", "(", "!", "Out", ".", "Flags", ".", "isByVal", "(", ")", "&&", "", ")", ";", "assert", "(", "!", "Out", ".", "Flags", ".", "isNest", "(", ")", "&&", "", ")", ";", "assert", "(", "Out", ".", "IsFixed", "&&", "", ")", ";", "if", "(", "Out", ".", "Flags", ".", "isInAlloca", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "if", "(", "Out", ".", "Flags", ".", "isInConsecutiveRegs", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "if", "(", "Out", ".", "Flags", ".", "isInConsecutiveRegsLast", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "LowerReturn", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87135, "Length": 121, "Cover_Rate": 0.510548523206751} {"Template_token": ["", "for", "(", "const", "", "&", "Out", ":", "Outs", ")", "{", "assert", "(", "!", "Out", ".", "Flags", ".", "isByVal", "(", ")", "&&", "", ")", ";", "assert", "(", "!", "Out", ".", "Flags", ".", "isNest", "(", ")", "&&", "", ")", ";", "assert", "(", "Out", ".", "IsFixed", "&&", "", ")", ";", "if", "(", "Out", ".", "Flags", ".", "isInAlloca", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "if", "(", "Out", ".", "Flags", ".", "isInConsecutiveRegs", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "if", "(", "Out", ".", "Flags", ".", "isInConsecutiveRegsLast", "(", ")", ")", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "LowerReturn", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87136, "Length": 105, "Cover_Rate": 0.4430379746835443} {"Template_token": ["", "}", "assert", "(", "Op", ".", "getOperand", "(", "", ")", ".", "isUndef", "(", ")", "&&", "", ")", ";", "SDValue", "LoadVal", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "Val", ".", "getValueType", "(", ")", ",", "Val", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "LoadVal", ",", "Ptr", "}", ";"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Ops", ")", ";"], "File": "JVMISelLowering", "Func": "LowerSTORE", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87137, "Length": 62, "Cover_Rate": 0.4217687074829932} {"Template_token": ["", "assert", "(", "AloadNode", "->", "getValueType", "(", "AloadNode", "->", "getNumValues", "(", ")", "-", "", ")", "==", "", "&&", "", ")", ";", "EVT", "VTs", "[", "]", "=", "{", "Use", ".", "getOperand", "(", "", ")", ".", "getValueType", "(", ")", ",", "", "}", ";", "SDValue", "StoreSrc", "[", "]", "=", "{", "Chain", ",", "Use", ".", "getOperand", "(", "", ")", "}", ";", "SDValue", "SrcLoad", "=", "LoadOperandWCh", "(", "DAG", ",", "DL", ",", "VTs", ",", "StoreSrc", ")", ";", "TransferNodeFlags", "(", "Use", ".", "getOperand", "(", "", ")", ",", "SrcLoad", ")", ";", "SDValue", "Opr", "[", "]", "=", "{", "SrcLoad", ".", "getValue", "(", "", ")", ",", "Aload", ",", "SrcLoad", ",", "DescID", "}", ";", "FieldAcc", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Opr", ")", ";", "TransferNodeFlags", "(", "Op", ",", "FieldAcc", ")", ";", "}", "else", "{", "EVT", "VTs", "[", "]", "=", "{", "Op", ".", "getValueType", "(", ")", ",", "", "}", ";", "SDValue", "Opr", "[", "]", "=", "{", "Chain", ",", "Aload", ",", "DescID", "}", ";", "FieldAcc", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VTs", ",", "Opr", ")", ";", "Chain", "=", "FieldAcc", ".", "getValue", "(", "", ")", ";", "TransferNodeFlags", "(", "Op", ",", "FieldAcc", ")", ";"], "ground_truth": ["if", "(", "Use", ".", "getOpcode", "(", ")", "==", "", ")", "{"], "File": "JVMISelLowering", "Func": "LowerSTRUCT_REF", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87138, "Length": 197, "Cover_Rate": 0.3157051282051282} {"Template_token": ["", "SDValue", "Use", "=", "GetRefUse", "(", "Op", ")", ";", "SDValue", "Aload", "=", "Obj", ";", "if", "(", "IS_START_OF_CHAIN", "(", "InChainUseFlag", ")", ")", "{", "EVT", "VTs", "[", "]", "=", "{", "", ",", "", "}", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "Obj", "}", ";", "Aload", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VTs", ",", "Ops", ")", ";", "SDNodeFlags", "Flags", "=", "Aload", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ";", "Flags", ".", "setIsComposite", "(", "true", ")", ";", "Aload", ".", "getNode", "(", ")", "->", "setFlags", "(", "Flags", ")", ";", "Chain", "=", "Aload", ".", "getValue", "(", "", ")", ";", "}", "SDValue", "DescID", "=", "GetFieldSpecDescID", "(", "DL", ",", "DAG", ",", "Obj", ",", "Idx", ")", ";", "SDNodeFlags", "Flags", "=", "Op", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ";", "Idx", ".", "getNode", "(", ")", "->", "setFlags", "(", "Flags", ")", ";", "SDValue", "FieldAcc", ";", "if", "(", "Use", ".", "getOpcode", "(", ")", "==", "", ")", "{", "SDNode", "*", "AloadNode", "=", "Aload", ".", "getNode", "(", ")", ";", "assert", "(", "AloadNode", "->", "getValueType", "(", "AloadNode", "->", "getNumValues", "(", ")", "-", "", ")", "==", "", "&&", "", ")", ";", "EVT", "VTs", "[", "]", "=", "{", "Use", ".", "getOperand", "(", "", ")", ".", "getValueType", "(", ")", ",", "", "}", ";", "SDValue", "StoreSrc", "[", "]", "=", "{", "Chain", ",", "Use", ".", "getOperand", "(", "", ")", "}", ";", "SDValue", "SrcLoad", "=", "LoadOperandWCh", "(", "DAG", ",", "DL", ",", "VTs", ",", "StoreSrc", ")", ";", "TransferNodeFlags", "(", "Use", ".", "getOperand", "(", "", ")", ",", "SrcLoad", ")", ";", "SDValue", "Opr", "[", "]", "=", "{", "SrcLoad", ".", "getValue", "(", "", ")", ",", "Aload", ",", "SrcLoad", ",", "DescID", "}", ";", "FieldAcc", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Opr", ")", ";", "TransferNodeFlags", "(", "Op", ",", "FieldAcc", ")", ";", "}", "else", "{", "EVT", "VTs", "[", "]", "=", "{", "Op", ".", "getValueType", "(", ")", ",", "", "}", ";", "SDValue", "Opr", "[", "]", "=", "{", "Chain", ",", "Aload", ",", "DescID", "}", ";", "FieldAcc", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VTs", ",", "Opr", ")", ";", "Chain", "=", "FieldAcc", ".", "getValue", "(", "", ")", ";", "TransferNodeFlags", "(", "Op", ",", "FieldAcc", ")", ";", "if", "(", "Use", ".", "getOpcode", "(", ")", "==", "", ")", "{", "EVT", "StoreVTs", "[", "]", "=", "{", "FieldAcc", ".", "getValueType", "(", ")", ",", "", "}", ";", "SDValue", "StoreOps", "[", "]", "=", "{", "Chain", ",", "FieldAcc", "}", ";", "FieldAcc", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "StoreVTs", ",", "StoreOps", ")", ";", "Chain", "=", "FieldAcc", ".", "getValue", "(", "", ")", ";", "SDNodeFlags", "Flags", ";", "Flags", ".", "setIsComposite", "(", "Op", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ".", "hasIsComposite", "(", ")", ")", ";", "FieldAcc", ".", "getNode", "(", ")", "->", "setFlags", "(", "Flags", ")", ";", "}", "}"], "ground_truth": ["if", "(", "Use", ".", "getOpcode", "(", ")", "==", "", "||", "Use", ".", "getOpcode", "(", ")", "==", "", ")", "ReplaceAllUsesOfValueAndChain", "(", "false", ",", "DAG", ",", "Use", ",", "FieldAcc", ")", ";"], "File": "JVMISelLowering", "Func": "LowerSTRUCT_REF", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87139, "Length": 472, "Cover_Rate": 0.7564102564102564} {"Template_token": ["", "EVT", "Op0VT", "=", "Op0", ".", "getValueType", "(", ")", ";", "EVT", "TruncVT", "=", "Op", ".", "getValueType", "(", ")", ";", "if", "(", "TruncVT", ".", "bitsLT", "(", "", ")", "&&", "Op0VT", ".", "bitsGT", "(", "", ")", ")", "{", "SDValue", "Load", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "Op0VT", ",", "Op0", ")", ";", "Op0", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "Load", ")", ";", "Op0VT", "=", "Op0", ".", "getValueType", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "LowerTRUNCATE", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87140, "Length": 75, "Cover_Rate": 0.49019607843137253} {"Template_token": ["", "return", "SDValue", "(", "N", ",", "", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "PerformDAGCombine", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87141, "Length": 9, "Cover_Rate": 0.375} {"Template_token": ["", "return", "SDValue", "(", "N", ",", "", ")", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "PerformDAGCombine", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87142, "Length": 9, "Cover_Rate": 0.375} {"Template_token": ["", "NewChNum", "=", "GetChainOperandNumFromValue", "(", "New", ")", ";", "if", "(", "OldChNum", ">=", "", "&&", "NewChNum", ">=", "", ")", "DAG", ".", "ReplaceAllUsesOfValueWith", "(", "Old", ".", "getValue", "(", "OldChNum", ")", ",", "New", ".", "getValue", "(", "NewChNum", ")", ")", ";", "else", "if", "(", "OldChNum", ">=", "", ")", "{", "assert", "(", "Old", ".", "getOperand", "(", "", ")", ".", "getValueType", "(", ")", ".", "getSimpleVT", "(", ")", "==", "", ")", ";"], "ground_truth": ["SDValue", "OldParentCh", "=", "Old", ".", "getOperand", "(", "", ")", ";"], "File": "JVMISelLowering", "Func": "ReplaceAllUsesOfValueAndChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87143, "Length": 74, "Cover_Rate": 0.43023255813953487} {"Template_token": ["", "static", "void", "ReplaceAllUsesOfValueAndChain", "(", "bool", "RepOnlyChain", ",", "SelectionDAG", "&", "DAG", ",", "SDValue", "Old", ",", "SDValue", "New", ")", "{", "int", "OldChNum", ",", "NewChNum", ";", "if", "(", "false", "==", "RepOnlyChain", ")", "DAG", ".", "ReplaceAllUsesOfValueWith", "(", "Old", ",", "New", ")", ";", "OldChNum", "=", "GetChainOperandNumFromValue", "(", "Old", ")", ";", "NewChNum", "=", "GetChainOperandNumFromValue", "(", "New", ")", ";", "if", "(", "OldChNum", ">=", "", "&&", "NewChNum", ">=", "", ")", "DAG", ".", "ReplaceAllUsesOfValueWith", "(", "Old", ".", "getValue", "(", "OldChNum", ")", ",", "New", ".", "getValue", "(", "NewChNum", ")", ")", ";", "else", "if", "(", "OldChNum", ">=", "", ")", "{", "assert", "(", "Old", ".", "getOperand", "(", "", ")", ".", "getValueType", "(", ")", ".", "getSimpleVT", "(", ")", "==", "", ")", ";"], "ground_truth": ["SDValue", "OldParentCh", "=", "Old", ".", "getOperand", "(", "", ")", ";"], "File": "JVMISelLowering", "Func": "ReplaceAllUsesOfValueAndChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87144, "Length": 119, "Cover_Rate": 0.6918604651162791} {"Template_token": ["", "default", ":", "return", "false", ";", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMISelLowering", "Func": "skipDAGCombining", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87147, "Length": 42, "Cover_Rate": 0.525} {"Template_token": ["", "Flags", ".", "setGlueOperands", "(", "false", ")", ";"], "ground_truth": ["New", ".", "getNode", "(", ")", "->", "setFlags", "(", "Flags", ")", ";"], "File": "JVMISelLowering", "Func": "TransferNodeFlags", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87148, "Length": 18, "Cover_Rate": 0.4186046511627907} {"Template_token": ["", "SDNodeFlags", "Flags", "=", "Old", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ";"], "ground_truth": ["Flags", ".", "setGlueOperands", "(", "true", ")", ";"], "File": "JVMISelLowering", "Func": "TransferNodeFlagsWithGlue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87150, "Length": 20, "Cover_Rate": 0.46511627906976744} {"Template_token": ["", "return", "new", "LoadStoreEliminationOpt", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMLoadStoreEliminationOpt", "Func": "createJVMLoadStoreEliminationOpt", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87152, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "FunctionPass", "*", "createLoadStoreEliminationOpt", "(", ")", "{"], "ground_truth": ["return", "new", "LoadStoreEliminationOpt", "(", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "createJVMLoadStoreEliminationOpt", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87153, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "ground_truth": ["}"], "File": "JVMLoadStoreEliminationOpt", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87154, "Length": 18, "Cover_Rate": 0.6428571428571429} {"Template_token": ["", "void", "LoadStoreEliminationOpt", "::", "EnterScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87155, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "void", "LoadStoreEliminationOpt", "::", "ExitScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87156, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "unsigned", "Left", "=", "--", "OpenChildren", "[", "Parent", "]", ";", "if", "(", "Left", "!=", "", ")", "break", ";"], "ground_truth": ["ExitScope", "(", "Parent", "->", "getBlock", "(", ")", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "ExitScopeIfDone", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87158, "Length": 26, "Cover_Rate": 0.3132530120481928} {"Template_token": ["", "LoadStoreEliminationOpt", "(", ")", ":", "MachineFunctionPass", "(", "ID", ")", "{"], "ground_truth": ["initializeLoadStoreEliminationOptPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "JVMLoadStoreEliminationOpt", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87159, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "LoadStoreEliminationOpt", "(", ")", ":", "MachineFunctionPass", "(", "ID", ")", "{", "initializeLoadStoreEliminationOptPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMLoadStoreEliminationOpt", "Func": "JVMLoadStoreEliminationOpt", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87160, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "DenseMap", "<", "MachineDomTreeNode", "*", ",", "unsigned", ">", "OpenChildren", ";", "FunctionInfo", "*", "FuncInfo", "=", "MF", "->", "getInfo", "<", "FunctionInfo", ">", "(", ")", ";", "FuncInfo", "->", "setLocalsLimit", "(", "", ")", ";", "WorkList", ".", "push_back", "(", "Node", ")", ";", "do", "{", "Node", "=", "WorkList", ".", "pop_back_val", "(", ")", ";", "Scopes", ".", "push_back", "(", "Node", ")", ";", "const", "std", "::", "vector", "<", "MachineDomTreeNode", "*", ">", "&", "Children", "=", "Node", "->", "getChildren", "(", ")", ";", "OpenChildren", "[", "Node", "]", "=", "Children", ".", "size", "(", ")", ";"], "ground_truth": ["for", "(", "MachineDomTreeNode", "*", "Child", ":", "Children", ")", "WorkList", ".", "push_back", "(", "Child", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "PerformOptimization", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87161, "Length": 96, "Cover_Rate": 0.5549132947976878} {"Template_token": ["", "Scopes", ".", "push_back", "(", "Node", ")", ";", "const", "std", "::", "vector", "<", "MachineDomTreeNode", "*", ">", "&", "Children", "=", "Node", "->", "getChildren", "(", ")", ";", "OpenChildren", "[", "Node", "]", "=", "Children", ".", "size", "(", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Child", ":", "Children", ")", "WorkList", ".", "push_back", "(", "Child", ")", ";", "}", "while", "(", "!", "WorkList", ".", "empty", "(", ")", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Node", ":", "Scopes", ")", "{"], "ground_truth": ["MachineBasicBlock", "*", "MBB", "=", "Node", "->", "getBlock", "(", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "PerformOptimization", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87162, "Length": 80, "Cover_Rate": 0.4624277456647399} {"Template_token": ["", "if", "(", "!", "llvm", "::", "isStoreCandidate", "(", "*", "MI", ")", ")", "continue", ";", "unsigned", "NumDefs", "=", "MI", "->", "getDesc", "(", ")", ".", "getNumDefs", "(", ")", ";", "if", "(", "", "!=", "NumDefs", ")", "continue", ";", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "MO", ".", "isImplicit", "(", ")", ")", "continue", ";", "if", "(", "!", "MRI", "->", "hasOneUse", "(", "MO", ".", "getReg", "(", ")", ")", ")", "continue", ";", "MachineInstr", "&", "UseMI", "=", "*", "MRI", "->", "use_instr_begin", "(", "MO", ".", "getReg", "(", ")", ")", ";"], "ground_truth": ["if", "(", "!", "", "(", "UseMI", ".", "getOpcode", "(", ")", ")", "||", "&", "UseMI", "!=", "MI", "->", "getNextNode", "(", ")", ")", "continue", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "ProcessBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87163, "Length": 117, "Cover_Rate": 0.42391304347826086} {"Template_token": ["", "bool", "LoadStoreEliminationOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MFN", ")", "{", "MF", "=", "&", "MFN", ";", "TII", "=", "static_cast", "<", "const", "InstrInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";"], "ground_truth": ["TRI", "=", "static_cast", "<", "const", "RegisterInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87164, "Length": 55, "Cover_Rate": 0.5729166666666666} {"Template_token": ["", "MF", "=", "&", "MFN", ";", "TII", "=", "static_cast", "<", "const", "InstrInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "static_cast", "<", "const", "RegisterInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ")", ";", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "PerformOptimization", "(", "DT", "->", "getRootNode", "(", ")", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMLoadStoreEliminationOpt", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87165, "Length": 86, "Cover_Rate": 0.8958333333333334} {"Template_token": ["", "void", "LowerMemoryIntrinsics", "::", "AddToLazyDeletionSet", "(", "User", "*", "Elm", ")", "{"], "ground_truth": ["if", "(", "DeletionSet", ".", "find", "(", "Elm", ")", "==", "DeletionSet", ".", "end", "(", ")", ")", "DeletionSet", ".", "insert", "(", "Elm", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "AddToLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87167, "Length": 32, "Cover_Rate": 0.9696969696969697} {"Template_token": ["", "Offset", "=", "Offset", "%", "ElmSz", ";", "return", "CheckForPartialElementAccess", "(", "ElemTy", ",", "Offset", ")", ";", "}", "else", "return", "", "!=", "(", "Offset", "%", "ElmSz", ")", ";", "}", "else", "if", "(", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", "{", "const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "cast", "<", "StructType", ">", "(", "Ty", ")", ")", ";", "unsigned", "FldIdx", "=", "SL", "->", "getElementContainingOffset", "(", "Offset", ")", ";", "Type", "*", "FldTy", "=", "cast", "<", "StructType", ">", "(", "Ty", ")", "->", "getTypeAtIndex", "(", "FldIdx", ")", ";", "if", "(", "isa", "<", "CompositeType", ">", "(", "FldTy", ")", ")", "{", "Offset", "-=", "SL", "->", "getElementOffset", "(", "FldIdx", ")", ";", "return", "CheckForPartialElementAccess", "(", "FldTy", ",", "Offset", ")", ";"], "ground_truth": ["}", "else", "return", "SL", "->", "getElementOffset", "(", "FldIdx", ")", "==", "Offset", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "CheckForPartialElementAccess", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87168, "Length": 123, "Cover_Rate": 0.5913461538461539} {"Template_token": ["", "Type", "*", "ElemTy", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ";", "unsigned", "ElmSz", "=", "DL", ".", "getTypeSizeInBits", "(", "ElemTy", ")", "/", "", ";", "if", "(", "isa", "<", "CompositeType", ">", "(", "ElemTy", ")", ")", "{", "Offset", "=", "Offset", "%", "ElmSz", ";", "return", "CheckForPartialElementAccess", "(", "ElemTy", ",", "Offset", ")", ";", "}", "else", "return", "", "!=", "(", "Offset", "%", "ElmSz", ")", ";", "}", "else", "if", "(", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", "{", "const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "cast", "<", "StructType", ">", "(", "Ty", ")", ")", ";", "unsigned", "FldIdx", "=", "SL", "->", "getElementContainingOffset", "(", "Offset", ")", ";", "Type", "*", "FldTy", "=", "cast", "<", "StructType", ">", "(", "Ty", ")", "->", "getTypeAtIndex", "(", "FldIdx", ")", ";", "if", "(", "isa", "<", "CompositeType", ">", "(", "FldTy", ")", ")", "{", "Offset", "-=", "SL", "->", "getElementOffset", "(", "FldIdx", ")", ";", "return", "CheckForPartialElementAccess", "(", "FldTy", ",", "Offset", ")", ";", "}", "else", "return", "SL", "->", "getElementOffset", "(", "FldIdx", ")", "==", "Offset", ";"], "ground_truth": ["}"], "File": "JVMLowerMemoryIntrinsics", "Func": "CheckForPartialElementAccess", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87169, "Length": 163, "Cover_Rate": 0.7836538461538461} {"Template_token": ["", "return", "new", "LowerMemoryIntrinsics", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMLowerMemoryIntrinsics", "Func": "createJVMLowerMemoryIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87170, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "Mask", ".", "setBits", "(", "CurrDstOffset", "+", "WindowSz", ",", "DstSz", ")", ";", "return", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "Mask", ".", "getZExtValue", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetDstMask", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87172, "Length": 26, "Cover_Rate": 0.3023255813953488} {"Template_token": ["", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "Value", "*", "NextGep", "=", "llvm", "::", "GetNextGEP", "(", "DL", ",", "IRB", ",", "TargetIdxTy", ",", "V", ",", "Padding", ")", ";", "if", "(", "IsSrcGep", ")", "CurrDstOffset", "+=", "Padding", ";"], "ground_truth": ["else", "CurrSrcOffset", "+=", "Padding", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetNextGep", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87173, "Length": 47, "Cover_Rate": 0.5280898876404494} {"Template_token": ["", "Value", "*", "LowerMemoryIntrinsics", "::", "GetNextGep", "(", "IRBuilder", "<", ">", "&", "IRB", ",", "Value", "*", "V", ",", "bool", "IsSrcGep", ")", "{", "unsigned", "Padding", "=", "", ";", "assert", "(", "isa", "<", "GetElementPtrInst", ">", "(", "V", ")", "&&", "", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";"], "ground_truth": ["Value", "*", "NextGep", "=", "llvm", "::", "GetNextGEP", "(", "DL", ",", "IRB", ",", "TargetIdxTy", ",", "V", ",", "Padding", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetNextGep", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87174, "Length": 72, "Cover_Rate": 0.8089887640449438} {"Template_token": ["", "Value", "*", "LowerMemoryIntrinsics", "::", "GetNextSrcGep", "(", "IRBuilder", "<", ">", "&", "IRB", ")", "{", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "unsigned", "SrcSz", "=", "DL", ".", "getTypeSizeInBits", "(", "GetRootType", "(", "CurrSrc", "->", "getType", "(", ")", ")", ")", ";", "if", "(", "CurrSrcOffset", "<", "SrcSz", ")", "return", "CurrSrc", ";", "CurrSrcOffset", "=", "", ";"], "ground_truth": ["return", "GetNextGep", "(", "IRB", ",", "CurrSrc", ",", "false", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetNextSrcGep", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87175, "Length": 68, "Cover_Rate": 0.9855072463768116} {"Template_token": ["", "Type", "*", "LowerMemoryIntrinsics", "::", "GetTypeAtOffset", "(", "Type", "*", "Ty", ",", "Value", "*", "*", "Offset", ")", "{", "if", "(", "!", "isa", "<", "ConstantInt", ">", "(", "*", "Offset", ")", ")", "return", "Ty", ";", "Ty", "=", "GetRootType", "(", "Ty", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "uint64_t", "OffsetVal", "=", "cast", "<", "ConstantInt", ">", "(", "*", "Offset", ")", "->", "getZExtValue", "(", ")", ";", "if", "(", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", "{", "const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "cast", "<", "StructType", ">", "(", "Ty", ")", ")", ";", "unsigned", "Field", "=", "SL", "->", "getElementContainingOffset", "(", "OffsetVal", ")", ";"], "ground_truth": ["uint64_t", "RemOffset", "=", "OffsetVal", "-", "SL", "->", "getElementOffset", "(", "Field", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetTypeAtOffset", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87176, "Length": 120, "Cover_Rate": 0.4878048780487805} {"Template_token": ["", "Type", "*", "ElmTy", "=", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ";", "uint64_t", "ElmSz", "=", "DL", ".", "getTypeSizeInBits", "(", "ElmTy", ")", "/", "", ";", "unsigned", "Index", "=", "OffsetVal", "/", "ElmSz", ";", "uint64_t", "RemOffset", "=", "(", "OffsetVal", ">", "Index", "*", "ElmSz", ")", "?", "OffsetVal", "-", "ElmSz", "*", "Index", ":", "", ";", "*", "Offset", "=", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "RemOffset", ")", ";", "return", "GetTypeAtOffset", "(", "ElmTy", ",", "Offset", ")", ";", "}", "else", "{", "return", "Ty", ";"], "ground_truth": ["}"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetTypeAtOffset", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87177, "Length": 81, "Cover_Rate": 0.32926829268292684} {"Template_token": ["", "while", "(", "isa", "<", "CastInst", ">", "(", "V", ")", ")", "V", "=", "cast", "<", "CastInst", ">", "(", "V", ")", "->", "getOperand", "(", "", ")", ";"], "ground_truth": ["return", "V", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetUnwrappedValue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87178, "Length": 28, "Cover_Rate": 0.7} {"Template_token": ["", "V", "=", "GetRootObject", "(", "V", ",", "&", "Offset", ",", "HasBitCastInChain", ")", ";", "if", "(", "!", "isa", "<", "ConstantInt", ">", "(", "Offset", ")", ")", "return", "true", ";", "Type", "*", "Ty", "=", "GetRootType", "(", "V", "->", "getType", "(", ")", ")", ";", "unsigned", "OffsetVal", "=", "cast", "<", "ConstantInt", ">", "(", "Offset", ")", "->", "getZExtValue", "(", ")", ";", "return", "CheckForPartialElementAccess", "(", "Ty", ",", "OffsetVal", ")", ";"], "ground_truth": ["}"], "File": "JVMLowerMemoryIntrinsics", "Func": "IsPartialElementAccess", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87180, "Length": 63, "Cover_Rate": 0.6923076923076923} {"Template_token": ["", "LowerMemoryIntrinsics", "(", ")", ":", "FunctionPass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "JVMLowerMemoryIntrinsics", "Func": "JVMLowerMemoryIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87181, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "LowerMemoryIntrinsics", "(", ")", ":", "FunctionPass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "JVMLowerMemoryIntrinsics", "Func": "JVMLowerMemoryIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87182, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "Dst", "=", "GetRootObject", "(", "Dst", ",", "&", "InitOffsetDst", ",", "HasBitCastInChain", ")", ";", "Dst", "=", "CreateCompositeElemAccessGEP", "(", "DL", ",", "IRB", ",", "Dst", ",", "TargetIdxTy", ",", "GetRootType", "(", "Dst", "->", "getType", "(", ")", ")", ",", "&", "InitOffsetDst", ")", ";", "Type", "*", "PenultimateDstTy", "=", "GetPenultimateGepIndexType", "(", "Dst", ")", ";", "if", "(", "isa", "<", "ArrayType", ">", "(", "PenultimateDstTy", ")", "&&", "(", "isa", "<", "ArrayType", ">", "(", "PenultimateSrcTy", ")", "||", "isa", "<", "MemSetInst", ">", "(", "Inst", ")", ")", ")", "OptMemTransferArray", "(", "IRB", ",", "Src", ",", "InitOffsetSrc", ",", "Dst", ",", "InitOffsetDst", ",", "Length", ",", "Inst", ")", ";"], "ground_truth": ["else", "OptMemTransferSerial", "(", "IRB", ",", "Src", ",", "InitOffsetSrc", ",", "Dst", ",", "InitOffsetDst", ",", "Length", ",", "Inst", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "OptimizeMemCopy", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87183, "Length": 109, "Cover_Rate": 0.44129554655870445} {"Template_token": ["", "unsigned", "LowerMemoryIntrinsics", "::", "OptMemTransferScalar", "(", "IRBuilder", "<", ">", "&", "IRB", ",", "Value", "*", "Src", ",", "Value", "*", "Dst", ",", "MemIntrinsic", "*", "Inst", ")", "{", "assert", "(", "!", "isa", "<", "CompositeType", ">", "(", "Src", "->", "getType", "(", ")", ")", "&&", "!", "isa", "<", "CompositeType", ">", "(", "Dst", "->", "getType", "(", ")", ")", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "Type", "*", "SrcTy", "=", "GetRootType", "(", "Src", "->", "getType", "(", ")", ")", ";", "Type", "*", "DstTy", "=", "GetRootType", "(", "Dst", "->", "getType", "(", ")", ")", ";", "uint64_t", "SrcSz", "=", "DL", ".", "getTypeSizeInBits", "(", "SrcTy", ")", ";", "uint64_t", "DstSz", "=", "DL", ".", "getTypeSizeInBits", "(", "DstTy", ")", ";", "unsigned", "MemTransferDst", "=", "DstSz", "-", "CurrDstOffset", ";", "unsigned", "MemTransferSrc", "=", "isa", "<", "MemSetInst", ">", "(", "Inst", ")", "?", "MemTransferDst", ":", "SrcSz", "-", "CurrSrcOffset", ";", "unsigned", "MemTransferSz", "=", "MemTransferDst", "<", "MemTransferSrc", "?", "MemTransferDst", ":", "MemTransferSrc", ";", "Value", "*", "LoadSrc", "=", "nullptr", ";", "if", "(", "MemSetInst", "*", "MSI", "=", "dyn_cast", "<", "MemSetInst", ">", "(", "Inst", ")", ")", "{", "LoadSrc", "=", "PrepareValueForMemSet", "(", "IRB", ",", "MSI", "->", "getValue", "(", ")", ",", "DstTy", ")", ";"], "ground_truth": ["SrcSz", "=", "DstSz", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "OptMemTransferScalar", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87184, "Length": 189, "Cover_Rate": 0.3987341772151899} {"Template_token": ["", "while", "(", "MemTransferSz", ">", "", ")", "{", "MemTransferSz", "-=", "(", "int", ")", "OptMemTransferScalar", "(", "IRB", ",", "CurrSrc", ",", "CurrDst", ",", "Inst", ")", ";", "if", "(", "MemTransferSz", ">", "", ")", "{", "CurrSrc", "=", "GetNextSrcGep", "(", "IRB", ")", ";", "CurrDst", "=", "GetNextDstGep", "(", "IRB", ")", ";"], "ground_truth": ["}"], "File": "JVMLowerMemoryIntrinsics", "Func": "OptMemTransferSerial", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87185, "Length": 45, "Cover_Rate": 0.39473684210526316} {"Template_token": ["", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "PackCount", ";", "i", "++", ")", "{", "Value", "*", "Shift", "=", "ConstantInt", "::", "get", "(", "Ret", "->", "getType", "(", ")", ",", "DL", ".", "getTypeSizeInBits", "(", "Val", "->", "getType", "(", ")", ")", "*", "i", ")", ";", "Value", "*", "ShiftVal", "=", "IRB", ".", "CreateShl", "(", "Ret", ",", "Shift", ")", ";", "Ret", "=", "IRB", ".", "CreateOr", "(", "Ret", ",", "ShiftVal", ")", ";"], "ground_truth": ["}"], "File": "JVMLowerMemoryIntrinsics", "Func": "PrepareValueForMemScalar", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87187, "Length": 68, "Cover_Rate": 0.3695652173913043} {"Template_token": ["", "Value", "*", "LowerMemoryIntrinsics", "::", "PrepareValueForMemSet", "(", "IRBuilder", "<", ">", "&", "IRB", ",", "Value", "*", "Val", ",", "Type", "*", "ToType", ")", "{", "SmallVector", "<", "Constant", "*", ",", "", ">", "Elems", ";", "if", "(", "StructType", "*", "STy", "=", "dyn_cast", "<", "StructType", ">", "(", "ToType", ")", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "STy", "->", "getNumElements", "(", ")", ";", "i", "++", ")", "{", "Type", "*", "Ty", "=", "STy", "->", "getTypeAtIndex", "(", "i", ")", ";", "Elems", ".", "push_back", "(", "cast", "<", "Constant", ">", "(", "PrepareValueForMemSet", "(", "IRB", ",", "Val", ",", "Ty", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMLowerMemoryIntrinsics", "Func": "PrepareValueForMemSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87188, "Length": 96, "Cover_Rate": 0.48} {"Template_token": ["", "Type", "*", "Ty", "=", "STy", "->", "getTypeAtIndex", "(", "i", ")", ";", "Elems", ".", "push_back", "(", "cast", "<", "Constant", ">", "(", "PrepareValueForMemSet", "(", "IRB", ",", "Val", ",", "Ty", ")", ")", ")", ";", "}", "return", "ConstantStruct", "::", "get", "(", "STy", ",", "Elems", ")", ";", "}", "else", "if", "(", "ArrayType", "*", "ATy", "=", "dyn_cast", "<", "ArrayType", ">", "(", "ToType", ")", ")", "{"], "ground_truth": ["Type", "*", "Ty", "=", "ATy", "->", "getElementType", "(", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "PrepareValueForMemSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87189, "Length": 69, "Cover_Rate": 0.345} {"Template_token": ["", "bool", "LowerMemoryIntrinsics", "::", "ProcessFunction", "(", ")", "{", "LLVMContext", "&", "Cxt", "=", "Func", "->", "getContext", "(", ")", ";", "SmallVector", "<", "MemIntrinsic", "*", ",", "", ">", "WorkList", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "TargetIdxTy", "=", "GetTargetIndexType", "(", "DL", ",", "Cxt", ")", ";"], "ground_truth": ["for", "(", "auto", "&", "BB", ":", "*", "Func", ")", "for", "(", "auto", "&", "I", ":", "BB", ")", "if", "(", "isa", "<", "MemIntrinsic", ">", "(", "&", "I", ")", ")", "{"], "File": "JVMLowerMemoryIntrinsics", "Func": "ProcessFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87190, "Length": 79, "Cover_Rate": 0.6171875} {"Template_token": ["", "auto", "Item", "=", "WorkList", ".", "back", "(", ")", ";", "WorkList", ".", "pop_back", "(", ")", ";", "IRBuilder", "<", ">", "IRB", "(", "Item", ")", ";", "if", "(", "isa", "<", "ConstantInt", ">", "(", "Item", "->", "getLength", "(", ")", ")", ")", "OptimizeMemCopy", "(", "IRB", ",", "Item", ")", ";", "else", "if", "(", "MemCpyInst", "*", "Memcpy", "=", "dyn_cast", "<", "MemCpyInst", ">", "(", "Item", ")", ")", "expandMemCpyAsLoop", "(", "Memcpy", ",", "TTI", ")", ";", "else", "if", "(", "MemSetInst", "*", "Memset", "=", "dyn_cast", "<", "MemSetInst", ">", "(", "Item", ")", ")", "expandMemSetAsLoop", "(", "Memset", ")", ";"], "ground_truth": ["ResetOffsets", "(", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "ProcessIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87191, "Length": 90, "Cover_Rate": 0.6081081081081081} {"Template_token": ["", "while", "(", "!", "WorkList", ".", "empty", "(", ")", ")", "{", "auto", "Item", "=", "WorkList", ".", "back", "(", ")", ";", "WorkList", ".", "pop_back", "(", ")", ";", "IRBuilder", "<", ">", "IRB", "(", "Item", ")", ";", "if", "(", "isa", "<", "ConstantInt", ">", "(", "Item", "->", "getLength", "(", ")", ")", ")", "OptimizeMemCopy", "(", "IRB", ",", "Item", ")", ";"], "ground_truth": ["else", "if", "(", "MemCpyInst", "*", "Memcpy", "=", "dyn_cast", "<", "MemCpyInst", ">", "(", "Item", ")", ")", "expandMemCpyAsLoop", "(", "Memcpy", ",", "TTI", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "ProcessIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87192, "Length": 76, "Cover_Rate": 0.5135135135135135} {"Template_token": ["", "}", "for", "(", "auto", "*", "I", ":", "Users", ")", "cast", "<", "Instruction", ">", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";"], "ground_truth": ["DeletionSet", ".", "clear", "(", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "ProcessLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87193, "Length": 27, "Cover_Rate": 0.4153846153846154} {"Template_token": ["", "Users", ".", "insert", "(", "Val", ")", ";", "}", "for", "(", "auto", "*", "I", ":", "Users", ")", "cast", "<", "Instruction", ">", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";", "DeletionSet", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMLowerMemoryIntrinsics", "Func": "ProcessLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87194, "Length": 35, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "void", "LowerMemoryIntrinsics", "::", "ResetOffsets", "(", ")", "{", "CurrDstOffset", "=", "", ";", "CurrSrcOffset", "=", "", ";"], "ground_truth": ["CurrSrc", "=", "nullptr", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "ResetOffsets", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87195, "Length": 19, "Cover_Rate": 0.7916666666666666} {"Template_token": ["", "CurrSrcOffset", "=", "", ";", "CurrSrc", "=", "nullptr", ";"], "ground_truth": ["CurrDst", "=", "nullptr", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "ResetOffsets", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87196, "Length": 12, "Cover_Rate": 0.5} {"Template_token": ["", "Func", "=", "&", "F", ";"], "ground_truth": ["return", "ProcessFunction", "(", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87197, "Length": 10, "Cover_Rate": 0.5} {"Template_token": ["", "bool", "runOnFunction", "(", "Function", "&", "F", ")", "override", "{", "Func", "=", "&", "F", ";"], "ground_truth": ["return", "ProcessFunction", "(", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87198, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "assert", "(", "isa", "<", "ConstantInt", ">", "(", "SrcOffset", ")", "&&", "", ")", ";", "assert", "(", "isa", "<", "ConstantInt", ">", "(", "DstOffset", ")", "&&", "", ")", ";", "CurrSrc", "=", "Src", ";", "CurrSrcOffset", "=", "cast", "<", "ConstantInt", ">", "(", "SrcOffset", ")", "->", "getZExtValue", "(", ")", ";", "CurrDst", "=", "Dst", ";"], "ground_truth": ["CurrDstOffset", "=", "cast", "<", "ConstantInt", ">", "(", "DstOffset", ")", "->", "getZExtValue", "(", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "SetInitGEPs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87199, "Length": 62, "Cover_Rate": 0.7294117647058823} {"Template_token": ["", "Value", "*", "NewI", "=", "IRB", ".", "CreateMemCpy", "(", "MI", "->", "getRawDest", "(", ")", ",", "MI", "->", "getDestAlignment", "(", ")", ",", "MI", "->", "getRawSource", "(", ")", ",", "MI", "->", "getSourceAlignment", "(", ")", ",", "MI", "->", "getLength", "(", ")", ")", ";", "I", "->", "replaceAllUsesWith", "(", "NewI", ")", ";", "cast", "<", "Instruction", ">", "(", "I", ")", "->", "dropAllReferences", "(", ")", ";"], "ground_truth": ["AddToLazyDeletionSet", "(", "cast", "<", "User", ">", "(", "I", ")", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "TransformMemMoveToCpy", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87200, "Length": 69, "Cover_Rate": 0.6634615384615384} {"Template_token": ["", "Value", "*", "NewI", "=", "IRB", ".", "CreateMemCpy", "(", "MI", "->", "getRawDest", "(", ")", ",", "MI", "->", "getDestAlignment", "(", ")", ",", "MI", "->", "getRawSource", "(", ")", ",", "MI", "->", "getSourceAlignment", "(", ")", ",", "MI", "->", "getLength", "(", ")", ")", ";", "I", "->", "replaceAllUsesWith", "(", "NewI", ")", ";"], "ground_truth": ["cast", "<", "Instruction", ">", "(", "I", ")", "->", "dropAllReferences", "(", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "TransformMemMoveToCpy", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87201, "Length": 58, "Cover_Rate": 0.5576923076923077} {"Template_token": ["", "std", "::", "string", "*", "DescStr", "=", "new", "std", "::", "string", "(", "Desc", ".", "data", "(", ")", ")", ";", "StringRef", "D", "(", "DescStr", "->", "c_str", "(", ")", ")", ";", "DescVec", ".", "push_back", "(", "D", ")", ";", "DescIDMap", "[", "Desc", "]", "=", "ID", ";", "}", "return", "DescIDMap", "[", "Desc", "]", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "addToDescriptorIDMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87202, "Length": 50, "Cover_Rate": 0.5952380952380952} {"Template_token": ["", "void", "FunctionInfo", "::", "addToScratchAllocationSet", "(", "unsigned", "Reg", ")", "{", "if", "(", "scratchAllocations", ".", "find", "(", "Reg", ")", "==", "scratchAllocations", ".", "end", "(", ")", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "Reg", "<<", "", ")", ";"], "File": "JVMMachineFunctionInfo", "Func": "addToScratchAllocationSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87205, "Length": 38, "Cover_Rate": 0.8085106382978723} {"Template_token": ["", "assert", "(", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", ";", "if", "(", "STyName", ".", "find", "(", "Ty", ")", "==", "STyName", ".", "end", "(", ")", ")", "{", "std", "::", "string", "*", "Name", "=", "GenClassName", "(", ")", ";"], "ground_truth": ["STyName", "[", "Ty", "]", "=", "Name", ";"], "File": "JVMMachineFunctionInfo", "Func": "addToTypeNameMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87206, "Length": 44, "Cover_Rate": 0.6875} {"Template_token": ["", "void", "clearScratchAllocationSet", "(", ")", "{", "scratchAllocations", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "clearScratchAllocationSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87207, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "scratchAllocations", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "clearScratchAllocationSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87208, "Length": 7, "Cover_Rate": 0.5833333333333334} {"Template_token": ["", "const", "DataLayout", "&", "DL", "(", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ")", ";", "const", "TargetLowering", "&", "TLI", "=", "*", "TM", ".", "getSubtarget", "<", "Subtarget", ">", "(", "F", ")", ".", "getTargetLowering", "(", ")", ";", "SmallVector", "<", "EVT", ",", "", ">", "VTs", ";", "ComputeValueVTs", "(", "TLI", ",", "DL", ",", "Ty", ",", "VTs", ")", ";", "for", "(", "EVT", "VT", ":", "VTs", ")", "{"], "ground_truth": ["unsigned", "NumRegs", "=", "TLI", ".", "getNumRegisters", "(", "F", ".", "getContext", "(", ")", ",", "VT", ")", ";"], "File": "JVMMachineFunctionInfo", "Func": "ComputeLegalVTs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87209, "Length": 79, "Cover_Rate": 0.5448275862068965} {"Template_token": ["", "void", "llvm", "::", "ComputeSigVTs", "(", "const", "Function", "&", "F", ",", "const", "TargetMachine", "&", "TM", ",", "SmallVectorImpl", "<", "MVT", ">", "&", "Params", ",", "SmallVectorImpl", "<", "MVT", ">", "&", "Results", ")", "{", "ComputeLegalVTs", "(", "F", ",", "TM", ",", "F", ".", "getReturnType", "(", ")", ",", "Results", ")", ";"], "ground_truth": ["if", "(", "Results", ".", "size", "(", ")", ">", "", ")", "{"], "File": "JVMMachineFunctionInfo", "Func": "ComputeSigVTs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87210, "Length": 56, "Cover_Rate": 0.5045045045045045} {"Template_token": ["", "std", "::", "string", "*", "Name", "=", "new", "std", "::", "string", "(", "", ")", ";", "sprintf", "(", "buff", ",", "", ",", "ClassNum", "++", ")", ";", "*", "Name", "+=", "buff", ";", "return", "Name", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "GenClassName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87211, "Length": 33, "Cover_Rate": 0.5689655172413793} {"Template_token": ["", "DescriptorVec", "*", "getDescVector", "(", ")", "{", "return", "&", "DescVec", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "getDescVector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87213, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "assert", "(", "DescIDMap", ".", "find", "(", "DescVec", "[", "ID", "]", ")", "!=", "DescIDMap", ".", "end", "(", ")", ")", ";"], "ground_truth": ["return", "DescVec", "[", "ID", "]", ";"], "File": "JVMMachineFunctionInfo", "Func": "getFromDescriptorVector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87215, "Length": 25, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "Type", "*", "FunctionInfo", "::", "getFromNodeTypeMap", "(", "SDNode", "*", "N", ")", "{", "if", "(", "NodeTypeMap", ".", "find", "(", "N", ")", "!=", "NodeTypeMap", ".", "end", "(", ")", ")", "return", "NodeTypeMap", "[", "N", "]", ";"], "ground_truth": ["return", "nullptr", ";"], "File": "JVMMachineFunctionInfo", "Func": "getFromNodeTypeMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87216, "Length": 35, "Cover_Rate": 0.9722222222222222} {"Template_token": ["", "Type", "*", "FunctionInfo", "::", "getFromNodeTypeMap", "(", "SDNode", "*", "N", ")", "{", "if", "(", "NodeTypeMap", ".", "find", "(", "N", ")", "!=", "NodeTypeMap", ".", "end", "(", ")", ")", "return", "NodeTypeMap", "[", "N", "]", ";", "return", "nullptr", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "getFromNodeTypeMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87217, "Length": 36, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "getNumArguments", "(", ")", "{"], "ground_truth": ["return", "NumArguments", ";"], "File": "JVMMachineFunctionInfo", "Func": "getNumArguments", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87221, "Length": 8, "Cover_Rate": 0.8888888888888888} {"Template_token": ["", "assert", "(", "MOOMap", ".", "size", "(", ")", "&&", "MOOMap", ".", "find", "(", "Reg", ")", "!=", "MOOMap", ".", "end", "(", ")", "&&", "", ")", ";", "return", "MOOMap", "[", "Reg", "]", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "getRegisterOffset", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87222, "Length": 31, "Cover_Rate": 0.775} {"Template_token": ["", "return", "scratchAllocations", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "getScratchAllocationSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87223, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "return", "scratchAllocations", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "getScratchAllocationSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87224, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "return", "StackLimit", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "getStackLimit", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87225, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "unsigned", "getStackLimit", "(", ")", "const", "{"], "ground_truth": ["return", "StackLimit", ";"], "File": "JVMMachineFunctionInfo", "Func": "getStackLimit", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87226, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "void", "FunctionInfo", "::", "getTypeDescriptor", "(", "Type", "*", "Ty", ",", "std", "::", "string", "&", "Desc", ")", "const", "{", "FunctionInfo", "*", "MFI", "=", "const_cast", "<", "FunctionInfo", "*", ">", "(", "this", ")", ";", "const", "DataLayout", "&", "DL", "=", "MF", ".", "getDataLayout", "(", ")", ";", "const", "TargetLowering", "&", "TLI", "=", "*", "MF", ".", "getTarget", "(", ")", ".", "getSubtarget", "<", "Subtarget", ">", "(", "MF", ".", "getFunction", "(", ")", ")", ".", "getTargetLowering", "(", ")", ";", "if", "(", "isa", "<", "ArrayType", ">", "(", "Ty", ")", ")", "{", "Desc", "+=", "", ";", "getTypeDescriptor", "(", "cast", "<", "SequentialType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ",", "Desc", ")", ";", "}", "else", "if", "(", "isa", "<", "PointerType", ">", "(", "Ty", ")", ")", "{"], "ground_truth": ["getTypeDescriptor", "(", "cast", "<", "PointerType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ",", "Desc", ")", ";"], "File": "JVMMachineFunctionInfo", "Func": "getTypeDescriptor", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87227, "Length": 131, "Cover_Rate": 0.4628975265017668} {"Template_token": ["", "NumArguments", "=", "", ";"], "ground_truth": ["StackLimit", "=", "", ";"], "File": "JVMMachineFunctionInfo", "Func": "Initialize", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87232, "Length": 8, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "EmitGlobConsts", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "IsEmitGlobConsts", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87233, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "return", "MOOMap", ".", "size", "(", ")", "&&", "MOOMap", ".", "find", "(", "Reg", ")", "!=", "MOOMap", ".", "end", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "isRegisterOffsetAllocated", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87235, "Length": 21, "Cover_Rate": 0.7} {"Template_token": ["", "explicit", "FunctionInfo", "(", "MachineFunction", "&", "MF", ")", ":", "MF", "(", "MF", ")", "{"], "ground_truth": ["Initialize", "(", ")", ";"], "File": "JVMMachineFunctionInfo", "Func": "JVMFunctionInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87236, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "void", "setEmitGlobConsts", "(", "bool", "Val", "=", "true", ")", "{", "EmitGlobConsts", "=", "Val", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "setEmitGlobConsts", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87237, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "LocalsLimit", "=", "limit", ";"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "setLocalsLimit", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87238, "Length": 5, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "void", "setLocalsLimit", "(", "unsigned", "limit", ")", "{"], "ground_truth": ["LocalsLimit", "=", "limit", ";"], "File": "JVMMachineFunctionInfo", "Func": "setLocalsLimit", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87239, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "void", "setStackLimit", "(", "unsigned", "limit", ")", "{"], "ground_truth": ["StackLimit", "=", "limit", ";"], "File": "JVMMachineFunctionInfo", "Func": "setStackLimit", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87240, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "FunctionInfo", "::", "~", "FunctionInfo", "(", ")", "{"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "~JVMFunctionInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87242, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "FunctionInfo", "::", "~", "FunctionInfo", "(", ")", "{"], "ground_truth": ["}"], "File": "JVMMachineFunctionInfo", "Func": "~JVMFunctionInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87243, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMMCAsmInfo", "Func": "isValidUnquotedName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87244, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMMCAsmInfo", "Func": "isValidUnquotedName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87245, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "UseDataRegionDirectives", "=", "true", ";", "HasSingleParameterDotFile", "=", "false", ";", "HasDotTypeDotSizeDirective", "=", "false", ";", "if", "(", "EnableAssembler", ")", "{", "EnableInMemoryAsmEmit", "=", "true", ";", "AsmMemoryBuffer", "=", "new", "std", "::", "string", "(", "", ")", ";", "}", "AlignmentIsInBytes", "=", "false", ";", "COMMDirectiveAlignmentIsInBytes", "=", "false", ";"], "ground_truth": ["LCOMMDirectiveAlignmentType", "=", "LCOMM", "::", "Log2Alignment", ";"], "File": "JVMMCAsmInfo", "Func": "JVMMCAsmInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87246, "Length": 46, "Cover_Rate": 0.5679012345679012} {"Template_token": ["", "MCAsmInfo", "::", "~", "MCAsmInfo", "(", ")", "{"], "ground_truth": ["}"], "File": "JVMMCAsmInfo", "Func": "~JVMMCAsmInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87247, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "MCAsmInfo", "::", "~", "MCAsmInfo", "(", ")", "{"], "ground_truth": ["}"], "File": "JVMMCAsmInfo", "Func": "~JVMMCAsmInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87248, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "case", "MachineOperand", "::", "MO_Register", ":", "{", "int", "LocalOffset", ";", "FunctionInfo", "*", "MFI", "=", "const_cast", "<", "FunctionInfo", "*", ">", "(", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getInfo", "<", "FunctionInfo", ">", "(", ")", ")", ";", "if", "(", "MRI", "->", "hasOneDef", "(", "MO", ".", "getReg", "(", ")", ")", "&&", "MRI", "->", "getVRegDef", "(", "MO", ".", "getReg", "(", ")", ")", "->", "skipAllocation", "(", ")", ")", "LocalOffset", "=", "-", "", ";", "else", "LocalOffset", "=", "MFI", "->", "getRegisterOffset", "(", "MO", ".", "getReg", "(", ")", ")", ";", "MCOp", "=", "MCOperand", "::", "createImm", "(", "LocalOffset", ")", ";", "break", ";", "}", "case", "MachineOperand", "::", "MO_Immediate", ":", "MCOp", "=", "MCOperand", "::", "createImm", "(", "MO", ".", "getImm", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_FPImmediate", ":", "{", "const", "ConstantFP", "*", "Imm", "=", "MO", ".", "getFPImm", "(", ")", ";"], "ground_truth": ["if", "(", "Imm", "->", "getType", "(", ")", "->", "isFloatTy", "(", ")", ")", "MCOp", "=", "MCOperand", "::", "createFPImm", "(", "Imm", "->", "getValueAPF", "(", ")", ".", "convertToFloat", "(", ")", ")", ";"], "File": "JVMMCInstLower", "Func": "Lower", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87249, "Length": 162, "Cover_Rate": 0.39705882352941174} {"Template_token": ["", "}", "void", "Lower", "(", "const", "MachineInstr", "*", "MI", ",", "MCInst", "&", "OutMI", ")", "const", ";", "const", "MCSymbolRefExpr", "*", "LowerSymbolOperand", "(", "const", "MachineOperand", "&", "MO", ")", "const", ";"], "ground_truth": ["}"], "File": "JVMMCInstLower", "Func": "LowerSymbolOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87250, "Length": 28, "Cover_Rate": 0.4444444444444444} {"Template_token": ["", "case", "", ":", "return", "&", "", ";", "case", "", ":", "return", "&", "", ";", "case", "", ":", "return", "&", "", ";", "case", "", ":", "return", "&", "", ";"], "ground_truth": ["}"], "File": "JVMMCOpcodeUtils", "Func": "GetConstantRC", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87251, "Length": 29, "Cover_Rate": 0.4264705882352941} {"Template_token": ["", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "", ":", "return", "&", "", ";", "case", "", ":", "return", "&", "", ";", "case", "", ":", "return", "&", "", ";", "case", "", ":", "return", "&", "", ";", "}"], "ground_truth": ["}"], "File": "JVMMCOpcodeUtils", "Func": "GetConstantRC", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87252, "Length": 42, "Cover_Rate": 0.6176470588235294} {"Template_token": ["", "else", "if", "(", "RC", "==", "&", "", ")", "return", "", ";", "else", "if", "(", "RC", "==", "&", "", ")", "return", "", ";", "else", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["return", "", ";"], "File": "JVMMCOpcodeUtils", "Func": "GetLoadOpcode", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87253, "Length": 31, "Cover_Rate": 0.38271604938271603} {"Template_token": ["", "}", "else", "if", "(", "RRC", "==", "&", "", ")", "{", "if", "(", "LRC", "==", "&", "", ")", "return", "", ";", "else", "if", "(", "LRC", "==", "&", "", ")", "return", "", ";", "else", "if", "(", "LRC", "==", "&", "", ")", "return", "", ";", "}", "else", "if", "(", "RRC", "==", "&", "", ")", "{", "if", "(", "LRC", "==", "&", "", ")", "return", "", ";"], "ground_truth": ["else", "if", "(", "LRC", "==", "&", "", ")", "return", "", ";"], "File": "JVMMCOpcodeUtils", "Func": "GetRCConvOpcode", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87254, "Length": 73, "Cover_Rate": 0.31877729257641924} {"Template_token": ["", "if", "(", "RC", "==", "&", "", ")", "return", "", ";", "else", "if", "(", "RC", "==", "&", "", ")", "return", "", ";", "else", "if", "(", "RC", "==", "&", "", ")", "return", "", ";", "else", "if", "(", "RC", "==", "&", "", ")", "return", "", ";", "else", "llvm_unreachable", "(", "", ")", ";", "return", "", ";"], "ground_truth": ["}"], "File": "JVMMCOpcodeUtils", "Func": "GetStoreOpcode", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87255, "Length": 53, "Cover_Rate": 0.654320987654321} {"Template_token": ["", "return", "new", "TargetAsmStreamer", "(", "S", ",", "OS", ")", ";"], "ground_truth": ["}"], "File": "JVMMCTargetDesc", "Func": "createAsmTargetStreamer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87258, "Length": 10, "Cover_Rate": 0.3448275862068966} {"Template_token": ["", "static", "MCAsmInfo", "*", "createMCAsmInfo", "(", "const", "MCRegisterInfo", "&", ",", "const", "Triple", "&", "TT", ")", "{", "return", "new", "MCAsmInfo", "(", "TT", ")", ";"], "ground_truth": ["}"], "File": "JVMMCTargetDesc", "Func": "createMCAsmInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87260, "Length": 23, "Cover_Rate": 1.0} {"Template_token": ["", "return", "new", "MCAsmInfo", "(", "TT", ")", ";"], "ground_truth": ["}"], "File": "JVMMCTargetDesc", "Func": "createMCAsmInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87261, "Length": 8, "Cover_Rate": 0.34782608695652173} {"Template_token": ["", "static", "MCInstPrinter", "*", "createMCInstPrinter", "(", "const", "Triple", "&", ",", "unsigned", "SyntaxVariant", ",", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", "{"], "ground_truth": ["assert", "(", "SyntaxVariant", "==", "", "&&", "", ")", ";"], "File": "JVMMCTargetDesc", "Func": "createMCInstPrinter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87262, "Length": 37, "Cover_Rate": 0.7551020408163265} {"Template_token": ["", "static", "MCInstPrinter", "*", "createMCInstPrinter", "(", "const", "Triple", "&", ",", "unsigned", "SyntaxVariant", ",", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", "{", "assert", "(", "SyntaxVariant", "==", "", "&&", "", ")", ";"], "ground_truth": ["return", "new", "InstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", ";"], "File": "JVMMCTargetDesc", "Func": "createMCInstPrinter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87263, "Length": 48, "Cover_Rate": 0.9795918367346939} {"Template_token": ["", "MCInstrInfo", "*", "X", "=", "new", "MCInstrInfo", "(", ")", ";"], "ground_truth": ["InitMCInstrInfo", "(", "X", ")", ";"], "File": "JVMMCTargetDesc", "Func": "createMCInstrInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87264, "Length": 14, "Cover_Rate": 0.56} {"Template_token": ["", "static", "MCRegisterInfo", "*", "createMCRegisterInfo", "(", "const", "Triple", "&", ")", "{", "MCRegisterInfo", "*", "X", "=", "new", "MCRegisterInfo", "(", ")", ";", "InitMCRegisterInfo", "(", "X", ",", "", ")", ";"], "ground_truth": ["return", "X", ";"], "File": "JVMMCTargetDesc", "Func": "createMCRegisterInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87265, "Length": 29, "Cover_Rate": 0.9666666666666667} {"Template_token": ["", "return", "createMCSubtargetInfoImpl", "(", "TT", ",", "CPU", ",", "FS", ")", ";"], "ground_truth": ["}"], "File": "JVMMCTargetDesc", "Func": "createMCSubtargetInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87266, "Length": 11, "Cover_Rate": 0.39285714285714285} {"Template_token": ["", "static", "MCSubtargetInfo", "*", "createMCSubtargetInfo", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{"], "ground_truth": ["return", "createMCSubtargetInfoImpl", "(", "TT", ",", "CPU", ",", "FS", ")", ";"], "File": "JVMMCTargetDesc", "Func": "createMCSubtargetInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87267, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCInstrInfo", "(", "*", "T", ",", "createMCInstrInfo", ")", ";", "TargetRegistry", "::", "RegisterMCRegInfo", "(", "*", "T", ",", "createMCRegisterInfo", ")", ";", "TargetRegistry", "::", "RegisterMCInstPrinter", "(", "*", "T", ",", "createMCInstPrinter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "*", "T", ",", "createAsmBackend", ")", ";", "TargetRegistry", "::", "RegisterMCSubtargetInfo", "(", "*", "T", ",", "createMCSubtargetInfo", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterAsmTargetStreamer", "(", "*", "T", ",", "createAsmTargetStreamer", ")", ";"], "File": "JVMMCTargetDesc", "Func": "LLVMInitializeJVMTargetMC", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87268, "Length": 60, "Cover_Rate": 0.631578947368421} {"Template_token": ["", "void", "MemIntrinsicsHandler", "::", "AddToLazyDeletionSet", "(", "User", "*", "Elm", ")", "{"], "ground_truth": ["if", "(", "DeletionSet", ".", "find", "(", "Elm", ")", "==", "DeletionSet", ".", "end", "(", ")", ")", "DeletionSet", ".", "insert", "(", "Elm", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "AddToLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87269, "Length": 32, "Cover_Rate": 0.9696969696969697} {"Template_token": ["", "if", "(", "DeletionSet", ".", "find", "(", "Elm", ")", "==", "DeletionSet", ".", "end", "(", ")", ")", "DeletionSet", ".", "insert", "(", "Elm", ")", ";"], "ground_truth": ["}"], "File": "JVMMemIntrinsicsHandler", "Func": "AddToLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87270, "Length": 23, "Cover_Rate": 0.696969696969697} {"Template_token": ["", "Value", "*", "MemIntrinsicsHandler", "::", "CreateCompositeElemAccessGEP", "(", "IRBuilder", "<", ">", "&", "IRB", ",", "Value", "*", "Mem", ",", "Type", "*", "CompType", ",", "Value", "*", "*", "Offset", ")", "{", "SmallVector", "<", "Value", "*", ",", "", ">", "Indices", ";", "Indices", ".", "push_back", "(", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "", ")", ")", ";"], "ground_truth": ["GetIndicesForCompositeElemAccess", "(", "IRB", ",", "Indices", ",", "CompType", ",", "Offset", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "CreateCompositeElemAccessGEP", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87271, "Length": 60, "Cover_Rate": 0.8450704225352113} {"Template_token": ["", "Value", "*", "MemIntrinsicsHandler", "::", "CreateGEP", "(", "IRBuilder", "<", ">", "&", "IRB", ",", "Value", "*", "I", ",", "unsigned", "i", ")", "{", "assert", "(", "isa", "<", "GetElementPtrInst", ">", "(", "I", ")", ")", ";", "GetElementPtrInst", "*", "GEP", "=", "cast", "<", "GetElementPtrInst", ">", "(", "I", ")", ";", "Value", "*", "LastIndex", "=", "nullptr", ";", "SmallVector", "<", "Value", "*", ",", "", ">", "Indices", ";", "unsigned", "IdxCnt", "=", "", ";", "for", "(", "auto", "&", "Index", ":", "GEP", "->", "indices", "(", ")", ")", "{", "if", "(", "IdxCnt", "++", "==", "(", "GEP", "->", "getNumIndices", "(", ")", "-", "", ")", ")", "{", "LastIndex", "=", "Index", ";", "break", ";", "}", "Indices", ".", "push_back", "(", "Index", ")", ";", "}", "Value", "*", "NewIndex", "=", "IRB", ".", "CreateAdd", "(", "LastIndex", ",", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "i", ")", ")", ";", "Indices", ".", "push_back", "(", "NewIndex", ")", ";", "return", "IRB", ".", "CreateGEP", "(", "GEP", "->", "getPointerOperand", "(", ")", ",", "Indices", ")", ";"], "ground_truth": ["}"], "File": "JVMMemIntrinsicsHandler", "Func": "CreateGEP", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87272, "Length": 149, "Cover_Rate": 1.0} {"Template_token": ["", "Value", "*", "MemIntrinsicsHandler", "::", "GenMask", "(", "IRBuilder", "<", ">", "&", "IRB", ",", "Type", "*", "SrcTy", ",", "Type", "*", "DestTy", ",", "Value", "*", "Offset", ",", "bool", "IsLoad", ")", "{", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "unsigned", "SrcSz", "=", "DL", ".", "getTypeSizeInBits", "(", "SrcTy", ")", ";", "unsigned", "DestSz", "=", "DL", ".", "getTypeSizeInBits", "(", "DestTy", ")", ";"], "ground_truth": ["return", "GenMask", "(", "IRB", ",", "SrcSz", ",", "DestSz", ",", "Offset", ",", "IsLoad", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "GenMask", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87273, "Length": 77, "Cover_Rate": 0.9871794871794872} {"Template_token": ["", "Value", "*", "MemIntrinsicsHandler", "::", "GenMask", "(", "IRBuilder", "<", ">", "&", "IRB", ",", "Type", "*", "SrcTy", ",", "Type", "*", "DestTy", ",", "Value", "*", "Offset", ",", "bool", "IsLoad", ")", "{", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";"], "ground_truth": ["unsigned", "SrcSz", "=", "DL", ".", "getTypeSizeInBits", "(", "SrcTy", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "GenMask", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87274, "Length": 53, "Cover_Rate": 0.6794871794871795} {"Template_token": ["", "if", "(", "isa", "<", "StructType", ">", "(", "CompType", ")", ")", "{", "assert", "(", "isa", "<", "ConstantInt", ">", "(", "*", "Offset", ")", "&&", "", ")", ";", "unsigned", "PadOffset", "=", "", ";", "unsigned", "ConstOffset", "=", "cast", "<", "ConstantInt", ">", "(", "*", "Offset", ")", "->", "getZExtValue", "(", ")", ";", "StructType", "*", "STy", "=", "cast", "<", "StructType", ">", "(", "CompType", ")", ";", "const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "STy", ")", ";", "int", "i", "=", "GetStructElmIndexAtOffset", "(", "STy", ",", "ConstOffset", ",", "PadOffset", ")", ";", "Indices", ".", "push_back", "(", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "i", ")", ")", ";", "unsigned", "ElmOffset", "=", "SL", "->", "getElementOffset", "(", "i", ")", ";", "Value", "*", "ElmOffsetVal", "=", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "ElmOffset", ")", ";", "*", "Offset", "=", "IRB", ".", "CreateBinOp", "(", "Instruction", "::", "Sub", ",", "*", "Offset", ",", "ElmOffsetVal", ")", ";", "if", "(", "isa", "<", "CompositeType", ">", "(", "STy", "->", "getTypeAtIndex", "(", "i", ")", ")", ")", "GetIndicesForCompositeElemAccess", "(", "IRB", ",", "Indices", ",", "STy", "->", "getTypeAtIndex", "(", "i", ")", ",", "Offset", ")", ";", "}", "else", "if", "(", "isa", "<", "ArrayType", ">", "(", "CompType", ")", ")", "{", "Type", "*", "ElmTy", "=", "cast", "<", "ArrayType", ">", "(", "CompType", ")", "->", "getElementType", "(", ")", ";", "Value", "*", "ElmSz", "=", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "DL", ".", "getTypeSizeInBits", "(", "ElmTy", ")", "/", "", ")", ";", "Value", "*", "Index", "=", "IRB", ".", "CreateBinOp", "(", "Instruction", "::", "UDiv", ",", "*", "Offset", ",", "ElmSz", ")", ";", "Indices", ".", "push_back", "(", "Index", ")", ";", "*", "Offset", "=", "IRB", ".", "CreateBinOp", "(", "Instruction", "::", "URem", ",", "*", "Offset", ",", "ElmSz", ")", ";", "if", "(", "isa", "<", "CompositeType", ">", "(", "ElmTy", ")", ")", "GetIndicesForCompositeElemAccess", "(", "IRB", ",", "Indices", ",", "ElmTy", ",", "Offset", ")", ";", "}", "else", "{", "Value", "*", "CompTypeSz", "=", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "DL", ".", "getTypeSizeInBits", "(", "CompType", ")", "/", "", ")", ";", "Value", "*", "Index", "=", "IRB", ".", "CreateBinOp", "(", "Instruction", "::", "UDiv", ",", "*", "Offset", ",", "CompTypeSz", ")", ";", "Indices", ".", "push_back", "(", "Index", ")", ";", "*", "Offset", "=", "IRB", ".", "CreateBinOp", "(", "Instruction", "::", "Sub", ",", "*", "Offset", ",", "CompTypeSz", ")", ";", "}"], "ground_truth": ["}"], "File": "JVMMemIntrinsicsHandler", "Func": "GetIndicesForCompositeElemAccess", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87275, "Length": 346, "Cover_Rate": 0.8871794871794871} {"Template_token": ["", "}", "unsigned", "ElmSz", "=", "DL", ".", "getTypeSizeInBits", "(", "STy", "->", "getTypeAtIndex", "(", "ElmIdx", ")", ")", "/", "", ";", "if", "(", "SL", "->", "hasPadding", "(", ")", "&&", "(", "Offset", "-", "SL", "->", "getElementOffset", "(", "ElmIdx", ")", ")", ">", "ElmSz", ")", "{", "unsigned", "Alignment", "=", "SL", "->", "getAlignment", "(", ")", ";", "PadOffset", "=", "Alignment", "-", "(", "(", "Offset", "-", "SL", "->", "getElementOffset", "(", "ElmIdx", ")", ")", ")", ";", "}"], "ground_truth": ["return", "ElmIdx", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "GetStructElmIndexAtOffset", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87276, "Length": 70, "Cover_Rate": 0.3977272727272727} {"Template_token": ["", "unsigned", "i", "=", "", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "STy", ")", ";", "unsigned", "ElmIdx", "=", "", ";", "for", "(", ";", "i", "<", "STy", "->", "getNumElements", "(", ")", ";", "i", "++", ")", "{", "ElmIdx", "=", "i", ";", "unsigned", "ElmOffset", "=", "SL", "->", "getElementOffset", "(", "i", ")", ";", "if", "(", "ElmOffset", ">=", "Offset", ")", "{", "ElmIdx", "=", "ElmOffset", ">", "Offset", "?", "i", "-", "", ":", "i", ";", "break", ";", "}", "}", "unsigned", "ElmSz", "=", "DL", ".", "getTypeSizeInBits", "(", "STy", "->", "getTypeAtIndex", "(", "ElmIdx", ")", ")", "/", "", ";", "if", "(", "SL", "->", "hasPadding", "(", ")", "&&", "(", "Offset", "-", "SL", "->", "getElementOffset", "(", "ElmIdx", ")", ")", ">", "ElmSz", ")", "{", "unsigned", "Alignment", "=", "SL", "->", "getAlignment", "(", ")", ";", "PadOffset", "=", "Alignment", "-", "(", "(", "Offset", "-", "SL", "->", "getElementOffset", "(", "ElmIdx", ")", ")", ")", ";", "}", "return", "ElmIdx", ";"], "ground_truth": ["}"], "File": "JVMMemIntrinsicsHandler", "Func": "GetStructElmIndexAtOffset", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87277, "Length": 159, "Cover_Rate": 0.9034090909090909} {"Template_token": ["", "MemIntrinsicsHandler", "(", "Function", "&", "F", ")", ":", "Func", "(", "&", "F", ")", "{"], "ground_truth": ["}"], "File": "JVMMemIntrinsicsHandler", "Func": "MemIntrinsicsHandler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87278, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "MemIntrinsicsHandler", "(", "Function", "&", "F", ")", ":", "Func", "(", "&", "F", ")", "{"], "ground_truth": ["}"], "File": "JVMMemIntrinsicsHandler", "Func": "MemIntrinsicsHandler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87279, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "for", "(", "auto", "*", "User", ":", "I", "->", "users", "(", ")", ")", "{"], "ground_truth": ["if", "(", "User", "->", "getNumUses", "(", ")", ")", "PopulateEraseUsers", "(", "User", ",", "Users", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "PopulateEraseUsers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87280, "Length": 28, "Cover_Rate": 0.509090909090909} {"Template_token": ["", "if", "(", "User", "->", "getNumUses", "(", ")", ")", "PopulateEraseUsers", "(", "User", ",", "Users", ")", ";"], "ground_truth": ["Users", ".", "push_back", "(", "User", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "PopulateEraseUsers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87281, "Length": 22, "Cover_Rate": 0.4} {"Template_token": ["", "for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "User", ",", "Offset", ",", "false", ")", ";", "ProcessMemOpWRTCompositeSource", "(", "SrcMem", ",", "MemOpOffsetMap", ",", "DestTy", ")", ";"], "ground_truth": ["}"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessArrays", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87283, "Length": 34, "Cover_Rate": 0.5396825396825397} {"Template_token": ["", "LLVMContext", "&", "Cxt", "=", "Func", "->", "getContext", "(", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";"], "ground_truth": ["TargetIdxTy", "=", "GetTargetIndexType", "(", "DL", ",", "Cxt", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87284, "Length": 34, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "AddToLazyDeletionSet", "(", "&", "I", ")", ";"], "ground_truth": ["for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "RetVal", "&=", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "User", ",", "Offset", ",", "isStruct", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessGEPChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87285, "Length": 32, "Cover_Rate": 0.31683168316831684} {"Template_token": ["", "for", "(", "auto", "*", "Val", ":", "DeletionSet", ")", "{", "SmallVector", "<", "User", "*", ",", "", ">", "Users", ";", "PopulateEraseUsers", "(", "Val", ",", "Users", ")", ";"], "ground_truth": ["Users", ".", "push_back", "(", "Val", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87286, "Length": 32, "Cover_Rate": 0.3595505617977528} {"Template_token": ["", "if", "(", "Val", "!=", "I", "&&", "DeletionSet", ".", "find", "(", "I", ")", "!=", "DeletionSet", ".", "end", "(", ")", ")", "DeletionSet", ".", "erase", "(", "I", ")", ";", "}", "}"], "ground_truth": ["}"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87287, "Length": 29, "Cover_Rate": 0.3258426966292135} {"Template_token": ["", "void", "MemIntrinsicsHandler", "::", "ProcessMemOpWRTCompositeSource", "(", "Value", "*", "SrcMem", ",", "SrcMemOpOffset", "&", "MemOpOffsetMap", ",", "Type", "*", "DestTy", ")", "{", "Type", "*", "SrcTy", "=", "GetRootType", "(", "SrcMem", "->", "getType", "(", ")", ")", ";", "assert", "(", "isa", "<", "ArrayType", ">", "(", "SrcTy", ")", "||", "isa", "<", "StructType", ">", "(", "SrcTy", ")", ")", ";"], "ground_truth": ["for", "(", "auto", "&", "MemOpOffsetPair", ":", "MemOpOffsetMap", ")", "{"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessMemOpWRTCompositeSource", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87288, "Length": 59, "Cover_Rate": 0.5175438596491229} {"Template_token": ["", "for", "(", "auto", "&", "MemOpOffsetPair", ":", "MemOpOffsetMap", ")", "{"], "ground_truth": ["IRBuilder", "<", ">", "IRB", "(", "cast", "<", "Instruction", ">", "(", "MemOpOffsetPair", ".", "first", ")", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessMemOpWRTSourcePrimitive", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87289, "Length": 25, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "void", "MemIntrinsicsHandler", "::", "ProcessPrimitive", "(", "Type", "*", "SrcTy", ",", "Type", "*", "DestTy", ",", "Value", "*", "Offset", ",", "Value", "*", "SrcMem", ",", "BitCastInst", "&", "I", ")", "{", "assert", "(", "SrcTy", "->", "isIntegerTy", "(", ")", ")", ";", "SrcMemOpOffset", "MemOpOffsetMap", ";"], "ground_truth": ["for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "User", ",", "Offset", ",", "false", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessPrimitive", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87290, "Length": 62, "Cover_Rate": 0.8611111111111112} {"Template_token": ["", "SrcMemOpOffset", "MemOpOffsetMap", ";", "for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "User", ",", "Offset", ",", "false", ")", ";"], "ground_truth": ["ProcessMemOpWRTSourcePrimitive", "(", "SrcMem", ",", "MemOpOffsetMap", ",", "DestTy", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessPrimitive", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87291, "Length": 36, "Cover_Rate": 0.5} {"Template_token": ["", "void", "MemIntrinsicsHandler", "::", "ProcessStructures", "(", "Type", "*", "SrcTy", ",", "Type", "*", "DestTy", ",", "Value", "*", "Offset", ",", "Value", "*", "SrcMem", ",", "BitCastInst", "&", "I", ")", "{", "SrcMemOpOffset", "MemOpOffsetMap", ";", "for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "User", ",", "Offset", ",", "false", ")", ";", "ProcessMemOpWRTCompositeSource", "(", "SrcMem", ",", "MemOpOffsetMap", ",", "DestTy", ")", ";"], "ground_truth": ["}"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessStructures", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87293, "Length": 63, "Cover_Rate": 1.0} {"Template_token": ["", "else", "if", "(", "isa", "<", "LoadInst", ">", "(", "&", "I", ")", "||", "isa", "<", "StoreInst", ">", "(", "&", "I", ")", ")", "MemOpOffsetMap", "[", "&", "I", "]", "=", "Offset", ";", "else", "if", "(", "isa", "<", "BitCastInst", ">", "(", "&", "I", ")", ")", "{"], "ground_truth": ["AddToLazyDeletionSet", "(", "&", "I", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessUser", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87294, "Length": 48, "Cover_Rate": 0.32} {"Template_token": ["", "else", "if", "(", "isa", "<", "BitCastInst", ">", "(", "&", "I", ")", ")", "{", "AddToLazyDeletionSet", "(", "&", "I", ")", ";"], "ground_truth": ["for", "(", "auto", "*", "BCUser", ":", "cast", "<", "BitCastInst", ">", "(", "&", "I", ")", "->", "users", "(", ")", ")", "RetVal", "&=", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "BCUser", ",", "Offset", ",", "isStruct", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessUser", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87295, "Length": 52, "Cover_Rate": 0.3466666666666667} {"Template_token": ["", "bool", "HasBitCastInChain", "=", "false", ";", "Value", "*", "Offset", "=", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "", ")", ";", "Value", "*", "Root", "=", "GetRootObject", "(", "&", "I", ",", "&", "Offset", ",", "HasBitCastInChain", ")", ";", "assert", "(", "Root", "&&", "isa", "<", "PointerType", ">", "(", "Root", "->", "getType", "(", ")", ")", "&&", "", ")", ";", "if", "(", "HasBitCastInChain", ")", "return", ";", "Type", "*", "RootTy", "=", "GetRootType", "(", "Root", "->", "getType", "(", ")", ")", ";"], "ground_truth": ["Type", "*", "DestTy", "=", "GetRootType", "(", "I", ".", "getDestTy", "(", ")", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "visitBitCastInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87296, "Length": 84, "Cover_Rate": 0.5} {"Template_token": ["", "assert", "(", "MO", ".", "isReg", "(", ")", "&&", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "MO", ".", "getReg", "(", ")", ")", "&&", "", ")", ";", "if", "(", "!", "MRI", "->", "hasOneDef", "(", "MO", ".", "getReg", "(", ")", ")", ")", "return", "false", ";"], "ground_truth": ["MachineInstr", "*", "Driver", "=", "MRI", "->", "getVRegDef", "(", "MO", ".", "getReg", "(", ")", ")", ";"], "File": "JVMMICommonUtils", "Func": "HasConstantDriver", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87297, "Length": 54, "Cover_Rate": 0.391304347826087} {"Template_token": ["", "return", "false", ";", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "{", "isInt", "=", "true", ";", "return", "true", ";", "}", "case", "", ":"], "ground_truth": ["case", "", ":"], "File": "JVMMICommonUtils", "Func": "isConstantOpcode", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87298, "Length": 30, "Cover_Rate": 0.46153846153846156} {"Template_token": ["", "FunctionPass", "*", "createOffsetAllocator", "(", ")", "{"], "ground_truth": ["return", "new", "OffsetAllocator", "(", ")", ";"], "File": "JVMOffsetAllocator", "Func": "createJVMOffsetAllocator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87299, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "FunctionPass", "*", "createOffsetAllocator", "(", ")", "{"], "ground_truth": ["return", "new", "OffsetAllocator", "(", ")", ";"], "File": "JVMOffsetAllocator", "Func": "createJVMOffsetAllocator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87300, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "void", "OffsetAllocator", "::", "EnterScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMOffsetAllocator", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87301, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "void", "OffsetAllocator", "::", "ExitScopeIfDone", "(", "MachineDomTreeNode", "*", "Node", ",", "DenseMap", "<", "MachineDomTreeNode", "*", ",", "unsigned", ">", "&", "OpenChildren", ")", "{", "if", "(", "OpenChildren", "[", "Node", "]", ")", "return", ";", "ExitScope", "(", "Node", "->", "getBlock", "(", ")", ")", ";", "while", "(", "MachineDomTreeNode", "*", "Parent", "=", "Node", "->", "getIDom", "(", ")", ")", "{", "unsigned", "Left", "=", "--", "OpenChildren", "[", "Parent", "]", ";", "if", "(", "Left", "!=", "", ")", "break", ";", "ExitScope", "(", "Parent", "->", "getBlock", "(", ")", ")", ";"], "ground_truth": ["Node", "=", "Parent", ";"], "File": "JVMOffsetAllocator", "Func": "ExitScopeIfDone", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87305, "Length": 81, "Cover_Rate": 0.9759036144578314} {"Template_token": ["", "static", "bool", "isAllocationCandidate", "(", "const", "InstrInfo", "*", "TII", ",", "MachineInstr", "*", "MI", ")", "{", "if", "(", "MI", "->", "isReturn", "(", ")", ")", "return", "false", ";", "if", "(", "MI", "->", "skipAllocation", "(", ")", ")", "return", "false", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMOffsetAllocator", "Func": "isAllocationCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87306, "Length": 40, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "MI", "->", "isReturn", "(", ")", ")", "return", "false", ";", "if", "(", "MI", "->", "skipAllocation", "(", ")", ")", "return", "false", ";"], "ground_truth": ["return", "true", ";"], "File": "JVMOffsetAllocator", "Func": "isAllocationCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87307, "Length": 25, "Cover_Rate": 0.625} {"Template_token": ["", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMOffsetAllocator", "Func": "isArgument", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87308, "Length": 19, "Cover_Rate": 0.30158730158730157} {"Template_token": ["", "static", "bool", "isArgument", "(", "MachineInstr", "*", "MI", ")", "{", "unsigned", "Opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "false", ";", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":"], "ground_truth": ["case", "", ":"], "File": "JVMOffsetAllocator", "Func": "isArgument", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87309, "Length": 43, "Cover_Rate": 0.6825396825396826} {"Template_token": ["", "assert", "(", "MBB", "->", "getNumber", "(", ")", "==", "", "&&", "", ")", ";", "return", "true", ";", "}", "else", "return", "false", ";"], "ground_truth": ["}"], "File": "JVMOffsetAllocator", "Func": "isEntryBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87310, "Length": 22, "Cover_Rate": 0.55} {"Template_token": ["", "const", "std", "::", "vector", "<", "MachineDomTreeNode", "*", ">", "&", "Children", "=", "Node", "->", "getChildren", "(", ")", ";", "OpenChildren", "[", "Node", "]", "=", "Children", ".", "size", "(", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Child", ":", "Children", ")", "WorkList", ".", "push_back", "(", "Child", ")", ";"], "ground_truth": ["}", "while", "(", "!", "WorkList", ".", "empty", "(", ")", ")", ";"], "File": "JVMOffsetAllocator", "Func": "PerformAllocation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87313, "Length": 54, "Cover_Rate": 0.31213872832369943} {"Template_token": ["", "const", "MachineOperand", "&", "Imm2", "=", "I2", "->", "getOperand", "(", "", ")", ";", "return", "Imm1", ".", "getImm", "(", ")", "<", "Imm2", ".", "getImm", "(", ")", ";", "}", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", "->", "begin", "(", ")", ",", "E", "=", "MBB", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "I", "++", ")", "{", "MachineInstr", "*", "MI", "=", "&", "*", "I", ";", "if", "(", "isArgument", "(", "MI", ")", ")", "Arguments", ".", "push_back", "(", "MI", ")", ";", "}", "std", "::", "sort", "(", "Arguments", ".", "begin", "(", ")", ",", "Arguments", ".", "end", "(", ")", ",", "SortArguments", ")", ";", "for", "(", "auto", "*", "Arg", ":", "Arguments", ")", "{"], "ground_truth": ["MachineOperand", "&", "MO", "=", "Arg", "->", "getOperand", "(", "", ")", ";"], "File": "JVMOffsetAllocator", "Func": "PerformArgumentAllocation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87314, "Length": 118, "Cover_Rate": 0.34911242603550297} {"Template_token": ["", "if", "(", "isEntryBlock", "(", "MBB", ")", ")", "{", "PerformArgumentAllocation", "(", "MBB", ")", ";", "PerformAllocationForScratchSet", "(", ")", ";", "}", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", "->", "begin", "(", ")", ",", "E", "=", "MBB", "->", "end", "(", ")", ";", "I", "!=", "E", ";", ")", "{", "MachineInstr", "*", "MI", "=", "&", "*", "I", ";", "++", "I", ";", "if", "(", "!", "isAllocationCandidate", "(", "TII", ",", "MI", ")", "||", "isArgument", "(", "MI", ")", ")", "continue", ";", "unsigned", "NumDefs", "=", "MI", "->", "getDesc", "(", ")", ".", "getNumDefs", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "NumDefs", ";", "++", "i", ")", "{", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "MO", ".", "isImplicit", "(", ")", ")", "continue", ";", "assert", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "MO", ".", "getReg", "(", ")", ")", "&&", "", ")", ";", "if", "(", "MI", "->", "isMoveImmediate", "(", ")", ")", "{", "FuncInfo", "->", "setRegisterOffset", "(", "MO", ".", "getReg", "(", ")", ",", "-", "", ")", ";", "}", "else", "if", "(", "MI", "->", "mayLoad", "(", ")", "||", "MI", "->", "getDesc", "(", ")", ".", "isRegCConv", "(", ")", ")", "{", "unsigned", "UseOffset", ";", "MachineOperand", "LoadSrc", "=", "MI", "->", "getOperand", "(", "", ")", ";"], "ground_truth": ["if", "(", "LoadSrc", ".", "isReg", "(", ")", ")", "UseOffset", "=", "FuncInfo", "->", "getRegisterOffset", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ";"], "File": "JVMOffsetAllocator", "Func": "ProcessBlockAllocation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87315, "Length": 228, "Cover_Rate": 0.5685785536159601} {"Template_token": ["", "bool", "OffsetAllocator", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MFN", ")", "{", "MF", "=", "&", "MFN", ";", "TII", "=", "static_cast", "<", "const", "InstrInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "static_cast", "<", "const", "RegisterInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ")", ";", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["PerformAllocation", "(", "DT", "->", "getRootNode", "(", ")", ")", ";"], "File": "JVMOffsetAllocator", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87316, "Length": 92, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "return", "new", "PostAllocationFixups", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMPostAllocationFixups", "Func": "createJVMPostAllocationFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87317, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "return", "new", "PostAllocationFixups", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMPostAllocationFixups", "Func": "createJVMPostAllocationFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87318, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "void", "PostAllocationFixups", "::", "EnterScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "ground_truth": ["}"], "File": "JVMPostAllocationFixups", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87319, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "ground_truth": ["}"], "File": "JVMPostAllocationFixups", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87320, "Length": 18, "Cover_Rate": 0.6428571428571429} {"Template_token": ["", "void", "PostAllocationFixups", "::", "ExitScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMPostAllocationFixups", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87321, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "ground_truth": ["}"], "File": "JVMPostAllocationFixups", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87322, "Length": 18, "Cover_Rate": 0.6428571428571429} {"Template_token": ["", "if", "(", "OpenChildren", "[", "Node", "]", ")", "return", ";", "ExitScope", "(", "Node", "->", "getBlock", "(", ")", ")", ";"], "ground_truth": ["while", "(", "MachineDomTreeNode", "*", "Parent", "=", "Node", "->", "getIDom", "(", ")", ")", "{"], "File": "JVMPostAllocationFixups", "Func": "ExitScopeIfDone", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87323, "Length": 31, "Cover_Rate": 0.37349397590361444} {"Template_token": ["", "if", "(", "MI", ".", "isReturn", "(", ")", "&&", "MI", ".", "getNumOperands", "(", ")", ")", "{"], "ground_truth": ["MachineInstr", "*", "RetOpDef", "=", "MRI", ".", "getVRegDef", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ";"], "File": "JVMPostAllocationFixups", "Func": "isReturnFixupCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87324, "Length": 35, "Cover_Rate": 0.5303030303030303} {"Template_token": ["", "if", "(", "MI", ".", "mayStore", "(", ")", "||", "MI", ".", "mayLoad", "(", ")", "||", "MI", ".", "isReturn", "(", ")", "||", "MI", ".", "isCompare", "(", ")", "||", "MI", ".", "hasUnmodeledSideEffects", "(", ")", "||", "MI", ".", "isRematerializable", "(", ")", ")", "return", "false", ";", "else", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMPostAllocationFixups", "Func": "isStoreCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87325, "Length": 46, "Cover_Rate": 0.696969696969697} {"Template_token": ["", "bool", "isStoreCandidate", "(", "const", "MachineInstr", "&", "MI", ")", "{", "if", "(", "MI", ".", "skipAllocation", "(", ")", ")", "return", "false", ";", "if", "(", "MI", ".", "mayStore", "(", ")", "||", "MI", ".", "mayLoad", "(", ")", "||", "MI", ".", "isReturn", "(", ")", "||", "MI", ".", "isCompare", "(", ")", "||", "MI", ".", "hasUnmodeledSideEffects", "(", ")", "||", "MI", ".", "isRematerializable", "(", ")", ")", "return", "false", ";"], "ground_truth": ["else", "return", "true", ";"], "File": "JVMPostAllocationFixups", "Func": "isStoreCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87326, "Length": 65, "Cover_Rate": 0.9848484848484849} {"Template_token": ["", "DenseMap", "<", "MachineDomTreeNode", "*", ",", "unsigned", ">", "OpenChildren", ";", "WorkList", ".", "push_back", "(", "Node", ")", ";", "do", "{", "Node", "=", "WorkList", ".", "pop_back_val", "(", ")", ";", "Scopes", ".", "push_back", "(", "Node", ")", ";", "const", "std", "::", "vector", "<", "MachineDomTreeNode", "*", ">", "&", "Children", "=", "Node", "->", "getChildren", "(", ")", ";", "OpenChildren", "[", "Node", "]", "=", "Children", ".", "size", "(", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Child", ":", "Children", ")", "WorkList", ".", "push_back", "(", "Child", ")", ";", "}", "while", "(", "!", "WorkList", ".", "empty", "(", ")", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Node", ":", "Scopes", ")", "{", "MachineBasicBlock", "*", "MBB", "=", "Node", "->", "getBlock", "(", ")", ";", "EnterScope", "(", "MBB", ")", ";", "ProcessReturnFixup", "(", "MBB", ")", ";", "ExitScopeIfDone", "(", "Node", ",", "OpenChildren", ")", ";"], "ground_truth": ["}"], "File": "JVMPostAllocationFixups", "Func": "PerformReturnFixup", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87329, "Length": 124, "Cover_Rate": 0.8104575163398693} {"Template_token": ["", "DenseMap", "<", "MachineDomTreeNode", "*", ",", "unsigned", ">", "OpenChildren", ";", "WorkList", ".", "push_back", "(", "Node", ")", ";", "do", "{", "Node", "=", "WorkList", ".", "pop_back_val", "(", ")", ";", "Scopes", ".", "push_back", "(", "Node", ")", ";"], "ground_truth": ["const", "std", "::", "vector", "<", "MachineDomTreeNode", "*", ">", "&", "Children", "=", "Node", "->", "getChildren", "(", ")", ";"], "File": "JVMPostAllocationFixups", "Func": "PerformStoreInsertion", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87330, "Length": 50, "Cover_Rate": 0.32679738562091504} {"Template_token": ["", "MachineInstr", "*", "ConstDriver", "=", "nullptr", ";", "MachineInstr", "*", "MI", "=", "&", "*", "I", ";", "++", "I", ";", "if", "(", "!", "isReturnFixupCandidate", "(", "MRI", ",", "*", "MI", ")", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "*", "MI", ")", ";", "MachineOperand", "&", "RetVal", "=", "MI", "->", "getOperand", "(", "", ")", ";", "assert", "(", "RetVal", ".", "isReg", "(", ")", "&&", "", ")", ";", "unsigned", "RetReg", "=", "RetVal", ".", "getReg", "(", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "MRI", ".", "getRegClass", "(", "RetReg", ")", ";", "unsigned", "NewReg", "=", "MRI", ".", "createVirtualRegister", "(", "RC", ")", ";", "if", "(", "HasConstantDriver", "(", "&", "MRI", ",", "RetVal", ",", "isInt", ",", "&", "ConstDriver", ")", ")", "{", "unsigned", "LDCOpcode", "=", "isInt", "?", "", ":", "", ";", "NewMI", "=", "BuildMI", "(", "*", "MBB", ",", "MI", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "LDCOpcode", ")", ")", ".", "addDef", "(", "NewReg", ")", ".", "addImm", "(", "ConstDriver", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ";", "ConstDriver", "->", "eraseFromParent", "(", ")", ";", "}", "else", "{", "unsigned", "LoadOpcode", "=", "", "(", "RC", ")", ";", "NewMI", "=", "BuildMI", "(", "*", "MBB", ",", "MI", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "LoadOpcode", ")", ")", ".", "addDef", "(", "NewReg", ")", ".", "addImm", "(", "FuncInfo", "->", "getRegisterOffset", "(", "RetReg", ")", ")", ";", "}", "FuncInfo", "->", "setRegisterOffset", "(", "NewReg", ",", "FuncInfo", "->", "getRegisterOffset", "(", "RetVal", ".", "getReg", "(", ")", ")", ")", ";", "MachineOperand", "NewRetVal", "=", "MachineOperand", "::", "CreateReg", "(", "NewReg", ",", "false", ")", ";", "MI", "->", "RemoveOperand", "(", "", ")", ";", "MI", "->", "addOperand", "(", "*", "MF", ",", "NewRetVal", ")", ";", "MRI", ".", "addRegOperandToUseList", "(", "&", "NewRetVal", ")", ";", "NumFixups", "++", ";", "if", "(", "NewMI", "!=", "nullptr", ")", "Change", "=", "true", ";", "}", "return", "Change", ";"], "ground_truth": ["}"], "File": "JVMPostAllocationFixups", "Func": "ProcessReturnFixup", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87331, "Length": 291, "Cover_Rate": 0.784366576819407} {"Template_token": ["", "TRI", "=", "static_cast", "<", "const", "RegisterInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ")", ";", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "PerformStoreInsertion", "(", "DT", "->", "getRootNode", "(", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "PerformReturnFixup", "(", "DT", "->", "getRootNode", "(", ")", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "JVMPostAllocationFixups", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87332, "Length": 79, "Cover_Rate": 0.6929824561403509} {"Template_token": ["", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "PerformStoreInsertion", "(", "DT", "->", "getRootNode", "(", ")", ")", ";"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "File": "JVMPostAllocationFixups", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87333, "Length": 37, "Cover_Rate": 0.32456140350877194} {"Template_token": ["", "if", "(", "EraseSet", ".", "find", "(", "MI", ")", "==", "EraseSet", ".", "end", "(", ")", ")", "EraseSet", ".", "insert", "(", "MI", ")", ";"], "ground_truth": ["}"], "File": "JVMPreAllocationFixups", "Func": "AddToDeferredEraseSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87335, "Length": 23, "Cover_Rate": 0.696969696969697} {"Template_token": ["", "for", "(", "DeferredEraseSetIter", "I", "=", "EraseSet", ".", "begin", "(", ")", ",", "E", "=", "EraseSet", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "I", "++", ")", "{", "(", "*", "I", ")", "->", "eraseFromParent", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMPreAllocationFixups", "Func": "Cleanup", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87336, "Length": 37, "Cover_Rate": 0.7254901960784313} {"Template_token": ["", "return", "new", "PreAllocationFixups", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMPreAllocationFixups", "Func": "createJVMPreAllocationFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87337, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "FunctionPass", "*", "createPreAllocationFixups", "(", ")", "{"], "ground_truth": ["return", "new", "PreAllocationFixups", "(", ")", ";"], "File": "JVMPreAllocationFixups", "Func": "createJVMPreAllocationFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87338, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "void", "PreAllocationFixups", "::", "EnterScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMPreAllocationFixups", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87339, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "void", "PreAllocationFixups", "::", "ExitScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMPreAllocationFixups", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87341, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "void", "PreAllocationFixups", "::", "ExitScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "ground_truth": ["}"], "File": "JVMPreAllocationFixups", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87342, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "ExitScope", "(", "Node", "->", "getBlock", "(", ")", ")", ";", "while", "(", "MachineDomTreeNode", "*", "Parent", "=", "Node", "->", "getIDom", "(", ")", ")", "{", "unsigned", "Left", "=", "--", "OpenChildren", "[", "Parent", "]", ";", "if", "(", "Left", "!=", "", ")", "break", ";"], "ground_truth": ["ExitScope", "(", "Parent", "->", "getBlock", "(", ")", ")", ";"], "File": "JVMPreAllocationFixups", "Func": "ExitScopeIfDone", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87343, "Length": 48, "Cover_Rate": 0.5783132530120482} {"Template_token": ["", "bool", "IsExtendFixupCandidate", "(", "MachineRegisterInfo", "*", "MRI", ",", "MachineInstr", "*", "MI", ")", "{", "unsigned", "Opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "false", ";", "case", "", ":", "case", "", ":"], "ground_truth": ["case", "", ":"], "File": "JVMPreAllocationFixups", "Func": "IsExtendFixupCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87344, "Length": 40, "Cover_Rate": 0.45977011494252873} {"Template_token": ["", "unsigned", "Opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "false", ";", "case", "", ":", "case", "", ":"], "ground_truth": ["case", "", ":"], "File": "JVMPreAllocationFixups", "Func": "IsExtendFixupCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87345, "Length": 28, "Cover_Rate": 0.3218390804597701} {"Template_token": ["", "for", "(", "MachineDomTreeNode", "*", "Child", ":", "Children", ")", "WorkList", ".", "push_back", "(", "Child", ")", ";", "}", "while", "(", "!", "WorkList", ".", "empty", "(", ")", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Node", ":", "Scopes", ")", "{", "MachineBasicBlock", "*", "MBB", "=", "Node", "->", "getBlock", "(", ")", ";", "EnterScope", "(", "MBB", ")", ";", "ProcessExtendFixupsBlock", "(", "MBB", ")", ";", "ExitScopeIfDone", "(", "Node", ",", "OpenChildren", ")", ";", "}"], "ground_truth": ["Cleanup", "(", ")", ";"], "File": "JVMPreAllocationFixups", "Func": "PerformExtendFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87348, "Length": 67, "Cover_Rate": 0.4267515923566879} {"Template_token": ["", "unsigned", "StoreOpcode", "=", "", "(", "MRI", "->", "getRegClass", "(", "MOLHS", ".", "getReg", "(", ")", ")", ")", ";", "BuildMI", "(", "*", "MBB", ",", "MI", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "StoreOpcode", ")", ")", ".", "addDef", "(", "NewReg", ")", ".", "addUse", "(", "MORHS", ".", "getReg", "(", ")", ")", ";", "MachineOperand", "RetVal", "=", "MachineOperand", "::", "CreateReg", "(", "NewReg", ",", "false", ")", ";", "MI", "->", "RemoveOperand", "(", "", ")", ";", "MI", "->", "addOperand", "(", "*", "MF", ",", "RetVal", ")", ";", "MRI", "->", "addRegOperandToUseList", "(", "&", "RetVal", ")", ";", "}"], "ground_truth": ["}"], "File": "JVMPreAllocationFixups", "Func": "ProcessExtendFixupsBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87349, "Length": 91, "Cover_Rate": 0.42924528301886794} {"Template_token": ["", "NumFixupsInstrs", "++", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";", "MachineOperand", "MORHS", "=", "MI", "->", "getOperand", "(", "", ")", ";", "MachineOperand", "MOLHS", "=", "MI", "->", "getOperand", "(", "", ")", ";", "unsigned", "NewReg", "=", "MRI", "->", "createVirtualRegister", "(", "MRI", "->", "getRegClass", "(", "MOLHS", ".", "getReg", "(", ")", ")", ")", ";", "unsigned", "StoreOpcode", "=", "", "(", "MRI", "->", "getRegClass", "(", "MOLHS", ".", "getReg", "(", ")", ")", ")", ";", "BuildMI", "(", "*", "MBB", ",", "MI", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "StoreOpcode", ")", ")", ".", "addDef", "(", "NewReg", ")", ".", "addUse", "(", "MORHS", ".", "getReg", "(", ")", ")", ";", "MachineOperand", "RetVal", "=", "MachineOperand", "::", "CreateReg", "(", "NewReg", ",", "false", ")", ";", "MI", "->", "RemoveOperand", "(", "", ")", ";", "MI", "->", "addOperand", "(", "*", "MF", ",", "RetVal", ")", ";", "MRI", "->", "addRegOperandToUseList", "(", "&", "RetVal", ")", ";", "}"], "ground_truth": ["}"], "File": "JVMPreAllocationFixups", "Func": "ProcessExtendFixupsBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87350, "Length": 150, "Cover_Rate": 0.7075471698113207} {"Template_token": ["", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "PerformExtendFixups", "(", "DT", "->", "getRootNode", "(", ")", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "JVMPreAllocationFixups", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87351, "Length": 40, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "TII", "=", "static_cast", "<", "const", "InstrInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "static_cast", "<", "const", "RegisterInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ")", ";", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["PerformExtendFixups", "(", "DT", "->", "getRootNode", "(", ")", ")", ";"], "File": "JVMPreAllocationFixups", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87352, "Length": 77, "Cover_Rate": 0.8020833333333334} {"Template_token": ["", "void", "RegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", ")", "const", "{"], "ground_truth": ["}"], "File": "JVMRegisterInfo", "Func": "eliminateFrameIndex", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87353, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "void", "RegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "unsigned", "FIOperandNum", ",", "RegScavenger", "*", ")", "const", "{"], "ground_truth": ["}"], "File": "JVMRegisterInfo", "Func": "eliminateFrameIndex", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87354, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "const", "MCPhysReg", "*", "RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", ")", "const", "{"], "ground_truth": ["static", "const", "MCPhysReg", "CalleeSavedRegs", "[", "]", "=", "{", "", "}", ";"], "File": "JVMRegisterInfo", "Func": "getCalleeSavedRegs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87355, "Length": 24, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "const", "MCPhysReg", "*", "RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", ")", "const", "{"], "ground_truth": ["static", "const", "MCPhysReg", "CalleeSavedRegs", "[", "]", "=", "{", "", "}", ";"], "File": "JVMRegisterInfo", "Func": "getCalleeSavedRegs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87356, "Length": 24, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "unsigned", "RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "", ";"], "ground_truth": ["}"], "File": "JVMRegisterInfo", "Func": "getFrameRegister", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87357, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "const", "TargetRegisterClass", "*", "RegisterInfo", "::", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", ")", "const", "{", "assert", "(", "Kind", "==", "", "&&", "", ")", ";", "if", "(", "MF", ".", "getSubtarget", "<", "Subtarget", ">", "(", ")", ".", "hasAddr64", "(", ")", ")", "return", "&", "", ";"], "ground_truth": ["return", "&", "", ";"], "File": "JVMRegisterInfo", "Func": "getPointerRegClass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87358, "Length": 49, "Cover_Rate": 0.9074074074074074} {"Template_token": ["", "const", "TargetRegisterClass", "*", "RegisterInfo", "::", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", ")", "const", "{", "assert", "(", "Kind", "==", "", "&&", "", ")", ";", "if", "(", "MF", ".", "getSubtarget", "<", "Subtarget", ">", "(", ")", ".", "hasAddr64", "(", ")", ")", "return", "&", "", ";"], "ground_truth": ["return", "&", "", ";"], "File": "JVMRegisterInfo", "Func": "getPointerRegClass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87359, "Length": 49, "Cover_Rate": 0.9074074074074074} {"Template_token": ["", "BitVector", "RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "resRegs", "(", "getNumRegs", "(", ")", ")", ";", "return", "resRegs", ".", "set", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMRegisterInfo", "Func": "getReservedRegs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87360, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterInfo", "::", "RegisterInfo", "(", "const", "Triple", "&", "TT", ")", ":", "GenRegisterInfo", "(", "", ")", ",", "TT", "(", "TT", ")", "{"], "ground_truth": ["}"], "File": "JVMRegisterInfo", "Func": "JVMRegisterInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87361, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterInfo", "::", "RegisterInfo", "(", "const", "Triple", "&", "TT", ")", ":", "GenRegisterInfo", "(", "", ")", ",", "TT", "(", "TT", ")", "{"], "ground_truth": ["}"], "File": "JVMRegisterInfo", "Func": "JVMRegisterInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87362, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "SelectionDAGInfo", "::", "~", "SelectionDAGInfo", "(", ")", "{"], "ground_truth": ["}"], "File": "JVMSelectionDAGInfo", "Func": "~JVMSelectionDAGInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87363, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "SelectionDAGInfo", "::", "~", "SelectionDAGInfo", "(", ")", "{"], "ground_truth": ["}"], "File": "JVMSelectionDAGInfo", "Func": "~JVMSelectionDAGInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87364, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "Subtarget", "::", "enableMachineScheduler", "(", ")", "const", "{", "return", "false", ";"], "ground_truth": ["}"], "File": "JVMSubtarget", "Func": "enableMachineScheduler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87365, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "return", "false", ";"], "ground_truth": ["}"], "File": "JVMSubtarget", "Func": "enableMachineScheduler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87366, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "const", "FrameLowering", "*", "getFrameLowering", "(", ")", "const", "override", "{"], "ground_truth": ["return", "&", "FrameLowering", ";"], "File": "JVMSubtarget", "Func": "getFrameLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87367, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "&", "InstrInfo", ";"], "ground_truth": ["}"], "File": "JVMSubtarget", "Func": "getInstrInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87368, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "return", "&", "InstrInfo", ";"], "ground_truth": ["}"], "File": "JVMSubtarget", "Func": "getInstrInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87369, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "return", "&", "getInstrInfo", "(", ")", "->", "getRegisterInfo", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMSubtarget", "Func": "getRegisterInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87371, "Length": 11, "Cover_Rate": 0.55} {"Template_token": ["", "const", "SelectionDAGInfo", "*", "getSelectionDAGInfo", "(", ")", "const", "override", "{", "return", "&", "TSInfo", ";"], "ground_truth": ["}"], "File": "JVMSubtarget", "Func": "getSelectionDAGInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87372, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "return", "&", "TSInfo", ";"], "ground_truth": ["}"], "File": "JVMSubtarget", "Func": "getSelectionDAGInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87373, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "const", "TargetLowering", "*", "getTargetLowering", "(", ")", "const", "override", "{"], "ground_truth": ["return", "&", "TLInfo", ";"], "File": "JVMSubtarget", "Func": "getTargetLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87374, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "bool", "hasAddr64", "(", ")", "const", "{"], "ground_truth": ["return", "TargetTriple", ".", "isArch64Bit", "(", ")", ";"], "File": "JVMSubtarget", "Func": "hasAddr64", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87379, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "CPUString", "(", "CPU", ")", ",", "TargetTriple", "(", "TT", ")", ",", "FrameLowering", "(", ")", ",", "InstrInfo", "(", "initializeSubtargetDependencies", "(", "FS", ")", ")", ",", "TSInfo", "(", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "JVMSubtarget", "Func": "JVMSubtarget", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87380, "Length": 73, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "CPUString", "(", "CPU", ")", ",", "TargetTriple", "(", "TT", ")", ",", "FrameLowering", "(", ")", ",", "InstrInfo", "(", "initializeSubtargetDependencies", "(", "FS", ")", ")", ",", "TSInfo", "(", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "JVMSubtarget", "Func": "JVMSubtarget", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87381, "Length": 73, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "Subtarget", "::", "useAA", "(", ")", "const", "{"], "ground_truth": ["return", "true", ";"], "File": "JVMSubtarget", "Func": "useAA", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87382, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "static", "Target", "TheTarget32", ";", "return", "TheTarget32", ";"], "ground_truth": ["}"], "File": "JVMTargetInfo", "Func": "getTheJVMTarget32", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87384, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "RegisterTarget", "<", "Triple", "::", "jvm64", ">", "Y", "(", "getTheTarget64", "(", ")", ",", "", ",", "", ",", "", ")", ";"], "ground_truth": ["}"], "File": "JVMTargetInfo", "Func": "LLVMInitializeJVMTargetInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87388, "Length": 20, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "void", "PassConfig", "::", "addCodeGenPrepare", "(", ")", "{"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "addCodeGenPrepare", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87389, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "void", "PassConfig", "::", "addCodeGenPrepare", "(", ")", "{"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "addCodeGenPrepare", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87390, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "return", "false", ";"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "addGCPasses", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87391, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "bool", "addGCPasses", "(", ")", "override", "{"], "ground_truth": ["return", "false", ";"], "File": "JVMTargetMachine", "Func": "addGCPasses", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87392, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "addPass", "(", "createISelDag", "(", "getTargetMachine", "(", ")", ",", "getOptLevel", "(", ")", ")", ")", ";"], "ground_truth": ["return", "false", ";"], "File": "JVMTargetMachine", "Func": "addInstSelector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87393, "Length": 17, "Cover_Rate": 0.5} {"Template_token": ["", "addPass", "(", "createISelDag", "(", "getTargetMachine", "(", ")", ",", "getOptLevel", "(", ")", ")", ")", ";"], "ground_truth": ["return", "false", ";"], "File": "JVMTargetMachine", "Func": "addInstSelector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87394, "Length": 17, "Cover_Rate": 0.5} {"Template_token": ["", "if", "(", "JvmAggOpt", ")", "addPass", "(", "createInstructionCombiningPass", "(", ")", ")", ";", "addPass", "(", "createIRDecorator", "(", ")", ")", ";", "addPass", "(", "createAggressiveDCEPass", "(", ")", ")", ";"], "ground_truth": ["if", "(", "JvmAggOpt", ")", "addPass", "(", "createInstructionCombiningPass", "(", ")", ")", ";"], "File": "JVMTargetMachine", "Func": "addIRPasses", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87395, "Length": 36, "Cover_Rate": 0.48} {"Template_token": ["", "addPass", "(", "createCopyElision", "(", ")", ")", ";", "addPreEmitPass", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "addMachinePasses", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87396, "Length": 12, "Cover_Rate": 0.35294117647058826} {"Template_token": ["", "void", "PassConfig", "::", "addOptimizedRegAlloc", "(", "FunctionPass", "*", "RegAllocPass", ")", "{", "disablePass", "(", "&", "RegisterCoalescerID", ")", ";"], "ground_truth": ["TargetPassConfig", "::", "addOptimizedRegAlloc", "(", "RegAllocPass", ")", ";"], "File": "JVMTargetMachine", "Func": "addOptimizedRegAlloc", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87397, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "disablePass", "(", "&", "PatchableFunctionID", ")", ";", "disablePass", "(", "&", "PrologEpilogCodeInserterID", ")", ";", "TargetPassConfig", "::", "addPostRegAlloc", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "addPostRegAlloc", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87398, "Length": 19, "Cover_Rate": 0.3064516129032258} {"Template_token": ["", "TargetPassConfig", "::", "addPreEmitPass", "(", ")", ";", "if", "(", "JvmLSOpt", ")", "addPass", "(", "createLoadStoreEliminationOpt", "(", ")", ")", ";", "addPass", "(", "createOffsetAllocator", "(", ")", ")", ";", "addPass", "(", "createPostAllocationFixups", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "addPreEmitPass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87399, "Length": 32, "Cover_Rate": 0.8205128205128205} {"Template_token": ["", "FunctionPass", "*", "PassConfig", "::", "createTargetRegisterAllocator", "(", "bool", ")", "{", "return", "nullptr", ";"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "createTargetRegisterAllocator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87402, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "dumpclassfile", ";", "cl", "::", "GetCommandLineOption", "<", "bool", ">", "(", "", ",", "dumpclassfile", ")", ";", "bool", "enablejvmassembler", ";", "cl", "::", "GetCommandLineOption", "<", "bool", ">", "(", "", ",", "enablejvmassembler", ")", ";"], "ground_truth": ["if", "(", "dumpclassfile", "&&", "!", "enablejvmassembler", ")", "llvm", "::", "errs", "(", ")", "<<", "", "", ";"], "File": "JVMTargetMachine", "Func": "doCommandLineValidation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87404, "Length": 46, "Cover_Rate": 0.8518518518518519} {"Template_token": ["", "if", "(", "dumpclassfile", "&&", "!", "enablejvmassembler", ")", "llvm", "::", "errs", "(", ")", "<<", "", "", ";"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "doCommandLineValidation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87405, "Length": 17, "Cover_Rate": 0.3148148148148148} {"Template_token": ["", "if", "(", "!", "RM", ".", "hasValue", "(", ")", ")", "return", "Reloc", "::", "PIC_", ";"], "ground_truth": ["return", "*", "RM", ";"], "File": "JVMTargetMachine", "Func": "getEffectiveRelocModel", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87407, "Length": 18, "Cover_Rate": 0.5294117647058824} {"Template_token": ["", "return", "getTM", "<", "TargetMachine", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "getJVMTargetMachine", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87408, "Length": 9, "Cover_Rate": 0.5625} {"Template_token": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{", "return", "TLOF", ".", "get", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "getObjFileLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87410, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{"], "ground_truth": ["return", "TLOF", ".", "get", "(", ")", ";"], "File": "JVMTargetMachine", "Func": "getObjFileLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87411, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "PassConfig", "(", "TargetMachine", "&", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "JVMPassConfig", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87412, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "PassConfig", "(", "TargetMachine", "&", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "JVMPassConfig", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87413, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "X", "(", "getTheTarget32", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "getTheTarget64", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "LLVMInitializeJVMTarget", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87414, "Length": 23, "Cover_Rate": 0.8214285714285714} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "getTheTarget64", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "LLVMInitializeJVMTarget", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87415, "Length": 12, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "TargetMachine", "::", "~", "TargetMachine", "(", ")", "{"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "~JVMTargetMachine", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87416, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "TargetMachine", "::", "~", "TargetMachine", "(", ")", "{"], "ground_truth": ["}"], "File": "JVMTargetMachine", "Func": "~JVMTargetMachine", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87417, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "void", "changeSection", "(", "const", "MCSection", "*", "CurSection", ",", "MCSection", "*", "Section", ",", "const", "MCExpr", "*", "SubSection", ",", "raw_ostream", "&", "OS", ")", "override", "{"], "ground_truth": ["}"], "File": "JVMTargetStreamer", "Func": "changeSection", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87418, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "void", "changeSection", "(", "const", "MCSection", "*", "CurSection", ",", "MCSection", "*", "Section", ",", "const", "MCExpr", "*", "SubSection", ",", "raw_ostream", "&", "OS", ")", "override", "{"], "ground_truth": ["}"], "File": "JVMTargetStreamer", "Func": "changeSection", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87419, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "void", "TargetAsmStreamer", "::", "emitString", "(", "const", "Twine", "&", "Str", ")", "{"], "ground_truth": ["OS", "<<", "Str", "<<", "", ";"], "File": "JVMTargetStreamer", "Func": "emitString", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87420, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "TargetAsmStreamer", "::", "TargetAsmStreamer", "(", "MCStreamer", "&", "S", ",", "formatted_raw_ostream", "&", "OS", ")", ":", "TargetStreamer", "(", "S", ")", ",", "OS", "(", "OS", ")", "{"], "ground_truth": ["}"], "File": "JVMTargetStreamer", "Func": "JVMTargetAsmStreamer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87424, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "TargetAsmStreamer", "::", "TargetAsmStreamer", "(", "MCStreamer", "&", "S", ",", "formatted_raw_ostream", "&", "OS", ")", ":", "TargetStreamer", "(", "S", ")", ",", "OS", "(", "OS", ")", "{"], "ground_truth": ["}"], "File": "JVMTargetStreamer", "Func": "JVMTargetAsmStreamer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87425, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "TargetStreamer", "::", "TargetStreamer", "(", "MCStreamer", "&", "S", ")", ":", "MCTargetStreamer", "(", "S", ")", "{"], "ground_truth": ["}"], "File": "JVMTargetStreamer", "Func": "JVMTargetStreamer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87426, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "TargetStreamer", "::", "TargetStreamer", "(", "MCStreamer", "&", "S", ")", ":", "MCTargetStreamer", "(", "S", ")", "{"], "ground_truth": ["}"], "File": "JVMTargetStreamer", "Func": "JVMTargetStreamer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87427, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "BlockPredication", "(", "Function", "&", "Func", ")", ":", "F", "(", "&", "Func", ")", "{"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "BlockPredication", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87430, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "BlockPredication", "(", "Function", "&", "Func", ")", ":", "F", "(", "&", "Func", ")", "{"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "BlockPredication", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87431, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "BlockRevPostOrderTraversal", "::", "BlockRevPostOrderTraversal", "(", "Function", "*", "F", ")", "{"], "ground_truth": ["visitBlocks", "(", "&", "F", "->", "getEntryBlock", "(", ")", ")", ";"], "File": "JVMX2Java", "Func": "BlockRevPostOrderTraversal", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87432, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "visitBlocks", "(", "&", "F", "->", "getEntryBlock", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "BlockRevPostOrderTraversal", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87433, "Length": 11, "Cover_Rate": 0.55} {"Template_token": ["", "BasicBlock", "*", "Block", "=", "*", "Itr", ";"], "ground_truth": ["if", "(", "Block", "->", "hasOneUse", "(", ")", "&&", "IsRPOTPredecessor", "(", "Itr", ",", "cast", "<", "BasicBlock", ">", "(", "cast", "<", "Instruction", ">", "(", "*", "(", "Block", "->", "user_begin", "(", ")", ")", ")", "->", "getParent", "(", ")", ")", ")", ")", "return", "true", ";"], "File": "JVMX2Java", "Func": "CanSkipPredication", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87434, "Length": 48, "Cover_Rate": 0.7741935483870968} {"Template_token": ["", "BasicBlock", "*", "Block", "=", "*", "Itr", ";"], "ground_truth": ["if", "(", "Block", "->", "hasOneUse", "(", ")", "&&", "IsRPOTPredecessor", "(", "Itr", ",", "cast", "<", "BasicBlock", ">", "(", "cast", "<", "Instruction", ">", "(", "*", "(", "Block", "->", "user_begin", "(", ")", ")", ")", "->", "getParent", "(", ")", ")", ")", ")", "return", "true", ";"], "File": "JVMX2Java", "Func": "CanSkipPredication", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87435, "Length": 48, "Cover_Rate": 0.7741935483870968} {"Template_token": ["", "FunctionPass", "*", "createX2JavaPass", "(", ")", "{"], "ground_truth": ["return", "new", "XToJavaPass", "(", ")", ";"], "File": "JVMX2Java", "Func": "createX2JavaPass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87437, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "i", "++", "<<", "", "<<", "PV", ".", "getPointer", "(", ")", "->", "getName", "(", ")", "<<", "(", "PV", ".", "getInt", "(", ")", "?", "", ":", "", ")", ")", ";"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "DumpPredication", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87438, "Length": 37, "Cover_Rate": 0.46835443037974683} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "Blk", "->", "getName", "(", ")", ")", ";", "for", "(", "auto", "PV", ":", "PredCondMap", "[", "Blk", "]", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "i", "++", "<<", "", "<<", "PV", ".", "getPointer", "(", ")", "->", "getName", "(", ")", "<<", "(", "PV", ".", "getInt", "(", ")", "?", "", ":", "", ")", ")", ";"], "File": "JVMX2Java", "Func": "DumpPredication", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87439, "Length": 62, "Cover_Rate": 0.7848101265822784} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "EmitArgumentInitializationWrappers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87440, "Length": 10, "Cover_Rate": 0.5882352941176471} {"Template_token": ["", "void", "XToJavaPass", "::", "EmitArgumentInitializationWrappers", "(", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "EmitArgumentInitializationWrappers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87441, "Length": 17, "Cover_Rate": 1.0} {"Template_token": ["", "int", "PhiRemoved", "=", "PhiEliminator", ".", "ProcessFunction", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "PhiRemoved", "<<", "", ")", ";", "Predicator", ".", "ProcessFunction", "(", ")", ";"], "ground_truth": ["for", "(", "auto", "*", "Blk", ":", "Predicator", ".", "getOrderedList", "(", ")", ")", "{"], "File": "JVMX2Java", "Func": "EmitBody", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87443, "Length": 41, "Cover_Rate": 0.6833333333333333} {"Template_token": ["", "void", "XToJavaPass", "::", "EmitEpilogue", "(", "raw_ostream", "&", "OS", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "File": "JVMX2Java", "Func": "EmitEpilogue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87444, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "for", "(", "BasicBlock", "*", "BB", ":", "RPOT", ")", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "BB", "->", "getName", "(", ")", "<<", "", ")", ";"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "EmitPrologue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87446, "Length": 26, "Cover_Rate": 0.6190476190476191} {"Template_token": ["", "iterator", "end", "(", ")", "{"], "ground_truth": ["return", "Blocks", ".", "rend", "(", ")", ";"], "File": "JVMX2Java", "Func": "end", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87448, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "EmitEpilogue", "(", "OS", ")", ";", "XToJavaCounter", "++", ";"], "ground_truth": ["return", "true", ";"], "File": "JVMX2Java", "Func": "GenJavaClass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87449, "Length": 11, "Cover_Rate": 0.34375} {"Template_token": ["", "char", "ctrStr", "[", "", "]", "=", "{", "'\\0'", "}", ";", "std", "::", "string", "Name", "=", "", ";", "Name", "+=", "Prefix", ";", "sprintf", "(", "ctrStr", ",", "", ",", "ctr", "++", ")", ";"], "ground_truth": ["Name", "+=", "ctrStr", ";"], "File": "JVMX2Java", "Func": "genTempName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87450, "Length": 35, "Cover_Rate": 0.603448275862069} {"Template_token": ["", "Name", "+=", "Prefix", ";", "sprintf", "(", "ctrStr", ",", "", ",", "ctr", "++", ")", ";"], "ground_truth": ["Name", "+=", "ctrStr", ";"], "File": "JVMX2Java", "Func": "genTempName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87451, "Length": 18, "Cover_Rate": 0.3103448275862069} {"Template_token": ["", "AU", ".", "setPreservesAll", "(", ")", ";"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "getAnalysisUsage", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87452, "Length": 7, "Cover_Rate": 0.4117647058823529} {"Template_token": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{"], "ground_truth": ["AU", ".", "setPreservesAll", "(", ")", ";"], "File": "JVMX2Java", "Func": "getAnalysisUsage", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87453, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "BlockOrderList", "&", "getOrderedList", "(", ")", "{", "return", "blockList", ";"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "getOrderedList", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87454, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "void", "BlockPredication", "::", "InsertPredicate", "(", "BasicBlock", "*", "Blk", ",", "Value", "*", "Pred", ",", "int", "TrueCondF", ")", "{"], "ground_truth": ["if", "(", "PredCondMap", ".", "find", "(", "Blk", ")", "==", "PredCondMap", ".", "end", "(", ")", ")", "PredCondMap", "[", "Blk", "]", "=", "{", "PredicateVar", "(", "Pred", ",", "TrueCondF", ")", "}", ";"], "File": "JVMX2Java", "Func": "InsertPredicate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87455, "Length": 46, "Cover_Rate": 0.7301587301587301} {"Template_token": ["", "if", "(", "PredCondMap", ".", "find", "(", "Blk", ")", "==", "PredCondMap", ".", "end", "(", ")", ")", "PredCondMap", "[", "Blk", "]", "=", "{", "PredicateVar", "(", "Pred", ",", "TrueCondF", ")", "}", ";"], "ground_truth": ["else", "PredCondMap", "[", "Blk", "]", ".", "push_back", "(", "PredicateVar", "(", "Pred", ",", "TrueCondF", ")", ")", ";"], "File": "JVMX2Java", "Func": "InsertPredicate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87456, "Length": 45, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "PHIElimination", "(", "Function", "&", "Func", ")", ":", "F", "(", "&", "Func", ")", "{"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "PHIElimination", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87458, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "PHIElimination", "(", "Function", "&", "Func", ")", ":", "F", "(", "&", "Func", ")", "{"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "PHIElimination", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87459, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "int", "PhiCnt", "=", "", ";", "BasicBlock", "&", "entry", "=", "F", "->", "getEntryBlock", "(", ")", ";", "for", "(", "auto", "&", "Inst", ":", "B", ")", "{", "if", "(", "isa", "<", "PHINode", ">", "(", "Inst", ")", ")", "{", "PHINode", "&", "I", "=", "cast", "<", "PHINode", ">", "(", "Inst", ")", ";", "IRBuilder", "<", ">", "IRB", "(", "&", "entry", ",", "entry", ".", "begin", "(", ")", ")", ";", "AllocaInst", "*", "NewVar", "=", "IRB", ".", "CreateAlloca", "(", "I", ".", "getType", "(", ")", ",", "nullptr", ",", "genTempName", "(", "++", "newInstrCtr", ",", "", ")", ")", ";"], "ground_truth": ["LoadInst", "*", "NewLI", "=", "IRB", ".", "CreateLoad", "(", "I", ".", "getType", "(", ")", ",", "NewVar", ",", "genTempName", "(", "++", "newInstrCtr", ",", "", ")", ")", ";"], "File": "JVMX2Java", "Func": "ProcessBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87460, "Length": 112, "Cover_Rate": 0.5185185185185185} {"Template_token": ["", "}", "else", "{", "assert", "(", "BI", "->", "isConditional", "(", ")", "&&", "BI", "->", "getNumSuccessors", "(", ")", "==", "", "&&", "", ")", ";", "Value", "*", "Cond", "=", "BI", "->", "getCondition", "(", ")", ";", "BasicBlock", "*", "TrueBlk", "=", "BI", "->", "getSuccessor", "(", "", ")", ";", "BasicBlock", "*", "FalseBlk", "=", "BI", "->", "getSuccessor", "(", "", ")", ";", "InsertPredicate", "(", "TrueBlk", ",", "Cond", ")", ";", "InsertPredicate", "(", "FalseBlk", ",", "Cond", ",", "", ")", ";", "}"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "ProcessBranchInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87461, "Length": 72, "Cover_Rate": 0.36923076923076925} {"Template_token": ["", "Func", "=", "&", "F", ";"], "ground_truth": ["return", "GenJavaClass", "(", "OS", ")", ";"], "File": "JVMX2Java", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87464, "Length": 11, "Cover_Rate": 0.34375} {"Template_token": ["", "raw_string_ostream", "OS", "(", "Code", ")", ";", "Func", "=", "&", "F", ";"], "ground_truth": ["return", "GenJavaClass", "(", "OS", ")", ";"], "File": "JVMX2Java", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87465, "Length": 17, "Cover_Rate": 0.53125} {"Template_token": ["", "void", "setFunction", "(", "Function", "&", "Func", ")", "{", "F", "=", "&", "Func", ";"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "setFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87467, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "void", "BlockRevPostOrderTraversal", "::", "visitBlocks", "(", "BasicBlock", "*", "Blk", ")", "{", "if", "(", "OrderedMap", ".", "find", "(", "Blk", ")", "!=", "OrderedMap", ".", "end", "(", ")", "&&", "(", "OrderedMap", "[", "Blk", "]", "==", "GRAY", "||", "OrderedMap", "[", "Blk", "]", "==", "BLACK", ")", ")", "return", ";", "OrderedMap", "[", "Blk", "]", "=", "GRAY", ";", "Instruction", "*", "TI", "=", "Blk", "->", "getTerminator", "(", ")", ";", "if", "(", "isa", "<", "BranchInst", ">", "(", "TI", ")", "&&", "cast", "<", "BranchInst", ">", "(", "TI", ")", "->", "isConditional", "(", ")", ")", "{", "BasicBlock", "*", "FalseBlock", "=", "cast", "<", "BasicBlock", ">", "(", "TI", "->", "getSuccessor", "(", "", ")", ")", ";", "visitBlocks", "(", "FalseBlock", ")", ";", "BasicBlock", "*", "TrueBlock", "=", "cast", "<", "BasicBlock", ">", "(", "TI", "->", "getSuccessor", "(", "", ")", ")", ";", "visitBlocks", "(", "TrueBlock", ")", ";", "}", "else", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "TI", "->", "getNumSuccessors", "(", ")", ";", "i", "++", ")", "{", "visitBlocks", "(", "TI", "->", "getSuccessor", "(", "i", ")", ")", ";", "}", "}", "OrderedMap", "[", "Blk", "]", "=", "BLACK", ";"], "ground_truth": ["Blocks", ".", "push_back", "(", "Blk", ")", ";"], "File": "JVMX2Java", "Func": "visitBlocks", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87468, "Length": 175, "Cover_Rate": 0.9943181818181818} {"Template_token": ["", "void", "BlockRevPostOrderTraversal", "::", "visitBlocks", "(", "BasicBlock", "*", "Blk", ")", "{", "if", "(", "OrderedMap", ".", "find", "(", "Blk", ")", "!=", "OrderedMap", ".", "end", "(", ")", "&&", "(", "OrderedMap", "[", "Blk", "]", "==", "GRAY", "||", "OrderedMap", "[", "Blk", "]", "==", "BLACK", ")", ")", "return", ";", "OrderedMap", "[", "Blk", "]", "=", "GRAY", ";"], "ground_truth": ["Instruction", "*", "TI", "=", "Blk", "->", "getTerminator", "(", ")", ";"], "File": "JVMX2Java", "Func": "visitBlocks", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87469, "Length": 60, "Cover_Rate": 0.3409090909090909} {"Template_token": ["", "XToJavaPass", "(", ")", ":", "FunctionPass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "XToJavaPass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87470, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "XToJavaPass", "(", ")", ":", "FunctionPass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "JVMX2Java", "Func": "XToJavaPass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87471, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "jclass", "cls", ";", "jmethodID", "mid", ";", "JavaVMInitArgs", "vm_args", ";", "JavaVMOption", "options", "[", "", "]", ";", "options", "[", "", "]", ".", "optionString", "=", "", ";", "options", "[", "", "]", ".", "optionString", "=", "", ";", "options", "[", "", "]", ".", "optionString", "=", "", ";", "options", "[", "", "]", ".", "optionString", "=", "", ";", "vm_args", ".", "version", "=", "", ";", "vm_args", ".", "options", "=", "options", ";", "vm_args", ".", "nOptions", "=", "", ";", "vm_args", ".", "ignoreUnrecognized", "=", "JNI_TRUE", ";", "fprintf", "(", "stdout", ",", "", ",", "className", ",", "methodName", ")", ";"], "ground_truth": ["res", "=", "JNI_CreateJavaVM", "(", "&", "jvm", ",", "(", "void", "*", "*", ")", "&", "env", ",", "&", "vm_args", ")", ";"], "File": "jvm", "Func": "wrapper_instance_methods_jvm_wrapper_instance_methods", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87472, "Length": 105, "Cover_Rate": 0.3106508875739645} {"Template_token": ["", "if", "(", "mid", "==", "NULL", ")", "{", "goto", "destroy", ";", "}", "jbyteArray", "jBArr", "=", "(", "*", "env", ")", "->", "NewByteArray", "(", "env", ",", "", ")", ";", "if", "(", "jBArr", "!=", "NULL", ")", "{", "(", "*", "env", ")", "->", "SetByteArrayRegion", "(", "env", ",", "jBArr", ",", "", ",", "", ",", "(", "jbyte", "*", ")", "byteArray", ")", ";", "}", "(", "*", "env", ")", "->", "CallStaticVoidMethod", "(", "env", ",", "cls", ",", "mid", ",", "jBArr", ")", ";", "(", "*", "env", ")", "->", "GetByteArrayRegion", "(", "env", ",", "jBArr", ",", "", ",", "", ",", "(", "jbyte", "*", ")", "byteArray", ")", ";", "(", "*", "env", ")", "->", "DeleteLocalRef", "(", "env", ",", "jBArr", ")", ";", "destroy", ":", "if", "(", "(", "*", "env", ")", "->", "ExceptionOccurred", "(", "env", ")", ")", "{", "(", "*", "env", ")", "->", "ExceptionDescribe", "(", "env", ")", ";", "}"], "ground_truth": ["(", "*", "jvm", ")", "->", "DestroyJavaVM", "(", "jvm", ")", ";"], "File": "jvm", "Func": "wrapper_static_method_call_jvm_wrapper_static_method_call", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87473, "Length": 142, "Cover_Rate": 0.39775910364145656} {"Template_token": ["", "fprintf", "(", "stdout", ",", "", ",", "className", ",", "methodName", ")", ";", "res", "=", "JNI_CreateJavaVM", "(", "&", "jvm", ",", "(", "void", "*", "*", ")", "&", "env", ",", "&", "vm_args", ")", ";", "if", "(", "res", "<", "", ")", "{", "fprintf", "(", "stderr", ",", "", ")", ";", "exit", "(", "", ")", ";", "}", "sleep", "(", "", ")", ";", "cls", "=", "(", "*", "env", ")", "->", "FindClass", "(", "env", ",", "className", ")", ";", "if", "(", "cls", "==", "NULL", ")", "{", "goto", "destroy", ";", "}", "fprintf", "(", "stdout", ",", "", ")", ";", "mid", "=", "(", "*", "env", ")", "->", "GetStaticMethodID", "(", "env", ",", "cls", ",", "methodName", ",", "", ")", ";", "if", "(", "mid", "==", "NULL", ")", "{", "goto", "destroy", ";", "}", "jbyteArray", "jBArr", "=", "(", "*", "env", ")", "->", "NewByteArray", "(", "env", ",", "", ")", ";", "if", "(", "jBArr", "!=", "NULL", ")", "{", "(", "*", "env", ")", "->", "SetByteArrayRegion", "(", "env", ",", "jBArr", ",", "", ",", "", ",", "(", "jbyte", "*", ")", "byteArray", ")", ";", "}", "(", "*", "env", ")", "->", "CallStaticVoidMethod", "(", "env", ",", "cls", ",", "mid", ",", "jBArr", ")", ";", "(", "*", "env", ")", "->", "GetByteArrayRegion", "(", "env", ",", "jBArr", ",", "", ",", "", ",", "(", "jbyte", "*", ")", "byteArray", ")", ";", "(", "*", "env", ")", "->", "DeleteLocalRef", "(", "env", ",", "jBArr", ")", ";", "destroy", ":", "if", "(", "(", "*", "env", ")", "->", "ExceptionOccurred", "(", "env", ")", ")", "{", "(", "*", "env", ")", "->", "ExceptionDescribe", "(", "env", ")", ";", "}", "(", "*", "jvm", ")", "->", "DestroyJavaVM", "(", "jvm", ")", ";", "return", ";"], "ground_truth": ["}"], "File": "jvm", "Func": "wrapper_static_method_call_jvm_wrapper_static_method_call", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 87474, "Length": 250, "Cover_Rate": 0.7002801120448179}