{"Template_token": ["", "void", "AsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool"], "ground_truth": ["IsResolved", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{"], "File": "JVMAsmBackend", "Func": "applyFixup", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51047, "Length": 39, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "void", "AsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool"], "ground_truth": ["IsResolved", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{"], "File": "JVMAsmBackend", "Func": "applyFixup", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51048, "Length": 39, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "MCAsmBackend", "*", "createAsmBackend", "(", "const", "Triple", "&"], "ground_truth": ["TT", ")", "{"], "File": "JVMAsmBackend", "Func": "createJVMAsmBackend", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51049, "Length": 10, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "std", "::", "unique_ptr", "<", "MCObjectTargetWriter", ">", "AsmBackend", "::", "createObjectTargetWriter", "(", ")"], "ground_truth": ["const", "{"], "File": "JVMAsmBackend", "Func": "createObjectTargetWriter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51050, "Length": 13, "Cover_Rate": 0.7647058823529411} {"Template_token": ["", "bool", "AsmBackend", "::", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment"], "ground_truth": ["*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "{"], "File": "JVMAsmBackend", "Func": "fixupNeedsRelaxation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51051, "Length": 25, "Cover_Rate": 0.8620689655172413} {"Template_token": ["", "bool", "AsmBackend", "::", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value"], "ground_truth": [",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "{"], "File": "JVMAsmBackend", "Func": "fixupNeedsRelaxation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51052, "Length": 25, "Cover_Rate": 0.8620689655172413} {"Template_token": ["", "unsigned", "AsmBackend", "::", "getNumFixupKinds", "(", ")", "const", "{", "return", ""], "ground_truth": [";"], "File": "JVMAsmBackend", "Func": "getNumFixupKinds", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51053, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "unsigned", "AsmBackend", "::", "getNumFixupKinds", "(", ")"], "ground_truth": ["const", "{"], "File": "JVMAsmBackend", "Func": "getNumFixupKinds", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51054, "Length": 8, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "bool", "AsmBackend", "::", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "return", "false"], "ground_truth": [";"], "File": "JVMAsmBackend", "Func": "mayNeedRelaxation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51055, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "bool", "AsmBackend", "::", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "return", "false"], "ground_truth": [";"], "File": "JVMAsmBackend", "Func": "mayNeedRelaxation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51056, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "void", "AsmBackend", "::", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&"], "ground_truth": ["Res", ")", "const", "{"], "File": "JVMAsmBackend", "Func": "relaxInstruction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51057, "Length": 21, "Cover_Rate": 0.875} {"Template_token": ["", "bool", "AsmBackend", "::", "writeNopData", "(", "raw_ostream", "&", "OS", ",", "uint64_t", "Count"], "ground_truth": [")", "const", "{"], "File": "JVMAsmBackend", "Func": "writeNopData", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51058, "Length": 14, "Cover_Rate": 0.7777777777777778} {"Template_token": ["", "bool", "AsmBackend", "::", "writeNopData", "(", "raw_ostream", "&", "OS", ",", "uint64_t"], "ground_truth": ["Count", ")", "const", "{"], "File": "JVMAsmBackend", "Func": "writeNopData", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51059, "Length": 14, "Cover_Rate": 0.7777777777777778} {"Template_token": ["", "ClassDef", "+=", "", ";", "for", "(", "auto", "&", "TyFIDPair", ":", "CompFields", ")", "EmitFieldAllocation", "(", "ClassDef", ",", "TyFIDPair", ".", "first", ",", "ClassName", ",", "TyFIDPair", ".", "second", ")", ";", "ClassDef", "+=", "", ";", "return"], "ground_truth": ["ClassDef", ";"], "File": "JVMAsmPrinter", "Func": "EmitClassDefinition", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51060, "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", ")", ";", "ClassFile", "<<"], "ground_truth": ["ClassDef", ";"], "File": "JVMAsmPrinter", "Func": "EmitClassDefinitions", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51061, "Length": 60, "Cover_Rate": 0.5660377358490566} {"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", ")", ";", "ClassFile", ".", "write", "(", "classPkt", "->", "get", "(", ")", "->", "getPayload", "(", ")", ","], "ground_truth": ["classPkt", "->", "get", "(", ")", "->", "getSize", "(", ")", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitEndOfAsmFile", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51062, "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", ";", "FieldInit", "+="], "ground_truth": ["", ";"], "File": "JVMAsmPrinter", "Func": "EmitFieldAllocation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51063, "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", "+=", "", ";", "sprintf", "(", "IDStr", ",", ""], "ground_truth": [",", "FieldID", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFieldAllocation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51064, "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'", ";", "sprintf", "(", "IDStr", ",", "", ",", "FieldID"], "ground_truth": [")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFieldInitialization", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51065, "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", "+=", "", ";", "MFI", "->", "getTypeDescriptor", "(", "Ty"], "ground_truth": [",", "AsmBuf", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFieldInitialization", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51066, "Length": 174, "Cover_Rate": 0.327683615819209} {"Template_token": ["", "TS", "->", "emitString", "(", "", ")", ";", "EmitClassDefinitions", "("], "ground_truth": [")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFunctionBodyEnd", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51067, "Length": 11, "Cover_Rate": 0.4074074074074074} {"Template_token": ["", "TargetStreamer", "*", "TS", "=", "getTargetStreamer", "(", ")", ";", "TS", "->", "emitString", "(", ""], "ground_truth": [")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFunctionBodyEnd", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51068, "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", ";", "TS", "->", "emitString", "("], "ground_truth": ["str", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitFunctionBodyStart", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51069, "Length": 336, "Cover_Rate": 0.6679920477137177} {"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": 51070, "Length": 22, "Cover_Rate": 0.9565217391304348} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "*", "MI", "<<", "'\\n'", ")", ";", "MCInstLower", "InstLower", "(", "OutContext", ",", "*", "this", ")", ";", "MCInst", "TmpInst", ";", "InstLower", ".", "Lower", "(", "MI"], "ground_truth": [",", "TmpInst", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitInstruction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51071, "Length": 35, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "std", "::", "string", "str", "(", "", ")", ";", "str", "+=", "", ";", "str", "+=", "ClassName", ";", "str", "+=", "", ";", "TS", "->", "emitString"], "ground_truth": ["(", "str", ")", ";"], "File": "JVMAsmPrinter", "Func": "EmitStartOfAsmFile", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51072, "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", "", ";", "case"], "ground_truth": ["", ":"], "File": "JVMAsmPrinter", "Func": "EmitTypeString", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51073, "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", "(", ")", ";", "EVT", "VT", "=", "TLI", ".", "getValueType", "(", "DL", ",", "Ty"], "ground_truth": [")", ";"], "File": "JVMAsmPrinter", "Func": "GetLoadString", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51074, "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", "", ":", "return"], "ground_truth": ["", ";"], "File": "JVMAsmPrinter", "Func": "GetLoadString", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51075, "Length": 113, "Cover_Rate": 0.6312849162011173} {"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", "", ":", "return", ""], "ground_truth": [";"], "File": "JVMAsmPrinter", "Func": "GetStoreString", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51076, "Length": 76, "Cover_Rate": 0.4245810055865922} {"Template_token": ["", "const", "Subtarget", "&", "getSubtarget", "(", ")"], "ground_truth": ["const", "{"], "File": "JVMAsmPrinter", "Func": "getSubtarget", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51077, "Length": 8, "Cover_Rate": 0.6153846153846154} {"Template_token": ["", "const", "Subtarget", "&", "getSubtarget", "(", ")", "const"], "ground_truth": ["{"], "File": "JVMAsmPrinter", "Func": "getSubtarget", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51078, "Length": 8, "Cover_Rate": 0.6153846153846154} {"Template_token": ["", "TargetStreamer", "*", "AsmPrinter", "::", "getTargetStreamer", "(", ")", "{", "MCTargetStreamer", "*", "TS", "=", "OutStreamer", "->", "getTargetStreamer", "(", ")", ";", "return", "static_cast", "<", "TargetStreamer", "*"], "ground_truth": [">", "(", "TS", ")", ";"], "File": "JVMAsmPrinter", "Func": "getTargetStreamer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51079, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "TargetStreamer", "*", "AsmPrinter", "::", "getTargetStreamer", "(", ")", "{", "MCTargetStreamer", "*", "TS", "=", "OutStreamer", "->"], "ground_truth": ["getTargetStreamer", "(", ")", ";"], "File": "JVMAsmPrinter", "Func": "getTargetStreamer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51080, "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", "", ":", "case", ""], "ground_truth": [":"], "File": "JVMAsmPrinter", "Func": "IsSkipInstruction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51081, "Length": 43, "Cover_Rate": 0.48314606741573035} {"Template_token": ["", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "X", "(", "getTheTarget32", "(", ")", ")", ";", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "Y", "("], "ground_truth": ["getTheTarget64", "(", ")", ")", ";"], "File": "JVMAsmPrinter", "Func": "LLVMInitializeJVMAsmPrinter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51082, "Length": 22, "Cover_Rate": 0.7857142857142857} {"Template_token": ["", "return", "AsmPrinter", "::", "lowerConstant", "("], "ground_truth": ["CV", ")", ";"], "File": "JVMAsmPrinter", "Func": "lowerConstant", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51083, "Length": 8, "Cover_Rate": 0.36363636363636365} {"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", ")", ";", "}", "else", "CVec", ".", "push_back", "(", "Init"], "ground_truth": [")", ";"], "File": "JVMAsmPrinter", "Func": "PopulateConstValVector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51084, "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", ")", ")", "{", "unsigned", "NumElems", "=", "isa", "<", "ArrayType", ">", "(", "Ty", ")", "?", "cast", "<", "ArrayType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ":", "cast", "<"], "ground_truth": ["StructType", ">", "(", "Ty", ")", "->", "getNumElements", "(", ")", ";"], "File": "JVMAsmPrinter", "Func": "PopulateConstValVector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51085, "Length": 79, "Cover_Rate": 0.6869565217391305} {"Template_token": ["", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "MFI", "=", "MF", ".", "getInfo", "<"], "ground_truth": ["FunctionInfo", ">", "(", ")", ";"], "File": "JVMAsmPrinter", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51086, "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", ")", ";", "std", "::", "cout", "<<", ""], "ground_truth": ["<<", "std", "::", "endl", ";"], "File": "JVMAssemblerNativeUtils", "Func": "Java_jasmin_Main_llc_1dump_1classObj", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51087, "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", "(", ")", ")", "<<", "", ")", ";", "env", "->", "CallVoidMethod", "(", "jobj", ","], "ground_truth": ["mid", ",", "jstr", ")", ";"], "File": "JVMAssembler", "Func": "assemble", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51088, "Length": 100, "Cover_Rate": 0.5319148936170213} {"Template_token": ["", "void", "AssemblerImpl", "::", "freeClassObjectBuffer", "(", ")", "{", "if", "(", "classObjectBuffer", ")", "free", "(", "classObjectBuffer"], "ground_truth": [")", ";"], "File": "JVMAssembler", "Func": "freeClassObjectBuffer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51089, "Length": 16, "Cover_Rate": 0.7619047619047619} {"Template_token": ["", "inst", "=", "new", "AssemblerImpl", "(", ")", ";", "}", "return"], "ground_truth": ["inst", ";"], "File": "JVMAssembler", "Func": "getInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51090, "Length": 11, "Cover_Rate": 0.44} {"Template_token": ["", "char", "*", "getPayload"], "ground_truth": ["(", ")", "{"], "File": "JVMAssembler", "Func": "getPayload", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51091, "Length": 6, "Cover_Rate": 0.6} {"Template_token": ["", "char", "*", "getPayload", "("], "ground_truth": [")", "{"], "File": "JVMAssembler", "Func": "getPayload", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51092, "Length": 6, "Cover_Rate": 0.6} {"Template_token": ["", "int", "getSize", "(", ")"], "ground_truth": ["{"], "File": "JVMAssembler", "Func": "getSize", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51093, "Length": 5, "Cover_Rate": 0.5555555555555556} {"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", ";", "llvm", "::", "outs", "("], "ground_truth": [")", "<<", "classPath", ";"], "File": "JVMAssembler", "Func": "JVMAssemblerImpl", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51094, "Length": 96, "Cover_Rate": 0.35687732342007433} {"Template_token": ["", "", "Assembler", "(", ")", "{", "delete", "Impl"], "ground_truth": [";"], "File": "JVMAssembler", "Func": "~JVMAssembler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51095, "Length": 8, "Cover_Rate": 0.7272727272727273} {"Template_token": ["", "AssemblerImpl", "::", "~", "AssemblerImpl", "("], "ground_truth": [")", "{"], "File": "JVMAssembler", "Func": "~JVMAssemblerImpl", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51096, "Length": 7, "Cover_Rate": 0.3888888888888889} {"Template_token": ["", "jvm", "->", "DestroyJavaVM", "(", ")", ";", "freeClassObjectBuffer", "("], "ground_truth": [")", ";"], "File": "JVMAssembler", "Func": "~JVMAssemblerImpl", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51097, "Length": 10, "Cover_Rate": 0.5555555555555556} {"Template_token": ["", "if", "(", "DeletionSet", ".", "find", "(", "Elm", ")", "==", "DeletionSet", ".", "end", "(", ")", ")", "DeletionSet", ".", "insert"], "ground_truth": ["(", "Elm", ")", ";"], "File": "JVMCastHandler", "Func": "AddToLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51098, "Length": 22, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "if", "(", "DeletionSet", ".", "find", "(", "Elm", ")", "==", "DeletionSet", ".", "end", "(", ")", ")", "DeletionSet", ".", "insert"], "ground_truth": ["(", "Elm", ")", ";"], "File": "JVMCastHandler", "Func": "AddToLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51099, "Length": 22, "Cover_Rate": 0.6666666666666666} {"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", ")", ";", "return", "llvm", "::", "GenMask", "(", "Cxt", ",", "DL", ",", "IRB", ",", "SrcSz"], "ground_truth": [",", "DestSz", ",", "Offset", ",", "IsLoad", ")", ";"], "File": "JVMCastHandler", "Func": "GenMask", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51100, "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": 51101, "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": "JVMCastHandler", "Func": "ProcessArrays", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51102, "Length": 35, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "ProcessUser", "(", "MemOpOffsetMap"], "ground_truth": [",", "*", "User", ",", "Offset", ",", "false", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessArrays", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51103, "Length": 24, "Cover_Rate": 0.36923076923076925} {"Template_token": ["", "void", "CastHandler", "::", "ProcessFunction", "(", ")", "{", "LLVMContext", "&", "Cxt", "=", "Func", "->", "getContext", "(", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "TargetIdxTy", "=", "GetTargetIndexType", "("], "ground_truth": ["DL", ",", "Cxt", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51104, "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", ")", ";", "for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "RetVal", "&=", "ProcessUser", "(", "MemOpOffsetMap"], "ground_truth": [",", "*", "User", ",", "Offset", ",", "isStruct", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessGEPChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51105, "Length": 67, "Cover_Rate": 0.6633663366336634} {"Template_token": ["", "bool", "CastHandler", "::", "ProcessGEPChain", "(", "SrcMemOpOffset", "&", "MemOpOffsetMap", ",", "GetElementPtrInst", "&", "I", ",", "Value", "*", "Offset", ",", "bool", "isStruct", ")", "{", "IRBuilder", "<", ">", "IRB", "(", "&", "I", ")", ";", "bool", "RetVal"], "ground_truth": ["=", "true", ";"], "File": "JVMCastHandler", "Func": "ProcessGEPChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51106, "Length": 35, "Cover_Rate": 0.3465346534653465} {"Template_token": ["", "Users", ".", "insert", "(", "Val", ")", ";", "}", "for", "(", "auto", "*", "I", ":", "Users", ")", "cast", "<", "Instruction", ">", "(", "I", ")", "->"], "ground_truth": ["eraseFromParent", "(", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51107, "Length": 28, "Cover_Rate": 0.4307692307692308} {"Template_token": ["", "Users", ".", "insert", "(", "Val", ")", ";", "}", "for", "(", "auto", "*", "I", ":", "Users", ")", "cast", "<", "Instruction", ">", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";", "DeletionSet", ".", "clear", "(", ")"], "ground_truth": [";"], "File": "JVMCastHandler", "Func": "ProcessLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51108, "Length": 34, "Cover_Rate": 0.5230769230769231} {"Template_token": ["", "for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "ProcessUser", "(", "MemOpOffsetMap", ","], "ground_truth": ["*", "User", ",", "Offset", ",", "false", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessPrimitive", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51109, "Length": 24, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "assert", "(", "isa", "<", "StructType", ">", "(", "SrcTy", ")", "&&", "", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "cast", "<", "StructType", ">"], "ground_truth": ["(", "SrcTy", ")", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessStructures", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51110, "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", ")", ";", "ProcessMemOpWRTCompositeSource", "(", "SrcMem", ",", "MemOpOffsetMap", ",", "DestTy", ","], "ground_truth": ["Align", ")", ";"], "File": "JVMCastHandler", "Func": "ProcessStructures", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51111, "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", "(", "", ")", ";", "return"], "ground_truth": ["RetVal", ";"], "File": "JVMCastHandler", "Func": "ProcessUser", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51112, "Length": 49, "Cover_Rate": 0.32666666666666666} {"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", "(", ")", ")", ";", "Type", "*", "DestTy", "=", "GetRootType", "(", "I", ".", "getDestTy", "(", ")"], "ground_truth": [")", ";"], "File": "JVMCastHandler", "Func": "visitBitCastInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51113, "Length": 79, "Cover_Rate": 0.47023809523809523} {"Template_token": ["", "for", "(", "auto", "&", "Idx", ":", "GI", "->", "indices", "(", ")", ")", "if", "(", "!", "isa", "<", "ConstantInt", ">", "(", "Idx", ")", ")", "return", "false", ";", "}", "}", "return", "true"], "ground_truth": [";"], "File": "JVMCompositeHandler", "Func": "AreAllUsesConstantIndexedReferences", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51114, "Length": 31, "Cover_Rate": 0.37349397590361444} {"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", ")", ";", "}", "}", "return"], "ground_truth": ["Arguments", ";"], "File": "JVMCompositeHandler", "Func": "BuildAndSetArgsList", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51115, "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", ")", "{", "Type", "*", "ArgTy", "=", "Func", "->", "getFunctionType", "("], "ground_truth": [")", "->", "getParamType", "(", "i", ")", ";"], "File": "JVMCompositeHandler", "Func": "BuildAndSetArgsList", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51116, "Length": 61, "Cover_Rate": 0.4066666666666667} {"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", ";", "else", "if", "(", "isa", "<", "ArrayType", ">", "(", "*", "EI", ")", ")", "retVal", "&=", "CheckIfFlattendType"], "ground_truth": ["(", "*", "EI", ")", ";"], "File": "JVMCompositeHandler", "Func": "CheckIfFlattendType", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51117, "Length": 67, "Cover_Rate": 0.3526315789473684} {"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", ")", ";", "if", "(", "Old", "->", "hasNestAttr", "(", ")", ")", "Func", "->"], "ground_truth": ["addParamAttr", "(", "ArgNo", ",", "Attribute", "::", "Nest", ")", ";"], "File": "JVMCompositeHandler", "Func": "CopyArgumentAttributes", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51118, "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", ")", ";", "if", "(", "Old", "->", "hasReturnedAttr", "(", ")", ")", "Func", "->", "addParamAttr", "(", "ArgNo", ",", "Attribute", "::"], "ground_truth": ["Returned", ")", ";"], "File": "JVMCompositeHandler", "Func": "CopyArgumentAttributes", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51119, "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", "(", ")", ")", ";", "assert", "(", "isa", "<", "ArrayType", ">", "(", "SrcObjTy", ")", "&&"], "ground_truth": ["isa", "<", "ArrayType", ">", "(", "DstObjTy", ")", ")", ";"], "File": "JVMCompositeHandler", "Func": "copyMemory", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51120, "Length": 290, "Cover_Rate": 0.7733333333333333} {"Template_token": ["", "static", "void", "CopyScalarObj", "(", "Value", "*", "Dst", ",", "Value", "*", "Src", ",", "Type", "*", "ElmTy", ",", "IRBuilder", "<", ">", "&", "IRB", ")", "{", "Value", "*", "SrcLoad", "=", "IRB", ".", "CreateLoad", "(", "Src"], "ground_truth": [")", ";"], "File": "JVMCompositeHandler", "Func": "CopyScalarObj", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51121, "Length": 34, "Cover_Rate": 0.7727272727272727} {"Template_token": ["", "static", "void", "CopyScalarObj", "(", "Value", "*", "Dst", ",", "Value", "*", "Src", ",", "Type", "*", "ElmTy", ",", "IRBuilder", "<", ">", "&", "IRB", ")", "{", "Value", "*", "SrcLoad", "=", "IRB", ".", "CreateLoad"], "ground_truth": ["(", "Src", ")", ";"], "File": "JVMCompositeHandler", "Func": "CopyScalarObj", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51122, "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", ")", ";", "CopyArgumentAttributes", "(", "OldArg", ","], "ground_truth": ["Func", ",", "i", ")", ";"], "File": "JVMCompositeHandler", "Func": "doAllocations", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51123, "Length": 448, "Cover_Rate": 0.9180327868852459} {"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": 51124, "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", "(", ")", "<<", "", ";", "dbgs", "(", ")"], "ground_truth": ["<<", "", ";"], "File": "JVMCompositeHandler", "Func": "dump", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51125, "Length": 51, "Cover_Rate": 0.5425531914893617} {"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", ")", ")", "{", "InsertIntoSet", "(", "LazyRemovalSet"], "ground_truth": [",", "Elm", ")", ";"], "File": "JVMCompositeHandler", "Func": "extractIndices", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51126, "Length": 71, "Cover_Rate": 0.4382716049382716} {"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", "(", ")", ")", ";", "else", "return", "NewTy"], "ground_truth": [";"], "File": "JVMCompositeHandler", "Func": "flattenType_core", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51127, "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", "(", "", ")", ";", "}", "NumElements", "+="], "ground_truth": ["ElmCnt", ";"], "File": "JVMCompositeHandler", "Func": "GetMostPreferredTypeForStruct", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51128, "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", "(", ")", ":", "", ";", "}", "else", "if", "(", "isa", "<", "PointerType", ">", "(", "Ty", ")"], "ground_truth": [")", "{"], "File": "JVMCompositeHandler", "Func": "getNumElements", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51129, "Length": 110, "Cover_Rate": 0.36065573770491804} {"Template_token": ["", "static", "unsigned", "GetNumLeadingNonLeafArrDim", "(", "GetElementPtrInst", "*", "GI", ")", "{", "if", "(", "GI", "->", "getNumIndices", "(", ")", ">", "", ")", "return", "(", "GI", "->", "getNumIndices", "(", ")"], "ground_truth": ["-", "(", "GetNumLeafArrayDimensions", "(", "GI", ")", "+", "", ")", ")", ";"], "File": "JVMCompositeHandler", "Func": "GetNumLeadingNonLeafArrDim", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51130, "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", "(", ")", ")", "{", "Type", "*", "Ty", "=", "WorkList", "."], "ground_truth": ["back", "(", ")", ";"], "File": "JVMCompositeHandler", "Func": "GetNumLeafArrayDimensions", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51131, "Length": 79, "Cover_Rate": 0.7452830188679245} {"Template_token": ["", "OTy", "=", "GetRootType", "(", "OTy", ")", ";", "gep_type_iterator", "IdxTyItr", "=", "gep_type_begin", "(", "GI", ")", ";", "assert", "(", "OTy", "==", "IdxTyItr", ".", "getIndexedType", "(", ")", "&&", "", ")", ";", "return", "getTyIndexInFlattenedType_core", "(", "Func", ",", "ConstantInt", "::", "get", "(", "Int32Ty", ",", "APInt", "(", "", ",", "", ")", ")"], "ground_truth": [",", "GI", ",", "AccessMemFormFlatStruct", ")", ";"], "File": "JVMCompositeHandler", "Func": "getTyIndexInFlattenedType", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51132, "Length": 52, "Cover_Rate": 0.6046511627906976} {"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", ";", "}", "if", "(", "isa", "<", "GetElementPtrInst", ">", "(", "*", "(", "GI", "->", "user_begin", "(", ")", ")", ")", ")", "return", "getTyIndexInFlattenedType_core", "(", "Func", ",", "Idx", ",", "cast", "<", "GetElementPtrInst", ">", "(", "*", "(", "GI", "->", "user_begin", "(", ")"], "ground_truth": [")", ")", ",", "AccessMemFormFlatStruct", ")", ";"], "File": "JVMCompositeHandler", "Func": "getTyIndexInFlattenedType_core", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51133, "Length": 182, "Cover_Rate": 0.4155251141552511} {"Template_token": ["", "TypeValueMap", "&", "getTypeValueMap"], "ground_truth": ["(", ")", "{"], "File": "JVMCompositeHandler", "Func": "getTypeValueMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51134, "Length": 6, "Cover_Rate": 0.6} {"Template_token": ["", "if", "(", "Set", ".", "find", "(", "Val", ")", "==", "Set", "."], "ground_truth": ["end", "(", ")", ")", "Set", ".", "insert", "(", "Val", ")", ";"], "File": "JVMCompositeHandler", "Func": "InsertIntoSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51135, "Length": 22, "Cover_Rate": 0.5789473684210527} {"Template_token": ["", "bool", "CompositeHandler", "::", "isBlastedType", "(", "Type", "*"], "ground_truth": ["Ty", ")", "{"], "File": "JVMCompositeHandler", "Func": "isBlastedType", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51136, "Length": 10, "Cover_Rate": 0.30303030303030304} {"Template_token": ["", "assert", "(", "typeIsBlasted", ".", "find", "(", "Ty", ")", "!=", "typeIsBlasted", "."], "ground_truth": ["end", "(", ")", ")", ";"], "File": "JVMCompositeHandler", "Func": "isBlastedType", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51137, "Length": 16, "Cover_Rate": 0.48484848484848486} {"Template_token": ["", "dump", "(", ")", ";", "flattenTypes", "(", ")", ";", "dump", "(", ")", ";", "doAllocations", "(", ")", ";", "doReplacements", "("], "ground_truth": [")", ";"], "File": "JVMCompositeHandler", "Func": "ProcessFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51138, "Length": 20, "Cover_Rate": 0.625} {"Template_token": ["", "void", "CompositeHandler", "::", "replaceAllUsesWithUnwrapped", "(", "Value", "*", "Old", ",", "Value", "*", "New", ")", "{", "assert", "(", "Old", "->", "getType", "(", ")", "!=", "New", "->", "getType", "("], "ground_truth": [")", "&&", "", ")", ";"], "File": "JVMCompositeHandler", "Func": "replaceAllUsesWithUnwrapped", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51139, "Length": 31, "Cover_Rate": 0.3780487804878049} {"Template_token": ["", "assert", "(", "Old", "->", "getType", "(", ")", "!=", "New", "->", "getType", "(", ")", "&&", "", ")", ";", "for", "(", "auto", "*", "User", ":", "Old", "->", "users", "(", ")", ")", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "User", "->", "getNumOperands", "(", ")", ";", "i", "++", ")"], "ground_truth": ["if", "(", "User", "->", "getOperand", "(", "i", ")", "==", "Old", ")", "User", "->", "setOperand", "(", "i", ",", "New", ")", ";"], "File": "JVMCompositeHandler", "Func": "replaceAllUsesWithUnwrapped", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51140, "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", "(", ")", ";", "assert", "(", "(", "ID", "==", "", "||", "ID", "==", ""], "ground_truth": ["||", "ID", "==", "", ")", "&&", "", ")", ";"], "File": "JVMCompositeHandler", "Func": "replaceCastChainAndMemIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51141, "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", ")", ";", "InsertIntoSet", "(", "LazyRemovalSet", ",", "lastGEP", ")"], "ground_truth": [";"], "File": "JVMCompositeHandler", "Func": "replaceGetElementPtrChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51142, "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", "{", "llvm_unreachable", "("], "ground_truth": ["", ")", ";"], "File": "JVMCompositeHandler", "Func": "replaceMemoryIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51143, "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", "(", "", ")", ";", "Dst", "=", "GetRootValue", "(", "Dst"], "ground_truth": [")", ";"], "File": "JVMCompositeHandler", "Func": "replaceMemoryIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51144, "Length": 97, "Cover_Rate": 0.377431906614786} {"Template_token": ["", "void", "CompositeHandler", "::", "visitAlloca", "("], "ground_truth": ["AllocaInst", "&", "I", ")", "{"], "File": "JVMCompositeHandler", "Func": "visitAlloca", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51145, "Length": 10, "Cover_Rate": 0.43478260869565216} {"Template_token": ["", "void", "CompositeHandler", "::", "visitCallInst", "(", "CallInst", "&", "I", ")", "{", "for", "(", "Value", "*", "Arg", ":", "I", ".", "arg_operands", "(", ")", ")", "{", "visitValue", "(", "Arg", ",", "Arg", "->", "getType", "(", ")"], "ground_truth": [")", ";"], "File": "JVMCompositeHandler", "Func": "visitCallInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51146, "Length": 34, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "if", "(", "canFlattenType", "(", "VT", ")", ")", "{", "if", "(", "typeDefs", ".", "find", "(", "VT", ")", "==", "typeDefs", ".", "end", "(", ")", ")", "typeDefs", "[", "VT", "]", "=", "nullptr", ";", "typeValues", "[", "VT", "]", ".", "push_back", "(", "V"], "ground_truth": [")", ";"], "File": "JVMCompositeHandler", "Func": "visitValue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51147, "Length": 40, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "if", "(", "EraseSet", ".", "find", "(", "MI", ")", "==", "EraseSet", ".", "end", "(", ")", ")", "EraseSet", "."], "ground_truth": ["insert", "(", "MI", ")", ";"], "File": "JVMCopyElision", "Func": "AddToDeferredEraseSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51148, "Length": 22, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "for", "(", "DeferredEraseSetIter", "I", "=", "EraseSet", ".", "begin", "(", ")", ",", "E", "=", "EraseSet", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "I", "++"], "ground_truth": [")", "{"], "File": "JVMCopyElision", "Func": "Cleanup", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51149, "Length": 27, "Cover_Rate": 0.5294117647058824} {"Template_token": ["", "I", "++", ")", "{", "(", "*", "I", ")", "->", "eraseFromParent", "(", ")", ";", "}", "EraseSet", ".", "clear"], "ground_truth": ["(", ")", ";"], "File": "JVMCopyElision", "Func": "Cleanup", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51150, "Length": 20, "Cover_Rate": 0.39215686274509803} {"Template_token": ["", "FunctionPass", "*", "createCopyElision", "(", ")", "{", "return", "new", "CopyElision"], "ground_truth": ["(", ")", ";"], "File": "JVMCopyElision", "Func": "createJVMCopyElision", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51151, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName"], "ground_truth": ["(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMCopyElision", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51152, "Length": 17, "Cover_Rate": 0.6071428571428571} {"Template_token": ["", "void", "CopyElision", "::", "ExitScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB"], "ground_truth": ["->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMCopyElision", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51153, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "AU", ".", "setPreservesCFG", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "("], "ground_truth": [")", ";"], "File": "JVMCopyElision", "Func": "getAnalysisUsage", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51154, "Length": 22, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "MachineOperand", "RHS", "=", "MI", "->", "getOperand", "(", "", ")", ";", "const", "TargetRegisterClass", "*", "LHSRC", "=", "MRI", "->", "getRegClass", "(", "LHS", ".", "getReg", "(", ")", ")", ";", "const", "TargetRegisterClass", "*", "RHSRC", "=", "MRI", "->", "getRegClass", "(", "RHS", ".", "getReg", "(", ")", ")", ";", "if", "(", "LHSRC", "!="], "ground_truth": ["RHSRC", ")", "{"], "File": "JVMCopyElision", "Func": "IsCopyElisionCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51155, "Length": 49, "Cover_Rate": 0.30434782608695654} {"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", ")", ";", "ProcessCopyElisionBlock", "(", "MBB"], "ground_truth": [")", ";"], "File": "JVMCopyElision", "Func": "PerformCopyElision", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51156, "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", "(", ")", ";", "EnterScope", "(", "MBB"], "ground_truth": [")", ";"], "File": "JVMCopyElision", "Func": "PerformCopyElision", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51157, "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", ")", ";", "AddToDeferredEraseSet", "("], "ground_truth": ["MI", ")", ";"], "File": "JVMCopyElision", "Func": "ProcessCopyElisionBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51158, "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", "(", ")", ")", ")", ";", "BuildMI", "(", "*", "MBB", ",", "I", ",", "MI", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "LoadOpcode", ")", ")", "."], "ground_truth": ["addDef", "(", "NewReg", ")", ".", "addUse", "(", "MORHS", ".", "getReg", "(", ")", ")", ";"], "File": "JVMCopyElision", "Func": "ProcessCopyElisionBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51159, "Length": 182, "Cover_Rate": 0.5669781931464174} {"Template_token": ["", "MCDisassembler", "::", "DecodeStatus", "Disassembler", "::", "getInstruction", "(", "MCInst", "&", "MI", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", ",", "raw_ostream", "&", "OS", ",", "raw_ostream"], "ground_truth": ["&", "CS", ")", "const", "{"], "File": "JVMDisassembler", "Func": "getInstruction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51160, "Length": 33, "Cover_Rate": 0.8461538461538461} {"Template_token": ["", "void", "LLVMInitializeDisassembler", "(", ")", "{", "TargetRegistry", "::", "RegisterMCDisassembler", "(", "getTheTarget32", "(", ")", ",", "createDisassembler", ")", ";", "TargetRegistry", "::", "RegisterMCDisassembler", "(", "getTheTarget64", "(", ")", ","], "ground_truth": ["createDisassembler", ")", ";"], "File": "JVMDisassembler", "Func": "LLVMInitializeJVMDisassembler", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51161, "Length": 27, "Cover_Rate": 0.9642857142857143} {"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": 51162, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "void", "InstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ",", "StringRef", "Annot", ","], "ground_truth": ["const", "MCSubtargetInfo", "&", ")", "{"], "File": "JVMInstPrinter", "Func": "printInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51163, "Length": 22, "Cover_Rate": 0.5945945945945946} {"Template_token": ["", "assert", "(", "DescVec", "&&", "", ")", ";", "StringRef", "Desc", "=", "(", "*", "DescVec", ")", "[", "MI", "->", "getOperand", "(", "OpNo", ")"], "ground_truth": [".", "getImm", "(", ")", "]", ";"], "File": "JVMInstPrinter", "Func": "printJVMDescriptorOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51164, "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", "==", "", ")", ";", "O", "<<", "Op", ".", "getFPImm", "("], "ground_truth": [")", ";"], "File": "JVMInstPrinter", "Func": "printOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51165, "Length": 105, "Cover_Rate": 0.5303030303030303} {"Template_token": ["", "DescVec", "=", "(", "DescriptorVec", "*"], "ground_truth": [")", "FI", ";"], "File": "JVMInstPrinter", "Func": "SetFunctionInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51166, "Length": 8, "Cover_Rate": 0.4444444444444444} {"Template_token": ["", "void", "SetFunctionInfo", "(", "void", "*", "FI"], "ground_truth": [")", "override", "{"], "File": "JVMInstPrinter", "Func": "SetFunctionInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51167, "Length": 9, "Cover_Rate": 0.5} {"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", "(", "", ")", ";", "}", "return"], "ground_truth": ["false", ";"], "File": "JVMInstrInfo", "Func": "analyzeBranch", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51168, "Length": 140, "Cover_Rate": 0.5668016194331984} {"Template_token": ["", "bool", "analyzeSelect", "(", "const", "MachineInstr", "&", "MI", ",", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ",", "unsigned", "&", "TrueOp", ","], "ground_truth": ["unsigned", "&", "FalseOp", ",", "bool", "&", "Optimizable", ")", "const", "override", "{"], "File": "JVMInstrInfo", "Func": "analyzeSelect", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51169, "Length": 30, "Cover_Rate": 0.8823529411764706} {"Template_token": ["", "void", "InstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "const", "DebugLoc", "&", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "llvm_unreachable", "(", ""], "ground_truth": [")", ";"], "File": "JVMInstrInfo", "Func": "copyPhysReg", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51170, "Length": 35, "Cover_Rate": 0.9722222222222222} {"Template_token": ["", "else", "if", "(", "!", "IsConditionalBranch", "(", "MI", ")", ")", "return", "MI", ".", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";", "else", "return", "MI", ".", "getOperand", "(", "MI", ".", "getNumOperands", "(", ")"], "ground_truth": ["-", "", ")", ".", "getMBB", "(", ")", ";"], "File": "JVMInstrInfo", "Func": "getBranchDestBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51171, "Length": 40, "Cover_Rate": 0.6060606060606061} {"Template_token": ["", "bool", "InstrInfo", "::", "IsConditionalBranch", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "assert", "(", "MI", ".", "isBranch", "(", ")", "&&", "", ")", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "true"], "ground_truth": [";"], "File": "JVMInstrInfo", "Func": "IsConditionalBranch", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51172, "Length": 37, "Cover_Rate": 0.7872340425531915} {"Template_token": ["", "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": 51173, "Length": 35, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "for", "(", "Use", "&", "U", ":", "V", "->", "operands", "(", ")", ")", "{", "if", "(", "isa", "<", "ConstantExpr", ">", "(", "U", ".", "get", "(", ")", ")", ")", "DropAllReferences", "(", "cast", "<", "User", ">", "(", "U", ".", "get", "("], "ground_truth": [")", ")", ")", ";"], "File": "JVMIRDecorator", "Func": "DropAllReferences", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51174, "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", "(", ")", ")", ")", ";", "U", ".", "set"], "ground_truth": ["(", "nullptr", ")", ";"], "File": "JVMIRDecorator", "Func": "DropAllReferences", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51175, "Length": 59, "Cover_Rate": 0.9672131147540983} {"Template_token": ["", "void", "IRDecorator", "::", "EmitArgumentInitializationWrappers", "(", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")"], "ground_truth": ["<<", "", ")", ";"], "File": "JVMIRDecorator", "Func": "EmitArgumentInitializationWrappers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51176, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&"], "ground_truth": ["AU", ")", "const", "override", "{"], "File": "JVMIRDecorator", "Func": "getAnalysisUsage", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51177, "Length": 10, "Cover_Rate": 0.625} {"Template_token": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "getLoopAnalysisUsage", "("], "ground_truth": ["AU", ")", ";"], "File": "JVMIRDecorator", "Func": "getAnalysisUsage", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51178, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "void", "IRDecorator", "::", "HandleBitCastOperation", "(", "Function", "*"], "ground_truth": ["F", ")", "{"], "File": "JVMIRDecorator", "Func": "HandleBitCastOperation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51179, "Length": 10, "Cover_Rate": 0.4} {"Template_token": ["", "TyDefCol", ".", "setFunction", "(", "*"], "ground_truth": ["F", ")", ";"], "File": "JVMIRDecorator", "Func": "HandleCompositeTypes", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51180, "Length": 8, "Cover_Rate": 0.32} {"Template_token": ["", "TyDefCol", ".", "setFunction", "(", "*", "F", ")", ";", "TyDefCol", ".", "ProcessFunction", "("], "ground_truth": [")", ";"], "File": "JVMIRDecorator", "Func": "HandleCompositeTypes", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51181, "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", "(", ")", ")", ";", "GlobOffsetMap", "[", "&", "Glob", "]", "=", "FieldIndex"], "ground_truth": ["++", ";"], "File": "JVMIRDecorator", "Func": "HandleGlobalConstants", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51182, "Length": 103, "Cover_Rate": 0.44782608695652176} {"Template_token": ["", "for", "(", "auto", "&", "BB", ":", "*", "F", ")", "for", "(", "auto", "&", "II", ":", "BB", ")", "if", "(", "isa", "<", "SelectInst", ">"], "ground_truth": ["(", "&", "II", ")", ")", "WorkList", ".", "push_back", "(", "&", "II", ")", ";"], "File": "JVMIRDecorator", "Func": "LowerSELECT", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51183, "Length": 36, "Cover_Rate": 0.5217391304347826} {"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", ")", ";", "Select", "->", "replaceAllUsesWith", "(", "PHI", ")"], "ground_truth": [";"], "File": "JVMIRDecorator", "Func": "LowerSELECTOp", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51184, "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", ")", ";", "IRB", ".", "CreateBr"], "ground_truth": ["(", "EndBlk", ")", ";"], "File": "JVMIRDecorator", "Func": "LowerSELECTOp", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51185, "Length": 176, "Cover_Rate": 0.5827814569536424} {"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", "(", ")", "<<", "", ")", ";", "Func", "->", "dump"], "ground_truth": ["(", ")", ";"], "File": "JVMIRDecorator", "Func": "ProcessFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51186, "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", ",", "", ")", ")", ";", "Indices", ".", "push_back", "(", "ConstantInt", "::", "get", "(", "TargetIdxTy"], "ground_truth": [",", "FldIndex", ")", ")", ";"], "File": "JVMIRDecorator", "Func": "ReplaceConstantGlobsRefs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51187, "Length": 148, "Cover_Rate": 0.3894736842105263} {"Template_token": ["", "DT", "=", "&", "getAnalysis", "<", "DominatorTreeWrapperPass", ">", "(", ")", ".", "getDomTree", "(", ")", ";", "return", "ProcessFunction", "(", ")"], "ground_truth": [";"], "File": "JVMIRDecorator", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51188, "Length": 19, "Cover_Rate": 0.5588235294117647} {"Template_token": ["", "DT", "=", "&", "getAnalysis", "<", "DominatorTreeWrapperPass", ">", "(", ")", ".", "getDomTree", "(", ")", ";", "return", "ProcessFunction", "("], "ground_truth": [")", ";"], "File": "JVMIRDecorator", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51189, "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", ")", ";", "IRBuilder", "<", ">", "IRB", "(", "cast", "<", "Instruction", ">"], "ground_truth": ["(", "GEPclone", ")", ")", ";"], "File": "JVMIRDecorator", "Func": "UniquifyGEPChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51190, "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", ")", ";", "IRBuilder", "<", ">", "IRB", "(", "cast", "<", "Instruction"], "ground_truth": [">", "(", "GEPclone", ")", ")", ";"], "File": "JVMIRDecorator", "Func": "UniquifyGEPChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51191, "Length": 59, "Cover_Rate": 0.3881578947368421} {"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", ";", "SmallVector", "<", "std", "::", "pair", "<", "Instruction", "*", ",", "Value"], "ground_truth": ["*", ">", ",", "", ">", "UserGEPClonePairVec", ";"], "File": "JVMIRDecorator", "Func": "UniquifyGEPOperands", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51192, "Length": 149, "Cover_Rate": 0.5559701492537313} {"Template_token": ["", "return", "new", "DAGToDAGISel", "(", "TM"], "ground_truth": [",", "OptLevel", ")", ";"], "File": "JVMISelDAGToDAG", "Func": "createJVMISelDag", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51193, "Length": 9, "Cover_Rate": 0.34615384615384615} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createISelDag", "(", "TargetMachine", "&", "TM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{", "return", "new", "DAGToDAGISel", "(", "TM", ","], "ground_truth": ["OptLevel", ")", ";"], "File": "JVMISelDAGToDAG", "Func": "createJVMISelDag", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51194, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", ""], "ground_truth": [";"], "File": "JVMISelDAGToDAG", "Func": "getPassName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51195, "Length": 10, "Cover_Rate": 0.9090909090909091} {"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", "&&", "", ")", ";", "std", "::", "string", "ClassName", "=", "ModName", ".", "substr", "(", "", ",", "ModName", "."], "ground_truth": ["find", "(", "", ")", ")", ";"], "File": "JVMISelDAGToDAG", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51196, "Length": 157, "Cover_Rate": 0.7621359223300971} {"Template_token": ["", "static", "bool", "CallingConvSupported", "(", "CallingConv", "::", "ID", "CallConv", ")", "{", "return", "CallConv", "==", "CallingConv", "::", "C"], "ground_truth": [";"], "File": "JVMISelLowering", "Func": "CallingConvSupported", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51197, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "static", "bool", "CallingConvSupported", "(", "CallingConv"], "ground_truth": ["::", "ID", "CallConv", ")", "{"], "File": "JVMISelLowering", "Func": "CallingConvSupported", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51198, "Length": 10, "Cover_Rate": 0.5555555555555556} {"Template_token": ["", "bool", "TargetLowering", "::", "CanLowerReturn", "(", "CallingConv", "::", "ID", ",", "MachineFunction", "&", ",", "bool", ",", "const", "SmallVectorImpl", "<", "", ">", "&", "Outs", ",", "LLVMContext", "&", ")", "const", "{", "return", "Outs", ".", "size"], "ground_truth": ["(", ")", "<=", "", ";"], "File": "JVMISelLowering", "Func": "CanLowerReturn", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51199, "Length": 36, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "bool", "TargetLowering", "::", "CanLowerReturn", "(", "CallingConv", "::", "ID", ",", "MachineFunction", "&", ",", "bool", ","], "ground_truth": ["const", "SmallVectorImpl", "<", "", ">", "&", "Outs", ",", "LLVMContext", "&", ")", "const", "{"], "File": "JVMISelLowering", "Func": "CanLowerReturn", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51200, "Length": 27, "Cover_Rate": 0.6923076923076923} {"Template_token": ["", "SDNodeFlags", "Flags", "=", "V", ".", "getNode", "(", ")", "->"], "ground_truth": ["getFlags", "(", ")", ";"], "File": "JVMISelLowering", "Func": "checkIfAbsorptionCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51201, "Length": 13, "Cover_Rate": 0.41935483870967744} {"Template_token": ["", "RepMap", ".", "clear"], "ground_truth": ["(", ")", ";"], "File": "JVMISelLowering", "Func": "clearAuxiliaryData", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51202, "Length": 6, "Cover_Rate": 0.3333333333333333} {"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", ")", ";", "DAG", ".", "setRoot", "(", "DSA", ".", "getValue", "(", ""], "ground_truth": [")", ")", ";"], "File": "JVMISelLowering", "Func": "createAllocationMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51203, "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", "(", ")", ";", "MFI", "->", "addToNodeTypeMap", "(", "DSA", ".", "getNode", "(", ")", ",", "AllocatedTy"], "ground_truth": [")", ";"], "File": "JVMISelLowering", "Func": "createAllocationMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51204, "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", ")", ";", "EVT", "VTs", "[", "]", "=", "{", "IdxVT", ",", ""], "ground_truth": ["}", ";"], "File": "JVMISelLowering", "Func": "createCompositeMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51205, "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", "[", "]", "=", "{", "", ",", "", "}", ";", "N", "=", "DAG", ".", "getNode", "(", "NodeOpcode"], "ground_truth": [",", "dl", ",", "VTs", ",", "Ops", ")", ";"], "File": "JVMISelLowering", "Func": "createCompositeMacros", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51206, "Length": 257, "Cover_Rate": 0.4415807560137457} {"Template_token": ["", "auto", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "MRI", ".", "freezeReservedRegs", "("], "ground_truth": ["MF", ")", ";"], "File": "JVMISelLowering", "Func": "finalizeLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51207, "Length": 17, "Cover_Rate": 0.5862068965517241} {"Template_token": ["", "auto", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "MRI", ".", "freezeReservedRegs"], "ground_truth": ["(", "MF", ")", ";"], "File": "JVMISelLowering", "Func": "finalizeLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51208, "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", "(", "", ")", ";", "std", "::", "string", "MethodDescStr", "=", "MFI", "->", "getFromTypeNameMap"], "ground_truth": ["(", "AllocatedTy", ")", ";"], "File": "JVMISelLowering", "Func": "GenConstructorCallSequence", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51209, "Length": 73, "Cover_Rate": 0.35609756097560974} {"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", "(", ")", ";", "Flags", ".", "setIsComposite", "("], "ground_truth": ["isComposite", ")", ";"], "File": "JVMISelLowering", "Func": "GenStoreForAllocatedMem", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51210, "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", ")", ";", "return"], "ground_truth": ["AllocStore", ";"], "File": "JVMISelLowering", "Func": "GenStoreForAllocatedMem", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51211, "Length": 112, "Cover_Rate": 0.8115942028985508} {"Template_token": ["", "unsigned", "N", "=", "Node", "->", "getNumValues", "(", ")", ";", "while", "(", "N", "&&", "Node", "->", "getValueType", "(", "N", "-", ""], "ground_truth": [")", "==", "", ")", "--", "N", ";"], "File": "JVMISelLowering", "Func": "GetChainOperandNumFromValue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51212, "Length": 27, "Cover_Rate": 0.36486486486486486} {"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", "(", ")", ";", "Type", "*", "FTy", "=", "cast", "<", "StructType", ">", "(", "ObjTy", ")", "->", "getElementType", "(", "(", "unsigned", ")"], "ground_truth": ["IdxNum", ")", ";"], "File": "JVMISelLowering", "Func": "GetFieldSpecDescID", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51213, "Length": 106, "Cover_Rate": 0.5196078431372549} {"Template_token": ["", "SDUse", "&", "Use", "=", "itr", ".", "getUse", "(", ")", ";", "if", "(", "CompRefNode", "!=", "Use", ".", "getUser", "(", ")", "&&", "Use", ".", "getValueType", "(", ")", "!=", "", ")", "{", "User", "="], "ground_truth": ["*", "itr", ";"], "File": "JVMISelLowering", "Func": "GetRefUse", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51214, "Length": 34, "Cover_Rate": 0.3469387755102041} {"Template_token": ["", "return", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||"], "ground_truth": ["Opcode", "==", "", ";"], "File": "JVMISelLowering", "Func": "IsCompositeRef", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51215, "Length": 21, "Cover_Rate": 0.525} {"Template_token": ["", "SDValue", "Ptr", "=", "Opr", ".", "getOperand", "(", "", ")", ";", "return", "!", "Ptr", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ".", "hasIsAbsorptionCandidate", "(", ")", ";", "}", "case"], "ground_truth": ["", ":"], "File": "JVMISelLowering", "Func": "IsLoadOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51216, "Length": 30, "Cover_Rate": 0.40540540540540543} {"Template_token": ["", "bool", "isSuitableForJumpTable", "(", "const", "SwitchInst", "*", "SI", ",", "uint64_t", "NumCases", ",", "uint64_t", "Range", ")", "const", "override", "{", "return", "false"], "ground_truth": [";"], "File": "JVMISelLowering", "Func": "isSuitableForJumpTable", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51217, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "bool", "isSuitableForJumpTable", "(", "const", "SwitchInst", "*", "SI", ",", "uint64_t", "NumCases", ","], "ground_truth": ["uint64_t", "Range", ")", "const", "override", "{"], "File": "JVMISelLowering", "Func": "isSuitableForJumpTable", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51218, "Length": 17, "Cover_Rate": 0.8095238095238095} {"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", ";", "}", ";", "bool", "CanSkipF", "=", "(", "!", "Flags", ".", "hasIsAbsorptionCandidate", "(", ")", "&&", "(", "CompatibleLoad", "(", "Val", ","], "ground_truth": ["VT", ")", "||", "IsLoadLike", "(", "Val", ".", "getOpcode", "(", ")", ")", ")", ")", ";"], "File": "JVMISelLowering", "Func": "LoadOperand", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51219, "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", ";", "else", "return"], "ground_truth": ["false", ";"], "File": "JVMISelLowering", "Func": "LoadOperandWCh", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51220, "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", ")", ";", "BinOp", "=", "DAG", ".", "getNode", "(", "LowerBinOp", ",", "DL", ","], "ground_truth": ["", ",", "{", "LoadInp1", ",", "LoadInp2", "}", ")", ";"], "File": "JVMISelLowering", "Func": "LowerBinaryOp", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51221, "Length": 103, "Cover_Rate": 0.31402439024390244} {"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", ",", "", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "CondNode", ",", "LoadInp1", ",", "LoadInp2", ","], "ground_truth": ["BBlock", "}", ";"], "File": "JVMISelLowering", "Func": "LowerBR_CC", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51222, "Length": 255, "Cover_Rate": 0.6555269922879178} {"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", ")", ";", "return", "BrConstcc"], "ground_truth": [";"], "File": "JVMISelLowering", "Func": "LowerConstantCondition", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51223, "Length": 69, "Cover_Rate": 0.5798319327731093} {"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", ")", ")", "{", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "LoadSz", ",", "TypeStrID", ",", "DAG", ".", "getConstant", "(", "", ",", "dl", ",", "", ")", ",", "DAG", ".", "getConstant"], "ground_truth": ["(", "", ",", "dl", ",", "", ")", "}", ";"], "File": "JVMISelLowering", "Func": "LowerDYNAMIC_STACKALLOC", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51224, "Length": 209, "Cover_Rate": 0.34775374376039936} {"Template_token": ["", "if", "(", "Op", ".", "getOpcode", "(", ")", "==", "", ")", "return", "Op0", ";", "Op0", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "Op0", "."], "ground_truth": ["getValueType", "(", ")", ",", "Op0", ")", ";"], "File": "JVMISelLowering", "Func": "LowerEXTEND", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51225, "Length": 30, "Cover_Rate": 0.3488372093023256} {"Template_token": ["", "SDLoc", "DL", "(", "Op", ")", ";", "const", "GlobalValue", "*", "GV", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "Op", ")"], "ground_truth": ["->", "getGlobal", "(", ")", ";"], "File": "JVMISelLowering", "Func": "LowerGlobalAddress", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51226, "Length": 23, "Cover_Rate": 0.45098039215686275} {"Template_token": ["", "assert", "(", "Op", ".", "getOperand", "(", "", ")", ".", "isUndef", "(", ")", "&&", "", ")", ";", "EVT", "VTs", "[", "]", "=", "{", "Op", ".", "getValueType", "(", ")", ",", "", "}", ";", "SDValue", "Ops", "[", "]", "=", "{", "Op", ".", "getOperand", "(", "", ")", ",", "Ptr", "}", ";", "return", "DAG", ".", "getNode", "(", "", ",", "DL", ","], "ground_truth": ["VTs", ",", "Ops", ")", ";"], "File": "JVMISelLowering", "Func": "LowerLOAD", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51227, "Length": 61, "Cover_Rate": 0.48031496062992124} {"Template_token": ["", "}", "assert", "(", "Op", ".", "getOperand", "(", "", ")", ".", "isUndef", "(", ")", "&&", "", ")", ";", "SDValue", "LoadVal", "=", "LoadOperand", "(", "DAG", ",", "DL", ",", "Val", ".", "getValueType", "(", ")", ",", "Val", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "LoadVal", ",", "Ptr", "}", ";", "return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", ""], "ground_truth": [",", "Ops", ")", ";"], "File": "JVMISelLowering", "Func": "LowerSTORE", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51228, "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", ")", ";", "if", "(", "Use", ".", "getOpcode", "("], "ground_truth": [")", "==", "", ")", "{"], "File": "JVMISelLowering", "Func": "LowerSTRUCT_REF", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51229, "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", ")", ";", "}", "}", "if", "(", "Use", ".", "getOpcode", "(", ")", "==", "", "||", "Use", ".", "getOpcode", "(", ")", "==", "", ")", "ReplaceAllUsesOfValueAndChain", "(", "false", ",", "DAG", ","], "ground_truth": ["Use", ",", "FieldAcc", ")", ";"], "File": "JVMISelLowering", "Func": "LowerSTRUCT_REF", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51230, "Length": 472, "Cover_Rate": 0.7564102564102564} {"Template_token": ["", "NewChNum", "=", "GetChainOperandNumFromValue", "(", "New", ")", ";", "if", "(", "OldChNum", ">=", "", "&&", "NewChNum", ">=", "", ")", "DAG", ".", "ReplaceAllUsesOfValueWith", "(", "Old", ".", "getValue", "(", "OldChNum", ")", ",", "New", ".", "getValue", "(", "NewChNum", ")", ")", ";", "else", "if", "(", "OldChNum", ">=", "", ")", "{", "assert", "(", "Old", ".", "getOperand", "(", "", ")", ".", "getValueType", "(", ")", ".", "getSimpleVT", "(", ")", "==", "", ")", ";", "SDValue", "OldParentCh", "=", "Old", "."], "ground_truth": ["getOperand", "(", "", ")", ";"], "File": "JVMISelLowering", "Func": "ReplaceAllUsesOfValueAndChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51231, "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", "(", ")", "==", "", ")", ";", "SDValue", "OldParentCh", "=", "Old", ".", "getOperand"], "ground_truth": ["(", "", ")", ";"], "File": "JVMISelLowering", "Func": "ReplaceAllUsesOfValueAndChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51232, "Length": 119, "Cover_Rate": 0.6918604651162791} {"Template_token": ["", "bool", "skipArgumentTypeValidation", "(", "bool"], "ground_truth": ["IsComposite", ")", "const", "{"], "File": "JVMISelLowering", "Func": "skipArgumentTypeValidation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51233, "Length": 8, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "bool", "skipArgumentTypeValidation", "(", "bool"], "ground_truth": ["IsComposite", ")", "const", "{"], "File": "JVMISelLowering", "Func": "skipArgumentTypeValidation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51234, "Length": 8, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "Flags", ".", "setGlueOperands", "(", "false", ")", ";", "New", ".", "getNode", "(", ")", "->", "setFlags", "(", "Flags"], "ground_truth": [")", ";"], "File": "JVMISelLowering", "Func": "TransferNodeFlags", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51235, "Length": 18, "Cover_Rate": 0.4186046511627907} {"Template_token": ["", "SDNodeFlags", "Flags", "=", "Old", ".", "getNode", "(", ")"], "ground_truth": ["->", "getFlags", "(", ")", ";"], "File": "JVMISelLowering", "Func": "TransferNodeFlags", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51236, "Length": 13, "Cover_Rate": 0.3023255813953488} {"Template_token": ["", "SDNodeFlags", "Flags", "=", "Old", ".", "getNode", "(", ")", "->", "getFlags", "(", ")", ";", "Flags", ".", "setGlueOperands", "("], "ground_truth": ["true", ")", ";"], "File": "JVMISelLowering", "Func": "TransferNodeFlagsWithGlue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51237, "Length": 20, "Cover_Rate": 0.46511627906976744} {"Template_token": ["", "SDNodeFlags", "Flags", "=", "Old", ".", "getNode", "("], "ground_truth": [")", "->", "getFlags", "(", ")", ";"], "File": "JVMISelLowering", "Func": "TransferNodeFlagsWithGlue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51238, "Length": 13, "Cover_Rate": 0.3023255813953488} {"Template_token": ["", "FunctionPass", "*", "createLoadStoreEliminationOpt", "(", ")", "{", "return", "new", "LoadStoreEliminationOpt", "("], "ground_truth": [")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "createJVMLoadStoreEliminationOpt", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51239, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "void", "LoadStoreEliminationOpt", "::", "EnterScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB"], "ground_truth": ["->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51240, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "void", "LoadStoreEliminationOpt", "::", "ExitScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<"], "ground_truth": ["'\\n'", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51241, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "void", "LoadStoreEliminationOpt", "::", "ExitScope", "("], "ground_truth": ["MachineBasicBlock", "*", "MBB", ")", "{"], "File": "JVMLoadStoreEliminationOpt", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51242, "Length": 10, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "unsigned", "Left", "=", "--", "OpenChildren", "[", "Parent", "]", ";", "if", "(", "Left", "!=", "", ")", "break", ";", "ExitScope", "(", "Parent", "->", "getBlock", "(", ")"], "ground_truth": [")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "ExitScopeIfDone", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51243, "Length": 26, "Cover_Rate": 0.3132530120481928} {"Template_token": ["", "LoadStoreEliminationOpt", "(", ")", ":", "MachineFunctionPass", "(", "ID", ")", "{", "initializeLoadStoreEliminationOptPass", "(", "*", "PassRegistry", "::"], "ground_truth": ["getPassRegistry", "(", ")", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "JVMLoadStoreEliminationOpt", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51244, "Length": 19, "Cover_Rate": 0.95} {"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", "(", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Child", ":", "Children", ")", "WorkList"], "ground_truth": [".", "push_back", "(", "Child", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "PerformOptimization", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51245, "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", ")", "{", "MachineBasicBlock", "*", "MBB", "=", "Node", "->", "getBlock"], "ground_truth": ["(", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "PerformOptimization", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51246, "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", "(", ")", ")", ";", "if", "(", "!", "", "(", "UseMI", ".", "getOpcode", "(", ")", ")", "||", "&", "UseMI", "!=", "MI"], "ground_truth": ["->", "getNextNode", "(", ")", ")", "continue", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "ProcessBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51247, "Length": 117, "Cover_Rate": 0.42391304347826086} {"Template_token": ["", "bool", "LoadStoreEliminationOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MFN", ")", "{", "MF", "=", "&", "MFN", ";", "TII", "=", "static_cast", "<", "const", "InstrInfo", "*", ">", "(", "MF", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "static_cast", "<", "const", "RegisterInfo", "*", ">", "(", "MF", "->", "getSubtarget", "("], "ground_truth": [")", ".", "getRegisterInfo", "(", ")", ")", ";"], "File": "JVMLoadStoreEliminationOpt", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51248, "Length": 55, "Cover_Rate": 0.5729166666666666} {"Template_token": ["", "if", "(", "DeletionSet", ".", "find", "(", "Elm", ")", "==", "DeletionSet", ".", "end"], "ground_truth": ["(", ")", ")", "DeletionSet", ".", "insert", "(", "Elm", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "AddToLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51249, "Length": 22, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "void", "LowerMemoryIntrinsics", "::", "AddToLazyDeletionSet", "(", "User", "*", "Elm", ")", "{", "if", "(", "DeletionSet", ".", "find", "(", "Elm", ")", "==", "DeletionSet", ".", "end", "(", ")", ")", "DeletionSet"], "ground_truth": [".", "insert", "(", "Elm", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "AddToLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51250, "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", ")", ";", "}", "else", "return", "SL", "->", "getElementOffset", "("], "ground_truth": ["FldIdx", ")", "==", "Offset", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "CheckForPartialElementAccess", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51251, "Length": 123, "Cover_Rate": 0.5913461538461539} {"Template_token": ["", "FunctionPass", "*", "createLowerMemoryIntrinsics"], "ground_truth": ["(", ")", "{"], "File": "JVMLowerMemoryIntrinsics", "Func": "createJVMLowerMemoryIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51252, "Length": 6, "Cover_Rate": 0.46153846153846156} {"Template_token": ["", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "Value", "*", "NextGep", "=", "llvm", "::", "GetNextGEP", "(", "DL", ",", "IRB", ",", "TargetIdxTy", ",", "V", ",", "Padding", ")", ";", "if", "(", "IsSrcGep", ")", "CurrDstOffset", "+=", "Padding", ";", "else", "CurrSrcOffset", "+="], "ground_truth": ["Padding", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetNextGep", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51253, "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", "(", ")", ";", "Value", "*", "NextGep", "=", "llvm", "::", "GetNextGEP", "(", "DL", ","], "ground_truth": ["IRB", ",", "TargetIdxTy", ",", "V", ",", "Padding", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetNextGep", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51254, "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", "=", "", ";", "return", "GetNextGep", "(", "IRB", ","], "ground_truth": ["CurrSrc", ",", "false", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetNextSrcGep", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51255, "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", ")", ";", "uint64_t", "RemOffset", "=", "OffsetVal", "-", "SL"], "ground_truth": ["->", "getElementOffset", "(", "Field", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetTypeAtOffset", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51256, "Length": 120, "Cover_Rate": 0.4878048780487805} {"Template_token": ["", "while", "(", "isa", "<", "CastInst", ">", "(", "V", ")", ")", "V", "=", "cast", "<", "CastInst", ">", "(", "V", ")", "->", "getOperand", "(", "", ")", ";", "return", "V"], "ground_truth": [";"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetUnwrappedValue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51257, "Length": 28, "Cover_Rate": 0.7} {"Template_token": ["", "while", "(", "isa", "<", "CastInst", ">", "(", "V", ")", ")", "V", "=", "cast"], "ground_truth": ["<", "CastInst", ">", "(", "V", ")", "->", "getOperand", "(", "", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "GetUnwrappedValue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51258, "Length": 25, "Cover_Rate": 0.625} {"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", ")", ";", "else", "OptMemTransferSerial", "(", "IRB", ",", "Src", ",", "InitOffsetSrc", ",", "Dst", ",", "InitOffsetDst"], "ground_truth": [",", "Length", ",", "Inst", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "OptimizeMemCopy", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51259, "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", ")", ";", "SrcSz", "="], "ground_truth": ["DstSz", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "OptMemTransferScalar", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51260, "Length": 189, "Cover_Rate": 0.3987341772151899} {"Template_token": ["", "void", "LowerMemoryIntrinsics", "::", "PopulateEraseUsers", "(", "User", "*", "I", ",", "SetVector", "<"], "ground_truth": ["User", "*", ">", "&", "Users", ")", "{"], "File": "JVMLowerMemoryIntrinsics", "Func": "PopulateEraseUsers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51261, "Length": 18, "Cover_Rate": 0.32727272727272727} {"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", ")", ")", "{", "Type", "*", "Ty", "=", "ATy"], "ground_truth": ["->", "getElementType", "(", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "PrepareValueForMemSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51262, "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", ")", ";", "for", "(", "auto", "&", "BB", ":", "*", "Func", ")", "for", "(", "auto", "&", "I", ":"], "ground_truth": ["BB", ")", "if", "(", "isa", "<", "MemIntrinsic", ">", "(", "&", "I", ")", ")", "{"], "File": "JVMLowerMemoryIntrinsics", "Func": "ProcessFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51263, "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", ")", ";", "ResetOffsets", "("], "ground_truth": [")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "ProcessIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51264, "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", ")", ";", "else", "if", "(", "MemCpyInst", "*", "Memcpy", "=", "dyn_cast", "<", "MemCpyInst", ">", "(", "Item", ")", ")", "expandMemCpyAsLoop"], "ground_truth": ["(", "Memcpy", ",", "TTI", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "ProcessIntrinsics", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51265, "Length": 76, "Cover_Rate": 0.5135135135135135} {"Template_token": ["", "}", "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": 51266, "Length": 27, "Cover_Rate": 0.4153846153846154} {"Template_token": ["", "void", "LowerMemoryIntrinsics", "::", "ResetOffsets", "(", ")", "{", "CurrDstOffset", "=", "", ";", "CurrSrcOffset", "=", "", ";", "CurrSrc", "="], "ground_truth": ["nullptr", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "ResetOffsets", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51267, "Length": 19, "Cover_Rate": 0.7916666666666666} {"Template_token": ["", "CurrSrcOffset", "=", "", ";", "CurrSrc", "=", "nullptr", ";", "CurrDst", "=", "nullptr"], "ground_truth": [";"], "File": "JVMLowerMemoryIntrinsics", "Func": "ResetOffsets", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51268, "Length": 12, "Cover_Rate": 0.5} {"Template_token": ["", "Func", "=", "&", "F", ";", "return", "ProcessFunction", "("], "ground_truth": [")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51269, "Length": 10, "Cover_Rate": 0.5} {"Template_token": ["", "bool", "runOnFunction", "(", "Function", "&", "F", ")", "override", "{", "Func", "=", "&", "F", ";", "return", "ProcessFunction", "("], "ground_truth": [")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51270, "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", ";", "CurrDstOffset", "=", "cast", "<", "ConstantInt", ">", "(", "DstOffset", ")", "->", "getZExtValue", "("], "ground_truth": [")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "SetInitGEPs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51271, "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", "(", ")", ";", "AddToLazyDeletionSet", "(", "cast", "<", "User"], "ground_truth": [">", "(", "I", ")", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "TransformMemMoveToCpy", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51272, "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", ")", ";", "cast", "<", "Instruction", ">", "(", "I", ")", "->", "dropAllReferences"], "ground_truth": ["(", ")", ";"], "File": "JVMLowerMemoryIntrinsics", "Func": "TransformMemMoveToCpy", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51273, "Length": 58, "Cover_Rate": 0.5576923076923077} {"Template_token": ["", "if", "(", "NodeTypeMap", ".", "find", "(", "N", ")", "==", "NodeTypeMap", ".", "end", "(", ")", ")"], "ground_truth": ["NodeTypeMap", "[", "N", "]", "=", "Ty", ";"], "File": "JVMMachineFunctionInfo", "Func": "addToNodeTypeMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51274, "Length": 22, "Cover_Rate": 0.5945945945945946} {"Template_token": ["", "void", "FunctionInfo", "::", "addToNodeTypeMap", "(", "SDNode", "*", "N", ",", "Type", "*"], "ground_truth": ["Ty", ")", "{"], "File": "JVMMachineFunctionInfo", "Func": "addToNodeTypeMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51275, "Length": 14, "Cover_Rate": 0.3783783783783784} {"Template_token": ["", "void", "FunctionInfo", "::", "addToScratchAllocationSet", "(", "unsigned", "Reg", ")", "{", "if", "(", "scratchAllocations", ".", "find", "(", "Reg", ")", "==", "scratchAllocations", ".", "end", "(", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<"], "ground_truth": ["Reg", "<<", "", ")", ";"], "File": "JVMMachineFunctionInfo", "Func": "addToScratchAllocationSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51276, "Length": 38, "Cover_Rate": 0.8085106382978723} {"Template_token": ["", "assert", "(", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", ";", "if", "(", "STyName", ".", "find", "(", "Ty", ")", "==", "STyName", ".", "end", "(", ")", ")", "{", "std", "::", "string", "*", "Name", "=", "GenClassName", "(", ")", ";", "STyName", "[", "Ty", "]"], "ground_truth": ["=", "Name", ";"], "File": "JVMMachineFunctionInfo", "Func": "addToTypeNameMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51277, "Length": 44, "Cover_Rate": 0.6875} {"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", ")", "{", "unsigned", "NumRegs", "=", "TLI", ".", "getNumRegisters", "(", "F", ".", "getContext"], "ground_truth": ["(", ")", ",", "VT", ")", ";"], "File": "JVMMachineFunctionInfo", "Func": "ComputeLegalVTs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51278, "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", ")", ";", "if", "(", "Results", ".", "size", "(", ")", ">"], "ground_truth": ["", ")", "{"], "File": "JVMMachineFunctionInfo", "Func": "ComputeSigVTs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51279, "Length": 56, "Cover_Rate": 0.5045045045045045} {"Template_token": ["", "DescriptorVec", "*", "getDescVector", "("], "ground_truth": [")", "{"], "File": "JVMMachineFunctionInfo", "Func": "getDescVector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51280, "Length": 6, "Cover_Rate": 0.5454545454545454} {"Template_token": ["", "assert", "(", "DescIDMap", ".", "find", "(", "DescVec", "[", "ID", "]", ")", "!=", "DescIDMap", ".", "end"], "ground_truth": ["(", ")", ")", ";"], "File": "JVMMachineFunctionInfo", "Func": "getFromDescriptorVector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51281, "Length": 19, "Cover_Rate": 0.5428571428571428} {"Template_token": ["", "assert", "(", "DescIDMap", ".", "find", "(", "DescVec", "[", "ID", "]", ")", "!=", "DescIDMap", ".", "end", "(", ")", ")", ";", "return", "DescVec", "["], "ground_truth": ["ID", "]", ";"], "File": "JVMMachineFunctionInfo", "Func": "getFromDescriptorVector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51282, "Length": 25, "Cover_Rate": 0.7142857142857143} {"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": 51283, "Length": 35, "Cover_Rate": 0.9722222222222222} {"Template_token": ["", "std", "::", "string", "FunctionInfo", "::", "getFromTypeNameMap", "(", "Type", "*"], "ground_truth": ["Ty", ")", "{"], "File": "JVMMachineFunctionInfo", "Func": "getFromTypeNameMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51284, "Length": 12, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "unsigned", "getLocalsLimit", "(", ")", "const"], "ground_truth": ["{"], "File": "JVMMachineFunctionInfo", "Func": "getLocalsLimit", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51285, "Length": 6, "Cover_Rate": 0.6} {"Template_token": ["", "return", "NumArguments"], "ground_truth": [";"], "File": "JVMMachineFunctionInfo", "Func": "getNumArguments", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51286, "Length": 3, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "unsigned", "getNumArguments", "(", ")", "{", "return"], "ground_truth": ["NumArguments", ";"], "File": "JVMMachineFunctionInfo", "Func": "getNumArguments", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51287, "Length": 8, "Cover_Rate": 0.8888888888888888} {"Template_token": ["", "unsigned", "getStackLimit", "(", ")", "const", "{", "return", "StackLimit"], "ground_truth": [";"], "File": "JVMMachineFunctionInfo", "Func": "getStackLimit", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51288, "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", ")", ")", "{", "getTypeDescriptor", "(", "cast", "<", "PointerType", ">", "(", "Ty", ")", "->", "getElementType", "(", ")", ",", "Desc"], "ground_truth": [")", ";"], "File": "JVMMachineFunctionInfo", "Func": "getTypeDescriptor", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51289, "Length": 131, "Cover_Rate": 0.4628975265017668} {"Template_token": ["", "return", "&", "STyName"], "ground_truth": [";"], "File": "JVMMachineFunctionInfo", "Func": "getTypeNameMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51290, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "TypeNameMap", "*", "getTypeNameMap"], "ground_truth": ["(", ")", "{"], "File": "JVMMachineFunctionInfo", "Func": "getTypeNameMap", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51291, "Length": 6, "Cover_Rate": 0.5454545454545454} {"Template_token": ["", "NumArguments", "++"], "ground_truth": [";"], "File": "JVMMachineFunctionInfo", "Func": "incrimentArgumentCount", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51292, "Length": 3, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "NumArguments"], "ground_truth": ["++", ";"], "File": "JVMMachineFunctionInfo", "Func": "incrimentArgumentCount", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51293, "Length": 3, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "NumArguments", "=", "", ";", "StackLimit", "=", ""], "ground_truth": [";"], "File": "JVMMachineFunctionInfo", "Func": "Initialize", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51294, "Length": 8, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "MOOMap", ".", "size", "(", ")", "&&", "MOOMap", ".", "find", "(", "Reg", ")", "!=", "MOOMap"], "ground_truth": [".", "end", "(", ")", ";"], "File": "JVMMachineFunctionInfo", "Func": "isRegisterOffsetAllocated", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51295, "Length": 20, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "explicit", "FunctionInfo", "(", "MachineFunction", "&", "MF", ")", ":", "MF", "(", "MF", ")", "{", "Initialize", "("], "ground_truth": [")", ";"], "File": "JVMMachineFunctionInfo", "Func": "JVMFunctionInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51296, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "void", "setLocalsLimit", "(", "unsigned", "limit", ")", "{", "LocalsLimit", "="], "ground_truth": ["limit", ";"], "File": "JVMMachineFunctionInfo", "Func": "setLocalsLimit", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51297, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "void", "setStackLimit", "(", "unsigned", "limit", ")", "{", "StackLimit", "="], "ground_truth": ["limit", ";"], "File": "JVMMachineFunctionInfo", "Func": "setStackLimit", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51298, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "void", "setStackLimit", "("], "ground_truth": ["unsigned", "limit", ")", "{"], "File": "JVMMachineFunctionInfo", "Func": "setStackLimit", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51299, "Length": 7, "Cover_Rate": 0.5833333333333334} {"Template_token": ["", "UseDataRegionDirectives", "=", "true", ";", "HasSingleParameterDotFile", "=", "false", ";", "HasDotTypeDotSizeDirective", "=", "false", ";", "if", "(", "EnableAssembler", ")", "{", "EnableInMemoryAsmEmit", "=", "true", ";", "AsmMemoryBuffer", "=", "new", "std", "::", "string", "(", "", ")", ";", "}", "AlignmentIsInBytes", "=", "false", ";", "COMMDirectiveAlignmentIsInBytes", "=", "false", ";", "LCOMMDirectiveAlignmentType", "=", "LCOMM"], "ground_truth": ["::", "Log2Alignment", ";"], "File": "JVMMCAsmInfo", "Func": "JVMMCAsmInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51300, "Length": 46, "Cover_Rate": 0.5679012345679012} {"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", "(", ")", ";", "if", "(", "Imm", "->", "getType", "(", ")", "->", "isFloatTy", "(", ")", ")", "MCOp", "=", "MCOperand", "::", "createFPImm", "("], "ground_truth": ["Imm", "->", "getValueAPF", "(", ")", ".", "convertToFloat", "(", ")", ")", ";"], "File": "JVMMCInstLower", "Func": "Lower", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51301, "Length": 162, "Cover_Rate": 0.39705882352941174} {"Template_token": ["", "else", "if", "(", "RC", "==", "&", "", ")", "return", "", ";", "else", "if", "(", "RC", "==", "&", "", ")", "return", "", ";", "else", "llvm_unreachable", "(", "", ")", ";", "return", ""], "ground_truth": [";"], "File": "JVMMCOpcodeUtils", "Func": "GetLoadOpcode", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51302, "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", "", ";", "else", "if", "(", "LRC", "==", "&"], "ground_truth": ["", ")", "return", "", ";"], "File": "JVMMCOpcodeUtils", "Func": "GetRCConvOpcode", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51303, "Length": 73, "Cover_Rate": 0.31877729257641924} {"Template_token": ["", "static", "MCAsmBackend", "*", "createAsmBackend", "(", "const", "Target", "&", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "const", "MCRegisterInfo", "&", ",", "const", "MCTargetOptions"], "ground_truth": ["&", ")", "{"], "File": "JVMMCTargetDesc", "Func": "createAsmBackend", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51304, "Length": 23, "Cover_Rate": 0.6764705882352942} {"Template_token": ["", "static", "MCAsmBackend", "*", "createAsmBackend", "(", "const", "Target", "&", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "const", "MCRegisterInfo", "&"], "ground_truth": [",", "const", "MCTargetOptions", "&", ")", "{"], "File": "JVMMCTargetDesc", "Func": "createAsmBackend", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51305, "Length": 23, "Cover_Rate": 0.6764705882352942} {"Template_token": ["", "return", "new", "TargetAsmStreamer", "(", "S"], "ground_truth": [",", "OS", ")", ";"], "File": "JVMMCTargetDesc", "Func": "createAsmTargetStreamer", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51306, "Length": 9, "Cover_Rate": 0.3103448275862069} {"Template_token": ["", "static", "MCInstPrinter", "*", "createMCInstPrinter", "(", "const", "Triple", "&", ",", "unsigned", "SyntaxVariant", ",", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", "{", "assert", "(", "SyntaxVariant", "==", "", "&&", ""], "ground_truth": [")", ";"], "File": "JVMMCTargetDesc", "Func": "createMCInstPrinter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51307, "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", "==", "", "&&", "", ")", ";", "return", "new", "InstPrinter", "(", "MAI", ",", "MII"], "ground_truth": [",", "MRI", ")", ";"], "File": "JVMMCTargetDesc", "Func": "createMCInstPrinter", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51308, "Length": 48, "Cover_Rate": 0.9795918367346939} {"Template_token": ["", "MCInstrInfo", "*", "X", "=", "new", "MCInstrInfo", "(", ")", ";", "InitMCInstrInfo", "("], "ground_truth": ["X", ")", ";"], "File": "JVMMCTargetDesc", "Func": "createMCInstrInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51309, "Length": 14, "Cover_Rate": 0.56} {"Template_token": ["", "static", "MCRegisterInfo", "*", "createMCRegisterInfo", "(", "const", "Triple", "&", ")", "{", "MCRegisterInfo", "*", "X", "=", "new", "MCRegisterInfo", "(", ")", ";", "InitMCRegisterInfo", "(", "X", ",", "", ")", ";", "return", "X"], "ground_truth": [";"], "File": "JVMMCTargetDesc", "Func": "createMCRegisterInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51310, "Length": 29, "Cover_Rate": 0.9666666666666667} {"Template_token": ["", "static", "MCSubtargetInfo", "*", "createMCSubtargetInfo", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "return", "createMCSubtargetInfoImpl", "(", "TT", ",", "CPU", ",", "FS"], "ground_truth": [")", ";"], "File": "JVMMCTargetDesc", "Func": "createMCSubtargetInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51311, "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", ")", ";", "TargetRegistry", "::", "RegisterAsmTargetStreamer", "(", "*", "T", ",", "createAsmTargetStreamer"], "ground_truth": [")", ";"], "File": "JVMMCTargetDesc", "Func": "LLVMInitializeJVMTargetMC", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51312, "Length": 60, "Cover_Rate": 0.631578947368421} {"Template_token": ["", "void", "MemIntrinsicsHandler", "::", "AddToLazyDeletionSet", "(", "User", "*", "Elm", ")", "{", "if", "(", "DeletionSet", ".", "find", "(", "Elm", ")", "==", "DeletionSet", ".", "end", "(", ")", ")", "DeletionSet"], "ground_truth": [".", "insert", "(", "Elm", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "AddToLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51313, "Length": 32, "Cover_Rate": 0.9696969696969697} {"Template_token": ["", "Value", "*", "MemIntrinsicsHandler", "::", "CreateCompositeElemAccessGEP", "(", "IRBuilder", "<", ">", "&", "IRB", ",", "Value", "*", "Mem", ",", "Type", "*", "CompType", ",", "Value", "*", "*", "Offset", ")", "{", "SmallVector", "<", "Value", "*", ",", "", ">", "Indices", ";", "Indices", ".", "push_back", "(", "ConstantInt", "::", "get", "(", "TargetIdxTy", ",", "", ")", ")", ";", "GetIndicesForCompositeElemAccess", "(", "IRB", ",", "Indices"], "ground_truth": [",", "CompType", ",", "Offset", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "CreateCompositeElemAccessGEP", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51314, "Length": 60, "Cover_Rate": 0.8450704225352113} {"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", ")", ";", "return", "GenMask", "(", "IRB", ",", "SrcSz", ",", "DestSz", ",", "Offset", ","], "ground_truth": ["IsLoad", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "GenMask", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51315, "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", "(", ")", ";", "unsigned", "SrcSz", "=", "DL", "."], "ground_truth": ["getTypeSizeInBits", "(", "SrcTy", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "GenMask", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51316, "Length": 53, "Cover_Rate": 0.6794871794871795} {"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", ")", ")", ")", ";", "}", "return", "ElmIdx"], "ground_truth": [";"], "File": "JVMMemIntrinsicsHandler", "Func": "GetStructElmIndexAtOffset", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51317, "Length": 70, "Cover_Rate": 0.3977272727272727} {"Template_token": ["", "for", "(", "auto", "*", "User", ":", "I", "->", "users", "(", ")", ")", "{", "if", "(", "User", "->", "getNumUses", "(", ")", ")", "PopulateEraseUsers", "(", "User", ","], "ground_truth": ["Users", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "PopulateEraseUsers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51318, "Length": 28, "Cover_Rate": 0.509090909090909} {"Template_token": ["", "if", "(", "User", "->", "getNumUses", "(", ")", ")", "PopulateEraseUsers", "(", "User", ",", "Users", ")", ";", "Users", ".", "push_back", "("], "ground_truth": ["User", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "PopulateEraseUsers", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51319, "Length": 22, "Cover_Rate": 0.4} {"Template_token": ["", "void", "MemIntrinsicsHandler", "::", "ProcessArrays", "(", "Type", "*", "SrcTy", ",", "Type", "*", "DestTy", ",", "Value", "*", "Offset"], "ground_truth": [",", "Value", "*", "SrcMem", ",", "BitCastInst", "&", "I", ")", "{"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessArrays", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51320, "Length": 26, "Cover_Rate": 0.4126984126984127} {"Template_token": ["", "LLVMContext", "&", "Cxt", "=", "Func", "->", "getContext", "(", ")", ";", "const", "DataLayout", "&", "DL", "=", "Func", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "TargetIdxTy", "=", "GetTargetIndexType", "(", "DL", ",", "Cxt"], "ground_truth": [")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51321, "Length": 34, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "AddToLazyDeletionSet", "(", "&", "I", ")", ";", "for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "RetVal", "&=", "ProcessUser", "("], "ground_truth": ["MemOpOffsetMap", ",", "*", "User", ",", "Offset", ",", "isStruct", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessGEPChain", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51322, "Length": 32, "Cover_Rate": 0.31683168316831684} {"Template_token": ["", "for", "(", "auto", "*", "Val", ":", "DeletionSet", ")", "{", "SmallVector", "<", "User", "*", ",", "", ">", "Users", ";", "PopulateEraseUsers", "(", "Val", ",", "Users", ")", ";", "Users", ".", "push_back"], "ground_truth": ["(", "Val", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessLazyDeletionSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51323, "Length": 32, "Cover_Rate": 0.3595505617977528} {"Template_token": ["", "void", "MemIntrinsicsHandler", "::", "ProcessMemOpWRTCompositeSource", "(", "Value", "*", "SrcMem", ",", "SrcMemOpOffset", "&", "MemOpOffsetMap", ",", "Type", "*", "DestTy", ")", "{", "Type", "*", "SrcTy", "=", "GetRootType", "(", "SrcMem", "->", "getType", "(", ")", ")", ";", "assert", "(", "isa", "<", "ArrayType", ">", "(", "SrcTy", ")", "||", "isa", "<", "StructType", ">", "(", "SrcTy", ")", ")", ";", "for", "(", "auto", "&", "MemOpOffsetPair", ":", "MemOpOffsetMap"], "ground_truth": [")", "{"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessMemOpWRTCompositeSource", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51324, "Length": 59, "Cover_Rate": 0.5175438596491229} {"Template_token": ["", "for", "(", "auto", "&", "MemOpOffsetPair", ":", "MemOpOffsetMap", ")", "{", "IRBuilder", "<", ">", "IRB", "(", "cast", "<", "Instruction"], "ground_truth": [">", "(", "MemOpOffsetPair", ".", "first", ")", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessMemOpWRTSourcePrimitive", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51325, "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", ";", "for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "ProcessUser", "(", "MemOpOffsetMap", ","], "ground_truth": ["*", "User", ",", "Offset", ",", "false", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessPrimitive", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51326, "Length": 62, "Cover_Rate": 0.8611111111111112} {"Template_token": ["", "SrcMemOpOffset", "MemOpOffsetMap", ";", "for", "(", "auto", "*", "User", ":", "I", ".", "users", "(", ")", ")", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "User", ",", "Offset", ",", "false", ")", ";", "ProcessMemOpWRTSourcePrimitive", "(", "SrcMem", ",", "MemOpOffsetMap", ",", "DestTy"], "ground_truth": [")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessPrimitive", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51327, "Length": 36, "Cover_Rate": 0.5} {"Template_token": ["", "void", "MemIntrinsicsHandler", "::", "ProcessStructures", "(", "Type", "*", "SrcTy", ",", "Type", "*", "DestTy", ",", "Value", "*", "Offset", ",", "Value", "*", "SrcMem"], "ground_truth": [",", "BitCastInst", "&", "I", ")", "{"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessStructures", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51328, "Length": 26, "Cover_Rate": 0.4126984126984127} {"Template_token": ["", "else", "if", "(", "isa", "<", "LoadInst", ">", "(", "&", "I", ")", "||", "isa", "<", "StoreInst", ">", "(", "&", "I", ")", ")", "MemOpOffsetMap", "[", "&", "I", "]", "=", "Offset", ";", "else", "if", "(", "isa", "<", "BitCastInst", ">", "(", "&", "I", ")", ")", "{", "AddToLazyDeletionSet", "(", "&"], "ground_truth": ["I", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessUser", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51329, "Length": 48, "Cover_Rate": 0.32} {"Template_token": ["", "else", "if", "(", "isa", "<", "BitCastInst", ">", "(", "&", "I", ")", ")", "{", "AddToLazyDeletionSet", "(", "&", "I", ")", ";", "for", "(", "auto", "*", "BCUser", ":", "cast", "<", "BitCastInst", ">", "(", "&", "I", ")", "->", "users"], "ground_truth": ["(", ")", ")", "RetVal", "&=", "ProcessUser", "(", "MemOpOffsetMap", ",", "*", "BCUser", ",", "Offset", ",", "isStruct", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "ProcessUser", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51330, "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", "(", ")", ")", ";", "Type", "*", "DestTy", "=", "GetRootType", "(", "I", ".", "getDestTy"], "ground_truth": ["(", ")", ")", ";"], "File": "JVMMemIntrinsicsHandler", "Func": "visitBitCastInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51331, "Length": 84, "Cover_Rate": 0.5} {"Template_token": ["", "assert", "(", "MO", ".", "isReg", "(", ")", "&&", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "MO", ".", "getReg", "(", ")", ")", "&&", "", ")", ";", "if", "(", "!", "MRI", "->", "hasOneDef", "(", "MO", ".", "getReg", "(", ")", ")", ")", "return", "false", ";", "MachineInstr", "*", "Driver", "=", "MRI", "->", "getVRegDef", "(", "MO", ".", "getReg"], "ground_truth": ["(", ")", ")", ";"], "File": "JVMMICommonUtils", "Func": "HasConstantDriver", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51332, "Length": 54, "Cover_Rate": 0.391304347826087} {"Template_token": ["", "return", "false", ";", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "{", "isInt", "=", "true", ";", "return", "true", ";", "}", "case", "", ":", "case", ""], "ground_truth": [":"], "File": "JVMMICommonUtils", "Func": "isConstantOpcode", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51333, "Length": 30, "Cover_Rate": 0.46153846153846156} {"Template_token": ["", "FunctionPass", "*", "createOffsetAllocator", "(", ")", "{", "return", "new", "OffsetAllocator", "("], "ground_truth": [")", ";"], "File": "JVMOffsetAllocator", "Func": "createJVMOffsetAllocator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51334, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "FunctionPass", "*", "createOffsetAllocator", "(", ")", "{", "return", "new", "OffsetAllocator"], "ground_truth": ["(", ")", ";"], "File": "JVMOffsetAllocator", "Func": "createJVMOffsetAllocator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51335, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "void", "OffsetAllocator", "::", "EnterScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'"], "ground_truth": [")", ";"], "File": "JVMOffsetAllocator", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51336, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<"], "ground_truth": ["MBB", "->", "getName", "(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMOffsetAllocator", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51337, "Length": 17, "Cover_Rate": 0.6071428571428571} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")"], "ground_truth": ["<<", "'\\n'", ")", ";"], "File": "JVMOffsetAllocator", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51338, "Length": 17, "Cover_Rate": 0.6071428571428571} {"Template_token": ["", "void", "OffsetAllocator", "::", "ExitScope", "(", "MachineBasicBlock", "*"], "ground_truth": ["MBB", ")", "{"], "File": "JVMOffsetAllocator", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51339, "Length": 10, "Cover_Rate": 0.35714285714285715} {"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", "(", ")", ")", ";", "Node", "="], "ground_truth": ["Parent", ";"], "File": "JVMOffsetAllocator", "Func": "ExitScopeIfDone", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51340, "Length": 81, "Cover_Rate": 0.9759036144578314} {"Template_token": ["", "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": 51341, "Length": 25, "Cover_Rate": 0.625} {"Template_token": ["", "static", "bool", "isArgument", "(", "MachineInstr", "*", "MI", ")", "{", "unsigned", "Opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "false", ";", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", ""], "ground_truth": [":"], "File": "JVMOffsetAllocator", "Func": "isArgument", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51342, "Length": 43, "Cover_Rate": 0.6825396825396826} {"Template_token": ["", "initializeOffsetAllocatorPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")"], "ground_truth": [")", ";"], "File": "JVMOffsetAllocator", "Func": "JVMOffsetAllocator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51343, "Length": 10, "Cover_Rate": 0.5} {"Template_token": ["", "initializeOffsetAllocatorPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")"], "ground_truth": [")", ";"], "File": "JVMOffsetAllocator", "Func": "JVMOffsetAllocator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51344, "Length": 10, "Cover_Rate": 0.5} {"Template_token": ["", "const", "std", "::", "vector", "<", "MachineDomTreeNode", "*", ">", "&", "Children", "=", "Node", "->", "getChildren", "(", ")", ";", "OpenChildren", "[", "Node", "]", "=", "Children", ".", "size", "(", ")", ";", "for", "(", "MachineDomTreeNode", "*", "Child", ":", "Children", ")", "WorkList", ".", "push_back", "(", "Child", ")", ";", "}", "while", "(", "!", "WorkList", ".", "empty", "(", ")"], "ground_truth": [")", ";"], "File": "JVMOffsetAllocator", "Func": "PerformAllocation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51345, "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", ")", "{", "MachineOperand", "&", "MO", "=", "Arg", "->"], "ground_truth": ["getOperand", "(", "", ")", ";"], "File": "JVMOffsetAllocator", "Func": "PerformArgumentAllocation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51346, "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", "(", "", ")", ";", "if", "(", "LoadSrc", ".", "isReg", "(", ")", ")", "UseOffset", "=", "FuncInfo", "->", "getRegisterOffset", "(", "MI", "->", "getOperand", "(", "", ")", "."], "ground_truth": ["getReg", "(", ")", ")", ";"], "File": "JVMOffsetAllocator", "Func": "ProcessBlockAllocation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51347, "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", "(", ")", "<<", "", ")", ";", "PerformAllocation", "(", "DT", "->", "getRootNode"], "ground_truth": ["(", ")", ")", ";"], "File": "JVMOffsetAllocator", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51348, "Length": 92, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "void", "PostAllocationFixups", "::", "ExitScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName"], "ground_truth": ["(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMPostAllocationFixups", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51349, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "if", "(", "OpenChildren", "[", "Node", "]", ")", "return", ";", "ExitScope", "(", "Node", "->", "getBlock", "(", ")", ")", ";", "while", "(", "MachineDomTreeNode", "*", "Parent", "=", "Node"], "ground_truth": ["->", "getIDom", "(", ")", ")", "{"], "File": "JVMPostAllocationFixups", "Func": "ExitScopeIfDone", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51350, "Length": 31, "Cover_Rate": 0.37349397590361444} {"Template_token": ["", "if", "(", "MI", ".", "isReturn", "(", ")", "&&", "MI", ".", "getNumOperands", "(", ")", ")", "{", "MachineInstr", "*", "RetOpDef", "=", "MRI", ".", "getVRegDef", "(", "MI", ".", "getOperand", "("], "ground_truth": ["", ")", ".", "getReg", "(", ")", ")", ";"], "File": "JVMPostAllocationFixups", "Func": "isReturnFixupCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51351, "Length": 35, "Cover_Rate": 0.5303030303030303} {"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", ";", "else", "return"], "ground_truth": ["true", ";"], "File": "JVMPostAllocationFixups", "Func": "isStoreCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51352, "Length": 65, "Cover_Rate": 0.9848484848484849} {"Template_token": ["", "PostAllocationFixups", "(", ")", ":", "MachineFunctionPass", "(", "ID", ")"], "ground_truth": ["{"], "File": "JVMPostAllocationFixups", "Func": "JVMPostAllocationFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51353, "Length": 9, "Cover_Rate": 0.45} {"Template_token": ["", "initializePostAllocationFixupsPass", "(", "*", "PassRegistry", "::", "getPassRegistry"], "ground_truth": ["(", ")", ")", ";"], "File": "JVMPostAllocationFixups", "Func": "JVMPostAllocationFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51354, "Length": 10, "Cover_Rate": 0.5} {"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", "->"], "ground_truth": ["getChildren", "(", ")", ";"], "File": "JVMPostAllocationFixups", "Func": "PerformStoreInsertion", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51355, "Length": 50, "Cover_Rate": 0.32679738562091504} {"Template_token": ["", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "PerformStoreInsertion", "(", "DT", "->", "getRootNode", "(", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")"], "ground_truth": ["<<", "", ")", ";"], "File": "JVMPostAllocationFixups", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51356, "Length": 37, "Cover_Rate": 0.32456140350877194} {"Template_token": ["", "if", "(", "EraseSet", ".", "find", "(", "MI", ")", "==", "EraseSet", ".", "end", "("], "ground_truth": [")", ")", "EraseSet", ".", "insert", "(", "MI", ")", ";"], "File": "JVMPreAllocationFixups", "Func": "AddToDeferredEraseSet", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51357, "Length": 22, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "FunctionPass", "*", "createPreAllocationFixups", "(", ")", "{", "return", "new", "PreAllocationFixups"], "ground_truth": ["(", ")", ";"], "File": "JVMPreAllocationFixups", "Func": "createJVMPreAllocationFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51358, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "void", "PreAllocationFixups", "::", "EnterScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->", "getName", "(", ")", "<<", "'\\n'"], "ground_truth": [")", ";"], "File": "JVMPreAllocationFixups", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51359, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "void", "PreAllocationFixups", "::", "EnterScope", "(", "MachineBasicBlock", "*"], "ground_truth": ["MBB", ")", "{"], "File": "JVMPreAllocationFixups", "Func": "EnterScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51360, "Length": 10, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "void", "PreAllocationFixups", "::", "ExitScope", "(", "MachineBasicBlock", "*", "MBB", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "MBB", "->"], "ground_truth": ["getName", "(", ")", "<<", "'\\n'", ")", ";"], "File": "JVMPreAllocationFixups", "Func": "ExitScope", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51361, "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", "(", ")"], "ground_truth": [")", ";"], "File": "JVMPreAllocationFixups", "Func": "ExitScopeIfDone", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51362, "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", "", ":", "case"], "ground_truth": ["", ":"], "File": "JVMPreAllocationFixups", "Func": "IsExtendFixupCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51363, "Length": 40, "Cover_Rate": 0.45977011494252873} {"Template_token": ["", "unsigned", "Opcode", "=", "MI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "return", "false", ";", "case", "", ":", "case", "", ":", "case"], "ground_truth": ["", ":"], "File": "JVMPreAllocationFixups", "Func": "IsExtendFixupCandidate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51364, "Length": 28, "Cover_Rate": 0.3218390804597701} {"Template_token": ["", "initializePreAllocationFixupsPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")"], "ground_truth": [")", ";"], "File": "JVMPreAllocationFixups", "Func": "JVMPreAllocationFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51365, "Length": 10, "Cover_Rate": 0.5} {"Template_token": ["", "initializePreAllocationFixupsPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "("], "ground_truth": [")", ")", ";"], "File": "JVMPreAllocationFixups", "Func": "JVMPreAllocationFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51366, "Length": 10, "Cover_Rate": 0.5} {"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", ")", ";", "}", "Cleanup", "("], "ground_truth": [")", ";"], "File": "JVMPreAllocationFixups", "Func": "PerformExtendFixups", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51367, "Length": 67, "Cover_Rate": 0.4267515923566879} {"Template_token": ["", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "DT", "=", "&", "getAnalysis", "<", "MachineDominatorTree", ">", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "PerformExtendFixups", "(", "DT", "->", "getRootNode", "(", ")", ")", ";", "return", "true"], "ground_truth": [";"], "File": "JVMPreAllocationFixups", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51368, "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", "(", ")", "<<", "", ")", ";", "PerformExtendFixups", "(", "DT", "->", "getRootNode", "(", ")"], "ground_truth": [")", ";"], "File": "JVMPreAllocationFixups", "Func": "runOnMachineFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51369, "Length": 77, "Cover_Rate": 0.8020833333333334} {"Template_token": ["", "const", "MCPhysReg", "*", "RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", ")", "const", "{", "static", "const", "MCPhysReg", "CalleeSavedRegs", "[", "]"], "ground_truth": ["=", "{", "", "}", ";"], "File": "JVMRegisterInfo", "Func": "getCalleeSavedRegs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51370, "Length": 24, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "const", "MCPhysReg", "*", "RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", ")", "const", "{", "static", "const", "MCPhysReg", "CalleeSavedRegs", "[", "]", "=", "{", ""], "ground_truth": ["}", ";"], "File": "JVMRegisterInfo", "Func": "getCalleeSavedRegs", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51371, "Length": 24, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "const", "TargetRegisterClass", "*", "RegisterInfo", "::", "getPointerRegClass", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Kind", ")", "const", "{", "assert", "(", "Kind", "==", "", "&&", "", ")", ";", "if", "(", "MF", ".", "getSubtarget", "<", "Subtarget", ">", "(", ")", ".", "hasAddr64", "(", ")", ")", "return", "&", "", ";", "return", "&", ""], "ground_truth": [";"], "File": "JVMRegisterInfo", "Func": "getPointerRegClass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51372, "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", "&", "", ";", "return", "&", ""], "ground_truth": [";"], "File": "JVMRegisterInfo", "Func": "getPointerRegClass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51373, "Length": 49, "Cover_Rate": 0.9074074074074074} {"Template_token": ["", "const", "FrameLowering", "*", "getFrameLowering", "(", ")", "const", "override", "{", "return", "&", "FrameLowering"], "ground_truth": [";"], "File": "JVMSubtarget", "Func": "getFrameLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51374, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "&", "getInstrInfo", "(", ")"], "ground_truth": ["->", "getRegisterInfo", "(", ")", ";"], "File": "JVMSubtarget", "Func": "getRegisterInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51375, "Length": 10, "Cover_Rate": 0.5} {"Template_token": ["", "const", "TargetLowering", "*", "getTargetLowering", "(", ")", "const", "override", "{", "return", "&"], "ground_truth": ["TLInfo", ";"], "File": "JVMSubtarget", "Func": "getTargetLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51376, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "const", "TargetLowering", "*", "getTargetLowering", "(", ")", "const"], "ground_truth": ["override", "{"], "File": "JVMSubtarget", "Func": "getTargetLowering", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51377, "Length": 9, "Cover_Rate": 0.6428571428571429} {"Template_token": ["", "const", "Triple", "&", "getTargetTriple"], "ground_truth": ["(", ")", "const", "{"], "File": "JVMSubtarget", "Func": "getTargetTriple", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51378, "Length": 8, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "const", "Triple", "&", "getTargetTriple", "(", ")"], "ground_truth": ["const", "{"], "File": "JVMSubtarget", "Func": "getTargetTriple", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51379, "Length": 8, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "return", "TargetTriple", ".", "isArch64Bit", "("], "ground_truth": [")", ";"], "File": "JVMSubtarget", "Func": "hasAddr64", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51380, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "bool", "hasAddr64", "(", ")", "const", "{", "return", "TargetTriple", ".", "isArch64Bit"], "ground_truth": ["(", ")", ";"], "File": "JVMSubtarget", "Func": "hasAddr64", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51381, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "bool", "Subtarget", "::", "useAA", "(", ")", "const", "{", "return", "true"], "ground_truth": [";"], "File": "JVMSubtarget", "Func": "useAA", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51382, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "Target", "&", "llvm", "::", "getTheTarget32", "("], "ground_truth": [")", "{"], "File": "JVMTargetInfo", "Func": "getTheJVMTarget32", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51383, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "Target", "&", "llvm", "::"], "ground_truth": ["getTheTarget64", "(", ")", "{"], "File": "JVMTargetInfo", "Func": "getTheJVMTarget64", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51384, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "Target", "&", "llvm", "::", "getTheTarget64", "("], "ground_truth": [")", "{"], "File": "JVMTargetInfo", "Func": "getTheJVMTarget64", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51385, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "RegisterTarget", "<", "Triple", "::", "jvm32", ">", "X", "(", "getTheTarget32", "(", ")", ",", "", ",", "", ","], "ground_truth": ["", ")", ";"], "File": "JVMTargetInfo", "Func": "LLVMInitializeJVMTargetInfo", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51386, "Length": 19, "Cover_Rate": 0.4318181818181818} {"Template_token": ["", "bool", "addGCPasses", "(", ")", "override", "{", "return", "false"], "ground_truth": [";"], "File": "JVMTargetMachine", "Func": "addGCPasses", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51387, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "addPass", "(", "createISelDag", "(", "getTargetMachine", "(", ")", ",", "getOptLevel", "(", ")", ")", ")", ";", "return", "false"], "ground_truth": [";"], "File": "JVMTargetMachine", "Func": "addInstSelector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51388, "Length": 17, "Cover_Rate": 0.5} {"Template_token": ["", "addPass", "(", "createISelDag", "(", "getTargetMachine", "(", ")", ",", "getOptLevel", "(", ")", ")", ")", ";", "return", "false"], "ground_truth": [";"], "File": "JVMTargetMachine", "Func": "addInstSelector", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51389, "Length": 17, "Cover_Rate": 0.5} {"Template_token": ["", "if", "(", "JvmAggOpt", ")", "addPass", "(", "createInstructionCombiningPass", "(", ")", ")", ";", "addPass", "(", "createIRDecorator", "(", ")", ")", ";", "addPass", "(", "createAggressiveDCEPass", "(", ")", ")", ";", "if", "(", "JvmAggOpt", ")", "addPass", "("], "ground_truth": ["createInstructionCombiningPass", "(", ")", ")", ";"], "File": "JVMTargetMachine", "Func": "addIRPasses", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51390, "Length": 36, "Cover_Rate": 0.48} {"Template_token": ["", "void", "PassConfig", "::", "addOptimizedRegAlloc", "(", "FunctionPass", "*", "RegAllocPass", ")", "{", "disablePass", "(", "&", "RegisterCoalescerID", ")", ";", "TargetPassConfig", "::", "addOptimizedRegAlloc", "(", "RegAllocPass", ")"], "ground_truth": [";"], "File": "JVMTargetMachine", "Func": "addOptimizedRegAlloc", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51391, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "return", "new", "PassConfig", "(", "*", "this", ",", "PM"], "ground_truth": [")", ";"], "File": "JVMTargetMachine", "Func": "createPassConfig", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51392, "Length": 10, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "TargetPassConfig", "*", "TargetMachine", "::", "createPassConfig", "(", "PassManagerBase"], "ground_truth": ["&", "PM", ")", "{"], "File": "JVMTargetMachine", "Func": "createPassConfig", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51393, "Length": 11, "Cover_Rate": 0.5} {"Template_token": ["", "FunctionPass", "*", "PassConfig", "::"], "ground_truth": ["createTargetRegisterAllocator", "(", "bool", ")", "{"], "File": "JVMTargetMachine", "Func": "createTargetRegisterAllocator", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51394, "Length": 9, "Cover_Rate": 0.6923076923076923} {"Template_token": ["", "bool", "dumpclassfile", ";", "cl", "::", "GetCommandLineOption", "<", "bool", ">", "(", "", ",", "dumpclassfile", ")", ";", "bool", "enablejvmassembler", ";", "cl", "::", "GetCommandLineOption", "<", "bool", ">", "(", "", ",", "enablejvmassembler", ")", ";", "if", "(", "dumpclassfile", "&&", "!", "enablejvmassembler", ")", "llvm", "::", "errs", "(", ")", "<<", ""], "ground_truth": ["", ";"], "File": "JVMTargetMachine", "Func": "doCommandLineValidation", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51395, "Length": 46, "Cover_Rate": 0.8518518518518519} {"Template_token": ["", "static", "Reloc", "::", "Model", "getEffectiveRelocModel", "(", "Optional", "<", "Reloc", "::", "Model", ">"], "ground_truth": ["RM", ")", "{"], "File": "JVMTargetMachine", "Func": "getEffectiveRelocModel", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51396, "Length": 15, "Cover_Rate": 0.4411764705882353} {"Template_token": ["", "if", "(", "!", "RM", ".", "hasValue", "(", ")", ")", "return", "Reloc", "::", "PIC_", ";", "return", "*"], "ground_truth": ["RM", ";"], "File": "JVMTargetMachine", "Func": "getEffectiveRelocModel", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51397, "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": 51398, "Length": 8, "Cover_Rate": 0.5} {"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": 51399, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "void", "TargetAsmStreamer", "::", "emitString", "(", "const", "Twine", "&", "Str", ")", "{", "OS", "<<", "Str"], "ground_truth": ["<<", "", ";"], "File": "JVMTargetStreamer", "Func": "emitString", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51400, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "OS", "<<", "Str"], "ground_truth": ["<<", "", ";"], "File": "JVMTargetStreamer", "Func": "emitString", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51401, "Length": 6, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "OS", ".", "flush", "(", ")"], "ground_truth": [";"], "File": "JVMTargetStreamer", "Func": "flush", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51402, "Length": 6, "Cover_Rate": 0.5} {"Template_token": ["", "OS", ".", "flush"], "ground_truth": ["(", ")", ";"], "File": "JVMTargetStreamer", "Func": "flush", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51403, "Length": 6, "Cover_Rate": 0.5} {"Template_token": ["", "return", "Blocks", ".", "rbegin", "(", ")"], "ground_truth": [";"], "File": "JVMX2Java", "Func": "begin", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51404, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "return", "Blocks", ".", "rbegin", "("], "ground_truth": [")", ";"], "File": "JVMX2Java", "Func": "begin", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51405, "Length": 7, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "BlockRevPostOrderTraversal", "::", "BlockRevPostOrderTraversal", "(", "Function", "*", "F", ")", "{", "visitBlocks", "(", "&", "F", "->", "getEntryBlock", "("], "ground_truth": [")", ")", ";"], "File": "JVMX2Java", "Func": "BlockRevPostOrderTraversal", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51406, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "BasicBlock", "*", "Block", "=", "*", "Itr", ";", "if", "(", "Block", "->", "hasOneUse", "(", ")", "&&", "IsRPOTPredecessor", "(", "Itr", ",", "cast", "<", "BasicBlock", ">", "(", "cast", "<", "Instruction", ">", "(", "*", "(", "Block", "->", "user_begin", "(", ")", ")"], "ground_truth": [")", "->", "getParent", "(", ")", ")", ")", ")", "return", "true", ";"], "File": "JVMX2Java", "Func": "CanSkipPredication", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51407, "Length": 48, "Cover_Rate": 0.7741935483870968} {"Template_token": ["", "BasicBlock", "*", "Block", "=", "*", "Itr", ";", "if", "(", "Block", "->", "hasOneUse", "(", ")", "&&", "IsRPOTPredecessor", "(", "Itr", ",", "cast", "<", "BasicBlock", ">", "(", "cast", "<", "Instruction", ">", "(", "*", "(", "Block", "->", "user_begin", "(", ")"], "ground_truth": [")", ")", "->", "getParent", "(", ")", ")", ")", ")", "return", "true", ";"], "File": "JVMX2Java", "Func": "CanSkipPredication", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51408, "Length": 48, "Cover_Rate": 0.7741935483870968} {"Template_token": ["", "return", "new", "XToJavaPass", "(", ")"], "ground_truth": [";"], "File": "JVMX2Java", "Func": "createX2JavaPass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51409, "Length": 6, "Cover_Rate": 0.46153846153846156} {"Template_token": ["", "FunctionPass", "*", "createX2JavaPass", "(", ")", "{", "return", "new", "XToJavaPass"], "ground_truth": ["(", ")", ";"], "File": "JVMX2Java", "Func": "createX2JavaPass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51410, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "Blk", "->", "getName", "(", ")", ")", ";", "for", "(", "auto", "PV", ":", "PredCondMap", "[", "Blk", "]", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "i", "++", "<<", "", "<<", "PV", ".", "getPointer", "(", ")"], "ground_truth": ["->", "getName", "(", ")", "<<", "(", "PV", ".", "getInt", "(", ")", "?", "", ":", "", ")", ")", ";"], "File": "JVMX2Java", "Func": "DumpPredication", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51411, "Length": 62, "Cover_Rate": 0.7848101265822784} {"Template_token": ["", "void", "XToJavaPass", "::", "EmitBlock", "(", "BasicBlock", "*", "Blk", ","], "ground_truth": ["raw_ostream", "&", "OS", ")", "{"], "File": "JVMX2Java", "Func": "EmitBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51412, "Length": 14, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "int", "PhiRemoved", "=", "PhiEliminator", ".", "ProcessFunction", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "PhiRemoved", "<<", "", ")", ";", "Predicator", ".", "ProcessFunction", "(", ")", ";", "for", "(", "auto", "*", "Blk", ":"], "ground_truth": ["Predicator", ".", "getOrderedList", "(", ")", ")", "{"], "File": "JVMX2Java", "Func": "EmitBody", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51413, "Length": 41, "Cover_Rate": 0.6833333333333333} {"Template_token": ["", "void", "XToJavaPass", "::", "EmitEpilogue", "(", "raw_ostream", "&", "OS", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")"], "ground_truth": ["<<", "", ")", ";"], "File": "JVMX2Java", "Func": "EmitEpilogue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51414, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<"], "ground_truth": ["", ")", ";"], "File": "JVMX2Java", "Func": "EmitEpilogue", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51415, "Length": 9, "Cover_Rate": 0.45} {"Template_token": ["", "iterator", "end", "("], "ground_truth": [")", "{"], "File": "JVMX2Java", "Func": "end", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51416, "Length": 5, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "iterator", "end", "(", ")", "{", "return", "Blocks", ".", "rend"], "ground_truth": ["(", ")", ";"], "File": "JVMX2Java", "Func": "end", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51417, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "EmitEpilogue", "(", "OS", ")", ";", "XToJavaCounter", "++", ";", "return", "true"], "ground_truth": [";"], "File": "JVMX2Java", "Func": "GenJavaClass", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51418, "Length": 11, "Cover_Rate": 0.34375} {"Template_token": ["", "char", "ctrStr", "[", "", "]", "=", "{", "'\\0'", "}", ";", "std", "::", "string", "Name", "=", "", ";", "Name", "+=", "Prefix", ";", "sprintf", "(", "ctrStr", ",", "", ",", "ctr", "++", ")", ";", "Name", "+=", "ctrStr"], "ground_truth": [";"], "File": "JVMX2Java", "Func": "genTempName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51419, "Length": 35, "Cover_Rate": 0.603448275862069} {"Template_token": ["", "Name", "+=", "Prefix", ";", "sprintf", "(", "ctrStr", ",", "", ",", "ctr", "++", ")", ";", "Name", "+=", "ctrStr"], "ground_truth": [";"], "File": "JVMX2Java", "Func": "genTempName", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51420, "Length": 18, "Cover_Rate": 0.3103448275862069} {"Template_token": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesAll"], "ground_truth": ["(", ")", ";"], "File": "JVMX2Java", "Func": "getAnalysisUsage", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51421, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "void", "BlockPredication", "::", "InsertPredicate", "(", "BasicBlock", "*", "Blk", ",", "Value", "*", "Pred", ",", "int", "TrueCondF", ")", "{", "if", "(", "PredCondMap", ".", "find", "(", "Blk", ")", "==", "PredCondMap", ".", "end", "(", ")", ")", "PredCondMap", "[", "Blk", "]"], "ground_truth": ["=", "{", "PredicateVar", "(", "Pred", ",", "TrueCondF", ")", "}", ";"], "File": "JVMX2Java", "Func": "InsertPredicate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51422, "Length": 46, "Cover_Rate": 0.7301587301587301} {"Template_token": ["", "if", "(", "PredCondMap", ".", "find", "(", "Blk", ")", "==", "PredCondMap", ".", "end", "(", ")", ")", "PredCondMap", "[", "Blk", "]", "=", "{", "PredicateVar", "(", "Pred", ",", "TrueCondF", ")", "}", ";", "else", "PredCondMap", "[", "Blk", "]", ".", "push_back", "(", "PredicateVar"], "ground_truth": ["(", "Pred", ",", "TrueCondF", ")", ")", ";"], "File": "JVMX2Java", "Func": "InsertPredicate", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51423, "Length": 45, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "bool", "BlockPredication", "::", "IsRPOTPredecessor", "(", "BlockOrderListItr", "Block"], "ground_truth": [",", "BasicBlock", "*", "Pred", ")", "{"], "File": "JVMX2Java", "Func": "IsRPOTPredecessor", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51424, "Length": 13, "Cover_Rate": 0.41935483870967744} {"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", ",", "", ")", ")", ";", "LoadInst", "*", "NewLI", "=", "IRB", ".", "CreateLoad", "(", "I", ".", "getType", "(", ")", ",", "NewVar", ",", "genTempName", "(", "++", "newInstrCtr", ",", ""], "ground_truth": [")", ")", ";"], "File": "JVMX2Java", "Func": "ProcessBlock", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51425, "Length": 112, "Cover_Rate": 0.5185185185185185} {"Template_token": ["", "void", "BlockPredication", "::", "ProcessSwitchInst", "(", "SwitchInst", "*"], "ground_truth": ["SI", ")", "{"], "File": "JVMX2Java", "Func": "ProcessSwitchInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51426, "Length": 10, "Cover_Rate": 0.625} {"Template_token": ["", "void", "BlockPredication", "::", "ProcessSwitchInst", "(", "SwitchInst", "*"], "ground_truth": ["SI", ")", "{"], "File": "JVMX2Java", "Func": "ProcessSwitchInst", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51427, "Length": 10, "Cover_Rate": 0.625} {"Template_token": ["", "Func", "=", "&", "F", ";", "return", "GenJavaClass", "(", "OS", ")"], "ground_truth": [";"], "File": "JVMX2Java", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51428, "Length": 11, "Cover_Rate": 0.34375} {"Template_token": ["", "raw_string_ostream", "OS", "(", "Code", ")", ";", "Func", "=", "&", "F", ";", "return", "GenJavaClass", "(", "OS"], "ground_truth": [")", ";"], "File": "JVMX2Java", "Func": "runOnFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51429, "Length": 17, "Cover_Rate": 0.53125} {"Template_token": ["", "void", "setFunction", "(", "Function", "&"], "ground_truth": ["Func", ")", "{"], "File": "JVMX2Java", "Func": "setFunction", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51430, "Length": 8, "Cover_Rate": 0.5714285714285714} {"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", ";", "Blocks", ".", "push_back", "("], "ground_truth": ["Blk", ")", ";"], "File": "JVMX2Java", "Func": "visitBlocks", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51431, "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", ";", "Instruction", "*", "TI", "=", "Blk", "->", "getTerminator"], "ground_truth": ["(", ")", ";"], "File": "JVMX2Java", "Func": "visitBlocks", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51432, "Length": 60, "Cover_Rate": 0.3409090909090909} {"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", ")", ";", "res", "=", "JNI_CreateJavaVM", "(", "&", "jvm", ",", "(", "void", "*", "*", ")", "&", "env"], "ground_truth": [",", "&", "vm_args", ")", ";"], "File": "jvm", "Func": "wrapper_instance_methods_jvm_wrapper_instance_methods", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51433, "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", ")", ";", "}", "(", "*", "jvm", ")", "->"], "ground_truth": ["DestroyJavaVM", "(", "jvm", ")", ";"], "File": "jvm", "Func": "wrapper_static_method_call_jvm_wrapper_static_method_call", "Target": "JVM", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 51434, "Length": 142, "Cover_Rate": 0.39775910364145656}