{"Template_token": ["", "LLVM_EXTERNAL_VISIBILITY", "void", "LLVMInitializeDirectXTargetMC", "(", ")", "{"], "ground_truth": ["}"], "File": "DirectXMCTargetDesc", "Func": "LLVMInitializeDirectXTargetMC", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85169, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "LLVM_EXTERNAL_VISIBILITY", "void", "LLVMInitializeDirectXTargetMC", "(", ")", "{"], "ground_truth": ["}"], "File": "DirectXMCTargetDesc", "Func": "LLVMInitializeDirectXTargetMC", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85170, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "DirectXSubtarget", "::", "DirectXSubtarget", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "DirectXTargetMachine", "&", "TM", ")", ":", "DirectXGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "CPU", ",", "FS", ")", ",", "TL", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "DirectXSubtarget", "Func": "DirectXSubtarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85171, "Length": 41, "Cover_Rate": 1.0} {"Template_token": ["", "DirectXSubtarget", "::", "DirectXSubtarget", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "DirectXTargetMachine", "&", "TM", ")", ":", "DirectXGenSubtargetInfo", "(", "TT", ",", "CPU", ",", "CPU", ",", "FS", ")", ",", "TL", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "DirectXSubtarget", "Func": "DirectXSubtarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85172, "Length": 41, "Cover_Rate": 1.0} {"Template_token": ["", "return", "&", "TL", ";"], "ground_truth": ["}"], "File": "DirectXSubtarget", "Func": "getTargetLowering", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85173, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "const", "DirectXTargetLowering", "*", "getTargetLowering", "(", ")", "const", "override", "{", "return", "&", "TL", ";"], "ground_truth": ["}"], "File": "DirectXSubtarget", "Func": "getTargetLowering", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85174, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "static", "Target", "TheDirectXTarget", ";"], "ground_truth": ["return", "TheDirectXTarget", ";"], "File": "DirectXTargetInfo", "Func": "getTheDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85175, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "LLVM_EXTERNAL_VISIBILITY", "void", "LLVMInitializeDirectXTargetInfo", "(", ")", "{", "RegisterTarget", "<", "Triple", "::", "dxil", ",", "false", ">", "X", "(", "getTheDirectXTarget", "(", ")", ",", "", ",", "", ",", "", ")", ";"], "ground_truth": ["}"], "File": "DirectXTargetInfo", "Func": "LLVMInitializeDirectXTargetInfo", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85176, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "PM", ".", "add", "(", "createPrepareModulePass", "(", ")", ")", ";", "switch", "(", "FileType", ")", "{", "case", "CGFT_AssemblyFile", ":"], "ground_truth": ["PM", ".", "add", "(", "createPrintModulePass", "(", "Out", ",", "", ",", "true", ")", ")", ";"], "File": "DirectXTargetMachine1", "Func": "addPassesToEmitFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85177, "Length": 31, "Cover_Rate": 0.33695652173913043} {"Template_token": ["", "RegisterTargetMachine", "<", "DirectXTargetMachine", ">", "X", "(", "getTheDirectXTarget", "(", ")", ")", ";"], "ground_truth": ["auto", "*", "PR", "=", "PassRegistry", "::", "getPassRegistry", "(", ")", ";"], "File": "DirectXTargetMachine1", "Func": "LLVMInitializeDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85178, "Length": 21, "Cover_Rate": 0.6176470588235294} {"Template_token": ["", "RegisterTargetMachine", "<", "DirectXTargetMachine", ">", "X", "(", "getTheDirectXTarget", "(", ")", ")", ";", "auto", "*", "PR", "=", "PassRegistry", "::", "getPassRegistry", "(", ")", ";"], "ground_truth": ["initializePrepareModulePass", "(", "*", "PR", ")", ";"], "File": "DirectXTargetMachine1", "Func": "LLVMInitializeDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85179, "Length": 27, "Cover_Rate": 0.7941176470588235} {"Template_token": ["", "PM", ".", "add", "(", "createOpLoweringLegacyPass", "(", ")", ")", ";", "PM", ".", "add", "(", "createPrepareModulePass", "(", ")", ")", ";", "PM", ".", "add", "(", "createTranslateMetadataPass", "(", ")", ")", ";", "switch", "(", "FileType", ")", "{", "case", "CGFT_AssemblyFile", ":", "PM", ".", "add", "(", "createPrintModulePass", "(", "Out", ",", "", ",", "true", ")", ")", ";", "break", ";", "case", "CGFT_ObjectFile", ":", "PM", ".", "add", "(", "createWriterPass", "(", "Out", ")", ")", ";", "break", ";", "case", "CGFT_Null", ":", "break", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "DirectXTargetMachine2", "Func": "addPassesToEmitFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85180, "Length": 76, "Cover_Rate": 0.7307692307692307} {"Template_token": ["", "case", "CGFT_AssemblyFile", ":", "PM", ".", "add", "(", "createPrintModulePass", "(", "Out", ",", "", ",", "true", ")", ")", ";", "break", ";", "case", "CGFT_ObjectFile", ":", "PM", ".", "add", "(", "createWriterPass", "(", "Out", ")", ")", ";", "break", ";", "case", "CGFT_Null", ":", "break", ";"], "ground_truth": ["}"], "File": "DirectXTargetMachine2", "Func": "addPassesToEmitFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85181, "Length": 40, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "RegisterTargetMachine", "<", "DirectXTargetMachine", ">", "X", "(", "getTheDirectXTarget", "(", ")", ")", ";", "auto", "*", "PR", "=", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializePrepareModulePass", "(", "*", "PR", ")", ";", "initializeOpLoweringLegacyPass", "(", "*", "PR", ")", ";"], "ground_truth": ["initializeTranslateMetadataPass", "(", "*", "PR", ")", ";"], "File": "DirectXTargetMachine2", "Func": "LLVMInitializeDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85182, "Length": 39, "Cover_Rate": 0.8478260869565217} {"Template_token": ["", "RegisterTargetMachine", "<", "DirectXTargetMachine", ">", "X", "(", "getTheDirectXTarget", "(", ")", ")", ";", "auto", "*", "PR", "=", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializePrepareModulePass", "(", "*", "PR", ")", ";", "initializeOpLoweringLegacyPass", "(", "*", "PR", ")", ";"], "ground_truth": ["initializeTranslateMetadataPass", "(", "*", "PR", ")", ";"], "File": "DirectXTargetMachine2", "Func": "LLVMInitializeDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85183, "Length": 39, "Cover_Rate": 0.8478260869565217} {"Template_token": ["", "TargetPassConfig", "*", "DirectXTargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "DirectXPassConfig", "(", "*", "this", ",", "PM", ")", ";"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "createPassConfig", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85185, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "FunctionPass", "*", "createTargetRegisterAllocator", "(", "bool", ")", "override", "{"], "ground_truth": ["return", "nullptr", ";"], "File": "DirectXTargetMachine", "Func": "createTargetRegisterAllocator", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85188, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "DirectXPassConfig", "(", "DirectXTargetMachine", "&", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "DirectXPassConfig", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85189, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "DirectXPassConfig", "(", "DirectXTargetMachine", "&", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "DirectXPassConfig", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85190, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "DirectXTargetLowering", "::", "DirectXTargetLowering", "(", "const", "DirectXTargetMachine", "&", "TM", ",", "const", "DirectXSubtarget", "&", "STI", ")", ":", "TargetLowering", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "DirectXTargetLowering", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85191, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "DirectXTargetLowering", "::", "DirectXTargetLowering", "(", "const", "DirectXTargetMachine", "&", "TM", ",", "const", "DirectXSubtarget", "&", "STI", ")", ":", "TargetLowering", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "DirectXTargetLowering", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85192, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "DirectXTargetMachine", "::", "DirectXTargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ",", "Optional", "<", "CodeModel", "::", "Model", ">", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "JIT", ")", ":", "LLVMTargetMachine", "(", "T", ",", "", "", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "Reloc", "::", "Static", ",", "CodeModel", "::", "Small", ",", "OL", ")", ",", "TLOF", "(", "std", "::", "make_unique", "<", "TargetObjectFile", ">", "(", ")", ")", ",", "Subtarget", "(", "std", "::", "make_unique", "<", "DirectXSubtarget", ">", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", ")", "{"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "DirectXTargetMachine", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85193, "Length": 109, "Cover_Rate": 1.0} {"Template_token": ["", "DirectXTargetMachine", "::", "DirectXTargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ",", "Optional", "<", "CodeModel", "::", "Model", ">", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "JIT", ")", ":", "LLVMTargetMachine", "(", "T", ",", "", "", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "Reloc", "::", "Static", ",", "CodeModel", "::", "Small", ",", "OL", ")", ",", "TLOF", "(", "std", "::", "make_unique", "<", "TargetObjectFile", ">", "(", ")", ")", ",", "Subtarget", "(", "std", "::", "make_unique", "<", "DirectXSubtarget", ">", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", ")", "{"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "DirectXTargetMachine", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85194, "Length": 109, "Cover_Rate": 1.0} {"Template_token": ["", "DirectXTargetMachine", "&", "getDirectXTargetMachine", "(", ")", "const", "{"], "ground_truth": ["return", "getTM", "<", "DirectXTargetMachine", ">", "(", ")", ";"], "File": "DirectXTargetMachine", "Func": "getDirectXTargetMachine", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85196, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "MCSection", "*", "getExplicitSectionGlobal", "(", "const", "GlobalObject", "*", "GO", ",", "SectionKind", "Kind", ",", "const", "TargetMachine", "&", "TM", ")", "const", "override", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "DirectXTargetMachine", "Func": "getExplicitSectionGlobal", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85197, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "MCSection", "*", "getExplicitSectionGlobal", "(", "const", "GlobalObject", "*", "GO", ",", "SectionKind", "Kind", ",", "const", "TargetMachine", "&", "TM", ")", "const", "override", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "getExplicitSectionGlobal", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85198, "Length": 26, "Cover_Rate": 1.0} {"Template_token": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{"], "ground_truth": ["return", "TLOF", ".", "get", "(", ")", ";"], "File": "DirectXTargetMachine", "Func": "getObjFileLowering", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85199, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "const", "DirectXSubtarget", "*", "DirectXTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", ")", "const", "{", "return", "Subtarget", ".", "get", "(", ")", ";"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "getSubtargetImpl", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85201, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "LLVM_EXTERNAL_VISIBILITY", "void", "LLVMInitializeDirectXTarget", "(", ")", "{", "RegisterTargetMachine", "<", "DirectXTargetMachine", ">", "X", "(", "getTheDirectXTarget", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "LLVMInitializeDirectXTarget", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85206, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "MCSection", "*", "SelectSectionForGlobal", "(", "const", "GlobalObject", "*", "GO", ",", "SectionKind", "Kind", ",", "const", "TargetMachine", "&", "TM", ")", "const", "override", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "DirectXTargetMachine", "Func": "SelectSectionForGlobal", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85207, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "DirectXTargetMachine", "::", "~", "DirectXTargetMachine", "(", ")", "{"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "~DirectXTargetMachine", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85209, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "DirectXTargetMachine", "::", "~", "DirectXTargetMachine", "(", ")", "{"], "ground_truth": ["}"], "File": "DirectXTargetMachine", "Func": "~DirectXTargetMachine", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85210, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "DirectXTTIImpl", "(", "const", "DirectXTargetMachine", "*", "TM", ",", "const", "Function", "&", "F", ")", ":", "BaseT", "(", "TM", ",", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ")", ",", "ST", "(", "TM", "->", "getSubtargetImpl", "(", "F", ")", ")", ",", "TLI", "(", "ST", "->", "getTargetLowering", "(", ")", ")", "{"], "ground_truth": ["}"], "File": "DirectXTargetTransformInfo", "Func": "DirectXTTIImpl", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85211, "Length": 49, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "DirectXTTIImpl", "(", "const", "DirectXTargetMachine", "*", "TM", ",", "const", "Function", "&", "F", ")", ":", "BaseT", "(", "TM", ",", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ")", ",", "ST", "(", "TM", "->", "getSubtargetImpl", "(", "F", ")", ")", ",", "TLI", "(", "ST", "->", "getTargetLowering", "(", ")", ")", "{"], "ground_truth": ["}"], "File": "DirectXTargetTransformInfo", "Func": "DirectXTTIImpl", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85212, "Length": 49, "Cover_Rate": 1.0} {"Template_token": ["", "const", "DirectXSubtarget", "*", "getST", "(", ")", "const", "{"], "ground_truth": ["return", "ST", ";"], "File": "DirectXTargetTransformInfo", "Func": "getST", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85214, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "return", "TLI", ";"], "ground_truth": ["}"], "File": "DirectXTargetTransformInfo", "Func": "getTLI", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85215, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "void", "assignValueId", "(", "GlobalValue", "::", "GUID", "ValGUID", ")", "{", "GUIDToValueIdMap", "[", "ValGUID", "]", "=", "++", "GlobalValueId", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "assignValueId", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85216, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "void", "BitcodeWriter", "::", "copyStrtab", "(", "StringRef", "Strtab", ")", "{", "writeBlob", "(", "bitc", "::", "STRTAB_BLOCK_ID", ",", "bitc", "::", "STRTAB_BLOB", ",", "Strtab", ")", ";"], "ground_truth": ["WroteStrtab", "=", "true", ";"], "File": "DXILBitcodeWriter", "Func": "copyStrtab", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85220, "Length": 26, "Cover_Rate": 0.9629629629629629} {"Template_token": ["", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Array", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";"], "ground_truth": ["return", "Stream", ".", "EmitAbbrev", "(", "std", "::", "move", "(", "Abbv", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "createGenericDINodeAbbrev", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85221, "Length": 53, "Cover_Rate": 0.4015151515151515} {"Template_token": ["", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Array", ")", ")", ";"], "ground_truth": ["Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "createGenericDINodeAbbrev", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85222, "Length": 68, "Cover_Rate": 0.5151515151515151} {"Template_token": ["", "auto", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "METADATA_STRING_OLD", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Array", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "", ")", ")", ";", "return", "Stream", ".", "EmitAbbrev", "(", "std", "::", "move", "(", "Abbv", ")", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "createMetadataStringsAbbrev", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85223, "Length": 64, "Cover_Rate": 0.9014084507042254} {"Template_token": ["", "auto", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "METADATA_STRING_OLD", ")", ")", ";"], "ground_truth": ["Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Array", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "createMetadataStringsAbbrev", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85224, "Length": 36, "Cover_Rate": 0.5070422535211268} {"Template_token": ["", "BitcodeWriter", "(", "const", "Module", "&", "M", ",", "SmallVectorImpl", "<", "char", ">", "&", "Buffer", ",", "StringTableBuilder", "&", "StrtabBuilder", ",", "BitstreamWriter", "&", "Stream", ")", ":", "Stream", "(", "Stream", ")", ",", "StrtabBuilder", "(", "StrtabBuilder", ")", ",", "M", "(", "M", ")", ",", "VE", "(", "M", ",", "true", ")", ",", "Buffer", "(", "Buffer", ")", ",", "BitcodeStartBit", "(", "Stream", ".", "GetCurrentBitNo", "(", ")", ")", "{"], "ground_truth": ["GlobalValueId", "=", "VE", ".", "getValues", "(", ")", ".", "size", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "DXILBitcodeWriter", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85225, "Length": 71, "Cover_Rate": 0.9861111111111112} {"Template_token": ["", "void", "BitcodeWriter", "::", "emitSignedInt64", "(", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Vals", ",", "uint64_t", "V", ")", "{", "if", "(", "(", "int64_t", ")", "V", ">=", "", ")", "Vals", ".", "push_back", "(", "V", "<<", "", ")", ";", "else", "Vals", ".", "push_back", "(", "(", "-", "V", "<<", "", ")", "|", "", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "emitSignedInt64", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85227, "Length": 50, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "NumWords", "=", "A", ".", "getActiveWords", "(", ")", ";", "const", "uint64_t", "*", "RawData", "=", "A", ".", "getRawData", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "NumWords", ";", "i", "++", ")", "emitSignedInt64", "(", "Vals", ",", "RawData", "[", "i", "]", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "emitWideAPInt", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85229, "Length": 45, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "NumWords", ";", "i", "++", ")", "emitSignedInt64", "(", "Vals", ",", "RawData", "[", "i", "]", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "emitWideAPInt", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85230, "Length": 25, "Cover_Rate": 0.3968253968253968} {"Template_token": ["", "unsigned", "getEncodedAlign", "(", "MaybeAlign", "Alignment", ")", "{"], "ground_truth": ["return", "encode", "(", "Alignment", ")", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedAlign", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85231, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "bitc", "::", "BINOP_ADD", ";", "case", "Instruction", "::", "Sub", ":", "case", "Instruction", "::", "FSub", ":", "return", "bitc", "::", "BINOP_SUB", ";", "case", "Instruction", "::", "Mul", ":", "case", "Instruction", "::", "FMul", ":", "return", "bitc", "::", "BINOP_MUL", ";", "case", "Instruction", "::", "UDiv", ":", "return", "bitc", "::", "BINOP_UDIV", ";", "case", "Instruction", "::", "FDiv", ":", "case", "Instruction", "::", "SDiv", ":"], "ground_truth": ["return", "bitc", "::", "BINOP_SDIV", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedBinaryOpcode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85233, "Length": 60, "Cover_Rate": 0.33707865168539325} {"Template_token": ["", "case", "Instruction", "::", "Mul", ":", "case", "Instruction", "::", "FMul", ":", "return", "bitc", "::", "BINOP_MUL", ";", "case", "Instruction", "::", "UDiv", ":", "return", "bitc", "::", "BINOP_UDIV", ";", "case", "Instruction", "::", "FDiv", ":", "case", "Instruction", "::", "SDiv", ":", "return", "bitc", "::", "BINOP_SDIV", ";", "case", "Instruction", "::", "URem", ":", "return", "bitc", "::", "BINOP_UREM", ";", "case", "Instruction", "::", "FRem", ":", "case", "Instruction", "::", "SRem", ":", "return", "bitc", "::", "BINOP_SREM", ";", "case", "Instruction", "::", "Shl", ":", "return", "bitc", "::", "BINOP_SHL", ";", "case", "Instruction", "::", "LShr", ":", "return", "bitc", "::", "BINOP_LSHR", ";", "case", "Instruction", "::", "AShr", ":", "return", "bitc", "::", "BINOP_ASHR", ";", "case", "Instruction", "::", "And", ":", "return", "bitc", "::", "BINOP_AND", ";", "case", "Instruction", "::", "Or", ":"], "ground_truth": ["return", "bitc", "::", "BINOP_OR", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedBinaryOpcode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85234, "Length": 115, "Cover_Rate": 0.6460674157303371} {"Template_token": ["", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "Instruction", "::", "Trunc", ":", "return", "bitc", "::", "CAST_TRUNC", ";", "case", "Instruction", "::", "ZExt", ":", "return", "bitc", "::", "CAST_ZEXT", ";", "case", "Instruction", "::", "SExt", ":", "return", "bitc", "::", "CAST_SEXT", ";", "case", "Instruction", "::", "FPToUI", ":"], "ground_truth": ["return", "bitc", "::", "CAST_FPTOUI", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedCastOpcode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85235, "Length": 52, "Cover_Rate": 0.33986928104575165} {"Template_token": ["", "unsigned", "BitcodeWriter", "::", "getEncodedCastOpcode", "(", "unsigned", "Opcode", ")", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "Instruction", "::", "Trunc", ":", "return", "bitc", "::", "CAST_TRUNC", ";", "case", "Instruction", "::", "ZExt", ":", "return", "bitc", "::", "CAST_ZEXT", ";", "case", "Instruction", "::", "SExt", ":", "return", "bitc", "::", "CAST_SEXT", ";", "case", "Instruction", "::", "FPToUI", ":", "return", "bitc", "::", "CAST_FPTOUI", ";", "case", "Instruction", "::", "FPToSI", ":", "return", "bitc", "::", "CAST_FPTOSI", ";", "case", "Instruction", "::", "UIToFP", ":", "return", "bitc", "::", "CAST_UITOFP", ";", "case", "Instruction", "::", "SIToFP", ":", "return", "bitc", "::", "CAST_SITOFP", ";", "case", "Instruction", "::", "FPTrunc", ":", "return", "bitc", "::", "CAST_FPTRUNC", ";"], "ground_truth": ["case", "Instruction", "::", "FPExt", ":"], "File": "DXILBitcodeWriter", "Func": "getEncodedCastOpcode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85236, "Length": 106, "Cover_Rate": 0.6928104575163399} {"Template_token": ["", "case", "Comdat", "::", "Largest", ":", "return", "bitc", "::", "COMDAT_SELECTION_KIND_LARGEST", ";", "case", "Comdat", "::", "NoDeduplicate", ":", "return", "bitc", "::", "COMDAT_SELECTION_KIND_NO_DUPLICATES", ";"], "ground_truth": ["case", "Comdat", "::", "SameSize", ":"], "File": "DXILBitcodeWriter", "Func": "getEncodedComdatSelectionKind", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85237, "Length": 25, "Cover_Rate": 0.3246753246753247} {"Template_token": ["", "unsigned", "BitcodeWriter", "::", "getEncodedDLLStorageClass", "(", "const", "GlobalValue", "&", "GV", ")", "{", "switch", "(", "GV", ".", "getDLLStorageClass", "(", ")", ")", "{"], "ground_truth": ["case", "GlobalValue", "::", "DefaultStorageClass", ":"], "File": "DXILBitcodeWriter", "Func": "getEncodedDLLStorageClass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85238, "Length": 25, "Cover_Rate": 0.49019607843137253} {"Template_token": ["", "unsigned", "BitcodeWriter", "::", "getEncodedLinkage", "(", "const", "GlobalValue", "&", "GV", ")", "{", "return", "getEncodedLinkage", "(", "GV", ".", "getLinkage", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "getEncodedLinkage", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85239, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "case", "AtomicOrdering", "::", "NotAtomic", ":", "return", "bitc", "::", "ORDERING_NOTATOMIC", ";", "case", "AtomicOrdering", "::", "Unordered", ":", "return", "bitc", "::", "ORDERING_UNORDERED", ";", "case", "AtomicOrdering", "::", "Monotonic", ":", "return", "bitc", "::", "ORDERING_MONOTONIC", ";", "case", "AtomicOrdering", "::", "Acquire", ":", "return", "bitc", "::", "ORDERING_ACQUIRE", ";", "case", "AtomicOrdering", "::", "Release", ":", "return", "bitc", "::", "ORDERING_RELEASE", ";", "case", "AtomicOrdering", "::", "AcquireRelease", ":", "return", "bitc", "::", "ORDERING_ACQREL", ";", "case", "AtomicOrdering", "::", "SequentiallyConsistent", ":"], "ground_truth": ["return", "bitc", "::", "ORDERING_SEQCST", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedOrdering", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85241, "Length": 70, "Cover_Rate": 0.7692307692307693} {"Template_token": ["", "return", "bitc", "::", "ORDERING_ACQUIRE", ";", "case", "AtomicOrdering", "::", "Release", ":", "return", "bitc", "::", "ORDERING_RELEASE", ";", "case", "AtomicOrdering", "::", "AcquireRelease", ":", "return", "bitc", "::", "ORDERING_ACQREL", ";", "case", "AtomicOrdering", "::", "SequentiallyConsistent", ":", "return", "bitc", "::", "ORDERING_SEQCST", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "getEncodedOrdering", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85242, "Length": 36, "Cover_Rate": 0.3956043956043956} {"Template_token": ["", "return", "bitc", "::", "RMW_NAND", ";", "case", "AtomicRMWInst", "::", "Or", ":", "return", "bitc", "::", "RMW_OR", ";", "case", "AtomicRMWInst", "::", "Xor", ":", "return", "bitc", "::", "RMW_XOR", ";", "case", "AtomicRMWInst", "::", "Max", ":", "return", "bitc", "::", "RMW_MAX", ";", "case", "AtomicRMWInst", "::", "Min", ":", "return", "bitc", "::", "RMW_MIN", ";", "case", "AtomicRMWInst", "::", "UMax", ":", "return", "bitc", "::", "RMW_UMAX", ";", "case", "AtomicRMWInst", "::", "UMin", ":"], "ground_truth": ["return", "bitc", "::", "RMW_UMIN", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedRMWOperation", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85243, "Length": 65, "Cover_Rate": 0.41935483870967744} {"Template_token": ["", "unsigned", "getEncodedSyncScopeID", "(", "SyncScope", "::", "ID", "SSID", ")", "{"], "ground_truth": ["return", "unsigned", "(", "SSID", ")", ";"], "File": "DXILBitcodeWriter", "Func": "getEncodedSyncScopeID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85245, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "case", "GlobalVariable", "::", "LocalDynamicTLSModel", ":", "return", "", ";", "case", "GlobalVariable", "::", "InitialExecTLSModel", ":", "return", "", ";", "case", "GlobalVariable", "::", "LocalExecTLSModel", ":", "return", "", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "getEncodedThreadLocalMode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85246, "Length": 25, "Cover_Rate": 0.373134328358209} {"Template_token": ["", "unsigned", "BitcodeWriter", "::", "getEncodedUnaryOpcode", "(", "unsigned", "Opcode", ")", "{", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "Instruction", "::", "FNeg", ":", "return", "bitc", "::", "UNOP_FNEG", ";", "}"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "getEncodedUnaryOpcode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85247, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "return", "", ";", "case", "GlobalValue", "::", "HiddenVisibility", ":", "return", "", ";", "case", "GlobalValue", "::", "ProtectedVisibility", ":", "return", "", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "getEncodedVisibility", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85248, "Length": 20, "Cover_Rate": 0.39215686274509803} {"Template_token": ["", "void", "BitcodeWriter", "::", "pushValue", "(", "const", "Value", "*", "V", ",", "unsigned", "InstID", ",", "SmallVectorImpl", "<", "unsigned", ">", "&", "Vals", ")", "{", "unsigned", "ValID", "=", "VE", ".", "getValueID", "(", "V", ")", ";", "Vals", ".", "push_back", "(", "InstID", "-", "ValID", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "pushValue", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85250, "Length": 41, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "ValID", "=", "VE", ".", "getValueID", "(", "V", ")", ";"], "ground_truth": ["Vals", ".", "push_back", "(", "InstID", "-", "ValID", ")", ";"], "File": "DXILBitcodeWriter", "Func": "pushValue", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85251, "Length": 19, "Cover_Rate": 0.4634146341463415} {"Template_token": ["", "Vals", ".", "push_back", "(", "VE", ".", "getTypeID", "(", "V", "->", "getType", "(", ")", ")", ")", ";", "return", "true", ";", "}"], "ground_truth": ["return", "false", ";"], "File": "DXILBitcodeWriter", "Func": "pushValueAndType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85252, "Length": 23, "Cover_Rate": 0.323943661971831} {"Template_token": ["", "void", "BitcodeWriter", "::", "pushValueSigned", "(", "const", "Value", "*", "V", ",", "unsigned", "InstID", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Vals", ")", "{", "unsigned", "ValID", "=", "VE", ".", "getValueID", "(", "V", ")", ";", "int64_t", "diff", "=", "(", "(", "int32_t", ")", "InstID", "-", "(", "int32_t", ")", "ValID", ")", ";", "emitSignedInt64", "(", "Vals", ",", "diff", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "pushValueSigned", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85253, "Length": 54, "Cover_Rate": 1.0} {"Template_token": ["", "return", "rotateSign", "(", "Val", ".", "get", "<", "ConstantInt", "*", ">", "(", ")", "->", "getValue", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "rotateSign", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85255, "Length": 19, "Cover_Rate": 0.6551724137931034} {"Template_token": ["", "static", "uint64_t", "rotateSign", "(", "DISubrange", "::", "BoundType", "Val", ")", "{"], "ground_truth": ["return", "rotateSign", "(", "Val", ".", "get", "<", "ConstantInt", "*", ">", "(", ")", "->", "getValue", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "rotateSign", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85256, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "uint64_t", "Val", "=", "getAttrKindEncoding", "(", "Attr", ".", "getKindAsEnum", "(", ")", ")", ";", "assert", "(", "Val", "<=", "bitc", "::", "ATTR_KIND_ARGMEMONLY", "&&", "", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Record", ".", "push_back", "(", "Val", ")", ";", "Record", ".", "push_back", "(", "Attr", ".", "getValueAsInt", "(", ")", ")", ";", "}", "else", "{", "StringRef", "Kind", "=", "Attr", ".", "getKindAsString", "(", ")", ";", "StringRef", "Val", "=", "Attr", ".", "getValueAsString", "(", ")", ";", "Record", ".", "push_back", "(", "Val", ".", "empty", "(", ")", "?", "", ":", "", ")", ";", "Record", ".", "append", "(", "Kind", ".", "begin", "(", ")", ",", "Kind", ".", "end", "(", ")", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "if", "(", "!", "Val", ".", "empty", "(", ")", ")", "{", "Record", ".", "append", "(", "Val", ".", "begin", "(", ")", ",", "Val", ".", "end", "(", ")", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "}", "}", "}", "Stream", ".", "EmitRecord", "(", "bitc", "::", "PARAMATTR_GRP_CODE_ENTRY", ",", "Record", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeAttributeGroupTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85258, "Length": 162, "Cover_Rate": 0.4879518072289157} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getAttributeGroupID", "(", "Pair", ")", ")", ";", "Record", ".", "push_back", "(", "AttrListIndex", ")", ";", "for", "(", "Attribute", "Attr", ":", "AS", ")", "{", "if", "(", "Attr", ".", "isEnumAttribute", "(", ")", ")", "{", "uint64_t", "Val", "=", "getAttrKindEncoding", "(", "Attr", ".", "getKindAsEnum", "(", ")", ")", ";", "assert", "(", "Val", "<=", "bitc", "::", "ATTR_KIND_ARGMEMONLY", "&&", "", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Record", ".", "push_back", "(", "Val", ")", ";", "}", "else", "if", "(", "Attr", ".", "isIntAttribute", "(", ")", ")", "{", "uint64_t", "Val", "=", "getAttrKindEncoding", "(", "Attr", ".", "getKindAsEnum", "(", ")", ")", ";", "assert", "(", "Val", "<=", "bitc", "::", "ATTR_KIND_ARGMEMONLY", "&&", "", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Record", ".", "push_back", "(", "Val", ")", ";", "Record", ".", "push_back", "(", "Attr", ".", "getValueAsInt", "(", ")", ")", ";", "}", "else", "{", "StringRef", "Kind", "=", "Attr", ".", "getKindAsString", "(", ")", ";", "StringRef", "Val", "=", "Attr", ".", "getValueAsString", "(", ")", ";"], "ground_truth": ["Record", ".", "push_back", "(", "Val", ".", "empty", "(", ")", "?", "", ":", "", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeAttributeGroupTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85259, "Length": 168, "Cover_Rate": 0.5060240963855421} {"Template_token": ["", "const", "std", "::", "vector", "<", "AttributeList", ">", "&", "Attrs", "=", "VE", ".", "getAttributeLists", "(", ")", ";", "if", "(", "Attrs", ".", "empty", "(", ")", ")", "return", ";", "Stream", ".", "EnterSubblock", "(", "bitc", "::", "PARAMATTR_BLOCK_ID", ",", "", ")", ";", "SmallVector", "<", "uint64_t", ",", "", ">", "Record", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "Attrs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "AttributeList", "AL", "=", "Attrs", "[", "i", "]", ";", "for", "(", "unsigned", "i", ":", "AL", ".", "indexes", "(", ")", ")", "{", "AttributeSet", "AS", "=", "AL", ".", "getAttributes", "(", "i", ")", ";", "if", "(", "AS", ".", "hasAttributes", "(", ")", ")", "Record", ".", "push_back", "(", "VE", ".", "getAttributeGroupID", "(", "{", "i", ",", "AS", "}", ")", ")", ";", "}", "Stream", ".", "EmitRecord", "(", "bitc", "::", "PARAMATTR_CODE_ENTRY", ",", "Record", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeAttributeTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85260, "Length": 140, "Cover_Rate": 0.9032258064516129} {"Template_token": ["", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "Record", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Blob", ")", ")", ";"], "ground_truth": ["auto", "AbbrevNo", "=", "Stream", "->", "EmitAbbrev", "(", "std", "::", "move", "(", "Abbv", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeBlob", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85261, "Length": 37, "Cover_Rate": 0.38144329896907214} {"Template_token": ["", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "VE", ".", "computeBitsRequiredForTypeIndicies", "(", ")", ")", ")", ";", "if", "(", "Stream", ".", "EmitBlockInfoAbbrev", "(", "bitc", "::", "CONSTANTS_BLOCK_ID", ",", "std", "::", "move", "(", "Abbv", ")", ")", "!=", "CONSTANTS_SETTYPE_ABBREV", ")", "assert", "(", "false", "&&", "", ")", ";", "}", "{", "auto", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "CST_CODE_INTEGER", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "if", "(", "Stream", ".", "EmitBlockInfoAbbrev", "(", "bitc", "::", "CONSTANTS_BLOCK_ID", ",", "std", "::", "move", "(", "Abbv", ")", ")", "!=", "CONSTANTS_INTEGER_ABBREV", ")", "assert", "(", "false", "&&", "", ")", ";", "}", "{", "auto", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "CST_CODE_CE_CAST", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "VE", ".", "computeBitsRequiredForTypeIndicies", "(", ")", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "if", "(", "Stream", ".", "EmitBlockInfoAbbrev", "(", "bitc", "::", "CONSTANTS_BLOCK_ID", ",", "std", "::", "move", "(", "Abbv", ")", ")", "!=", "CONSTANTS_CE_CAST_Abbrev", ")", "assert", "(", "false", "&&", "", ")", ";", "}", "{", "auto", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "CST_CODE_NULL", ")", ")", ";", "if", "(", "Stream", ".", "EmitBlockInfoAbbrev", "(", "bitc", "::", "CONSTANTS_BLOCK_ID", ",", "std", "::", "move", "(", "Abbv", ")", ")", "!=", "CONSTANTS_NULL_Abbrev", ")", "assert", "(", "false", "&&", "", ")", ";", "}", "{", "auto", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "FUNC_CODE_INST_LOAD", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "VE", ".", "computeBitsRequiredForTypeIndicies", "(", ")", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "", ")", ")", ";", "if", "(", "Stream", ".", "EmitBlockInfoAbbrev", "(", "bitc", "::", "FUNCTION_BLOCK_ID", ",", "std", "::", "move", "(", "Abbv", ")", ")", "!=", "(", "unsigned", ")", "FUNCTION_INST_LOAD_ABBREV", ")", "assert", "(", "false", "&&", "", ")", ";", "}", "{", "auto", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "FUNC_CODE_INST_BINOP", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "", ")", ")", ";", "if", "(", "Stream", ".", "EmitBlockInfoAbbrev", "(", "bitc", "::", "FUNCTION_BLOCK_ID", ",", "std", "::", "move", "(", "Abbv", ")", ")", "!=", "(", "unsigned", ")", "FUNCTION_INST_BINOP_ABBREV", ")", "assert", "(", "false", "&&", "", ")", ";", "}"], "ground_truth": ["{"], "File": "DXILBitcodeWriter", "Func": "writeBlockInfo", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85262, "Length": 480, "Cover_Rate": 0.33970276008492567} {"Template_token": ["", "assert", "(", "isUInt", "<", "", ">", "(", "Size", ")", ")", ";", "Vals", ".", "push_back", "(", "Size", ")", ";", "for", "(", "char", "Chr", ":", "C", "->", "getName", "(", ")", ")", "Vals", ".", "push_back", "(", "(", "unsigned", "char", ")", "Chr", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "MODULE_CODE_COMDAT", ",", "Vals", ",", "", ")", ";", "Vals", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeComdats", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85263, "Length": 60, "Cover_Rate": 0.5263157894736842} {"Template_token": ["", "assert", "(", "isUInt", "<", "", ">", "(", "Size", ")", ")", ";", "Vals", ".", "push_back", "(", "Size", ")", ";", "for", "(", "char", "Chr", ":", "C", "->", "getName", "(", ")", ")", "Vals", ".", "push_back", "(", "(", "unsigned", "char", ")", "Chr", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "MODULE_CODE_COMDAT", ",", "Vals", ",", "", ")", ";"], "ground_truth": ["Vals", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeComdats", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85264, "Length": 59, "Cover_Rate": 0.5175438596491229} {"Template_token": ["", "void", "writeDIArgList", "(", "const", "DIArgList", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIArgList", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85267, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "Record", ".", "push_back", "(", "N", "->", "getAlignInBits", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getEncoding", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_BASIC_TYPE", ",", "Record", ",", "Abbrev", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIBasicType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85268, "Length": 41, "Cover_Rate": 0.36607142857142855} {"Template_token": ["", "void", "writeDICommonBlock", "(", "const", "DICommonBlock", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDICommonBlock", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85270, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRetainedTypes", "(", ")", ".", "get", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getGlobalVariables", "(", ")", ".", "get", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getImportedEntities", "(", ")", ".", "get", "(", ")", ")", ")", ";"], "ground_truth": ["Record", ".", "push_back", "(", "N", "->", "getDWOId", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDICompileUnit", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85271, "Length": 78, "Cover_Rate": 0.3023255813953488} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRetainedTypes", "(", ")", ".", "get", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getGlobalVariables", "(", ")", ".", "get", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getImportedEntities", "(", ")", ".", "get", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getDWOId", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_COMPILE_UNIT", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeDICompileUnit", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85272, "Length": 98, "Cover_Rate": 0.3798449612403101} {"Template_token": ["", "Record", ".", "push_back", "(", "N", "->", "getFlags", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getElements", "(", ")", ".", "get", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getRuntimeLang", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getVTableHolder", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getTemplateParams", "(", ")", ".", "get", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawIdentifier", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_COMPOSITE_TYPE", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeDICompositeType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85273, "Length": 114, "Cover_Rate": 0.43018867924528303} {"Template_token": ["", "Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getBaseType", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getSizeInBits", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getAlignInBits", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getOffsetInBits", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getFlags", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getExtraData", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_DERIVED_TYPE", ",", "Record", ",", "Abbrev", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIDerivedType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85274, "Length": 122, "Cover_Rate": 0.6161616161616161} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_ENUMERATOR", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeDIEnumerator", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85275, "Length": 36, "Cover_Rate": 0.43902439024390244} {"Template_token": ["", "Record", ".", "reserve", "(", "N", "->", "getElements", "(", ")", ".", "size", "(", ")", "+", "", ")", ";"], "ground_truth": ["Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIExpression", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85276, "Length": 28, "Cover_Rate": 0.32558139534883723} {"Template_token": ["", "Record", ".", "reserve", "(", "N", "->", "getElements", "(", ")", ".", "size", "(", ")", "+", "", ")", ";", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";", "Record", ".", "append", "(", "N", "->", "elements_begin", "(", ")", ",", "N", "->", "elements_end", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_EXPRESSION", ",", "Record", ",", "Abbrev", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIExpression", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85277, "Length": 64, "Cover_Rate": 0.7441860465116279} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawDirectory", "(", ")", ")", ")", ";"], "ground_truth": ["Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_FILE", ",", "Record", ",", "Abbrev", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85278, "Length": 29, "Cover_Rate": 0.34523809523809523} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawDirectory", "(", ")", ")", ")", ";"], "ground_truth": ["Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_FILE", ",", "Record", ",", "Abbrev", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85279, "Length": 29, "Cover_Rate": 0.34523809523809523} {"Template_token": ["", "void", "writeDIGenericSubrange", "(", "const", "DIGenericSubrange", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeDIGenericSubrange", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85280, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDIGlobalVariable", "(", "const", "DIGlobalVariable", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawLinkageName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getFile", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")", ")", ";"], "ground_truth": ["Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getType", "(", ")", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIGlobalVariable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85281, "Length": 123, "Cover_Rate": 0.6542553191489362} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawLinkageName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getFile", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getType", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "isLocalToUnit", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "isDefinition", "(", ")", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getStaticDataMemberDeclaration", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_GLOBAL_VAR", ",", "Record", ",", "Abbrev", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIGlobalVariable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85282, "Length": 139, "Cover_Rate": 0.7393617021276596} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getEntity", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";"], "ground_truth": ["Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_IMPORTED_ENTITY", ",", "Record", ",", "Abbrev", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIImportedEntity", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85284, "Length": 56, "Cover_Rate": 0.45901639344262296} {"Template_token": ["", "void", "writeDILabel", "(", "const", "DILabel", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILabel", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85285, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getFile", "(", ")", ")", ")", ";"], "ground_truth": ["Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILexicalBlock", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85286, "Length": 54, "Cover_Rate": 0.5094339622641509} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDILexicalBlockFile", "(", "const", "DILexicalBlockFile", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{"], "ground_truth": ["Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILexicalBlockFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85287, "Length": 32, "Cover_Rate": 0.3368421052631579} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDILexicalBlockFile", "(", "const", "DILexicalBlockFile", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";"], "ground_truth": ["Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getFile", "(", ")", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILexicalBlockFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85288, "Length": 64, "Cover_Rate": 0.6736842105263158} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getFile", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getLine", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getType", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getArg", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getFlags", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_LOCAL_VAR", ",", "Record", ",", "Abbrev", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILocalVariable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85289, "Length": 84, "Cover_Rate": 0.525} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getInlinedAt", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_LOCATION", ",", "Record", ",", "Abbrev", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDILocation", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85290, "Length": 51, "Cover_Rate": 0.4322033898305085} {"Template_token": ["", "for", "(", "auto", "&", "I", ":", "N", "->", "operands", "(", ")", ")", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "I", ")", ")", ";"], "ground_truth": ["Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_MODULE", ",", "Record", ",", "Abbrev", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDIModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85292, "Length": 37, "Cover_Rate": 0.4868421052631579} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getScope", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getFile", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_NAMESPACE", ",", "Record", ",", "Abbrev", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDINamespace", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85293, "Length": 74, "Cover_Rate": 0.6915887850467289} {"Template_token": ["", "void", "writeDIStringType", "(", "const", "DIStringType", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeDIStringType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85295, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "Record", ".", "push_back", "(", "N", "->", "getScopeLine", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getContainingType", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getVirtuality", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getVirtualIndex", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "getFlags", "(", ")", ")", ";", "Record", ".", "push_back", "(", "N", "->", "isOptimized", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawUnit", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getTemplateParams", "(", ")", ".", "get", "(", ")", ")", ")", ";"], "ground_truth": ["Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getDeclaration", "(", ")", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDISubprogram", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85296, "Length": 123, "Cover_Rate": 0.39935064935064934} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDISubrange", "(", "const", "DISubrange", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{"], "ground_truth": ["Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDISubrange", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85297, "Length": 32, "Cover_Rate": 0.34408602150537637} {"Template_token": ["", "Record", ".", "push_back", "(", "rotateSign", "(", "N", "->", "getLowerBound", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_SUBRANGE", ",", "Record", ",", "Abbrev", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDISubrange", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85298, "Length": 33, "Cover_Rate": 0.3548387096774194} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDISubroutineType", "(", "const", "DISubroutineType", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{"], "ground_truth": ["Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDISubroutineType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85299, "Length": 32, "Cover_Rate": 0.3855421686746988} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDITemplateTypeParameter", "(", "const", "DITemplateTypeParameter", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";"], "ground_truth": ["Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDITemplateTypeParameter", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85300, "Length": 48, "Cover_Rate": 0.5714285714285714} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeDITemplateTypeParameter", "(", "const", "DITemplateTypeParameter", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "Record", ".", "push_back", "(", "N", "->", "isDistinct", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";"], "ground_truth": ["Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getType", "(", ")", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeDITemplateTypeParameter", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85301, "Length": 64, "Cover_Rate": 0.7619047619047619} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getRawName", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getType", "(", ")", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "N", "->", "getValue", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_TEMPLATE_VALUE", ",", "Record", ",", "Abbrev", ")", ";", "Record", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeDITemplateValueParameter", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85302, "Length": 68, "Cover_Rate": 0.6126126126126126} {"Template_token": ["", "SmallVector", "<", "char", ",", "", ">", "Buffer", ";", "Buffer", ".", "reserve", "(", "", "*", "", ")", ";", "Triple", "TT", "(", "M", ".", "getTargetTriple", "(", ")", ")", ";", "if", "(", "TT", ".", "isOSDarwin", "(", ")", "||", "TT", ".", "isOSBinFormatMachO", "(", ")", ")", "Buffer", ".", "insert", "(", "Buffer", ".", "begin", "(", ")", ",", "BWH_HeaderSize", ",", "", ")", ";", "BitcodeWriter", "Writer", "(", "Buffer", ",", "dyn_cast", "<", "raw_fd_stream", ">", "(", "&", "Out", ")", ")", ";", "Writer", ".", "writeModule", "(", "M", ")", ";", "Writer", ".", "writeSymtab", "(", ")", ";", "Writer", ".", "writeStrtab", "(", ")", ";", "if", "(", "!", "Buffer", ".", "empty", "(", ")", ")", "Out", ".", "write", "(", "(", "char", "*", ")", "&", "Buffer", ".", "front", "(", ")", ",", "Buffer", ".", "size", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "WriteDXILToFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85303, "Length": 122, "Cover_Rate": 0.8905109489051095} {"Template_token": ["", "writeFunctionMetadata", "(", "F", ")", ";", "unsigned", "InstID", "=", "CstEnd", ";", "bool", "NeedsMetadataAttachment", "=", "F", ".", "hasMetadata", "(", ")", ";", "DILocation", "*", "LastDL", "=", "nullptr", ";", "for", "(", "Function", "::", "const_iterator", "BB", "=", "F", ".", "begin", "(", ")", ",", "E", "=", "F", ".", "end", "(", ")", ";", "BB", "!=", "E", ";", "++", "BB", ")", "for", "(", "BasicBlock", "::", "const_iterator", "I", "=", "BB", "->", "begin", "(", ")", ",", "E", "=", "BB", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "writeInstruction", "(", "*", "I", ",", "InstID", ",", "Vals", ")", ";", "if", "(", "!", "I", "->", "getType", "(", ")", "->", "isVoidTy", "(", ")", ")", "++", "InstID", ";", "NeedsMetadataAttachment", "|=", "I", "->", "hasMetadataOtherThanDebugLoc", "(", ")", ";", "DILocation", "*", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "!", "DL", ")", "continue", ";", "if", "(", "DL", "==", "LastDL", ")", "{", "Stream", ".", "EmitRecord", "(", "bitc", "::", "FUNC_CODE_DEBUG_LOC_AGAIN", ",", "Vals", ")", ";", "continue", ";", "}", "Vals", ".", "push_back", "(", "DL", "->", "getLine", "(", ")", ")", ";", "Vals", ".", "push_back", "(", "DL", "->", "getColumn", "(", ")", ")", ";", "Vals", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "DL", "->", "getScope", "(", ")", ")", ")", ";", "Vals", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "DL", "->", "getInlinedAt", "(", ")", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "FUNC_CODE_DEBUG_LOC", ",", "Vals", ")", ";", "Vals", ".", "clear", "(", ")", ";", "LastDL", "=", "DL", ";", "}", "if", "(", "auto", "*", "Symtab", "=", "F", ".", "getValueSymbolTable", "(", ")", ")", "writeFunctionLevelValueSymbolTable", "(", "*", "Symtab", ")", ";", "if", "(", "NeedsMetadataAttachment", ")", "writeFunctionMetadataAttachment", "(", "F", ")", ";", "if", "(", "VE", ".", "shouldPreserveUseListOrder", "(", ")", ")", "writeUseListBlock", "(", "&", "F", ")", ";"], "ground_truth": ["VE", ".", "purgeFunction", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85304, "Length": 277, "Cover_Rate": 0.7367021276595744} {"Template_token": ["", "if", "(", "isChar6", ")", "isChar6", "=", "BitCodeAbbrevOp", "::", "isChar6", "(", "*", "C", ")", ";", "if", "(", "(", "unsigned", "char", ")", "*", "C", "&", "", ")", "{", "is7Bit", "=", "false", ";", "break", ";", "}", "}", "unsigned", "AbbrevToUse", "=", "VST_ENTRY_8_ABBREV", ";", "unsigned", "Code", ";", "if", "(", "isa", "<", "BasicBlock", ">", "(", "SI", "->", "getValue", "(", ")", ")", ")", "{", "Code", "=", "bitc", "::", "VST_CODE_BBENTRY", ";", "if", "(", "isChar6", ")", "AbbrevToUse", "=", "VST_BBENTRY_6_ABBREV", ";", "}", "else", "{", "Code", "=", "bitc", "::", "VST_CODE_ENTRY", ";", "if", "(", "isChar6", ")", "AbbrevToUse", "=", "VST_ENTRY_6_ABBREV", ";", "else", "if", "(", "is7Bit", ")", "AbbrevToUse", "=", "VST_ENTRY_7_ABBREV", ";", "}", "NameVals", ".", "push_back", "(", "VE", ".", "getValueID", "(", "SI", "->", "getValue", "(", ")", ")", ")", ";"], "ground_truth": ["for", "(", "const", "char", "*", "P", "=", "Name", ".", "getKeyData", "(", ")", ",", "*", "E", "=", "Name", ".", "getKeyData", "(", ")", "+", "Name", ".", "getKeyLength", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeFunctionLevelValueSymbolTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85305, "Length": 142, "Cover_Rate": 0.3901098901098901} {"Template_token": ["", "Stream", ".", "EnterSubblock", "(", "bitc", "::", "METADATA_BLOCK_ID", ",", "", ")", ";", "SmallVector", "<", "uint64_t", ",", "", ">", "Record", ";", "writeMetadataStrings", "(", "VE", ".", "getMDStrings", "(", ")", ",", "Record", ")", ";", "writeMetadataRecords", "(", "VE", ".", "getNonMDStrings", "(", ")", ",", "Record", ")", ";", "Stream", ".", "ExitBlock", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeFunctionMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85306, "Length": 48, "Cover_Rate": 0.6857142857142857} {"Template_token": ["", "writeMetadataStrings", "(", "VE", ".", "getMDStrings", "(", ")", ",", "Record", ")", ";"], "ground_truth": ["writeMetadataRecords", "(", "VE", ".", "getNonMDStrings", "(", ")", ",", "Record", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeFunctionMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85307, "Length": 22, "Cover_Rate": 0.3142857142857143} {"Template_token": ["", "}", "for", "(", "const", "BasicBlock", "&", "BB", ":", "F", ")", "for", "(", "const", "Instruction", "&", "I", ":", "BB", ")", "{", "MDs", ".", "clear", "(", ")", ";", "I", ".", "getAllMetadataOtherThanDebugLoc", "(", "MDs", ")", ";", "if", "(", "MDs", ".", "empty", "(", ")", ")", "continue", ";", "Record", ".", "push_back", "(", "VE", ".", "getInstructionID", "(", "&", "I", ")", ")", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "MDs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Record", ".", "push_back", "(", "MDs", "[", "i", "]", ".", "first", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataID", "(", "MDs", "[", "i", "]", ".", "second", ")", ")", ";", "}", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_ATTACHMENT", ",", "Record", ",", "", ")", ";", "Record", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeFunctionMetadataAttachment", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85308, "Length": 129, "Cover_Rate": 0.5119047619047619} {"Template_token": ["", "void", "writeGenericDINode", "(", "const", "GenericDINode", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "&", "Abbrev", ")", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeGenericDINode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85310, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeMDTuple", "(", "const", "MDTuple", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "N", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Metadata", "*", "MD", "=", "N", "->", "getOperand", "(", "i", ")", ";", "assert", "(", "!", "(", "MD", "&&", "isa", "<", "LocalAsMetadata", ">", "(", "MD", ")", ")", "&&", "", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getMetadataOrNullID", "(", "MD", ")", ")", ";", "}", "Stream", ".", "EmitRecord", "(", "N", "->", "isDistinct", "(", ")", "?", "bitc", "::", "METADATA_DISTINCT_NODE", ":", "bitc", "::", "METADATA_NODE", ",", "Record", ",", "Abbrev", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeMDTuple", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85312, "Length": 115, "Cover_Rate": 0.9913793103448276} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeMDTuple", "(", "const", "MDTuple", "*", "N", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ",", "unsigned", "Abbrev", ")", "{"], "ground_truth": ["for", "(", "unsigned", "i", "=", "", ",", "e", "=", "N", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{"], "File": "DXILBitcodeWriter", "Func": "writeMDTuple", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85313, "Length": 44, "Cover_Rate": 0.3793103448275862} {"Template_token": ["", "if", "(", "MDs", ".", "empty", "(", ")", ")", "return", ";", "for", "(", "const", "Metadata", "*", "MD", ":", "MDs", ")", "{", "if", "(", "IndexPos", ")", "IndexPos", "->", "push_back", "(", "Stream", ".", "GetCurrentBitNo", "(", ")", ")", ";", "if", "(", "const", "MDNode", "*", "N", "=", "dyn_cast", "<", "MDNode", ">", "(", "MD", ")", ")", "{", "assert", "(", "N", "->", "isResolved", "(", ")", "&&", "", ")", ";", "switch", "(", "N", "->", "getMetadataID", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "Metadata", "::", "CLASS", "##", "Kind", ":", "\\", "if", "(", "MDAbbrevs", ")", "\\", "write", "##", "CLASS", "(", "cast", "<", "CLASS", ">", "(", "N", ")", ",", "Record", ",", "\\", "(", "*", "MDAbbrevs", ")", "[", "MetadataAbbrev", "::", "CLASS", "##", "AbbrevID", "]", ")", ";", "\\", "else", "\\", "write", "##", "CLASS", "(", "cast", "<", "CLASS", ">", "(", "N", ")", ",", "Record", ",", "CLASS", "##", "Abbrev", ")", ";", "\\", "continue", ";", "}", "}", "writeValueAsMetadata", "(", "cast", "<", "ValueAsMetadata", ">", "(", "MD", ")", ",", "Record", ")", ";", "}"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeMetadataRecords", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85314, "Length": 161, "Cover_Rate": 0.805} {"Template_token": ["", "if", "(", "const", "MDNode", "*", "N", "=", "dyn_cast", "<", "MDNode", ">", "(", "MD", ")", ")", "{", "assert", "(", "N", "->", "isResolved", "(", ")", "&&", "", ")", ";", "switch", "(", "N", "->", "getMetadataID", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "Metadata", "::", "CLASS", "##", "Kind", ":", "\\", "if", "(", "MDAbbrevs", ")", "\\", "write", "##", "CLASS", "(", "cast", "<", "CLASS", ">", "(", "N", ")", ",", "Record", ",", "\\", "(", "*", "MDAbbrevs", ")", "[", "MetadataAbbrev", "::", "CLASS", "##", "AbbrevID", "]", ")", ";", "\\", "else", "\\", "write", "##", "CLASS", "(", "cast", "<", "CLASS", ">", "(", "N", ")", ",", "Record", ",", "CLASS", "##", "Abbrev", ")", ";", "\\", "continue", ";", "}"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeMetadataRecords", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85315, "Length": 111, "Cover_Rate": 0.555} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeMetadataStrings", "(", "ArrayRef", "<", "const", "Metadata", "*", ">", "Strings", ",", "SmallVectorImpl", "<", "uint64_t", ">", "&", "Record", ")", "{", "for", "(", "const", "Metadata", "*", "MD", ":", "Strings", ")", "{", "const", "MDString", "*", "MDS", "=", "cast", "<", "MDString", ">", "(", "MD", ")", ";", "Record", ".", "append", "(", "MDS", "->", "bytes_begin", "(", ")", ",", "MDS", "->", "bytes_end", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_STRING_OLD", ",", "Record", ",", "createMetadataStringsAbbrev", "(", ")", ")", ";", "Record", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeMetadataStrings", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85316, "Length": 83, "Cover_Rate": 0.9880952380952381} {"Template_token": ["", "BitcodeWriter", "ModuleWriter", "(", "M", ",", "Buffer", ",", "StrtabBuilder", ",", "*", "Stream", ")", ";"], "ground_truth": ["ModuleWriter", ".", "write", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85317, "Length": 19, "Cover_Rate": 0.3114754098360656} {"Template_token": ["", "BitcodeWriter", "ModuleWriter", "(", "M", ",", "Buffer", ",", "StrtabBuilder", ",", "*", "Stream", ")", ";", "ModuleWriter", ".", "write", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85318, "Length": 20, "Cover_Rate": 0.32786885245901637} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeModuleConstants", "(", ")", "{", "const", "ValueEnumerator", "::", "ValueList", "&", "Vals", "=", "VE", ".", "getValues", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "Vals", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "if", "(", "!", "isa", "<", "GlobalValue", ">", "(", "Vals", "[", "i", "]", ".", "first", ")", ")", "{", "writeConstants", "(", "i", ",", "Vals", ".", "size", "(", ")", ",", "true", ")", ";", "return", ";", "}"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeModuleConstants", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85319, "Length": 77, "Cover_Rate": 0.9871794871794872} {"Template_token": ["", "std", "::", "vector", "<", "uint64_t", ">", "IndexPos", ";", "IndexPos", ".", "reserve", "(", "VE", ".", "getNonMDStrings", "(", ")", ".", "size", "(", ")", ")", ";", "writeMetadataRecords", "(", "VE", ".", "getNonMDStrings", "(", ")", ",", "Record", ",", "&", "MDAbbrevs", ",", "&", "IndexPos", ")", ";", "for", "(", "const", "NamedMDNode", "&", "NMD", ":", "M", ".", "named_metadata", "(", ")", ")", "{", "StringRef", "Str", "=", "NMD", ".", "getName", "(", ")", ";", "Record", ".", "append", "(", "Str", ".", "bytes_begin", "(", ")", ",", "Str", ".", "bytes_end", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_NAME", ",", "Record", ",", "NameAbbrev", ")", ";"], "ground_truth": ["Record", ".", "clear", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeModuleMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85321, "Length": 99, "Cover_Rate": 0.3009118541033435} {"Template_token": ["", "SmallVector", "<", "uint64_t", ",", "", ">", "Record", ";", "SmallVector", "<", "StringRef", ",", "", ">", "Names", ";", "M", ".", "getMDKindNames", "(", "Names", ")", ";", "if", "(", "Names", ".", "empty", "(", ")", ")", "return", ";", "Stream", ".", "EnterSubblock", "(", "bitc", "::", "METADATA_BLOCK_ID", ",", "", ")", ";", "for", "(", "unsigned", "MDKindID", "=", "", ",", "e", "=", "Names", ".", "size", "(", ")", ";", "MDKindID", "!=", "e", ";", "++", "MDKindID", ")", "{", "Record", ".", "push_back", "(", "MDKindID", ")", ";", "StringRef", "KName", "=", "Names", "[", "MDKindID", "]", ";", "Record", ".", "append", "(", "KName", ".", "begin", "(", ")", ",", "KName", ".", "end", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_KIND", ",", "Record", ",", "", ")", ";", "Record", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeModuleMetadataKinds", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85322, "Length": 119, "Cover_Rate": 0.8947368421052632} {"Template_token": ["", "SmallVector", "<", "uint64_t", ",", "", ">", "Record", ";", "SmallVector", "<", "StringRef", ",", "", ">", "Names", ";", "M", ".", "getMDKindNames", "(", "Names", ")", ";", "if", "(", "Names", ".", "empty", "(", ")", ")", "return", ";", "Stream", ".", "EnterSubblock", "(", "bitc", "::", "METADATA_BLOCK_ID", ",", "", ")", ";", "for", "(", "unsigned", "MDKindID", "=", "", ",", "e", "=", "Names", ".", "size", "(", ")", ";", "MDKindID", "!=", "e", ";", "++", "MDKindID", ")", "{", "Record", ".", "push_back", "(", "MDKindID", ")", ";", "StringRef", "KName", "=", "Names", "[", "MDKindID", "]", ";"], "ground_truth": ["Record", ".", "append", "(", "KName", ".", "begin", "(", ")", ",", "KName", ".", "end", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeModuleMetadataKinds", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85323, "Length": 99, "Cover_Rate": 0.7443609022556391} {"Template_token": ["", "Stream", ".", "EmitRecord", "(", "bitc", "::", "MODULE_CODE_VERSION", ",", "ArrayRef", "<", "unsigned", ">", "{", "", "}", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeModuleVersion", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85325, "Length": 18, "Cover_Rate": 0.72} {"Template_token": ["", "for", "(", "char", "C", ":", "Str", ")", "{", "if", "(", "AbbrevToUse", "&&", "!", "BitCodeAbbrevOp", "::", "isChar6", "(", "C", ")", ")", "AbbrevToUse", "=", "", ";", "Vals", ".", "push_back", "(", "C", ")", ";", "}", "Stream", ".", "EmitRecord", "(", "Code", ",", "Vals", ",", "AbbrevToUse", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeStringRecord", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85326, "Length": 44, "Cover_Rate": 0.6197183098591549} {"Template_token": ["", "assert", "(", "!", "WroteStrtab", ")", ";", "std", "::", "vector", "<", "char", ">", "Strtab", ";", "StrtabBuilder", ".", "finalizeInOrder", "(", ")", ";"], "ground_truth": ["Strtab", ".", "resize", "(", "StrtabBuilder", ".", "getSize", "(", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeStrtab", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85328, "Length": 31, "Cover_Rate": 0.37349397590361444} {"Template_token": ["", "SmallVector", "<", "char", ",", "", ">", "Symtab", ";", "if", "(", "Error", "E", "=", "irsymtab", "::", "build", "(", "Mods", ",", "Symtab", ",", "StrtabBuilder", ",", "Alloc", ")", ")", "{", "consumeError", "(", "std", "::", "move", "(", "E", ")", ")", ";", "return", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeSymtab", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85329, "Length": 40, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "TYPE_CODE_STRUCT_ANON", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Array", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "NumBits", ")", ")", ";", "unsigned", "StructAnonAbbrev", "=", "Stream", ".", "EmitAbbrev", "(", "std", "::", "move", "(", "Abbv", ")", ")", ";", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "TYPE_CODE_STRUCT_NAME", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Array", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Char6", ")", ")", ";", "unsigned", "StructNameAbbrev", "=", "Stream", ".", "EmitAbbrev", "(", "std", "::", "move", "(", "Abbv", ")", ")", ";", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "TYPE_CODE_STRUCT_NAMED", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Array", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "NumBits", ")", ")", ";", "unsigned", "StructNamedAbbrev", "=", "Stream", ".", "EmitAbbrev", "(", "std", "::", "move", "(", "Abbv", ")", ")", ";", "Abbv", "=", "std", "::", "make_shared", "<", "BitCodeAbbrev", ">", "(", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "bitc", "::", "TYPE_CODE_ARRAY", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "VBR", ",", "", ")", ")", ";", "Abbv", "->", "Add", "(", "BitCodeAbbrevOp", "(", "BitCodeAbbrevOp", "::", "Fixed", ",", "NumBits", ")", ")", ";", "unsigned", "ArrayAbbrev", "=", "Stream", ".", "EmitAbbrev", "(", "std", "::", "move", "(", "Abbv", ")", ")", ";", "TypeVals", ".", "push_back", "(", "TypeList", ".", "size", "(", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "TYPE_CODE_NUMENTRY", ",", "TypeVals", ")", ";", "TypeVals", ".", "clear", "(", ")", ";", "for", "(", "Type", "*", "T", ":", "TypeList", ")", "{", "int", "AbbrevToUse", "=", "", ";", "unsigned", "Code", "=", "", ";", "switch", "(", "T", "->", "getTypeID", "(", ")", ")", "{", "case", "Type", "::", "BFloatTyID", ":", "case", "Type", "::", "X86_AMXTyID", ":", "case", "Type", "::", "TokenTyID", ":", "case", "Type", "::", "PointerTyID", ":", "llvm_unreachable", "(", "", ")", ";", "break", ";", "case", "Type", "::", "VoidTyID", ":", "Code", "=", "bitc", "::", "TYPE_CODE_VOID", ";", "break", ";", "case", "Type", "::", "HalfTyID", ":", "Code", "=", "bitc", "::", "TYPE_CODE_HALF", ";"], "ground_truth": ["break", ";"], "File": "DXILBitcodeWriter", "Func": "writeTypeTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85331, "Length": 393, "Cover_Rate": 0.3411458333333333} {"Template_token": ["", "assert", "(", "Order", ".", "Shuffle", ".", "size", "(", ")", ">=", "", "&&", "", ")", ";", "unsigned", "Code", ";", "if", "(", "isa", "<", "BasicBlock", ">", "(", "Order", ".", "V", ")", ")", "Code", "=", "bitc", "::", "USELIST_CODE_BB", ";", "else", "Code", "=", "bitc", "::", "USELIST_CODE_DEFAULT", ";", "SmallVector", "<", "uint64_t", ",", "", ">", "Record", "(", "Order", ".", "Shuffle", ".", "begin", "(", ")", ",", "Order", ".", "Shuffle", ".", "end", "(", ")", ")", ";", "Record", ".", "push_back", "(", "VE", ".", "getValueID", "(", "Order", ".", "V", ")", ")", ";"], "ground_truth": ["Stream", ".", "EmitRecord", "(", "Code", ",", "Record", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeUseList", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85332, "Length": 91, "Cover_Rate": 0.8921568627450981} {"Template_token": ["", "if", "(", "isa", "<", "BasicBlock", ">", "(", "Order", ".", "V", ")", ")", "Code", "=", "bitc", "::", "USELIST_CODE_BB", ";", "else", "Code", "=", "bitc", "::", "USELIST_CODE_DEFAULT", ";", "SmallVector", "<", "uint64_t", ",", "", ">", "Record", "(", "Order", ".", "Shuffle", ".", "begin", "(", ")", ",", "Order", ".", "Shuffle", ".", "end", "(", ")", ")", ";"], "ground_truth": ["Record", ".", "push_back", "(", "VE", ".", "getValueID", "(", "Order", ".", "V", ")", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeUseList", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85333, "Length": 64, "Cover_Rate": 0.6274509803921569} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeUseListBlock", "(", "const", "Function", "*", "F", ")", "{", "assert", "(", "VE", ".", "shouldPreserveUseListOrder", "(", ")", "&&", "", ")", ";", "auto", "hasMore", "=", "[", "&", "]", "(", ")", "{", "return", "!", "VE", ".", "UseListOrders", ".", "empty", "(", ")", "&&", "VE", ".", "UseListOrders", ".", "back", "(", ")", ".", "F", "==", "F", ";", "}", ";", "if", "(", "!", "hasMore", "(", ")", ")", "return", ";", "Stream", ".", "EnterSubblock", "(", "bitc", "::", "USELIST_BLOCK_ID", ",", "", ")", ";", "while", "(", "hasMore", "(", ")", ")", "{", "writeUseList", "(", "std", "::", "move", "(", "VE", ".", "UseListOrders", ".", "back", "(", ")", ")", ")", ";", "VE", ".", "UseListOrders", ".", "pop_back", "(", ")", ";", "}"], "ground_truth": ["Stream", ".", "ExitBlock", "(", ")", ";"], "File": "DXILBitcodeWriter", "Func": "writeUseListBlock", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85334, "Length": 113, "Cover_Rate": 0.9912280701754386} {"Template_token": ["", "Record", ".", "push_back", "(", "VE", ".", "getValueID", "(", "V", ")", ")", ";", "Stream", ".", "EmitRecord", "(", "bitc", "::", "METADATA_VALUE", ",", "Record", ",", "", ")", ";", "Record", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeValueAsMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85335, "Length": 32, "Cover_Rate": 0.42105263157894735} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeValueSymbolTableForwardDecl", "(", ")", "{"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeValueSymbolTableForwardDecl", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85336, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "void", "BitcodeWriter", "::", "writeValueSymbolTableForwardDecl", "(", ")", "{"], "ground_truth": ["}"], "File": "DXILBitcodeWriter", "Func": "writeValueSymbolTableForwardDecl", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85337, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "static", "std", "::", "string", "constructOverloadName", "(", "OverloadKind", "Kind", ",", "Type", "*", "Ty", ",", "const", "OpCodeProperty", "&", "Prop", ")", "{", "if", "(", "Kind", "==", "OverloadKind", "::", "VOID", ")", "{"], "ground_truth": ["return", "(", "Twine", "(", "OpNamePrefix", ")", "+", "getOpCodeClassName", "(", "Prop", ")", ")", ".", "str", "(", ")", ";"], "File": "DXILOpLowering", "Func": "constructOverloadName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85338, "Length": 45, "Cover_Rate": 0.6164383561643836} {"Template_token": ["", "const", "OpCodeProperty", "*", "Prop", "=", "getOpCodeProperty", "(", "Op", ")", ";", "Type", "*", "OverloadTy", "=", "F", ".", "getReturnType", "(", ")", ";", "OverloadKind", "Kind", "=", "getOverloadKind", "(", "OverloadTy", ")", ";", "if", "(", "(", "Prop", "->", "OverloadTys", "&", "(", "uint16_t", ")", "Kind", ")", "==", "", ")", "{", "llvm_unreachable", "(", "", ")", ";", "}", "std", "::", "string", "FnName", "=", "constructOverloadName", "(", "Kind", ",", "OverloadTy", ",", "*", "Prop", ")", ";"], "ground_truth": ["assert", "(", "!", "M", ".", "getFunction", "(", "FnName", ")", "&&", "", ")", ";"], "File": "DXILOpLowering", "Func": "createDXILOpFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85339, "Length": 78, "Cover_Rate": 0.42391304347826086} {"Template_token": ["", "if", "(", "(", "Prop", "->", "OverloadTys", "&", "(", "uint16_t", ")", "Kind", ")", "==", "", ")", "{", "llvm_unreachable", "(", "", ")", ";", "}", "std", "::", "string", "FnName", "=", "constructOverloadName", "(", "Kind", ",", "OverloadTy", ",", "*", "Prop", ")", ";", "assert", "(", "!", "M", ".", "getFunction", "(", "FnName", ")", "&&", "", ")", ";", "auto", "&", "Ctx", "=", "M", ".", "getContext", "(", ")", ";", "Type", "*", "OpCodeTy", "=", "Type", "::", "getInt32Ty", "(", "Ctx", ")", ";"], "ground_truth": ["SmallVector", "<", "Type", "*", ">", "ArgTypes", ";"], "File": "DXILOpLowering", "Func": "createDXILOpFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85340, "Length": 78, "Cover_Rate": 0.42391304347826086} {"Template_token": ["", "OpLoweringLegacy", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "DXILOpLowering", "Func": "DXILOpLoweringLegacy", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85343, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "OpLoweringLegacy", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "DXILOpLowering", "Func": "DXILOpLoweringLegacy", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85344, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "return", "OverloadKind", "::", "FLOAT", ";", "case", "Type", "::", "DoubleTyID", ":", "return", "OverloadKind", "::", "DOUBLE", ";", "case", "Type", "::", "IntegerTyID", ":", "{", "IntegerType", "*", "ITy", "=", "cast", "<", "IntegerType", ">", "(", "Ty", ")", ";", "unsigned", "Bits", "=", "ITy", "->", "getBitWidth", "(", ")", ";", "switch", "(", "Bits", ")", "{", "case", "", ":", "return", "OverloadKind", "::", "I1", ";", "case", "", ":", "return", "OverloadKind", "::", "I8", ";", "case", "", ":", "return", "OverloadKind", "::", "I16", ";", "case", "", ":", "return", "OverloadKind", "::", "I32", ";", "case", "", ":", "return", "OverloadKind", "::", "I64", ";", "default", ":", "llvm_unreachable", "(", "", ")", ";", "return", "OverloadKind", "::", "VOID", ";", "}", "}", "case", "Type", "::", "PointerTyID", ":"], "ground_truth": ["return", "OverloadKind", "::", "UserDefineType", ";"], "File": "DXILOpLowering", "Func": "getOverloadKind", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85346, "Length": 111, "Cover_Rate": 0.6} {"Template_token": ["", "switch", "(", "T", ")", "{", "case", "Type", "::", "VoidTyID", ":", "return", "OverloadKind", "::", "VOID", ";", "case", "Type", "::", "HalfTyID", ":", "return", "OverloadKind", "::", "HALF", ";", "case", "Type", "::", "FloatTyID", ":", "return", "OverloadKind", "::", "FLOAT", ";", "case", "Type", "::", "DoubleTyID", ":", "return", "OverloadKind", "::", "DOUBLE", ";", "case", "Type", "::", "IntegerTyID", ":", "{", "IntegerType", "*", "ITy", "=", "cast", "<", "IntegerType", ">", "(", "Ty", ")", ";", "unsigned", "Bits", "=", "ITy", "->", "getBitWidth", "(", ")", ";", "switch", "(", "Bits", ")", "{", "case", "", ":", "return", "OverloadKind", "::", "I1", ";", "case", "", ":"], "ground_truth": ["return", "OverloadKind", "::", "I8", ";"], "File": "DXILOpLowering", "Func": "getOverloadKind", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85347, "Length": 93, "Cover_Rate": 0.5027027027027027} {"Template_token": ["", "static", "const", "char", "*", "getOverloadTypeName", "(", "OverloadKind", "Kind", ")", "{", "switch", "(", "Kind", ")", "{", "case", "OverloadKind", "::", "HALF", ":", "return", "", ";", "case", "OverloadKind", "::", "FLOAT", ":"], "ground_truth": ["return", "", ";"], "File": "DXILOpLowering", "Func": "getOverloadTypeName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85348, "Length": 31, "Cover_Rate": 0.30097087378640774} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "DXILOpLowering", "Func": "getPassName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85349, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "static", "std", "::", "string", "getTypeName", "(", "OverloadKind", "Kind", ",", "Type", "*", "Ty", ")", "{", "if", "(", "Kind", "<", "OverloadKind", "::", "UserDefineType", ")", "{", "return", "getOverloadTypeName", "(", "Kind", ")", ";", "}", "else", "if", "(", "Kind", "==", "OverloadKind", "::", "UserDefineType", ")", "{", "StructType", "*", "ST", "=", "cast", "<", "StructType", ">", "(", "Ty", ")", ";", "return", "ST", "->", "getStructName", "(", ")", ".", "str", "(", ")", ";", "}", "else", "if", "(", "Kind", "==", "OverloadKind", "::", "ObjectType", ")", "{", "StructType", "*", "ST", "=", "cast", "<", "StructType", ">", "(", "Ty", ")", ";", "return", "ST", "->", "getStructName", "(", ")", ".", "str", "(", ")", ";", "}", "else", "{", "std", "::", "string", "Str", ";", "raw_string_ostream", "OS", "(", "Str", ")", ";", "Ty", "->", "print", "(", "OS", ")", ";", "return", "OS", ".", "str", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILOpLowering", "Func": "getTypeName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85350, "Length": 126, "Cover_Rate": 0.9921259842519685} {"Template_token": ["", "auto", "OpFn", "=", "createOpFunction", "(", "Op", ",", "F", ",", "M", ")", ";", "IRBuilder", "<", ">", "B", "(", "M", ".", "getContext", "(", ")", ")", ";", "Value", "*", "OpArg", "=", "B", ".", "getInt32", "(", "static_cast", "<", "unsigned", ">", "(", "Op", ")", ")", ";", "for", "(", "User", "*", "U", ":", "make_early_inc_range", "(", "F", ".", "users", "(", ")", ")", ")", "{", "CallInst", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "U", ")", ";", "if", "(", "!", "CI", ")", "continue", ";", "SmallVector", "<", "Value", "*", ">", "Args", ";", "Args", ".", "emplace_back", "(", "OpArg", ")", ";", "Args", ".", "append", "(", "CI", "->", "arg_begin", "(", ")", ",", "CI", "->", "arg_end", "(", ")", ")", ";", "B", ".", "SetInsertPoint", "(", "CI", ")", ";", "CallInst", "*", "CI", "=", "B", ".", "CreateCall", "(", "OpFn", ",", "Args", ")", ";", "CI", "->", "replaceAllUsesWith", "(", "CI", ")", ";"], "ground_truth": ["CI", "->", "eraseFromParent", "(", ")", ";"], "File": "DXILOpLowering", "Func": "lowerIntrinsic", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85351, "Length": 140, "Cover_Rate": 0.8045977011494253} {"Template_token": ["", "static", "void", "lowerIntrinsic", "(", "", "Op", ",", "Function", "&", "F", ",", "Module", "&", "M", ")", "{", "auto", "OpFn", "=", "createOpFunction", "(", "Op", ",", "F", ",", "M", ")", ";", "IRBuilder", "<", ">", "B", "(", "M", ".", "getContext", "(", ")", ")", ";", "Value", "*", "OpArg", "=", "B", ".", "getInt32", "(", "static_cast", "<", "unsigned", ">", "(", "Op", ")", ")", ";"], "ground_truth": ["for", "(", "User", "*", "U", ":", "make_early_inc_range", "(", "F", ".", "users", "(", ")", ")", ")", "{"], "File": "DXILOpLowering", "Func": "lowerIntrinsic", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85352, "Length": 73, "Cover_Rate": 0.41954022988505746} {"Template_token": ["", "static", "SmallDenseMap", "<", "", ",", "", ">", "LowerMap", "=", "{", "{", "", ",", "", "::", "Sin", "}", "}", ";", "for", "(", "Function", "&", "F", ":", "make_early_inc_range", "(", "M", ".", "functions", "(", ")", ")", ")", "{", "if", "(", "!", "F", ".", "isDeclaration", "(", ")", ")", "continue", ";", "", "ID", "=", "F", ".", "getIntrinsicID", "(", ")", ";", "auto", "LowerIt", "=", "LowerMap", ".", "find", "(", "ID", ")", ";", "if", "(", "LowerIt", "==", "LowerMap", ".", "end", "(", ")", ")", "continue", ";", "lowerIntrinsic", "(", "LowerIt", "->", "second", ",", "F", ",", "M", ")", ";"], "ground_truth": ["Updated", "=", "true", ";"], "File": "DXILOpLowering", "Func": "lowerIntrinsics", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85353, "Length": 92, "Cover_Rate": 0.7603305785123967} {"Template_token": ["", "auto", "LowerIt", "=", "LowerMap", ".", "find", "(", "ID", ")", ";", "if", "(", "LowerIt", "==", "LowerMap", ".", "end", "(", ")", ")", "continue", ";", "lowerIntrinsic", "(", "LowerIt", "->", "second", ",", "F", ",", "M", ")", ";", "Updated", "=", "true", ";", "}", "return", "Updated", ";"], "ground_truth": ["}"], "File": "DXILOpLowering", "Func": "lowerIntrinsics", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85354, "Length": 42, "Cover_Rate": 0.34710743801652894} {"Template_token": ["", "if", "(", "lowerIntrinsics", "(", "M", ")", ")", "return", "PreservedAnalyses", "::", "none", "(", ")", ";", "return", "PreservedAnalyses", "::", "all", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILOpLowering", "Func": "run", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85355, "Length": 22, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "bool", "runOnModule", "(", "Module", "&", "M", ")", "override", "{"], "ground_truth": ["return", "lowerIntrinsics", "(", "M", ")", ";"], "File": "DXILOpLowering", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85356, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "TypedPointerType", "*", "TypedPointerType", "::", "get", "(", "Type", "*", "EltTy", ",", "unsigned", "AddressSpace", ")", "{", "assert", "(", "EltTy", "&&", "", ")", ";", "assert", "(", "isValidElementType", "(", "EltTy", ")", "&&", "", ")", ";", "llvm", "::", "Any", "&", "TargetData", "=", "EltTy", "->", "getContext", "(", ")", ".", "getTargetData", "(", ")", ";", "if", "(", "!", "TargetData", ".", "hasValue", "(", ")", ")", "TargetData", "=", "Any", "{", "std", "::", "make_shared", "<", "TypedPointerTracking", ">", "(", ")", "}", ";", "assert", "(", "any_isa", "<", "std", "::", "shared_ptr", "<", "TypedPointerTracking", ">>", "(", "TargetData", ")", "&&", "", ")", ";", "std", "::", "shared_ptr", "<", "TypedPointerTracking", ">", "Tracking", "=", "any_cast", "<", "std", "::", "shared_ptr", "<", "TypedPointerTracking", ">>", "(", "TargetData", ")", ";", "std", "::", "unique_ptr", "<", "TypedPointerType", ">", "&", "Entry", "=", "AddressSpace", "==", "", "?", "Tracking", "->", "PointerTypes", "[", "EltTy", "]", ":", "Tracking", "->", "ASPointerTypes", "[", "std", "::", "make_pair", "(", "EltTy", ",", "AddressSpace", ")", "]", ";", "if", "(", "!", "Entry", ")", "Entry", "=", "std", "::", "unique_ptr", "<", "TypedPointerType", ">", "(", "new", "TypedPointerType", "(", "EltTy", ",", "AddressSpace", ")", ")", ";", "return", "Entry", ".", "get", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILPointerType", "Func": "get", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85360, "Length": 172, "Cover_Rate": 1.0} {"Template_token": ["", "TypedPointerType", "*", "TypedPointerType", "::", "get", "(", "Type", "*", "EltTy", ",", "unsigned", "AddressSpace", ")", "{", "assert", "(", "EltTy", "&&", "", ")", ";", "assert", "(", "isValidElementType", "(", "EltTy", ")", "&&", "", ")", ";", "llvm", "::", "Any", "&", "TargetData", "=", "EltTy", "->", "getContext", "(", ")", ".", "getTargetData", "(", ")", ";"], "ground_truth": ["if", "(", "!", "TargetData", ".", "hasValue", "(", ")", ")", "TargetData", "=", "Any", "{", "std", "::", "make_shared", "<", "TypedPointerTracking", ">", "(", ")", "}", ";"], "File": "DXILPointerType", "Func": "get", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85361, "Length": 70, "Cover_Rate": 0.4069767441860465} {"Template_token": ["", "unsigned", "getAddressSpace", "(", ")", "const", "{"], "ground_truth": ["return", "getSubclassData", "(", ")", ";"], "File": "DXILPointerType", "Func": "getAddressSpace", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85362, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "return", "getSubclassData", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILPointerType", "Func": "getAddressSpace", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85363, "Length": 6, "Cover_Rate": 0.5} {"Template_token": ["", "Type", "*", "getElementType", "(", ")", "const", "{", "return", "PointeeTy", ";"], "ground_truth": ["}"], "File": "DXILPointerType", "Func": "getElementType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85364, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "Type", "*", "getElementType", "(", ")", "const", "{", "return", "PointeeTy", ";"], "ground_truth": ["}"], "File": "DXILPointerType", "Func": "getElementType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85365, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "return", "!", "ElemTy", "->", "isVoidTy", "(", ")", "&&", "!", "ElemTy", "->", "isLabelTy", "(", ")", "&&", "!", "ElemTy", "->", "isMetadataTy", "(", ")", "&&", "!", "ElemTy", "->", "isTokenTy", "(", ")", "&&", "!", "ElemTy", "->", "isX86_AMXTy", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILPointerType", "Func": "isValidElementType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85366, "Length": 37, "Cover_Rate": 0.7872340425531915} {"Template_token": ["", "TypedPointerTracking", "(", ")", "{"], "ground_truth": ["}"], "File": "DXILPointerType", "Func": "TypedPointerTracking", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85368, "Length": 5, "Cover_Rate": 1.0} {"Template_token": ["", "TypedPointerTracking", "(", ")", "{"], "ground_truth": ["}"], "File": "DXILPointerType", "Func": "TypedPointerTracking", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85369, "Length": 5, "Cover_Rate": 1.0} {"Template_token": ["", "ContainedTys", "=", "&", "PointeeTy", ";", "NumContainedTys", "=", "", ";", "setSubclassData", "(", "AddrSpace", ")", ";"], "ground_truth": ["}"], "File": "DXILPointerType", "Func": "TypedPointerType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85370, "Length": 15, "Cover_Rate": 0.3488372093023256} {"Template_token": ["", "static", "Value", "*", "maybeGenerateBitcast", "(", "IRBuilder", "<", ">", "&", "Builder", ",", "PointerTypeMap", "&", "PointerTypes", ",", "Instruction", "&", "Inst", ",", "Value", "*", "Operand", ",", "Type", "*", "Ty", ")", "{", "auto", "It", "=", "PointerTypes", ".", "find", "(", "Operand", ")", ";", "if", "(", "It", "!=", "PointerTypes", ".", "end", "(", ")", ")", "if", "(", "cast", "<", "TypedPointerType", ">", "(", "It", "->", "second", ")", "->", "getElementType", "(", ")", "==", "Ty", ")", "return", "nullptr", ";", "Builder", ".", "SetInsertPoint", "(", "&", "Inst", ")", ";"], "ground_truth": ["return", "Builder", ".", "Insert", "(", "CastInst", "::", "Create", "(", "Instruction", "::", "BitCast", ",", "Operand", ",", "Builder", ".", "getInt8PtrTy", "(", ")", ")", ")", ";"], "File": "DXILPrepare1", "Func": "maybeGenerateBitcast", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85371, "Length": 100, "Cover_Rate": 0.9900990099009901} {"Template_token": ["", "auto", "It", "=", "PointerTypes", ".", "find", "(", "Operand", ")", ";", "if", "(", "It", "!=", "PointerTypes", ".", "end", "(", ")", ")", "if", "(", "cast", "<", "TypedPointerType", ">", "(", "It", "->", "second", ")", "->", "getElementType", "(", ")", "==", "Ty", ")", "return", "nullptr", ";"], "ground_truth": ["Builder", ".", "SetInsertPoint", "(", "&", "Inst", ")", ";"], "File": "DXILPrepare1", "Func": "maybeGenerateBitcast", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85372, "Length": 49, "Cover_Rate": 0.48514851485148514} {"Template_token": ["", "IRBuilder", "<", ">", "Builder", "(", "&", "BB", ")", ";", "for", "(", "auto", "&", "I", ":", "make_early_inc_range", "(", "BB", ")", ")", "{", "if", "(", "I", ".", "getOpcode", "(", ")", "==", "Instruction", "::", "FNeg", ")", "{", "Builder", ".", "SetInsertPoint", "(", "&", "I", ")", ";", "Value", "*", "In", "=", "I", ".", "getOperand", "(", "", ")", ";", "Value", "*", "Zero", "=", "ConstantFP", "::", "get", "(", "In", "->", "getType", "(", ")", ",", "-", "", ")", ";", "I", ".", "replaceAllUsesWith", "(", "Builder", ".", "CreateFSub", "(", "Zero", ",", "In", ")", ")", ";", "I", ".", "eraseFromParent", "(", ")", ";", "continue", ";", "}", "if", "(", "!", "M", ".", "getContext", "(", ")", ".", "hasSetOpaquePointersValue", "(", ")", ")", "continue", ";", "if", "(", "auto", "LI", "=", "dyn_cast", "<", "LoadInst", ">", "(", "&", "I", ")", ")", "{", "if", "(", "Value", "*", "NoOpBitcast", "=", "maybeGenerateBitcast", "(", "Builder", ",", "PointerTypes", ",", "I", ",", "LI", "->", "getPointerOperand", "(", ")", ",", "LI", "->", "getType", "(", ")", ")", ")", "{", "LI", "->", "replaceAllUsesWith", "(", "Builder", ".", "CreateLoad", "(", "LI", "->", "getType", "(", ")", ",", "NoOpBitcast", ")", ")", ";", "LI", "->", "eraseFromParent", "(", ")", ";", "}", "continue", ";", "}", "if", "(", "auto", "SI", "=", "dyn_cast", "<", "StoreInst", ">", "(", "&", "I", ")", ")", "{", "if", "(", "Value", "*", "NoOpBitcast", "=", "maybeGenerateBitcast", "(", "Builder", ",", "PointerTypes", ",", "I", ",", "SI", "->", "getPointerOperand", "(", ")", ",", "SI", "->", "getValueOperand", "(", ")", "->", "getType", "(", ")", ")", ")", "{", "SI", "->", "replaceAllUsesWith", "(", "Builder", ".", "CreateStore", "(", "SI", "->", "getValueOperand", "(", ")", ",", "NoOpBitcast", ")", ")", ";", "SI", "->", "eraseFromParent", "(", ")", ";", "}", "continue", ";"], "ground_truth": ["}"], "File": "DXILPrepare1", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85373, "Length": 255, "Cover_Rate": 0.5666666666666667} {"Template_token": ["", "if", "(", "auto", "LI", "=", "dyn_cast", "<", "LoadInst", ">", "(", "&", "I", ")", ")", "{", "if", "(", "Value", "*", "NoOpBitcast", "=", "maybeGenerateBitcast", "(", "Builder", ",", "PointerTypes", ",", "I", ",", "LI", "->", "getPointerOperand", "(", ")", ",", "LI", "->", "getType", "(", ")", ")", ")", "{", "LI", "->", "replaceAllUsesWith", "(", "Builder", ".", "CreateLoad", "(", "LI", "->", "getType", "(", ")", ",", "NoOpBitcast", ")", ")", ";", "LI", "->", "eraseFromParent", "(", ")", ";", "}", "continue", ";", "}", "if", "(", "auto", "SI", "=", "dyn_cast", "<", "StoreInst", ">", "(", "&", "I", ")", ")", "{", "if", "(", "Value", "*", "NoOpBitcast", "=", "maybeGenerateBitcast", "(", "Builder", ",", "PointerTypes", ",", "I", ",", "SI", "->", "getPointerOperand", "(", ")", ",", "SI", "->", "getValueOperand", "(", ")", "->", "getType", "(", ")", ")", ")", "{", "SI", "->", "replaceAllUsesWith", "(", "Builder", ".", "CreateStore", "(", "SI", "->", "getValueOperand", "(", ")", ",", "NoOpBitcast", ")", ")", ";", "SI", "->", "eraseFromParent", "(", ")", ";", "}"], "ground_truth": ["continue", ";"], "File": "DXILPrepare1", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85374, "Length": 145, "Cover_Rate": 0.32222222222222224} {"Template_token": ["", "PrepareModule", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "DXILPrepare", "Func": "DXILPrepareModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85377, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "PrepareModule", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "DXILPrepare", "Func": "DXILPrepareModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85378, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "constexpr", "bool", "isValidFor", "(", "Attribute", "::", "AttrKind", "Attr", ")", "{", "return", "is_contained", "(", "{", "Attribute", "::", "Alignment", ",", "Attribute", "::", "AlwaysInline", ",", "Attribute", "::", "Builtin", ",", "Attribute", "::", "ByVal", ",", "Attribute", "::", "InAlloca", ",", "Attribute", "::", "Cold", ",", "Attribute", "::", "Convergent", ",", "Attribute", "::", "InlineHint", ",", "Attribute", "::", "InReg", ",", "Attribute", "::", "JumpTable", ",", "Attribute", "::", "MinSize", ",", "Attribute", "::", "Naked", ",", "Attribute", "::", "Nest", ",", "Attribute", "::", "NoAlias", ",", "Attribute", "::", "NoBuiltin", ",", "Attribute", "::", "NoCapture", ",", "Attribute", "::", "NoDuplicate", ",", "Attribute", "::", "NoImplicitFloat", ",", "Attribute", "::", "NoInline", ",", "Attribute", "::", "NonLazyBind", ",", "Attribute", "::", "NonNull", ",", "Attribute", "::", "Dereferenceable", ",", "Attribute", "::", "DereferenceableOrNull", ",", "Attribute", "::", "NoRedZone", ",", "Attribute", "::", "NoReturn", ",", "Attribute", "::", "NoUnwind", ",", "Attribute", "::", "OptimizeForSize", ",", "Attribute", "::", "OptimizeNone", ",", "Attribute", "::", "ReadNone", ",", "Attribute", "::", "ReadOnly", ",", "Attribute", "::", "ArgMemOnly", ",", "Attribute", "::", "Returned", ",", "Attribute", "::", "ReturnsTwice", ",", "Attribute", "::", "SExt", ",", "Attribute", "::", "StackAlignment", ",", "Attribute", "::", "StackProtect", ",", "Attribute", "::", "StackProtectReq", ",", "Attribute", "::", "StackProtectStrong", ",", "Attribute", "::", "SafeStack", ",", "Attribute", "::", "StructRet", ",", "Attribute", "::", "SanitizeAddress", ",", "Attribute", "::", "SanitizeThread", ",", "Attribute", "::", "SanitizeMemory", ",", "Attribute", "::", "UWTable", ",", "Attribute", "::", "ZExt", "}", ",", "Attr", ")", ";"], "ground_truth": ["}"], "File": "DXILPrepare", "Func": "isValidForDXIL", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85380, "Length": 199, "Cover_Rate": 1.0} {"Template_token": ["", "F", ".", "removeRetAttrs", "(", "AttrMask", ")", ";", "for", "(", "size_t", "Idx", "=", "", ";", "Idx", "<", "F", ".", "arg_size", "(", ")", ";", "++", "Idx", ")", "F", ".", "removeParamAttrs", "(", "Idx", ",", "AttrMask", ")", ";", "for", "(", "auto", "&", "BB", ":", "F", ")", "{", "IRBuilder", "<", ">", "Builder", "(", "&", "BB", ")", ";", "for", "(", "auto", "&", "I", ":", "make_early_inc_range", "(", "BB", ")", ")", "{", "if", "(", "I", ".", "getOpcode", "(", ")", "==", "Instruction", "::", "FNeg", ")", "{", "Builder", ".", "SetInsertPoint", "(", "&", "I", ")", ";", "Value", "*", "In", "=", "I", ".", "getOperand", "(", "", ")", ";", "Value", "*", "Zero", "=", "ConstantFP", "::", "get", "(", "In", "->", "getType", "(", ")", ",", "-", "", ")", ";", "I", ".", "replaceAllUsesWith", "(", "Builder", ".", "CreateFSub", "(", "Zero", ",", "In", ")", ")", ";", "I", ".", "eraseFromParent", "(", ")", ";", "}"], "ground_truth": ["}"], "File": "DXILPrepare", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85381, "Length": 136, "Cover_Rate": 0.6210045662100456} {"Template_token": ["", "I", "=", "Attribute", "::", "AttrKind", "(", "I", "+", "", ")", ")", "{", "if", "(", "!", "isValidFor", "(", "I", ")", ")", "AttrMask", ".", "addAttribute", "(", "I", ")", ";", "}", "for", "(", "auto", "&", "F", ":", "M", ".", "functions", "(", ")", ")", "{", "F", ".", "removeFnAttrs", "(", "AttrMask", ")", ";", "F", ".", "removeRetAttrs", "(", "AttrMask", ")", ";", "for", "(", "size_t", "Idx", "=", "", ";", "Idx", "<", "F", ".", "arg_size", "(", ")", ";", "++", "Idx", ")", "F", ".", "removeParamAttrs", "(", "Idx", ",", "AttrMask", ")", ";", "for", "(", "auto", "&", "BB", ":", "F", ")", "{", "IRBuilder", "<", ">", "Builder", "(", "&", "BB", ")", ";", "for", "(", "auto", "&", "I", ":", "make_early_inc_range", "(", "BB", ")", ")", "{", "if", "(", "I", ".", "getOpcode", "(", ")", "==", "Instruction", "::", "FNeg", ")", "{"], "ground_truth": ["Builder", ".", "SetInsertPoint", "(", "&", "I", ")", ";"], "File": "DXILPrepare", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85382, "Length": 133, "Cover_Rate": 0.6073059360730594} {"Template_token": ["", "static", "void", "cleanModule", "(", "Module", "&", "M", ")", "{", "cleanModuleFlags", "(", "M", ")", ";"], "ground_truth": ["}"], "File": "DXILTranslateMetadata", "Func": "cleanModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85383, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "static", "uint32_t", "ConstMDToUint32", "(", "const", "MDOperand", "&", "MDO", ")", "{"], "ground_truth": ["ConstantInt", "*", "pConst", "=", "mdconst", "::", "extract", "<", "ConstantInt", ">", "(", "MDO", ")", ";"], "File": "DXILTranslateMetadata", "Func": "ConstMDToUint32", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85385, "Length": 24, "Cover_Rate": 0.6857142857142857} {"Template_token": ["", "static", "uint32_t", "ConstMDToUint32", "(", "const", "MDOperand", "&", "MDO", ")", "{", "ConstantInt", "*", "pConst", "=", "mdconst", "::", "extract", "<", "ConstantInt", ">", "(", "MDO", ")", ";", "return", "(", "uint32_t", ")", "pConst", "->", "getZExtValue", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILTranslateMetadata", "Func": "ConstMDToUint32", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85386, "Length": 35, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "TranslateMetadata", "(", ")", ":", "ModulePass", "(", "ID", ")", ",", "ValidatorVer", "(", "", ",", "", ")", "{"], "ground_truth": ["}"], "File": "DXILTranslateMetadata", "Func": "DXILTranslateMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85389, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "TranslateMetadata", "(", ")", ":", "ModulePass", "(", "ID", ")", ",", "ValidatorVer", "(", "", ",", "", ")", "{"], "ground_truth": ["}"], "File": "DXILTranslateMetadata", "Func": "DXILTranslateMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85390, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "static", "void", "emitValidatorVersion", "(", "Module", "&", "M", ",", "VersionTuple", "&", "ValidatorVer", ")", "{", "NamedMDNode", "*", "ValidatorVersionMD", "=", "M", ".", "getNamedMetadata", "(", "ValVerKey", ")", ";"], "ground_truth": ["if", "(", "ValidatorVersionMD", ")", "M", ".", "eraseNamedMetadata", "(", "ValidatorVersionMD", ")", ";"], "File": "DXILTranslateMetadata", "Func": "emitDXILValidatorVersion", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85391, "Length": 35, "Cover_Rate": 0.30973451327433627} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "DXILTranslateMetadata", "Func": "getPassName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85392, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "static", "VersionTuple", "loadValidatorVersion", "(", "MDNode", "*", "ValVerMD", ")", "{", "if", "(", "ValVerMD", "->", "getNumOperands", "(", ")", "!=", "VersionNumFields", ")", "return", "VersionTuple", "(", ")", ";", "unsigned", "Major", "=", "ConstMDToUint32", "(", "ValVerMD", "->", "getOperand", "(", "", ")", ")", ";", "unsigned", "Minor", "=", "ConstMDToUint32", "(", "ValVerMD", "->", "getOperand", "(", "", ")", ")", ";", "return", "VersionTuple", "(", "Major", ",", "Minor", ")", ";"], "ground_truth": ["}"], "File": "DXILTranslateMetadata", "Func": "loadDXILValidatorVersion", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85394, "Length": 59, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "TranslateMetadata", "::", "runOnModule", "(", "Module", "&", "M", ")", "{", "if", "(", "MDNode", "*", "ValVerMD", "=", "cast_or_null", "<", "MDNode", ">", "(", "M", ".", "getModuleFlag", "(", "ValVerKey", ")", ")", ")", "{", "auto", "ValVer", "=", "loadValidatorVersion", "(", "ValVerMD", ")", ";", "if", "(", "!", "ValVer", ".", "empty", "(", ")", ")", "ValidatorVer", "=", "ValVer", ";"], "ground_truth": ["}"], "File": "DXILTranslateMetadata", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85395, "Length": 52, "Cover_Rate": 0.7647058823529411} {"Template_token": ["", "static", "ConstantAsMetadata", "*", "Uint32ToConstMD", "(", "unsigned", "v", ",", "LLVMContext", "&", "Ctx", ")", "{", "return", "ConstantAsMetadata", "::", "get", "(", "Constant", "::", "getIntegerValue", "(", "IntegerType", "::", "get", "(", "Ctx", ",", "", ")", ",", "APInt", "(", "", ",", "v", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "DXILTranslateMetadata", "Func": "Uint32ToConstMD", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85397, "Length": 41, "Cover_Rate": 1.0} {"Template_token": ["", "uint64_t", "ValueEnumerator", "::", "computeBitsRequiredForTypeIndicies", "(", ")", "const", "{", "return", "Log2_32_Ceil", "(", "getTypes", "(", ")", ".", "size", "(", ")", "+", "", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "computeBitsRequiredForTypeIndicies", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85399, "Length": 23, "Cover_Rate": 1.0} {"Template_token": ["", "void", "ValueEnumerator", "::", "dropFunctionFromMetadata", "(", "MetadataMapType", "::", "value_type", "&", "FirstMD", ")", "{", "SmallVector", "<", "const", "MDNode", "*", ",", "", ">", "Worklist", ";", "auto", "push", "=", "[", "&", "Worklist", "]", "(", "MetadataMapType", "::", "value_type", "&", "MD", ")", "{", "auto", "&", "Entry", "=", "MD", ".", "second", ";", "if", "(", "!", "Entry", ".", "F", ")", "return", ";"], "ground_truth": ["Entry", ".", "F", "=", "", ";"], "File": "DXILValueEnumerator", "Func": "dropFunctionFromMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85400, "Length": 60, "Cover_Rate": 0.379746835443038} {"Template_token": ["", "if", "(", "!", "Entry", ".", "F", ")", "return", ";", "Entry", ".", "F", "=", "", ";", "if", "(", "Entry", ".", "ID", ")", "if", "(", "auto", "*", "N", "=", "dyn_cast", "<", "MDNode", ">", "(", "MD", ".", "first", ")", ")", "Worklist", ".", "push_back", "(", "N", ")", ";", "}", ";", "push", "(", "FirstMD", ")", ";", "while", "(", "!", "Worklist", ".", "empty", "(", ")", ")", "for", "(", "const", "Metadata", "*", "Op", ":", "Worklist", ".", "pop_back_val", "(", ")", "->", "operands", "(", ")", ")", "{", "if", "(", "!", "Op", ")", "continue", ";", "auto", "MD", "=", "MetadataMap", ".", "find", "(", "Op", ")", ";", "if", "(", "MD", "!=", "MetadataMap", ".", "end", "(", ")", ")", "push", "(", "*", "MD", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "dropFunctionFromMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85401, "Length": 112, "Cover_Rate": 0.7088607594936709} {"Template_token": ["", "print", "(", "dbgs", "(", ")", ",", "ValueMap", ",", "", ")", ";"], "ground_truth": ["dbgs", "(", ")", "<<", "'\\n'", ";"], "File": "DXILValueEnumerator", "Func": "dump", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85402, "Length": 17, "Cover_Rate": 0.38636363636363635} {"Template_token": ["", "print", "(", "dbgs", "(", ")", ",", "ValueMap", ",", "", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ";", "print", "(", "dbgs", "(", ")", ",", "MetadataMap", ",", "", ")", ";"], "ground_truth": ["dbgs", "(", ")", "<<", "'\\n'", ";"], "File": "DXILValueEnumerator", "Func": "dump", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85403, "Length": 34, "Cover_Rate": 0.7727272727272727} {"Template_token": ["", "void", "ValueEnumerator", "::", "EnumerateAttributes", "(", "AttributeList", "PAL", ")", "{", "if", "(", "PAL", ".", "isEmpty", "(", ")", ")", "return", ";", "unsigned", "&", "Entry", "=", "AttributeListMap", "[", "PAL", "]", ";", "if", "(", "Entry", "==", "", ")", "{", "AttributeLists", ".", "push_back", "(", "PAL", ")", ";", "Entry", "=", "AttributeLists", ".", "size", "(", ")", ";", "}"], "ground_truth": ["for", "(", "unsigned", "i", ":", "PAL", ".", "indexes", "(", ")", ")", "{"], "File": "DXILValueEnumerator", "Func": "EnumerateAttributes", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85404, "Length": 63, "Cover_Rate": 0.4117647058823529} {"Template_token": ["", "for", "(", "ValueAsMetadata", "*", "VAM", ":", "ArgList", "->", "getArgs", "(", ")", ")", "{", "if", "(", "isa", "<", "LocalAsMetadata", ">", "(", "VAM", ")", ")", "{", "assert", "(", "MetadataMap", ".", "count", "(", "VAM", ")", "&&", "", ")", ";", "assert", "(", "MetadataMap", "[", "VAM", "]", ".", "F", "==", "F", "&&", "", ")", ";", "}", "else", "{", "assert", "(", "isa", "<", "ConstantAsMetadata", ">", "(", "VAM", ")", "&&", "", ")", ";", "assert", "(", "ValueMap", ".", "count", "(", "VAM", "->", "getValue", "(", ")", ")", "&&", "", ")", ";", "EnumerateMetadata", "(", "F", ",", "VAM", ")", ";", "}", "}", "MDs", ".", "push_back", "(", "ArgList", ")", ";", "Index", ".", "F", "=", "F", ";"], "ground_truth": ["Index", ".", "ID", "=", "MDs", ".", "size", "(", ")", ";"], "File": "DXILValueEnumerator", "Func": "EnumerateFunctionLocalListMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85405, "Length": 114, "Cover_Rate": 0.6867469879518072} {"Template_token": ["", "}", "else", "{", "assert", "(", "isa", "<", "ConstantAsMetadata", ">", "(", "VAM", ")", "&&", "", ")", ";", "assert", "(", "ValueMap", ".", "count", "(", "VAM", "->", "getValue", "(", ")", ")", "&&", "", ")", ";", "EnumerateMetadata", "(", "F", ",", "VAM", ")", ";", "}", "}", "MDs", ".", "push_back", "(", "ArgList", ")", ";", "Index", ".", "F", "=", "F", ";", "Index", ".", "ID", "=", "MDs", ".", "size", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "EnumerateFunctionLocalListMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85406, "Length": 65, "Cover_Rate": 0.39156626506024095} {"Template_token": ["", "assert", "(", "Index", ".", "F", "==", "F", "&&", "", ")", ";", "return", ";", "}", "MDs", ".", "push_back", "(", "Local", ")", ";", "Index", ".", "F", "=", "F", ";"], "ground_truth": ["Index", ".", "ID", "=", "MDs", ".", "size", "(", ")", ";"], "File": "DXILValueEnumerator", "Func": "EnumerateFunctionLocalMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85407, "Length": 37, "Cover_Rate": 0.44047619047619047} {"Template_token": ["", "if", "(", "Op", "->", "isDistinct", "(", ")", "&&", "!", "N", "->", "isDistinct", "(", ")", ")", "DelayedDistinctNodes", ".", "push_back", "(", "Op", ")", ";", "else", "Worklist", ".", "push_back", "(", "std", "::", "make_pair", "(", "Op", ",", "Op", "->", "op_begin", "(", ")", ")", ")", ";", "continue", ";", "}", "Worklist", ".", "pop_back", "(", ")", ";", "MDs", ".", "push_back", "(", "N", ")", ";", "MetadataMap", "[", "N", "]", ".", "ID", "=", "MDs", ".", "size", "(", ")", ";", "if", "(", "Worklist", ".", "empty", "(", ")", "||", "Worklist", ".", "back", "(", ")", ".", "first", "->", "isDistinct", "(", ")", ")", "{", "for", "(", "const", "MDNode", "*", "N", ":", "DelayedDistinctNodes", ")", "Worklist", ".", "push_back", "(", "std", "::", "make_pair", "(", "N", ",", "N", "->", "op_begin", "(", ")", ")", ")", ";", "DelayedDistinctNodes", ".", "clear", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "EnumerateMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85408, "Length": 125, "Cover_Rate": 0.41118421052631576} {"Template_token": ["", "assert", "(", "(", "isa", "<", "MDNode", ">", "(", "MD", ")", "||", "isa", "<", "MDString", ">", "(", "MD", ")", "||", "isa", "<", "ConstantAsMetadata", ">", "(", "MD", ")", ")", "&&", "", ")", ";", "auto", "Insertion", "=", "MetadataMap", ".", "insert", "(", "std", "::", "make_pair", "(", "MD", ",", "MDIndex", "(", "F", ")", ")", ")", ";", "MDIndex", "&", "Entry", "=", "Insertion", ".", "first", "->", "second", ";", "if", "(", "!", "Insertion", ".", "second", ")", "{", "if", "(", "Entry", ".", "hasDifferentFunction", "(", "F", ")", ")", "dropFunctionFromMetadata", "(", "*", "Insertion", ".", "first", ")", ";", "return", "nullptr", ";", "}", "if", "(", "auto", "*", "N", "=", "dyn_cast", "<", "MDNode", ">", "(", "MD", ")", ")", "return", "N", ";", "MDs", ".", "push_back", "(", "MD", ")", ";", "Entry", ".", "ID", "=", "MDs", ".", "size", "(", ")", ";"], "ground_truth": ["if", "(", "auto", "*", "C", "=", "dyn_cast", "<", "ConstantAsMetadata", ">", "(", "MD", ")", ")", "EnumerateValue", "(", "C", "->", "getValue", "(", ")", ")", ";"], "File": "DXILValueEnumerator", "Func": "enumerateMetadataImpl", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85409, "Length": 147, "Cover_Rate": 0.84} {"Template_token": ["", "void", "ValueEnumerator", "::", "EnumerateNamedMDNode", "(", "const", "NamedMDNode", "*", "MD", ")", "{", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "MD", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "EnumerateMetadata", "(", "nullptr", ",", "MD", "->", "getOperand", "(", "i", ")", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "EnumerateNamedMDNode", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85410, "Length": 46, "Cover_Rate": 1.0} {"Template_token": ["", "for", "(", "const", "auto", "&", "I", ":", "M", ".", "named_metadata", "(", ")", ")", "EnumerateNamedMDNode", "(", "&", "I", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "EnumerateNamedMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85411, "Length": 20, "Cover_Rate": 0.6451612903225806} {"Template_token": ["", "for", "(", "const", "auto", "&", "I", ":", "M", ".", "named_metadata", "(", ")", ")", "EnumerateNamedMDNode", "(", "&", "I", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "EnumerateNamedMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85412, "Length": 20, "Cover_Rate": 0.6451612903225806} {"Template_token": ["", "EnumerateOperandType", "(", "Op", ")", ";", "}", "if", "(", "auto", "*", "CE", "=", "dyn_cast", "<", "ConstantExpr", ">", "(", "C", ")", ")", "{", "if", "(", "CE", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "ShuffleVector", ")", "EnumerateOperandType", "(", "CE", "->", "getShuffleMaskForBitcode", "(", ")", ")", ";", "if", "(", "CE", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "GetElementPtr", ")", "EnumerateType", "(", "cast", "<", "GEPOperator", ">", "(", "CE", ")", "->", "getSourceElementType", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "EnumerateOperandType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85413, "Length": 70, "Cover_Rate": 0.43209876543209874} {"Template_token": ["", "const", "Constant", "*", "C", "=", "dyn_cast", "<", "Constant", ">", "(", "V", ")", ";", "if", "(", "!", "C", ")", "return", ";", "if", "(", "ValueMap", ".", "count", "(", "C", ")", ")", "return", ";", "for", "(", "const", "Value", "*", "Op", ":", "C", "->", "operands", "(", ")", ")", "{", "if", "(", "isa", "<", "BasicBlock", ">", "(", "Op", ")", ")", "continue", ";"], "ground_truth": ["EnumerateOperandType", "(", "Op", ")", ";"], "File": "DXILValueEnumerator", "Func": "EnumerateOperandType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85414, "Length": 62, "Cover_Rate": 0.38271604938271603} {"Template_token": ["", "if", "(", "StructType", "*", "STy", "=", "dyn_cast", "<", "StructType", ">", "(", "Ty", ")", ")", "if", "(", "!", "STy", "->", "isLiteral", "(", ")", ")", "*", "TypeID", "=", "~", "", ";"], "ground_truth": ["for", "(", "Type", "*", "SubTy", ":", "Ty", "->", "subtypes", "(", ")", ")", "EnumerateType", "(", "SubTy", ")", ";"], "File": "DXILValueEnumerator", "Func": "EnumerateType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85415, "Length": 46, "Cover_Rate": 0.4144144144144144} {"Template_token": ["", "assert", "(", "!", "V", "->", "getType", "(", ")", "->", "isVoidTy", "(", ")", "&&", "", ")", ";", "assert", "(", "!", "isa", "<", "MetadataAsValue", ">", "(", "V", ")", "&&", "", ")", ";", "unsigned", "&", "ValueID", "=", "ValueMap", "[", "V", "]", ";", "if", "(", "ValueID", ")", "{", "Values", "[", "ValueID", "-", "", "]", ".", "second", "++", ";", "return", ";", "}", "if", "(", "auto", "*", "GO", "=", "dyn_cast", "<", "GlobalObject", ">", "(", "V", ")", ")", "if", "(", "const", "Comdat", "*", "C", "=", "GO", "->", "getComdat", "(", ")", ")", "Comdats", ".", "insert", "(", "C", ")", ";", "EnumerateType", "(", "V", "->", "getType", "(", ")", ")", ";", "if", "(", "const", "Constant", "*", "C", "=", "dyn_cast", "<", "Constant", ">", "(", "V", ")", ")", "{"], "ground_truth": ["if", "(", "isa", "<", "GlobalValue", ">", "(", "C", ")", ")", "{"], "File": "DXILValueEnumerator", "Func": "EnumerateValue", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85416, "Length": 127, "Cover_Rate": 0.41368078175895767} {"Template_token": ["", "void", "ValueEnumerator", "::", "EnumerateValueSymbolTable", "(", "const", "ValueSymbolTable", "&", "VST", ")", "{"], "ground_truth": ["for", "(", "ValueSymbolTable", "::", "const_iterator", "VI", "=", "VST", ".", "begin", "(", ")", ",", "VE", "=", "VST", ".", "end", "(", ")", ";"], "File": "DXILValueEnumerator", "Func": "EnumerateValueSymbolTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85417, "Length": 32, "Cover_Rate": 0.6530612244897959} {"Template_token": ["", "void", "ValueEnumerator", "::", "EnumerateValueSymbolTable", "(", "const", "ValueSymbolTable", "&", "VST", ")", "{", "for", "(", "ValueSymbolTable", "::", "const_iterator", "VI", "=", "VST", ".", "begin", "(", ")", ",", "VE", "=", "VST", ".", "end", "(", ")", ";", "VI", "!=", "VE", ";", "++", "VI", ")", "EnumerateValue", "(", "VI", "->", "getValue", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "EnumerateValueSymbolTable", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85418, "Length": 49, "Cover_Rate": 1.0} {"Template_token": ["", "const", "Metadata", "*", "get", "(", "ArrayRef", "<", "const", "Metadata", "*", ">", "MDs", ")", "const", "{"], "ground_truth": ["assert", "(", "ID", "&&", "", ")", ";"], "File": "DXILValueEnumerator", "Func": "get", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85419, "Length": 22, "Cover_Rate": 0.5} {"Template_token": ["", "const", "Metadata", "*", "get", "(", "ArrayRef", "<", "const", "Metadata", "*", ">", "MDs", ")", "const", "{", "assert", "(", "ID", "&&", "", ")", ";", "assert", "(", "ID", "<=", "MDs", ".", "size", "(", ")", "&&", "", ")", ";"], "ground_truth": ["return", "MDs", "[", "ID", "-", "", "]", ";"], "File": "DXILValueEnumerator", "Func": "get", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85420, "Length": 43, "Cover_Rate": 0.9772727272727273} {"Template_token": ["", "unsigned", "getAttributeGroupID", "(", "IndexAndAttrSet", "Group", ")", "const", "{", "if", "(", "!", "Group", ".", "second", ".", "hasAttributes", "(", ")", ")", "return", "", ";", "AttributeGroupMapType", "::", "const_iterator", "I", "=", "AttributeGroupMap", ".", "find", "(", "Group", ")", ";", "assert", "(", "I", "!=", "AttributeGroupMap", ".", "end", "(", ")", "&&", "", ")", ";", "return", "I", "->", "second", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getAttributeGroupID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85421, "Length": 53, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "!", "Group", ".", "second", ".", "hasAttributes", "(", ")", ")", "return", "", ";", "AttributeGroupMapType", "::", "const_iterator", "I", "=", "AttributeGroupMap", ".", "find", "(", "Group", ")", ";", "assert", "(", "I", "!=", "AttributeGroupMap", ".", "end", "(", ")", "&&", "", ")", ";"], "ground_truth": ["return", "I", "->", "second", ";"], "File": "DXILValueEnumerator", "Func": "getAttributeGroupID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85422, "Length": 44, "Cover_Rate": 0.8301886792452831} {"Template_token": ["", "const", "std", "::", "vector", "<", "IndexAndAttrSet", ">", "&", "getAttributeGroups", "(", ")", "const", "{"], "ground_truth": ["return", "AttributeGroups", ";"], "File": "DXILValueEnumerator", "Func": "getAttributeGroups", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85424, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "assert", "(", "I", "!=", "AttributeListMap", ".", "end", "(", ")", "&&", "", ")", ";", "return", "I", "->", "second", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getAttributeListID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85425, "Length": 19, "Cover_Rate": 0.38} {"Template_token": ["", "AttributeListMapType", "::", "const_iterator", "I", "=", "AttributeListMap", ".", "find", "(", "PAL", ")", ";"], "ground_truth": ["assert", "(", "I", "!=", "AttributeListMap", ".", "end", "(", ")", "&&", "", ")", ";"], "File": "DXILValueEnumerator", "Func": "getAttributeListID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85426, "Length": 25, "Cover_Rate": 0.5} {"Template_token": ["", "const", "std", "::", "vector", "<", "AttributeList", ">", "&", "getAttributeLists", "(", ")", "const", "{"], "ground_truth": ["return", "AttributeLists", ";"], "File": "DXILValueEnumerator", "Func": "getAttributeLists", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85427, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "const", "std", "::", "vector", "<", "const", "BasicBlock", "*", ">", "&", "getBasicBlocks", "(", ")", "const", "{", "return", "BasicBlocks", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getBasicBlocks", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85429, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getComdatID", "(", "const", "Comdat", "*", "C", ")", "const", "{"], "ground_truth": ["unsigned", "ComdatID", "=", "Comdats", ".", "idFor", "(", "C", ")", ";"], "File": "DXILValueEnumerator", "Func": "getComdatID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85430, "Length": 22, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "const", "ComdatSetType", "&", "getComdats", "(", ")", "const", "{", "return", "Comdats", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getComdats", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85431, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "return", "Comdats", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getComdats", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85432, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "void", "getFunctionConstantRange", "(", "unsigned", "&", "Start", ",", "unsigned", "&", "End", ")", "const", "{", "Start", "=", "FirstFuncConstantID", ";", "End", "=", "FirstInstID", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getFunctionConstantRange", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85433, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "Start", "=", "FirstFuncConstantID", ";", "End", "=", "FirstInstID", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getFunctionConstantRange", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85434, "Length": 9, "Cover_Rate": 0.4090909090909091} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getGlobalBasicBlockID", "(", "const", "BasicBlock", "*", "BB", ")", "const", "{", "unsigned", "&", "Idx", "=", "GlobalBasicBlockIDs", "[", "BB", "]", ";", "if", "(", "Idx", "!=", "", ")", "return", "Idx", "-", "", ";"], "ground_truth": ["IncorporateFunctionInfoGlobalBBIDs", "(", "BB", "->", "getParent", "(", ")", ",", "GlobalBasicBlockIDs", ")", ";"], "File": "DXILValueEnumerator", "Func": "getGlobalBasicBlockID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85435, "Length": 43, "Cover_Rate": 0.86} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getGlobalBasicBlockID", "(", "const", "BasicBlock", "*", "BB", ")", "const", "{"], "ground_truth": ["unsigned", "&", "Idx", "=", "GlobalBasicBlockIDs", "[", "BB", "]", ";"], "File": "DXILValueEnumerator", "Func": "getGlobalBasicBlockID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85436, "Length": 21, "Cover_Rate": 0.42} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getInstructionID", "(", "const", "Instruction", "*", "Inst", ")", "const", "{", "InstructionMapType", "::", "const_iterator", "I", "=", "InstructionMap", ".", "find", "(", "Inst", ")", ";", "assert", "(", "I", "!=", "InstructionMap", ".", "end", "(", ")", "&&", "", ")", ";"], "ground_truth": ["return", "I", "->", "second", ";"], "File": "DXILValueEnumerator", "Func": "getInstructionID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85437, "Length": 42, "Cover_Rate": 0.9767441860465116} {"Template_token": ["", "return", "makeArrayRef", "(", "MDs", ")", ".", "slice", "(", "NumModuleMDs", ",", "NumMDStrings", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getMDStrings", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85438, "Length": 14, "Cover_Rate": 0.56} {"Template_token": ["", "ArrayRef", "<", "const", "Metadata", "*", ">", "getMDStrings", "(", ")", "const", "{"], "ground_truth": ["return", "makeArrayRef", "(", "MDs", ")", ".", "slice", "(", "NumModuleMDs", ",", "NumMDStrings", ")", ";"], "File": "DXILValueEnumerator", "Func": "getMDStrings", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85439, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getMetadataFunctionID", "(", "const", "Function", "*", "F", ")", "const", "{", "return", "F", "?", "getValueID", "(", "F", ")", "+", "", ":", "", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getMetadataFunctionID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85440, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getMetadataFunctionID", "(", "const", "Function", "*", "F", ")", "const", "{"], "ground_truth": ["return", "F", "?", "getValueID", "(", "F", ")", "+", "", ":", "", ";"], "File": "DXILValueEnumerator", "Func": "getMetadataFunctionID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85441, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "unsigned", "getMetadataID", "(", "const", "Metadata", "*", "MD", ")", "const", "{", "auto", "ID", "=", "getMetadataOrNullID", "(", "MD", ")", ";", "assert", "(", "ID", "!=", "", "&&", "", ")", ";"], "ground_truth": ["return", "ID", "-", "", ";"], "File": "DXILValueEnumerator", "Func": "getMetadataID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85442, "Length": 32, "Cover_Rate": 0.9696969696969697} {"Template_token": ["", "unsigned", "getMetadataOrNullID", "(", "const", "Metadata", "*", "MD", ")", "const", "{"], "ground_truth": ["return", "MetadataMap", ".", "lookup", "(", "MD", ")", ".", "ID", ";"], "File": "DXILValueEnumerator", "Func": "getMetadataOrNullID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85444, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "if", "(", "isa", "<", "MDString", ">", "(", "MD", ")", ")", "return", "", ";", "auto", "*", "N", "=", "dyn_cast", "<", "MDNode", ">", "(", "MD", ")", ";", "if", "(", "!", "N", ")", "return", "", ";"], "ground_truth": ["return", "N", "->", "isDistinct", "(", ")", "?", "", ":", "", ";"], "File": "DXILValueEnumerator", "Func": "getMetadataTypeOrder", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85445, "Length": 44, "Cover_Rate": 0.8} {"Template_token": ["", "ArrayRef", "<", "const", "Metadata", "*", ">", "getNonMDStrings", "(", ")", "const", "{"], "ground_truth": ["return", "makeArrayRef", "(", "MDs", ")", ".", "slice", "(", "NumModuleMDs", ")", ".", "slice", "(", "NumMDStrings", ")", ";"], "File": "DXILValueEnumerator", "Func": "getNonMDStrings", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85446, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "assert", "(", "I", "!=", "TypeMap", ".", "end", "(", ")", "&&", "", ")", ";"], "ground_truth": ["return", "I", "->", "second", "-", "", ";"], "File": "DXILValueEnumerator", "Func": "getTypeID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85448, "Length": 20, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "unsigned", "getTypeID", "(", "Type", "*", "T", ")", "const", "{", "TypeMapType", "::", "const_iterator", "I", "=", "TypeMap", ".", "find", "(", "T", ")", ";", "assert", "(", "I", "!=", "TypeMap", ".", "end", "(", ")", "&&", "", ")", ";", "return", "I", "->", "second", "-", "", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getTypeID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85449, "Length": 42, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "ValueEnumerator", "::", "getValueID", "(", "const", "Value", "*", "V", ")", "const", "{", "if", "(", "auto", "*", "MD", "=", "dyn_cast", "<", "MetadataAsValue", ">", "(", "V", ")", ")", "return", "getMetadataID", "(", "MD", "->", "getMetadata", "(", ")", ")", ";"], "ground_truth": ["ValueMapType", "::", "const_iterator", "I", "=", "ValueMap", ".", "find", "(", "V", ")", ";"], "File": "DXILValueEnumerator", "Func": "getValueID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85451, "Length": 48, "Cover_Rate": 0.6956521739130435} {"Template_token": ["", "return", "Values", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getValues", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85452, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "const", "ValueList", "&", "getValues", "(", ")", "const", "{", "return", "Values", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "getValues", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85453, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "NumModuleValues", "=", "Values", ".", "size", "(", ")", ";", "incorporateFunctionMetadata", "(", "F", ")", ";", "for", "(", "const", "auto", "&", "I", ":", "F", ".", "args", "(", ")", ")", "{", "EnumerateValue", "(", "&", "I", ")", ";", "if", "(", "I", ".", "hasAttribute", "(", "Attribute", "::", "ByVal", ")", ")", "EnumerateType", "(", "I", ".", "getParamByValType", "(", ")", ")", ";", "else", "if", "(", "I", ".", "hasAttribute", "(", "Attribute", "::", "StructRet", ")", ")", "EnumerateType", "(", "I", ".", "getParamStructRetType", "(", ")", ")", ";", "else", "if", "(", "I", ".", "hasAttribute", "(", "Attribute", "::", "ByRef", ")", ")", "EnumerateType", "(", "I", ".", "getParamByRefType", "(", ")", ")", ";", "}", "FirstFuncConstantID", "=", "Values", ".", "size", "(", ")", ";", "for", "(", "const", "BasicBlock", "&", "BB", ":", "F", ")", "{", "for", "(", "const", "Instruction", "&", "I", ":", "BB", ")", "{", "for", "(", "const", "Use", "&", "OI", ":", "I", ".", "operands", "(", ")", ")", "{", "if", "(", "(", "isa", "<", "Constant", ">", "(", "OI", ")", "&&", "!", "isa", "<", "GlobalValue", ">", "(", "OI", ")", ")", "||", "isa", "<", "InlineAsm", ">", "(", "OI", ")", ")", "EnumerateValue", "(", "OI", ")", ";", "}", "if", "(", "auto", "*", "SVI", "=", "dyn_cast", "<", "ShuffleVectorInst", ">", "(", "&", "I", ")", ")", "EnumerateValue", "(", "SVI", "->", "getShuffleMaskForBitcode", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "incorporateFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85458, "Length": 198, "Cover_Rate": 0.3844660194174757} {"Template_token": ["", "unsigned", "Counter", "=", "", ";"], "ground_truth": ["for", "(", "const", "BasicBlock", "&", "BB", ":", "*", "F", ")", "IDMap", "[", "&", "BB", "]", "=", "++", "Counter", ";"], "File": "DXILValueEnumerator", "Func": "IncorporateFunctionInfoGlobalBBIDs", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85459, "Length": 24, "Cover_Rate": 0.5217391304347826} {"Template_token": ["", "NumMDStrings", "=", "R", ".", "NumStrings", ";"], "ground_truth": ["MDs", ".", "insert", "(", "MDs", ".", "end", "(", ")", ",", "FunctionMDs", ".", "begin", "(", ")", "+", "R", ".", "First", ",", "FunctionMDs", ".", "begin", "(", ")", "+", "R", ".", "Last", ")", ";"], "File": "DXILValueEnumerator", "Func": "incorporateFunctionMetadata", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85462, "Length": 37, "Cover_Rate": 0.5068493150684932} {"Template_token": ["", "unsigned", "ID", "=", "IDs", ".", "size", "(", ")", "+", "", ";", "IDs", "[", "V", "]", ".", "first", "=", "ID", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "index", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85463, "Length": 21, "Cover_Rate": 0.7} {"Template_token": ["", "IDs", "[", "V", "]", ".", "first", "=", "ID", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "index", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85464, "Length": 10, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "ID", "<=", "LastGlobalConstantID", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "isGlobalConstant", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85465, "Length": 6, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "bool", "isGlobalConstant", "(", "unsigned", "ID", ")", "const", "{", "return", "ID", "<=", "LastGlobalConstantID", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "isGlobalConstant", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85466, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "return", "ID", "<=", "LastGlobalValueID", "&&", "!", "isGlobalConstant", "(", "ID", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "isGlobalValue", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85467, "Length": 12, "Cover_Rate": 0.6} {"Template_token": ["", "return", "ID", "<=", "LastGlobalValueID", "&&", "!", "isGlobalConstant", "(", "ID", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "isGlobalValue", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85468, "Length": 12, "Cover_Rate": 0.6} {"Template_token": ["", "static", "bool", "isIntOrIntVectorValue", "(", "const", "std", "::", "pair", "<", "const", "Value", "*", ",", "unsigned", ">", "&", "V", ")", "{", "return", "V", ".", "first", "->", "getType", "(", ")", "->", "isIntOrIntVectorTy", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "isIntOrIntVectorValue", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85469, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "return", "V", ".", "first", "->", "getType", "(", ")", "->", "isIntOrIntVectorTy", "(", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "isIntOrIntVectorValue", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85470, "Length": 14, "Cover_Rate": 0.42424242424242425} {"Template_token": ["", "explicit", "MDIndex", "(", "unsigned", "F", ")", ":", "F", "(", "F", ")", "{"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "MDIndex", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85473, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "MDIndex", "(", "unsigned", "F", ")", ":", "F", "(", "F", ")", "{"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "MDIndex", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85474, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "MDRange", "(", "unsigned", "First", ")", ":", "First", "(", "First", ")", "{"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "MDRange", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85475, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "MDRange", "(", "unsigned", "First", ")", ":", "First", "(", "First", ")", "{"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "MDRange", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85476, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "numMDs", "(", ")", "const", "{"], "ground_truth": ["return", "MDs", ".", "size", "(", ")", ";"], "File": "DXILValueEnumerator", "Func": "numMDs", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85478, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "if", "(", "ShouldPreserveUseListOrder", ")", "return", ";", "std", "::", "stable_sort", "(", "Values", ".", "begin", "(", ")", "+", "CstStart", ",", "Values", ".", "begin", "(", ")", "+", "CstEnd", ",", "[", "this", "]", "(", "const", "std", "::", "pair", "<", "const", "Value", "*", ",", "unsigned", ">", "&", "LHS", ",", "const", "std", "::", "pair", "<", "const", "Value", "*", ",", "unsigned", ">", "&", "RHS", ")", "{", "if", "(", "LHS", ".", "first", "->", "getType", "(", ")", "!=", "RHS", ".", "first", "->", "getType", "(", ")", ")", "return", "getTypeID", "(", "LHS", ".", "first", "->", "getType", "(", ")", ")", "<", "getTypeID", "(", "RHS", ".", "first", "->", "getType", "(", ")", ")", ";", "return", "LHS", ".", "second", ">", "RHS", ".", "second", ";", "}", ")", ";"], "ground_truth": ["std", "::", "stable_partition", "(", "Values", ".", "begin", "(", ")", "+", "CstStart", ",", "Values", ".", "begin", "(", ")", "+", "CstEnd", ",", "isIntOrIntVectorValue", ")", ";"], "File": "DXILValueEnumerator", "Func": "OptimizeConstants", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85479, "Length": 135, "Cover_Rate": 0.7258064516129032} {"Template_token": ["", "for", "(", "const", "GlobalAlias", "&", "A", ":", "M", ".", "aliases", "(", ")", ")", "if", "(", "!", "isa", "<", "GlobalValue", ">", "(", "A", ".", "getAliasee", "(", ")", ")", ")", "orderValue", "(", "A", ".", "getAliasee", "(", ")", ",", "OM", ")", ";", "for", "(", "const", "GlobalIFunc", "&", "I", ":", "M", ".", "ifuncs", "(", ")", ")", "if", "(", "!", "isa", "<", "GlobalValue", ">", "(", "I", ".", "getResolver", "(", ")", ")", ")", "orderValue", "(", "I", ".", "getResolver", "(", ")", ",", "OM", ")", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "{", "for", "(", "const", "Use", "&", "U", ":", "F", ".", "operands", "(", ")", ")", "if", "(", "!", "isa", "<", "GlobalValue", ">", "(", "U", ".", "get", "(", ")", ")", ")", "orderValue", "(", "U", ".", "get", "(", ")", ",", "OM", ")", ";", "}", "auto", "orderConstantValue", "=", "[", "&", "OM", "]", "(", "const", "Value", "*", "V", ")", "{", "if", "(", "(", "isa", "<", "Constant", ">", "(", "V", ")", "&&", "!", "isa", "<", "GlobalValue", ">", "(", "V", ")", ")", "||", "isa", "<", "InlineAsm", ">", "(", "V", ")", ")", "orderValue", "(", "V", ",", "OM", ")", ";", "}", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "{", "if", "(", "F", ".", "isDeclaration", "(", ")", ")", "continue", ";", "for", "(", "const", "BasicBlock", "&", "BB", ":", "F", ")", "for", "(", "const", "Instruction", "&", "I", ":", "BB", ")", "for", "(", "const", "Value", "*", "V", ":", "I", ".", "operands", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "MAV", "=", "dyn_cast", "<", "MetadataAsValue", ">", "(", "V", ")", ")", "{", "if", "(", "const", "auto", "*", "VAM", "=", "dyn_cast", "<", "ValueAsMetadata", ">", "(", "MAV", "->", "getMetadata", "(", ")", ")", ")", "{", "orderConstantValue", "(", "VAM", "->", "getValue", "(", ")", ")", ";", "}", "else", "if", "(", "const", "auto", "*", "AL", "=", "dyn_cast", "<", "DIArgList", ">", "(", "MAV", "->", "getMetadata", "(", ")", ")", ")", "{", "for", "(", "const", "auto", "*", "VAM", ":", "AL", "->", "getArgs", "(", ")", ")", "orderConstantValue", "(", "VAM", "->", "getValue", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "orderModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85480, "Length": 322, "Cover_Rate": 0.4791666666666667} {"Template_token": ["", "for", "(", "const", "Argument", "&", "A", ":", "F", ".", "args", "(", ")", ")", "predictValueUseListOrder", "(", "&", "A", ",", "&", "F", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "BasicBlock", "&", "BB", ":", "F", ")", "for", "(", "const", "Instruction", "&", "I", ":", "BB", ")", "{", "for", "(", "const", "Value", "*", "Op", ":", "I", ".", "operands", "(", ")", ")", "if", "(", "isa", "<", "Constant", ">", "(", "*", "Op", ")", "||", "isa", "<", "InlineAsm", ">", "(", "*", "Op", ")", ")", "predictValueUseListOrder", "(", "Op", ",", "&", "F", ",", "OM", ",", "Stack", ")", ";", "if", "(", "auto", "*", "SVI", "=", "dyn_cast", "<", "ShuffleVectorInst", ">", "(", "&", "I", ")", ")", "predictValueUseListOrder", "(", "SVI", "->", "getShuffleMaskForBitcode", "(", ")", ",", "&", "F", ",", "OM", ",", "Stack", ")", ";", "}", "for", "(", "const", "BasicBlock", "&", "BB", ":", "F", ")", "for", "(", "const", "Instruction", "&", "I", ":", "BB", ")", "predictValueUseListOrder", "(", "&", "I", ",", "&", "F", ",", "OM", ",", "Stack", ")", ";", "}", "for", "(", "const", "GlobalVariable", "&", "G", ":", "M", ".", "globals", "(", ")", ")", "predictValueUseListOrder", "(", "&", "G", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "predictValueUseListOrder", "(", "&", "F", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "GlobalAlias", "&", "A", ":", "M", ".", "aliases", "(", ")", ")", "predictValueUseListOrder", "(", "&", "A", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "GlobalIFunc", "&", "I", ":", "M", ".", "ifuncs", "(", ")", ")", "predictValueUseListOrder", "(", "&", "I", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "GlobalVariable", "&", "G", ":", "M", ".", "globals", "(", ")", ")", "if", "(", "G", ".", "hasInitializer", "(", ")", ")", "predictValueUseListOrder", "(", "G", ".", "getInitializer", "(", ")", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "GlobalAlias", "&", "A", ":", "M", ".", "aliases", "(", ")", ")", "predictValueUseListOrder", "(", "A", ".", "getAliasee", "(", ")", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "GlobalIFunc", "&", "I", ":", "M", ".", "ifuncs", "(", ")", ")", "predictValueUseListOrder", "(", "I", ".", "getResolver", "(", ")", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "{"], "ground_truth": ["for", "(", "const", "Use", "&", "U", ":", "F", ".", "operands", "(", ")", ")", "predictValueUseListOrder", "(", "U", ".", "get", "(", ")", ",", "nullptr", ",", "OM", ",", "Stack", ")", ";"], "File": "DXILValueEnumerator", "Func": "predictUseListOrder", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85481, "Length": 380, "Cover_Rate": 0.8388520971302428} {"Template_token": ["", "assert", "(", "IDPair", ".", "first", "&&", "", ")", ";", "if", "(", "IDPair", ".", "second", ")", "return", ";", "IDPair", ".", "second", "=", "true", ";", "if", "(", "!", "V", "->", "use_empty", "(", ")", "&&", "std", "::", "next", "(", "V", "->", "use_begin", "(", ")", ")", "!=", "V", "->", "use_end", "(", ")", ")", "predictValueUseListOrderImpl", "(", "V", ",", "F", ",", "IDPair", ".", "first", ",", "OM", ",", "Stack", ")", ";", "if", "(", "const", "Constant", "*", "C", "=", "dyn_cast", "<", "Constant", ">", "(", "V", ")", ")", "{", "if", "(", "C", "->", "getNumOperands", "(", ")", ")", "{", "for", "(", "const", "Value", "*", "Op", ":", "C", "->", "operands", "(", ")", ")", "if", "(", "isa", "<", "Constant", ">", "(", "Op", ")", ")", "predictValueUseListOrder", "(", "Op", ",", "F", ",", "OM", ",", "Stack", ")", ";", "if", "(", "auto", "*", "CE", "=", "dyn_cast", "<", "ConstantExpr", ">", "(", "C", ")", ")", "if", "(", "CE", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "ShuffleVector", ")", "predictValueUseListOrder", "(", "CE", "->", "getShuffleMaskForBitcode", "(", ")", ",", "F", ",", "OM", ",", "Stack", ")", ";", "}"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "predictValueUseListOrder", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85482, "Length": 166, "Cover_Rate": 0.8341708542713567} {"Template_token": ["", "IDPair", ".", "second", "=", "true", ";", "if", "(", "!", "V", "->", "use_empty", "(", ")", "&&", "std", "::", "next", "(", "V", "->", "use_begin", "(", ")", ")", "!=", "V", "->", "use_end", "(", ")", ")", "predictValueUseListOrderImpl", "(", "V", ",", "F", ",", "IDPair", ".", "first", ",", "OM", ",", "Stack", ")", ";", "if", "(", "const", "Constant", "*", "C", "=", "dyn_cast", "<", "Constant", ">", "(", "V", ")", ")", "{"], "ground_truth": ["if", "(", "C", "->", "getNumOperands", "(", ")", ")", "{"], "File": "DXILValueEnumerator", "Func": "predictValueUseListOrder", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85483, "Length": 72, "Cover_Rate": 0.36180904522613067} {"Template_token": ["", "for", "(", "const", "auto", "&", "I", ":", "Map", ")", "{", "const", "Metadata", "*", "MD", "=", "I", ".", "first", ";"], "ground_truth": ["OS", "<<", "", "<<", "I", ".", "second", ".", "ID", "<<", "", ";"], "File": "DXILValueEnumerator", "Func": "print", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85484, "Length": 31, "Cover_Rate": 0.31958762886597936} {"Template_token": ["", "for", "(", "const", "BasicBlock", "*", "BB", ":", "BasicBlocks", ")", "ValueMap", ".", "erase", "(", "BB", ")", ";", "Values", ".", "resize", "(", "NumModuleValues", ")", ";", "MDs", ".", "resize", "(", "NumModuleMDs", ")", ";", "BasicBlocks", ".", "clear", "(", ")", ";"], "ground_truth": ["NumMDStrings", "=", "", ";"], "File": "DXILValueEnumerator", "Func": "purgeFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85485, "Length": 40, "Cover_Rate": 0.3508771929824561} {"Template_token": ["", "return", "ShouldPreserveUseListOrder", ";"], "ground_truth": ["}"], "File": "DXILValueEnumerator", "Func": "shouldPreserveUseListOrder", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85488, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "bool", "shouldPreserveUseListOrder", "(", ")", "const", "{"], "ground_truth": ["return", "ShouldPreserveUseListOrder", ";"], "File": "DXILValueEnumerator", "Func": "shouldPreserveUseListOrder", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85489, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "unsigned", "size", "(", ")", "const", "{"], "ground_truth": ["return", "IDs", ".", "size", "(", ")", ";"], "File": "DXILValueEnumerator", "Func": "size", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85490, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "EnumerateValue", "(", "&", "GV", ")", ";", "EnumerateType", "(", "GV", ".", "getValueType", "(", ")", ")", ";", "}", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "{", "EnumerateValue", "(", "&", "F", ")", ";", "EnumerateType", "(", "F", ".", "getValueType", "(", ")", ")", ";", "EnumerateAttributes", "(", "F", ".", "getAttributes", "(", ")", ")", ";", "}", "for", "(", "const", "GlobalAlias", "&", "GA", ":", "M", ".", "aliases", "(", ")", ")", "{", "EnumerateValue", "(", "&", "GA", ")", ";", "EnumerateType", "(", "GA", ".", "getValueType", "(", ")", ")", ";", "}", "for", "(", "const", "GlobalIFunc", "&", "GIF", ":", "M", ".", "ifuncs", "(", ")", ")", "{", "EnumerateValue", "(", "&", "GIF", ")", ";", "EnumerateType", "(", "GIF", ".", "getValueType", "(", ")", ")", ";", "}", "unsigned", "FirstConstant", "=", "Values", ".", "size", "(", ")", ";", "for", "(", "const", "GlobalVariable", "&", "GV", ":", "M", ".", "globals", "(", ")", ")", "{", "if", "(", "GV", ".", "hasInitializer", "(", ")", ")", "EnumerateValue", "(", "GV", ".", "getInitializer", "(", ")", ")", ";", "if", "(", "GV", ".", "hasAttributes", "(", ")", ")", "EnumerateAttributes", "(", "GV", ".", "getAttributesAsList", "(", "AttributeList", "::", "FunctionIndex", ")", ")", ";", "}", "for", "(", "const", "GlobalAlias", "&", "GA", ":", "M", ".", "aliases", "(", ")", ")", "EnumerateValue", "(", "GA", ".", "getAliasee", "(", ")", ")", ";", "for", "(", "const", "GlobalIFunc", "&", "GIF", ":", "M", ".", "ifuncs", "(", ")", ")", "EnumerateValue", "(", "GIF", ".", "getResolver", "(", ")", ")", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "for", "(", "const", "Use", "&", "U", ":", "F", ".", "operands", "(", ")", ")", "EnumerateValue", "(", "U", ".", "get", "(", ")", ")", ";", "EnumerateType", "(", "Type", "::", "getMetadataTy", "(", "M", ".", "getContext", "(", ")", ")", ")", ";"], "ground_truth": ["EnumerateValueSymbolTable", "(", "M", ".", "getValueSymbolTable", "(", ")", ")", ";"], "File": "DXILValueEnumerator", "Func": "ValueEnumerator", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85492, "Length": 270, "Cover_Rate": 0.33210332103321033} {"Template_token": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{"], "ground_truth": ["AU", ".", "setPreservesAll", "(", ")", ";"], "File": "DXILWriterPass", "Func": "getAnalysisUsage", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85496, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{"], "ground_truth": ["return", "", ";"], "File": "DXILWriterPass", "Func": "getPassName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85497, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "", ";"], "ground_truth": ["}"], "File": "DXILWriterPass", "Func": "getPassName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85498, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "runOnModule", "(", "Module", "&", "M", ")", "override", "{", "WriteToFile", "(", "M", ",", "OS", ")", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "DXILWriterPass", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85499, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "runOnModule", "(", "Module", "&", "M", ")", "override", "{", "WriteToFile", "(", "M", ",", "OS", ")", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "DXILWriterPass", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85500, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "initializeWritePassPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "DXILWriterPass", "Func": "WriteDXILPass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85501, "Length": 11, "Cover_Rate": 0.3793103448275862} {"Template_token": ["", "explicit", "WritePass", "(", "raw_ostream", "&", "o", ")", ":", "ModulePass", "(", "ID", ")", ",", "OS", "(", "o", ")", "{"], "ground_truth": ["initializeWritePassPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";"], "File": "DXILWriterPass", "Func": "WriteDXILPass", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85502, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "for", "(", "const", "auto", "&", "I", ":", "B", ")", "{", "if", "(", "const", "auto", "*", "RetInst", "=", "dyn_cast_or_null", "<", "ReturnInst", ">", "(", "&", "I", ")", ")", "{", "Type", "*", "NewRetTy", "=", "classifyPointerType", "(", "RetInst", "->", "getReturnValue", "(", ")", ")", ";", "if", "(", "!", "RetTy", ")", "RetTy", "=", "NewRetTy", ";", "else", "if", "(", "RetTy", "!=", "NewRetTy", ")", "RetTy", "=", "TypedPointerType", "::", "get", "(", "Type", "::", "getInt8Ty", "(", "I", ".", "getContext", "(", ")", ")", ",", "F", ".", "getReturnType", "(", ")", "->", "getPointerAddressSpace", "(", ")", ")", ";", "}", "}", "}", "}", "for", "(", "auto", "&", "A", ":", "F", ".", "args", "(", ")", ")", "{", "Type", "*", "ArgTy", "=", "A", ".", "getType", "(", ")", ";", "if", "(", "ArgTy", "->", "isOpaquePointerTy", "(", ")", ")", "{", "TypedPointerType", "*", "NewTy", "=", "classifyPointerType", "(", "&", "A", ")", ";", "Map", "[", "&", "A", "]", "=", "NewTy", ";", "ArgTy", "=", "NewTy", ";"], "ground_truth": ["HasOpaqueTy", "=", "true", ";"], "File": "PointerTypeAnalysis", "Func": "classifyFunctionType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85503, "Length": 146, "Cover_Rate": 0.6083333333333333} {"Template_token": ["", "NewPointeeTy", "=", "Inst", "->", "getValueOperand", "(", ")", "->", "getType", "(", ")", ";", "}", "else", "if", "(", "const", "auto", "*", "Inst", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "User", ")", ")", "{", "NewPointeeTy", "=", "Inst", "->", "getSourceElementType", "(", ")", ";", "}", "if", "(", "NewPointeeTy", ")", "{", "if", "(", "NewPointeeTy", "->", "isOpaquePointerTy", "(", ")", ")", "return", "TypedPointerType", "::", "get", "(", "classifyPointerType", "(", "User", ")", ",", "V", "->", "getType", "(", ")", "->", "getPointerAddressSpace", "(", ")", ")", ";", "if", "(", "!", "PointeeTy", ")", "PointeeTy", "=", "NewPointeeTy", ";", "else", "if", "(", "PointeeTy", "!=", "NewPointeeTy", ")", "PointeeTy", "=", "Type", "::", "getInt8Ty", "(", "V", "->", "getContext", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "PointerTypeAnalysis", "Func": "classifyPointerType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85504, "Length": 103, "Cover_Rate": 0.34797297297297297} {"Template_token": ["", "for", "(", "const", "auto", "&", "I", ":", "B", ")", "{", "if", "(", "I", ".", "getType", "(", ")", "->", "isOpaquePointerTy", "(", ")", ")", "Map", "[", "&", "I", "]", "=", "classifyPointerType", "(", "&", "I", ")", ";", "}", "}"], "ground_truth": ["}"], "File": "PointerTypeAnalysis", "Func": "run", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 85505, "Length": 37, "Cover_Rate": 0.31092436974789917}