{"Template_token": ["", "StringRef", "ValueStr", "=", "DA", "->", "getAsString", "(", ")", ";", "size_t", "Separator", "=", "ValueStr", ".", "find_first_of", "(", "':'", ")", ";", "StringRef", "EnumeratorStr", "=", "ValueStr", ".", "substr", "(", "", ",", "Separator", ")", ";", "DIType", "*", "BaseTy", "=", "stripQualifiers", "(", "Ty", ",", "true", ")", ";", "const", "auto", "*", "CTy", "=", "cast", "<", "DICompositeType", ">", "(", "BaseTy", ")", ";", "assert", "(", "CTy", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_enumeration_type", ")", ";", "int", "EnumIndex", "=", "", ";", "for", "(", "const", "auto", "Element", ":", "CTy", "->", "getElements", "(", ")", ")", "{", "const", "auto", "*", "Enum", "=", "cast", "<", "DIEnumerator", ">", "(", "Element", ")", ";", "if", "(", "Enum", "->", "getName", "(", ")", "==", "EnumeratorStr", ")", "{", "AccessStr", "=", "std", "::", "to_string", "(", "EnumIndex", ")", ";", "break", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess10", "Func": "computeAccessKey", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1057, "Length": 122, "Cover_Rate": 0.30049261083743845} {"Template_token": ["", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlignment", "(", "CInfo", ".", "Base", "->", "getType", "(", ")", "->", "getPointerElementType", "(", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveUnionAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlignment", "(", "CInfo", ".", "Base", "->", "getType", "(", ")", "->", "getPointerElementType", "(", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveStructAI", ";"], "ground_truth": ["CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";"], "File": "BPFAbstractMemberAccess12", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1058, "Length": 190, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "if", "(", "!", "Call", ")", "return", "false", ";", "const", "auto", "*", "GV", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "Call", "->", "getCalledValue", "(", ")", ")", ";", "if", "(", "!", "GV", ")", "return", "false", ";", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveArrayAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlignment", "(", "CInfo", ".", "Base", "->", "getType", "(", ")", "->", "getPointerElementType", "(", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveUnionAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlignment", "(", "CInfo", ".", "Base", "->", "getType", "(", ")", "->", "getPointerElementType", "(", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveStructAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";"], "ground_truth": ["CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";"], "File": "BPFAbstractMemberAccess12", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1059, "Length": 293, "Cover_Rate": 0.7343358395989975} {"Template_token": ["", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "LDInst", ")", ";", "auto", "*", "BCInst", "=", "new", "BitCastInst", "(", "Base", ",", "Type", "::", "getInt8PtrTy", "(", "BB", "->", "getContext", "(", ")", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst", ")", ";", "auto", "*", "GEP", "=", "GetElementPtrInst", "::", "Create", "(", "Type", "::", "getInt8Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "BCInst", ",", "LDInst", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "GEP", ")", ";", "auto", "*", "BCInst2", "=", "new", "BitCastInst", "(", "GEP", ",", "Call", "->", "getType", "(", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst2", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "BCInst2", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess12", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1060, "Length": 146, "Cover_Rate": 0.35784313725490197} {"Template_token": ["", "if", "(", "CInfo", ".", "Kind", "==", "PreserveFieldInfoAI", ")", "VarType", "=", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "else", "VarType", "=", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "GV", "=", "new", "GlobalVariable", "(", "M", ",", "VarType", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "AccessKey", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "TypeMeta", ")", ";", "GEPGlobals", "[", "AccessKey", "]", "=", "GV", ";", "}", "else", "{", "GV", "=", "GEPGlobals", "[", "AccessKey", "]", ";", "}", "if", "(", "CInfo", ".", "Kind", "==", "PreserveFieldInfoAI", ")", "{", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "LDInst", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "LDInst", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "return", "true", ";", "}"], "ground_truth": ["auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ")", ";"], "File": "BPFAbstractMemberAccess12", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1061, "Length": 176, "Cover_Rate": 0.43137254901960786} {"Template_token": ["", "auto", "*", "MemberTy", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "AccessIndex", "]", ")", ";", "if", "(", "!", "MemberTy", "->", "isBitField", "(", ")", ")", "{", "PatchImm", "+=", "MemberTy", "->", "getOffsetInBits", "(", ")", ">>", "", ";", "}", "else", "{", "unsigned", "SBitOffset", ",", "NextSBitOffset", ";", "GetStorageBitRange", "(", "MemberTy", ",", "RecordAlignment", ",", "SBitOffset", ",", "NextSBitOffset", ")", ";", "PatchImm", "+=", "SBitOffset", ">>", "", ";", "}", "}", "return", "PatchImm", ";", "}", "if", "(", "InfoKind", "==", "", ")", "{", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "{", "auto", "*", "EltTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "return", "calcArraySize", "(", "CTy", ",", "", ")", "*", "(", "EltTy", "->", "getSizeInBits", "(", ")", ">>", "", ")", ";", "}", "else", "{", "auto", "*", "MemberTy", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "AccessIndex", "]", ")", ";", "uint32_t", "SizeInBits", "=", "MemberTy", "->", "getSizeInBits", "(", ")", ";", "if", "(", "!", "MemberTy", "->", "isBitField", "(", ")", ")", "return", "SizeInBits", ">>", "", ";", "unsigned", "SBitOffset", ",", "NextSBitOffset", ";", "GetStorageBitRange", "(", "MemberTy", ",", "RecordAlignment", ",", "SBitOffset", ",", "NextSBitOffset", ")", ";", "SizeInBits", "=", "NextSBitOffset", "-", "SBitOffset", ";", "if", "(", "SizeInBits", "&", "(", "SizeInBits", "-", "", ")", ")", "report_fatal_error", "(", "", ")", ";", "return", "SizeInBits", ">>", "", ";", "}", "}", "if", "(", "InfoKind", "==", "", ")", "{", "const", "DIType", "*", "BaseTy", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "{", "if", "(", "CTy", "->", "getElements", "(", ")", ".", "size", "(", ")", "!=", "", ")", "report_fatal_error", "(", "", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "}", "else", "{", "auto", "*", "MemberTy", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "AccessIndex", "]", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "MemberTy", "->", "getBaseType", "(", ")", ")", ";", "}", "const", "auto", "*", "BTy", "=", "dyn_cast", "<", "DIBasicType", ">", "(", "BaseTy", ")", ";", "while", "(", "!", "BTy", ")", "{", "const", "auto", "*", "CompTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "BaseTy", ")", ";", "if", "(", "!", "CompTy", "||", "CompTy", "->", "getTag", "(", ")", "!=", "dwarf", "::", "DW_TAG_enumeration_type", ")", "report_fatal_error", "(", "", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "CompTy", "->", "getBaseType", "(", ")", ")", ";", "BTy", "=", "dyn_cast", "<", "DIBasicType", ">", "(", "BaseTy", ")", ";", "}", "uint32_t", "Encoding", "=", "BTy", "->", "getEncoding", "(", ")", ";", "return", "(", "Encoding", "==", "dwarf", "::", "DW_ATE_signed", "||", "Encoding", "==", "dwarf", "::", "DW_ATE_signed_char", ")", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess13", "Func": "GetFieldInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1063, "Length": 390, "Cover_Rate": 0.4540162980209546} {"Template_token": ["", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveUnionAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlign", "(", "CInfo", ".", "Base", "->", "getType", "(", ")", "->", "getPointerElementType", "(", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveStructAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlign", "(", "CInfo", ".", "Base", "->", "getType", "(", ")", "->", "getPointerElementType", "(", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";", "CInfo", ".", "Metadata", "=", "nullptr", ";", "uint64_t", "InfoKind", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "if", "(", "InfoKind", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "InfoKind", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";"], "ground_truth": ["CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";"], "File": "BPFAbstractMemberAccess13", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1064, "Length": 283, "Cover_Rate": 0.4724540901502504} {"Template_token": ["", "if", "(", "!", "Base", ")", "return", "false", ";", "}", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "GlobalVariable", "*", "GV", ";", "if", "(", "GEPGlobals", ".", "find", "(", "AccessKey", ")", "==", "GEPGlobals", ".", "end", "(", ")", ")", "{", "IntegerType", "*", "VarType", ";", "if", "(", "IsInt32Ret", ")", "VarType", "=", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "else", "VarType", "=", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "GV", "=", "new", "GlobalVariable", "(", "M", ",", "VarType", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "AccessKey", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "TypeMeta", ")", ";", "GEPGlobals", "[", "AccessKey", "]", "=", "GV", ";", "}", "else", "{", "GV", "=", "GEPGlobals", "[", "AccessKey", "]", ";", "}", "if", "(", "CInfo", ".", "Kind", "==", "PreserveFieldInfoAI", ")", "{", "LoadInst", "*", "LDInst", ";", "if", "(", "IsInt32Ret", ")", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "else", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "LDInst", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "return", "true", ";", "}", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "auto", "*", "BCInst", "=", "new", "BitCastInst", "(", "Base", ",", "Type", "::", "getInt8PtrTy", "(", "BB", "->", "getContext", "(", ")", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst", ")", ";", "auto", "*", "GEP", "=", "GetElementPtrInst", "::", "Create", "(", "Type", "::", "getInt8Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "BCInst", ",", "LDInst", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "GEP", ")", ";", "auto", "*", "BCInst2", "=", "new", "BitCastInst", "(", "GEP", ",", "Call", "->", "getType", "(", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst2", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "BCInst2", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "BPFAbstractMemberAccess13", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1065, "Length": 364, "Cover_Rate": 0.8035320088300221} {"Template_token": ["", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlign", "(", "getBaseElementType", "(", "Call", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";", "CInfo", ".", "Metadata", "=", "nullptr", ";", "uint64_t", "InfoKind", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "if", "(", "InfoKind", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "InfoKind", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "uint64_t", "Flag", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "if", "(", "Flag", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "if", "(", "Flag", "==", "", ")", "CInfo", ".", "AccessIndex", "=", "", ";", "else", "CInfo", ".", "AccessIndex", "=", "", ";", "return", "true", ";", "}"], "ground_truth": ["if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{"], "File": "BPFAbstractMemberAccess14", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1068, "Length": 221, "Cover_Rate": 0.37777777777777777} {"Template_token": ["", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "uint64_t", "Flag", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "if", "(", "Flag", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "if", "(", "Flag", "==", "", ")", "CInfo", ".", "AccessIndex", "=", "", ";", "else", "CInfo", ".", "AccessIndex", "=", "", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "uint64_t", "Flag", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "if", "(", "Flag", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "if", "(", "Flag", "==", "", ")", "CInfo", ".", "AccessIndex", "=", "", ";", "else", "CInfo", ".", "AccessIndex", "=", "", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess14", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1069, "Length": 188, "Cover_Rate": 0.3213675213675214} {"Template_token": ["", "if", "(", "CInfo", ".", "Kind", "==", "PreserveFieldInfoAI", ")", "{", "LoadInst", "*", "LDInst", ";", "if", "(", "IsInt32Ret", ")", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "else", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "Instruction", "*", "PassThroughInst", "=", "", "(", "M", ",", "BB", ",", "LDInst", ",", "Call", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "PassThroughInst", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "return", "true", ";", "}", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "auto", "*", "BCInst", "=", "new", "BitCastInst", "(", "Base", ",", "Type", "::", "getInt8PtrTy", "(", "BB", "->", "getContext", "(", ")", ")", ")", ";"], "ground_truth": ["BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst", ")", ";"], "File": "BPFAbstractMemberAccess14", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1070, "Length": 159, "Cover_Rate": 0.3285123966942149} {"Template_token": ["", "while", "(", "auto", "*", "DTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "Ty", ")", ")", "{", "if", "(", "!", "SkipDIDerivedTag", "(", "DTy", "->", "getTag", "(", ")", ")", ")", "break", ";"], "ground_truth": ["Ty", "=", "DTy", "->", "getBaseType", "(", ")", ";"], "File": "BPFAbstractMemberAccess15", "Func": "stripQualifiers", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1072, "Length": 37, "Cover_Rate": 0.6851851851851852} {"Template_token": ["", "AbstractMemberAccess", "(", "TargetMachine", "*", "TM", "=", "nullptr", ")", ":", "FunctionPass", "(", "ID", ")", ",", "TM", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess16", "Func": "BPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1073, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "AbstractMemberAccess", "(", "TargetMachine", "*", "TM", "=", "nullptr", ")", ":", "FunctionPass", "(", "ID", ")", ",", "TM", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess16", "Func": "BPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1074, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createAbstractMemberAccess", "(", "TargetMachine", "*", "TM", ")", "{"], "ground_truth": ["return", "new", "AbstractMemberAccess", "(", "TM", ")", ";"], "File": "BPFAbstractMemberAccess16", "Func": "createBPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1075, "Length": 18, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "M", "=", "F", ".", "getParent", "(", ")", ";", "if", "(", "!", "M", ")", "return", "false", ";", "if", "(", "M", "->", "debug_compile_units", "(", ")", ".", "empty", "(", ")", ")", "return", "false", ";", "DL", "=", "&", "M", "->", "getDataLayout", "(", ")", ";", "return", "doTransformation", "(", "F", ")", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess16", "Func": "runOnFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1077, "Length": 47, "Cover_Rate": 0.7121212121212122} {"Template_token": ["", "AbstractMemberAccess", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess17", "Func": "BPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1078, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "AbstractMemberAccess", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess17", "Func": "BPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1079, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "uint32_t", "Kind", ";", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ";"], "ground_truth": ["if", "(", "!", "IsPreserveDIAccessIndexCall", "(", "Call", ",", "Kind", ")", "||", "AIChain", ".", "find", "(", "Call", ")", "!=", "AIChain", ".", "end", "(", ")", ")", "continue", ";"], "File": "BPFAbstractMemberAccess17", "Func": "collectAICallChains", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1080, "Length": 41, "Cover_Rate": 0.44086021505376344} {"Template_token": ["", "AIChain", ".", "clear", "(", ")", ";", "BaseAICalls", ".", "clear", "(", ")", ";", "for", "(", "auto", "&", "BB", ":", "F", ")", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "uint32_t", "Kind", ";", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ";"], "ground_truth": ["if", "(", "!", "IsPreserveDIAccessIndexCall", "(", "Call", ",", "Kind", ")", "||", "AIChain", ".", "find", "(", "Call", ")", "!=", "AIChain", ".", "end", "(", ")", ")", "continue", ";"], "File": "BPFAbstractMemberAccess17", "Func": "collectAICallChains", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1081, "Length": 70, "Cover_Rate": 0.7526881720430108} {"Template_token": ["", "if", "(", "!", "Ty", ")", "return", "nullptr", ";", "TypeName", "=", "Ty", "->", "getName", "(", ")", ";", "}", "uint64_t", "AccessIndex", ";", "uint32_t", "ArgIndex", "=", "(", "Kind", "==", "PreserveUnionAI", ")", "?", "", ":", "", ";", "if", "(", "!", "getAccessIndex", "(", "Call", "->", "getArgOperand", "(", "ArgIndex", ")", ",", "AccessIndex", ")", ")", "return", "nullptr", ";", "AccessIndices", ".", "push_back", "(", "AccessIndex", ")", ";", "if", "(", "TypeName", ".", "size", "(", ")", ")", "{", "TypeNameIndex", "=", "AccessIndices", ".", "size", "(", ")", "-", "", ";", "LastTypeName", "=", "TypeName", ";", "TypeMeta", "=", "MDN", ";", "}", "Kind", "=", "AIChain", "[", "Call", "]", ".", "second", ";", "Call", "=", "AIChain", "[", "Call", "]", ".", "first", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess17", "Func": "computeBaseAndAccessKey", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1082, "Length": 105, "Cover_Rate": 0.3442622950819672} {"Template_token": ["", "Value", "*", "AbstractMemberAccess", "::", "computeBaseAndAccessKey", "(", "CallInst", "*", "Call", ",", "std", "::", "string", "&", "AccessKey", ",", "uint32_t", "Kind", ",", "MDNode", "*", "&", "TypeMeta", ")", "{", "Value", "*", "Base", "=", "nullptr", ";", "std", "::", "vector", "<", "uint64_t", ">", "AccessIndices", ";", "uint64_t", "TypeNameIndex", "=", "", ";", "std", "::", "string", "LastTypeName", ";", "while", "(", "Call", ")", "{", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "std", "::", "string", "TypeName", ";", "MDNode", "*", "MDN", ";", "if", "(", "Kind", "==", "PreserveUnionAI", "||", "Kind", "==", "PreserveStructAI", ")", "{", "MDN", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";"], "ground_truth": ["if", "(", "!", "MDN", ")", "return", "nullptr", ";"], "File": "BPFAbstractMemberAccess17", "Func": "computeBaseAndAccessKey", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1083, "Length": 102, "Cover_Rate": 0.3344262295081967} {"Template_token": ["", "return", "new", "AbstractMemberAccess", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess17", "Func": "createBPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1084, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "const", "ConstantInt", "*", "CV", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "IndexValue", ")", ";", "if", "(", "!", "CV", ")", "return", "false", ";", "AccessIndex", "=", "CV", "->", "getValue", "(", ")", ".", "getZExtValue", "(", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess17", "Func": "getAccessIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1086, "Length": 37, "Cover_Rate": 0.7115384615384616} {"Template_token": ["", "if", "(", "!", "CV", ")", "return", "false", ";"], "ground_truth": ["AccessIndex", "=", "CV", "->", "getValue", "(", ")", ".", "getZExtValue", "(", ")", ";"], "File": "BPFAbstractMemberAccess17", "Func": "getAccessIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1087, "Length": 20, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "Kind", "=", "PreserveArrayAI", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "Kind", "=", "PreserveUnionAI", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "Kind", "=", "PreserveStructAI", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess17", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1088, "Length": 66, "Cover_Rate": 0.559322033898305} {"Template_token": ["", "bool", "AbstractMemberAccess", "::", "IsPreserveDIAccessIndexCall", "(", "const", "CallInst", "*", "Call", ",", "uint32_t", "&", "Kind", ")", "{", "if", "(", "!", "Call", ")", "return", "false", ";", "const", "auto", "*", "GV", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "Call", "->", "getCalledValue", "(", ")", ")", ";", "if", "(", "!", "GV", ")", "return", "false", ";", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "Kind", "=", "PreserveArrayAI", ";", "return", "true", ";", "}"], "ground_truth": ["if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{"], "File": "BPFAbstractMemberAccess17", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1089, "Length": 84, "Cover_Rate": 0.711864406779661} {"Template_token": ["", "Found", "=", "true", ";", "if", "(", "Kind", "==", "PreserveArrayAI", ")", "PreserveArrayIndexCalls", ".", "push_back", "(", "Call", ")", ";", "else", "if", "(", "Kind", "==", "PreserveUnionAI", ")", "PreserveUnionIndexCalls", ".", "push_back", "(", "Call", ")", ";", "else", "PreserveStructIndexCalls", ".", "push_back", "(", "Call", ")", ";", "}", "replaceWithGEP", "(", "PreserveArrayIndexCalls", ",", "", ",", "", ")", ";", "replaceWithGEP", "(", "PreserveStructIndexCalls", ",", "", ",", "", ")", ";", "for", "(", "auto", "Call", ":", "PreserveUnionIndexCalls", ")", "{", "Call", "->", "replaceAllUsesWith", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess17", "Func": "removePreserveAccessIndexIntrinsic", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1090, "Length": 85, "Cover_Rate": 0.46195652173913043} {"Template_token": ["", "bool", "AbstractMemberAccess", "::", "removePreserveAccessIndexIntrinsic", "(", "Module", "&", "M", ")", "{", "std", "::", "vector", "<", "CallInst", "*", ">", "PreserveArrayIndexCalls", ";", "std", "::", "vector", "<", "CallInst", "*", ">", "PreserveUnionIndexCalls", ";", "std", "::", "vector", "<", "CallInst", "*", ">", "PreserveStructIndexCalls", ";", "bool", "Found", "=", "false", ";", "for", "(", "Function", "&", "F", ":", "M", ")", "for", "(", "auto", "&", "BB", ":", "F", ")", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ";", "uint32_t", "Kind", ";", "if", "(", "!", "IsPreserveDIAccessIndexCall", "(", "Call", ",", "Kind", ")", ")", "continue", ";", "Found", "=", "true", ";", "if", "(", "Kind", "==", "PreserveArrayAI", ")", "PreserveArrayIndexCalls", ".", "push_back", "(", "Call", ")", ";", "else", "if", "(", "Kind", "==", "PreserveUnionAI", ")", "PreserveUnionIndexCalls", ".", "push_back", "(", "Call", ")", ";"], "ground_truth": ["else", "PreserveStructIndexCalls", ".", "push_back", "(", "Call", ")", ";"], "File": "BPFAbstractMemberAccess17", "Func": "removePreserveAccessIndexIntrinsic", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1091, "Length": 134, "Cover_Rate": 0.7282608695652174} {"Template_token": ["", "void", "AbstractMemberAccess", "::", "replaceWithGEP", "(", "std", "::", "vector", "<", "CallInst", "*", ">", "&", "CallList", ",", "uint32_t", "DimensionIndex", ",", "uint32_t", "GEPIndex", ")", "{", "for", "(", "auto", "Call", ":", "CallList", ")", "{", "uint32_t", "Dimension", "=", "", ";", "if", "(", "DimensionIndex", ">", "", ")", "Dimension", "=", "cast", "<", "ConstantInt", ">", "(", "Call", "->", "getArgOperand", "(", "DimensionIndex", ")", ")", "->", "getZExtValue", "(", ")", ";", "Constant", "*", "Zero", "=", "ConstantInt", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "Call", "->", "getParent", "(", ")", "->", "getContext", "(", ")", ")", ",", "", ")", ";", "SmallVector", "<", "Value", "*", ",", "", ">", "IdxList", ";", "for", "(", "unsigned", "I", "=", "", ";", "I", "<", "Dimension", ";", "++", "I", ")", "IdxList", ".", "push_back", "(", "Zero", ")", ";", "IdxList", ".", "push_back", "(", "Call", "->", "getArgOperand", "(", "GEPIndex", ")", ")", ";"], "ground_truth": ["auto", "*", "GEP", "=", "GetElementPtrInst", "::", "CreateInBounds", "(", "Call", "->", "getArgOperand", "(", "", ")", ",", "IdxList", ",", "", ",", "Call", ")", ";"], "File": "BPFAbstractMemberAccess17", "Func": "replaceWithGEP", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1092, "Length": 150, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "uint32_t", "Dimension", "=", "", ";", "if", "(", "DimensionIndex", ">", "", ")", "Dimension", "=", "cast", "<", "ConstantInt", ">", "(", "Call", "->", "getArgOperand", "(", "DimensionIndex", ")", ")", "->", "getZExtValue", "(", ")", ";", "Constant", "*", "Zero", "=", "ConstantInt", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "Call", "->", "getParent", "(", ")", "->", "getContext", "(", ")", ")", ",", "", ")", ";", "SmallVector", "<", "Value", "*", ",", "", ">", "IdxList", ";", "for", "(", "unsigned", "I", "=", "", ";", "I", "<", "Dimension", ";", "++", "I", ")", "IdxList", ".", "push_back", "(", "Zero", ")", ";", "IdxList", ".", "push_back", "(", "Call", "->", "getArgOperand", "(", "GEPIndex", ")", ")", ";"], "ground_truth": ["auto", "*", "GEP", "=", "GetElementPtrInst", "::", "CreateInBounds", "(", "Call", "->", "getArgOperand", "(", "", ")", ",", "IdxList", ",", "", ",", "Call", ")", ";"], "File": "BPFAbstractMemberAccess17", "Func": "replaceWithGEP", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1093, "Length": 120, "Cover_Rate": 0.7272727272727273} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "if", "(", "empty", "(", "M", ".", "debug_compile_units", "(", ")", ")", ")", "return", "false", ";", "return", "doTransformation", "(", "M", ")", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess17", "Func": "runOnModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1095, "Length": 30, "Cover_Rate": 0.75} {"Template_token": ["", "void", "AbstractMemberAccess", "::", "traceAICall", "(", "CallInst", "*", "Call", ",", "uint32_t", "Kind", ")", "{", "for", "(", "User", "*", "U", ":", "Call", "->", "users", "(", ")", ")", "{", "Instruction", "*", "Inst", "=", "dyn_cast", "<", "Instruction", ">", "(", "U", ")", ";", "if", "(", "!", "Inst", ")", "continue", ";", "if", "(", "auto", "*", "BI", "=", "dyn_cast", "<", "BitCastInst", ">", "(", "Inst", ")", ")", "{", "traceBitCast", "(", "BI", ",", "Call", ",", "Kind", ")", ";", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "uint32_t", "CIKind", ";"], "ground_truth": ["if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "CIKind", ")", ")", "{"], "File": "BPFAbstractMemberAccess17", "Func": "traceAICall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1096, "Length": 99, "Cover_Rate": 0.5625} {"Template_token": ["", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "uint32_t", "CIKind", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "CIKind", ")", ")", "{", "AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Call", ",", "Kind", ")", ";", "traceAICall", "(", "CI", ",", "CIKind", ")", ";", "}", "else", "{", "BaseAICalls", "[", "Call", "]", "=", "Kind", ";", "}", "}", "else", "if", "(", "auto", "*", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "Inst", ")", ")", "{", "if", "(", "GI", "->", "hasAllZeroIndices", "(", ")", ")", "traceGEP", "(", "GI", ",", "Call", ",", "Kind", ")", ";"], "ground_truth": ["else", "BaseAICalls", "[", "Call", "]", "=", "Kind", ";"], "File": "BPFAbstractMemberAccess17", "Func": "traceAICall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1097, "Length": 104, "Cover_Rate": 0.5909090909090909} {"Template_token": ["", "if", "(", "auto", "*", "BI", "=", "dyn_cast", "<", "BitCastInst", ">", "(", "Inst", ")", ")", "{", "traceBitCast", "(", "BI", ",", "Parent", ",", "Kind", ")", ";", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "uint32_t", "CIKind", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "CIKind", ")", ")", "{", "AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Parent", ",", "Kind", ")", ";", "traceAICall", "(", "CI", ",", "CIKind", ")", ";", "}", "else", "{", "BaseAICalls", "[", "Parent", "]", "=", "Kind", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess17", "Func": "traceBitCast", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1098, "Length": 86, "Cover_Rate": 0.4777777777777778} {"Template_token": ["", "void", "AbstractMemberAccess", "::", "traceGEP", "(", "GetElementPtrInst", "*", "GEP", ",", "CallInst", "*", "Parent", ",", "uint32_t", "Kind", ")", "{", "for", "(", "User", "*", "U", ":", "GEP", "->", "users", "(", ")", ")", "{", "Instruction", "*", "Inst", "=", "dyn_cast", "<", "Instruction", ">", "(", "U", ")", ";", "if", "(", "!", "Inst", ")", "continue", ";", "if", "(", "auto", "*", "BI", "=", "dyn_cast", "<", "BitCastInst", ">", "(", "Inst", ")", ")", "{", "traceBitCast", "(", "BI", ",", "Parent", ",", "Kind", ")", ";", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "uint32_t", "CIKind", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "CIKind", ")", ")", "{", "AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Parent", ",", "Kind", ")", ";", "traceAICall", "(", "CI", ",", "CIKind", ")", ";", "}", "else", "{"], "ground_truth": ["BaseAICalls", "[", "Parent", "]", "=", "Kind", ";"], "File": "BPFAbstractMemberAccess17", "Func": "traceGEP", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1099, "Length": 134, "Cover_Rate": 0.7444444444444445} {"Template_token": ["", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "uint32_t", "CIKind", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "CIKind", ")", ")", "{", "AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Parent", ",", "Kind", ")", ";", "traceAICall", "(", "CI", ",", "CIKind", ")", ";", "}", "else", "{", "BaseAICalls", "[", "Parent", "]", "=", "Kind", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess17", "Func": "traceGEP", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1100, "Length": 62, "Cover_Rate": 0.34444444444444444} {"Template_token": ["", "std", "::", "string", "AccessKey", ";", "MDNode", "*", "TypeMeta", "=", "nullptr", ";", "Value", "*", "Base", "=", "computeBaseAndAccessKey", "(", "Call", ",", "AccessKey", ",", "Kind", ",", "TypeMeta", ")", ";", "if", "(", "!", "Base", ")", "return", "false", ";", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "GlobalVariable", "*", "GV", ";", "if", "(", "GEPGlobals", ".", "find", "(", "AccessKey", ")", "==", "GEPGlobals", ".", "end", "(", ")", ")", "{", "GV", "=", "new", "GlobalVariable", "(", "M", ",", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "AccessKey", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "if", "(", "TypeMeta", ")", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "TypeMeta", ")", ";", "GEPGlobals", "[", "AccessKey", "]", "=", "GV", ";", "}", "else", "{"], "ground_truth": ["GV", "=", "GEPGlobals", "[", "AccessKey", "]", ";"], "File": "BPFAbstractMemberAccess17", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1101, "Length": 132, "Cover_Rate": 0.41379310344827586} {"Template_token": ["", "for", "(", "auto", "&", "BB", ":", "F", ")", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "uint32_t", "Kind", ";", "const", "MDNode", "*", "TypeMeta", ";", "uint32_t", "AccessIndex", ";", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ";", "if", "(", "!", "IsPreserveDIAccessIndexCall", "(", "Call", ",", "Kind", ",", "TypeMeta", ",", "AccessIndex", ")", "||", "AIChain", ".", "find", "(", "Call", ")", "!=", "AIChain", ".", "end", "(", ")", ")", "continue", ";", "traceAICall", "(", "Call", ",", "Kind", ",", "TypeMeta", ",", "AccessIndex", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess19", "Func": "collectAICallChains", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1102, "Length": 83, "Cover_Rate": 0.7614678899082569} {"Template_token": ["", "if", "(", "!", "GV", ")", "return", "false", ";", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "Kind", "=", "PreserveArrayAI", ";", "TypeMeta", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "TypeMeta", ")", "report_fatal_error", "(", "", ")", ";", "AccessIndex", "=", "cast", "<", "ConstantInt", ">", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "return", "true", ";", "}"], "ground_truth": ["if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{"], "File": "BPFAbstractMemberAccess19", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1103, "Length": 84, "Cover_Rate": 0.3387096774193548} {"Template_token": ["", "const", "DIType", "*", "PType", "=", "stripQualifiers", "(", "cast", "<", "DIType", ">", "(", "ParentType", ")", ")", ";", "const", "DIType", "*", "CType", "=", "stripQualifiers", "(", "cast", "<", "DIType", ">", "(", "ChildType", ")", ")", ";", "if", "(", "isa", "<", "DIDerivedType", ">", "(", "CType", ")", ")", "return", "false", ";", "if", "(", "const", "auto", "*", "PtrTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "PType", ")", ")", "{", "if", "(", "PtrTy", "->", "getTag", "(", ")", "!=", "dwarf", "::", "DW_TAG_pointer_type", ")", "return", "false", ";", "return", "stripQualifiers", "(", "PtrTy", "->", "getBaseType", "(", ")", ")", "==", "CType", ";", "}", "const", "auto", "*", "PTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "PType", ")", ";", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "CType", ")", ";", "assert", "(", "PTy", "&&", "CTy", "&&", "", ")", ";"], "ground_truth": ["uint32_t", "PTyTag", "=", "PTy", "->", "getTag", "(", ")", ";"], "File": "BPFAbstractMemberAccess19", "Func": "IsValidAIChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1104, "Length": 133, "Cover_Rate": 0.47330960854092524} {"Template_token": ["", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "uint32_t", "CIKind", ";", "const", "MDNode", "*", "ChildMeta", ";", "uint32_t", "ChildAI", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "CIKind", ",", "ChildMeta", ",", "ChildAI", ")", "&&", "IsValidAIChain", "(", "ParentMeta", ",", "ParentAI", ",", "ChildMeta", ")", ")", "{", "AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Call", ",", "Kind", ")", ";", "traceAICall", "(", "CI", ",", "CIKind", ",", "ChildMeta", ",", "ChildAI", ")", ";", "}", "else", "{", "BaseAICalls", "[", "Call", "]", "=", "Kind", ";", "}"], "ground_truth": ["}", "else", "if", "(", "auto", "*", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "Inst", ")", ")", "{"], "File": "BPFAbstractMemberAccess19", "Func": "traceAICall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1105, "Length": 104, "Cover_Rate": 0.4792626728110599} {"Template_token": ["", "for", "(", "User", "*", "U", ":", "Call", "->", "users", "(", ")", ")", "{", "Instruction", "*", "Inst", "=", "dyn_cast", "<", "Instruction", ">", "(", "U", ")", ";", "if", "(", "!", "Inst", ")", "continue", ";", "if", "(", "auto", "*", "BI", "=", "dyn_cast", "<", "BitCastInst", ">", "(", "Inst", ")", ")", "{", "traceBitCast", "(", "BI", ",", "Call", ",", "Kind", ",", "ParentMeta", ",", "ParentAI", ")", ";", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "uint32_t", "CIKind", ";", "const", "MDNode", "*", "ChildMeta", ";", "uint32_t", "ChildAI", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "CIKind", ",", "ChildMeta", ",", "ChildAI", ")", "&&", "IsValidAIChain", "(", "ParentMeta", ",", "ParentAI", ",", "ChildMeta", ")", ")", "{", "AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Call", ",", "Kind", ")", ";", "traceAICall", "(", "CI", ",", "CIKind", ",", "ChildMeta", ",", "ChildAI", ")", ";", "}", "else", "{", "BaseAICalls", "[", "Call", "]", "=", "Kind", ";", "}"], "ground_truth": ["}", "else", "if", "(", "auto", "*", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "Inst", ")", ")", "{"], "File": "BPFAbstractMemberAccess19", "Func": "traceAICall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1106, "Length": 164, "Cover_Rate": 0.7557603686635944} {"Template_token": ["", "uint32_t", "ChildAI", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "CIKind", ",", "ChildMeta", ",", "ChildAI", ")", "&&", "IsValidAIChain", "(", "ParentMeta", ",", "ParentAI", ",", "ChildMeta", ")", ")", "{", "AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Parent", ",", "Kind", ")", ";", "traceAICall", "(", "CI", ",", "CIKind", ",", "ChildMeta", ",", "ChildAI", ")", ";", "}", "else", "{", "BaseAICalls", "[", "Parent", "]", "=", "Kind", ";", "}", "}", "else", "if", "(", "auto", "*", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "Inst", ")", ")", "{", "if", "(", "GI", "->", "hasAllZeroIndices", "(", ")", ")", "traceGEP", "(", "GI", ",", "Parent", ",", "Kind", ",", "ParentMeta", ",", "ParentAI", ")", ";", "else", "BaseAICalls", "[", "Parent", "]", "=", "Kind", ";", "}"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess19", "Func": "traceBitCast", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1107, "Length": 110, "Cover_Rate": 0.497737556561086} {"Template_token": ["", "if", "(", "!", "Inst", ")", "continue", ";", "if", "(", "auto", "*", "BI", "=", "dyn_cast", "<", "BitCastInst", ">", "(", "Inst", ")", ")", "{", "traceBitCast", "(", "BI", ",", "Parent", ",", "Kind", ",", "ParentMeta", ",", "ParentAI", ")", ";", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "uint32_t", "CIKind", ";", "const", "MDNode", "*", "ChildMeta", ";", "uint32_t", "ChildAI", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "CIKind", ",", "ChildMeta", ",", "ChildAI", ")", "&&", "IsValidAIChain", "(", "ParentMeta", ",", "ParentAI", ",", "ChildMeta", ")", ")", "{", "AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Parent", ",", "Kind", ")", ";", "traceAICall", "(", "CI", ",", "CIKind", ",", "ChildMeta", ",", "ChildAI", ")", ";", "}", "else", "{", "BaseAICalls", "[", "Parent", "]", "=", "Kind", ";", "}", "}", "else", "if", "(", "auto", "*", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "Inst", ")", ")", "{", "if", "(", "GI", "->", "hasAllZeroIndices", "(", ")", ")", "traceGEP", "(", "GI", ",", "Parent", ",", "Kind", ",", "ParentMeta", ",", "ParentAI", ")", ";", "else", "BaseAICalls", "[", "Parent", "]", "=", "Kind", ";", "}", "}"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess19", "Func": "traceBitCast", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1108, "Length": 171, "Cover_Rate": 0.7737556561085973} {"Template_token": ["", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "uint32_t", "CIKind", ";", "const", "MDNode", "*", "ChildMeta", ";", "uint32_t", "ChildAI", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "CIKind", ",", "ChildMeta", ",", "ChildAI", ")", "&&", "IsValidAIChain", "(", "ParentMeta", ",", "ParentAI", ",", "ChildMeta", ")", ")", "{", "AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Parent", ",", "Kind", ")", ";", "traceAICall", "(", "CI", ",", "CIKind", ",", "ChildMeta", ",", "ChildAI", ")", ";", "}", "else", "{", "BaseAICalls", "[", "Parent", "]", "=", "Kind", ";", "}"], "ground_truth": ["}", "else", "if", "(", "auto", "*", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "Inst", ")", ")", "{"], "File": "BPFAbstractMemberAccess19", "Func": "traceGEP", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1109, "Length": 104, "Cover_Rate": 0.47058823529411764} {"Template_token": ["", "Value", "*", "Base", "=", "computeBaseAndAccessKey", "(", "Call", ",", "AccessKey", ",", "Kind", ",", "TypeMeta", ")", ";", "if", "(", "!", "Base", ")", "return", "false", ";", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "GlobalVariable", "*", "GV", ";", "if", "(", "GEPGlobals", ".", "find", "(", "AccessKey", ")", "==", "GEPGlobals", ".", "end", "(", ")", ")", "{", "GV", "=", "new", "GlobalVariable", "(", "M", ",", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "AccessKey", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "TypeMeta", ")", ";", "GEPGlobals", "[", "AccessKey", "]", "=", "GV", ";", "}", "else", "{", "GV", "=", "GEPGlobals", "[", "AccessKey", "]", ";", "}", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "LDInst", ")", ";", "auto", "*", "BCInst", "=", "new", "BitCastInst", "(", "Base", ",", "Type", "::", "getInt8PtrTy", "(", "BB", "->", "getContext", "(", ")", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst", ")", ";", "auto", "*", "GEP", "=", "GetElementPtrInst", "::", "Create", "(", "Type", "::", "getInt8Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "BCInst", ",", "LDInst", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "GEP", ")", ";", "auto", "*", "BCInst2", "=", "new", "BitCastInst", "(", "GEP", ",", "Call", "->", "getType", "(", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst2", ")", ";"], "ground_truth": ["Call", "->", "replaceAllUsesWith", "(", "BCInst2", ")", ";"], "File": "BPFAbstractMemberAccess19", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1110, "Length": 275, "Cover_Rate": 0.8785942492012779} {"Template_token": ["", "AbstractMemberAccess", "(", "TargetMachine", "*", "TM", ")", ":", "TM", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess1", "Func": "BPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1111, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "AbstractMemberAccess", "(", "TargetMachine", "*", "TM", ")", ":", "TM", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess1", "Func": "BPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1112, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "AbstractMemberAccessLegacyPass", "(", "TargetMachine", "*", "TM", "=", "nullptr", ")", ":", "FunctionPass", "(", "ID", ")", ",", "TM", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess1", "Func": "BPFAbstractMemberAccessLegacyPass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1113, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "AbstractMemberAccessLegacyPass", "(", "TargetMachine", "*", "TM", "=", "nullptr", ")", ":", "FunctionPass", "(", "ID", ")", ",", "TM", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess1", "Func": "BPFAbstractMemberAccessLegacyPass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1114, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "AIChain", ".", "clear", "(", ")", ";", "BaseAICalls", ".", "clear", "(", ")", ";", "for", "(", "auto", "&", "BB", ":", "F", ")", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "CallInfo", "CInfo", ";", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ";", "if", "(", "!", "IsPreserveDIAccessIndexCall", "(", "Call", ",", "CInfo", ")", "||", "AIChain", ".", "find", "(", "Call", ")", "!=", "AIChain", ".", "end", "(", ")", ")", "continue", ";", "traceAICall", "(", "Call", ",", "CInfo", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess1", "Func": "collectAICallChains", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1115, "Length": 79, "Cover_Rate": 0.8876404494382022} {"Template_token": ["", "IsInt32Ret", "=", "false", ";", "const", "auto", "*", "CE", "=", "cast", "<", "ConstantExpr", ">", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "const", "GlobalVariable", "*", "GV", "=", "cast", "<", "GlobalVariable", ">", "(", "CE", "->", "getOperand", "(", "", ")", ")", ";", "assert", "(", "GV", "->", "hasInitializer", "(", ")", ")", ";", "const", "ConstantDataArray", "*", "DA", "=", "cast", "<", "ConstantDataArray", ">", "(", "GV", "->", "getInitializer", "(", ")", ")", ";", "assert", "(", "DA", "->", "isString", "(", ")", ")", ";", "StringRef", "ValueStr", "=", "DA", "->", "getAsString", "(", ")", ";", "size_t", "Separator", "=", "ValueStr", ".", "find_first_of", "(", "':'", ")", ";", "StringRef", "EnumeratorStr", "=", "ValueStr", ".", "substr", "(", "", ",", "Separator", ")", ";", "DIType", "*", "BaseTy", "=", "stripQualifiers", "(", "Ty", ",", "true", ")", ";", "const", "auto", "*", "CTy", "=", "cast", "<", "DICompositeType", ">", "(", "BaseTy", ")", ";", "assert", "(", "CTy", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_enumeration_type", ")", ";", "int", "EnumIndex", "=", "", ";", "for", "(", "const", "auto", "Element", ":", "CTy", "->", "getElements", "(", ")", ")", "{", "const", "auto", "*", "Enum", "=", "cast", "<", "DIEnumerator", ">", "(", "Element", ")", ";", "if", "(", "Enum", "->", "getName", "(", ")", "==", "EnumeratorStr", ")", "{", "AccessStr", "=", "std", "::", "to_string", "(", "EnumIndex", ")", ";", "break", ";", "}", "EnumIndex", "++", ";", "}", "if", "(", "CInfo", ".", "AccessIndex", "==", "", ")", "{", "StringRef", "EValueStr", "=", "ValueStr", ".", "substr", "(", "Separator", "+", "", ")", ";", "PatchImm", "=", "std", "::", "stoll", "(", "std", "::", "string", "(", "EValueStr", ")", ")", ";", "}", "else", "{", "PatchImm", "=", "", ";", "}", "}", "AccessKey", "=", "", "+", "Ty", "->", "getName", "(", ")", ".", "str", "(", ")", "+", "", "+", "std", "::", "to_string", "(", "CInfo", ".", "AccessIndex", ")", "+", "std", "::", "string", "(", "", ")", "+", "std", "::", "to_string", "(", "PatchImm", ")", "+", "std", "::", "string", "(", "", ")", "+", "AccessStr", ";"], "ground_truth": ["return", "Ty", ";"], "File": "BPFAbstractMemberAccess1", "Func": "computeAccessKey", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1116, "Length": 296, "Cover_Rate": 0.7047619047619048} {"Template_token": ["", "CallInfoStack", "CallStack", ";", "while", "(", "Call", ")", "{", "CallStack", ".", "push", "(", "std", "::", "make_pair", "(", "Call", ",", "CInfo", ")", ")", ";", "CInfo", "=", "AIChain", "[", "Call", "]", ".", "second", ";", "Call", "=", "AIChain", "[", "Call", "]", ".", "first", ";", "}", "uint32_t", "FirstIndex", "=", "", ";", "uint32_t", "PatchImm", "=", "", ";", "uint32_t", "InfoKind", "=", "", ";", "while", "(", "CallStack", ".", "size", "(", ")", ")", "{", "auto", "StackElem", "=", "CallStack", ".", "top", "(", ")", ";", "Call", "=", "StackElem", ".", "first", ";", "CInfo", "=", "StackElem", ".", "second", ";", "if", "(", "!", "Base", ")", "Base", "=", "CInfo", ".", "Base", ";", "DIType", "*", "PossibleTypeDef", "=", "stripQualifiers", "(", "cast", "<", "DIType", ">", "(", "CInfo", ".", "Metadata", ")", ",", "false", ")", ";", "DIType", "*", "Ty", "=", "stripQualifiers", "(", "PossibleTypeDef", ")", ";", "if", "(", "CInfo", ".", "Kind", "==", "PreserveUnionAI", "||", "CInfo", ".", "Kind", "==", "PreserveStructAI", ")", "{", "TypeName", "=", "std", "::", "string", "(", "PossibleTypeDef", "->", "getName", "(", ")", ")", ";", "TypeMeta", "=", "PossibleTypeDef", ";", "PatchImm", "+=", "FirstIndex", "*", "(", "Ty", "->", "getSizeInBits", "(", ")", ">>", "", ")", ";", "break", ";", "}", "assert", "(", "CInfo", ".", "Kind", "==", "PreserveArrayAI", ")", ";", "CallStack", ".", "pop", "(", ")", ";", "uint64_t", "AccessIndex", "=", "CInfo", ".", "AccessIndex", ";", "DIType", "*", "BaseTy", "=", "nullptr", ";", "bool", "CheckElemType", "=", "false", ";", "if", "(", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "Ty", ")", ")", "{", "assert", "(", "CTy", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_array_type", ")", ";", "FirstIndex", "+=", "AccessIndex", "*", "calcArraySize", "(", "CTy", ",", "", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "CheckElemType", "=", "CTy", "->", "getElements", "(", ")", ".", "size", "(", ")", "==", "", ";", "}", "else", "{", "auto", "*", "DTy", "=", "cast", "<", "DIDerivedType", ">", "(", "Ty", ")", ";", "assert", "(", "DTy", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_pointer_type", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "DTy", "->", "getBaseType", "(", ")", ")", ";", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "BaseTy", ")", ";", "if", "(", "!", "CTy", ")", "{", "CheckElemType", "=", "true", ";", "}", "else", "if", "(", "CTy", "->", "getTag", "(", ")", "!=", "dwarf", "::", "DW_TAG_array_type", ")", "{", "FirstIndex", "+=", "AccessIndex", ";", "CheckElemType", "=", "true", ";"], "ground_truth": ["}", "else", "{"], "File": "BPFAbstractMemberAccess1", "Func": "computeBaseAndAccessKey", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1117, "Length": 357, "Cover_Rate": 0.473474801061008} {"Template_token": ["", "Value", "*", "Base", "=", "nullptr", ";", "std", "::", "string", "TypeName", ";", "CallInfoStack", "CallStack", ";", "while", "(", "Call", ")", "{", "CallStack", ".", "push", "(", "std", "::", "make_pair", "(", "Call", ",", "CInfo", ")", ")", ";", "CInfo", "=", "AIChain", "[", "Call", "]", ".", "second", ";", "Call", "=", "AIChain", "[", "Call", "]", ".", "first", ";", "}", "uint32_t", "FirstIndex", "=", "", ";", "uint32_t", "PatchImm", "=", "", ";", "uint32_t", "InfoKind", "=", "", ";", "while", "(", "CallStack", ".", "size", "(", ")", ")", "{", "auto", "StackElem", "=", "CallStack", ".", "top", "(", ")", ";", "Call", "=", "StackElem", ".", "first", ";", "CInfo", "=", "StackElem", ".", "second", ";", "if", "(", "!", "Base", ")", "Base", "=", "CInfo", ".", "Base", ";", "DIType", "*", "PossibleTypeDef", "=", "stripQualifiers", "(", "cast", "<", "DIType", ">", "(", "CInfo", ".", "Metadata", ")", ",", "false", ")", ";", "DIType", "*", "Ty", "=", "stripQualifiers", "(", "PossibleTypeDef", ")", ";", "if", "(", "CInfo", ".", "Kind", "==", "PreserveUnionAI", "||", "CInfo", ".", "Kind", "==", "PreserveStructAI", ")", "{", "TypeName", "=", "std", "::", "string", "(", "PossibleTypeDef", "->", "getName", "(", ")", ")", ";", "TypeMeta", "=", "PossibleTypeDef", ";", "PatchImm", "+=", "FirstIndex", "*", "(", "Ty", "->", "getSizeInBits", "(", ")", ">>", "", ")", ";", "break", ";", "}", "assert", "(", "CInfo", ".", "Kind", "==", "PreserveArrayAI", ")", ";", "CallStack", ".", "pop", "(", ")", ";", "uint64_t", "AccessIndex", "=", "CInfo", ".", "AccessIndex", ";", "DIType", "*", "BaseTy", "=", "nullptr", ";", "bool", "CheckElemType", "=", "false", ";", "if", "(", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "Ty", ")", ")", "{", "assert", "(", "CTy", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_array_type", ")", ";", "FirstIndex", "+=", "AccessIndex", "*", "calcArraySize", "(", "CTy", ",", "", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "CheckElemType", "=", "CTy", "->", "getElements", "(", ")", ".", "size", "(", ")", "==", "", ";", "}", "else", "{"], "ground_truth": ["auto", "*", "DTy", "=", "cast", "<", "DIDerivedType", ">", "(", "Ty", ")", ";"], "File": "BPFAbstractMemberAccess1", "Func": "computeBaseAndAccessKey", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1118, "Length": 298, "Cover_Rate": 0.3952254641909814} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createAbstractMemberAccess", "(", "TargetMachine", "*", "TM", ")", "{", "return", "new", "AbstractMemberAccessLegacyPass", "(", "TM", ")", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess1", "Func": "createBPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1119, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "return", "new", "AbstractMemberAccessLegacyPass", "(", "TM", ")", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess1", "Func": "createBPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1120, "Length": 8, "Cover_Rate": 0.42105263157894735} {"Template_token": ["", "collectAICallChains", "(", "F", ")", ";", "for", "(", "auto", "&", "C", ":", "BaseAICalls", ")", "Transformed", "=", "transformGEPChain", "(", "C", ".", "first", ",", "C", ".", "second", ")", "||", "Transformed", ";", "return", "removePreserveAccessIndexIntrinsic", "(", "F", ")", "||", "Transformed", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess1", "Func": "doTransformation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1121, "Length": 37, "Cover_Rate": 0.7115384615384616} {"Template_token": ["", "collectAICallChains", "(", "F", ")", ";", "for", "(", "auto", "&", "C", ":", "BaseAICalls", ")", "Transformed", "=", "transformGEPChain", "(", "C", ".", "first", ",", "C", ".", "second", ")", "||", "Transformed", ";", "return", "removePreserveAccessIndexIntrinsic", "(", "F", ")", "||", "Transformed", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess1", "Func": "doTransformation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1122, "Length": 37, "Cover_Rate": 0.7115384615384616} {"Template_token": ["", "}", "uint32_t", "AlignBits", "=", "RecordAlignment", ".", "value", "(", ")", "*", "", ";", "if", "(", "MemberBitSize", ">", "AlignBits", ")", "report_fatal_error", "(", "", "", ")", ";", "StartBitOffset", "=", "MemberBitOffset", "&", "~", "(", "AlignBits", "-", "", ")", ";"], "ground_truth": ["if", "(", "(", "StartBitOffset", "+", "AlignBits", ")", "<", "(", "MemberBitOffset", "+", "MemberBitSize", ")", ")", "report_fatal_error", "(", "", "", ")", ";"], "File": "BPFAbstractMemberAccess1", "Func": "GetStorageBitRange", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1126, "Length": 55, "Cover_Rate": 0.4074074074074074} {"Template_token": ["", "Constant", "*", "SeqNumVal", "=", "ConstantInt", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "", "++", ")", ";", "auto", "*", "NewInst", "=", "CallInst", "::", "Create", "(", "Fn", ",", "{", "SeqNumVal", ",", "Input", "}", ")", ";"], "ground_truth": ["BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Before", "->", "getIterator", "(", ")", ",", "NewInst", ")", ";"], "File": "BPFAbstractMemberAccess1", "Func": "insertPassThrough", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1127, "Length": 57, "Cover_Rate": 0.4956521739130435} {"Template_token": ["", "Function", "*", "Fn", "=", "", "(", "M", ",", "", ",", "{", "Input", "->", "getType", "(", ")", ",", "Input", "->", "getType", "(", ")", "}", ")", ";"], "ground_truth": ["Constant", "*", "SeqNumVal", "=", "ConstantInt", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "", "++", ")", ";"], "File": "BPFAbstractMemberAccess1", "Func": "insertPassThrough", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1128, "Length": 48, "Cover_Rate": 0.41739130434782606} {"Template_token": ["", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "uint64_t", "Flag", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "if", "(", "Flag", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "if", "(", "Flag", "==", "", ")", "CInfo", ".", "AccessIndex", "=", "", ";", "else", "CInfo", ".", "AccessIndex", "=", "", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "uint64_t", "Flag", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "if", "(", "Flag", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "if", "(", "Flag", "==", "", ")", "CInfo", ".", "AccessIndex", "=", "", ";", "else", "CInfo", ".", "AccessIndex", "=", "", ";", "return", "true", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess1", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1129, "Length": 192, "Cover_Rate": 0.3404255319148936} {"Template_token": ["", "const", "auto", "*", "GV", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "Call", "->", "getCalledOperand", "(", ")", ")", ";", "if", "(", "!", "GV", ")", "return", "false", ";", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveArrayAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlign", "(", "getBaseElementType", "(", "Call", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveUnionAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveStructAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlign", "(", "getBaseElementType", "(", "Call", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";", "CInfo", ".", "Metadata", "=", "nullptr", ";", "uint64_t", "InfoKind", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "if", "(", "InfoKind", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "InfoKind", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";"], "ground_truth": ["if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";"], "File": "BPFAbstractMemberAccess1", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1130, "Length": 380, "Cover_Rate": 0.6737588652482269} {"Template_token": ["", "std", "::", "vector", "<", "CallInst", "*", ">", "PreserveArrayIndexCalls", ";", "std", "::", "vector", "<", "CallInst", "*", ">", "PreserveUnionIndexCalls", ";", "std", "::", "vector", "<", "CallInst", "*", ">", "PreserveStructIndexCalls", ";", "bool", "Found", "=", "false", ";", "for", "(", "auto", "&", "BB", ":", "F", ")", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ";", "CallInfo", "CInfo", ";", "if", "(", "!", "IsPreserveDIAccessIndexCall", "(", "Call", ",", "CInfo", ")", ")", "continue", ";"], "ground_truth": ["Found", "=", "true", ";"], "File": "BPFAbstractMemberAccess1", "Func": "removePreserveAccessIndexIntrinsic", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1131, "Length": 81, "Cover_Rate": 0.45} {"Template_token": ["", "PreservedAnalyses", "AbstractMemberAccessPass", "::", "run", "(", "Function", "&", "F", ",", "FunctionAnalysisManager", "&", "AM", ")", "{"], "ground_truth": ["return", "AbstractMemberAccess", "(", "TM", ")", ".", "run", "(", "F", ")", "?", "PreservedAnalyses", "::", "none", "(", ")", ":", "PreservedAnalyses", "::", "all", "(", ")", ";"], "File": "BPFAbstractMemberAccess1", "Func": "run", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1133, "Length": 37, "Cover_Rate": 0.9736842105263158} {"Template_token": ["", "bool", "runOnFunction", "(", "Function", "&", "F", ")", "override", "{"], "ground_truth": ["return", "AbstractMemberAccess", "(", "TM", ")", ".", "run", "(", "F", ")", ";"], "File": "BPFAbstractMemberAccess1", "Func": "runOnFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1134, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "GEPGlobals", "[", "AccessKey", "]", "=", "GV", ";", "}", "else", "{", "GV", "=", "GEPGlobals", "[", "AccessKey", "]", ";", "}", "if", "(", "CInfo", ".", "Kind", "==", "PreserveFieldInfoAI", ")", "{", "LoadInst", "*", "LDInst", ";", "if", "(", "IsInt32Ret", ")", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "else", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "Instruction", "*", "PassThroughInst", "=", "", "(", "M", ",", "BB", ",", "LDInst", ",", "Call", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "PassThroughInst", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "return", "true", ";", "}", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "auto", "*", "BCInst", "=", "new", "BitCastInst", "(", "Base", ",", "Type", "::", "getInt8PtrTy", "(", "BB", "->", "getContext", "(", ")", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst", ")", ";", "auto", "*", "GEP", "=", "GetElementPtrInst", "::", "Create", "(", "Type", "::", "getInt8Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "BCInst", ",", "LDInst", ")", ";"], "ground_truth": ["BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "GEP", ")", ";"], "File": "BPFAbstractMemberAccess1", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1136, "Length": 218, "Cover_Rate": 0.45041322314049587} {"Template_token": ["", "}", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "GlobalVariable", "*", "GV", ";", "if", "(", "GEPGlobals", ".", "find", "(", "AccessKey", ")", "==", "GEPGlobals", ".", "end", "(", ")", ")", "{", "IntegerType", "*", "VarType", ";", "if", "(", "IsInt32Ret", ")", "VarType", "=", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "else", "VarType", "=", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "GV", "=", "new", "GlobalVariable", "(", "*", "M", ",", "VarType", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "nullptr", ",", "AccessKey", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "TypeMeta", ")", ";", "GEPGlobals", "[", "AccessKey", "]", "=", "GV", ";", "}", "else", "{", "GV", "=", "GEPGlobals", "[", "AccessKey", "]", ";", "}", "if", "(", "CInfo", ".", "Kind", "==", "PreserveFieldInfoAI", ")", "{", "LoadInst", "*", "LDInst", ";", "if", "(", "IsInt32Ret", ")", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "else", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "Instruction", "*", "PassThroughInst", "=", "", "(", "M", ",", "BB", ",", "LDInst", ",", "Call", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "PassThroughInst", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "return", "true", ";", "}", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";"], "ground_truth": ["auto", "*", "BCInst", "=", "new", "BitCastInst", "(", "Base", ",", "Type", "::", "getInt8PtrTy", "(", "BB", "->", "getContext", "(", ")", ")", ")", ";"], "File": "BPFAbstractMemberAccess1", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1137, "Length": 265, "Cover_Rate": 0.5475206611570248} {"Template_token": ["", "}", "assert", "(", "CInfo", ".", "Kind", "==", "PreserveArrayAI", ")", ";", "CallStack", ".", "pop", "(", ")", ";", "uint64_t", "AccessIndex", "=", "CInfo", ".", "AccessIndex", ";", "DIType", "*", "BaseTy", "=", "nullptr", ";", "bool", "CheckElemType", "=", "false", ";", "if", "(", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "Ty", ")", ")", "{", "assert", "(", "CTy", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_array_type", ")", ";", "FirstIndex", "+=", "AccessIndex", "*", "calcArraySize", "(", "CTy", ",", "", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "CheckElemType", "=", "CTy", "->", "getElements", "(", ")", ".", "size", "(", ")", "==", "", ";", "}", "else", "{", "auto", "*", "DTy", "=", "cast", "<", "DIDerivedType", ">", "(", "Ty", ")", ";", "assert", "(", "DTy", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_pointer_type", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "DTy", "->", "getBaseType", "(", ")", ")", ";", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "BaseTy", ")", ";", "if", "(", "!", "CTy", ")", "{", "CheckElemType", "=", "true", ";", "}", "else", "if", "(", "CTy", "->", "getTag", "(", ")", "!=", "dwarf", "::", "DW_TAG_array_type", ")", "{", "FirstIndex", "+=", "AccessIndex", ";", "CheckElemType", "=", "true", ";", "}", "else", "{", "FirstIndex", "+=", "AccessIndex", "*", "calcArraySize", "(", "CTy", ",", "", ")", ";", "}", "}", "if", "(", "CheckElemType", ")", "{", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "BaseTy", ")", ";", "if", "(", "!", "CTy", ")", "{", "if", "(", "HasPreserveFieldInfoCall", "(", "CallStack", ")", ")", "report_fatal_error", "(", "", ")", ";", "return", "nullptr", ";", "}"], "ground_truth": ["unsigned", "CTag", "=", "CTy", "->", "getTag", "(", ")", ";"], "File": "BPFAbstractMemberAccess20", "Func": "computeBaseAndAccessKey", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1138, "Length": 245, "Cover_Rate": 0.3465346534653465} {"Template_token": ["", "}", "if", "(", "InfoKind", "==", "", ")", "{", "const", "DIType", "*", "BaseTy", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "{", "if", "(", "CTy", "->", "getElements", "(", ")", ".", "size", "(", ")", "!=", "", ")", "report_fatal_error", "(", "", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "}", "else", "{", "auto", "*", "MemberTy", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "AccessIndex", "]", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "MemberTy", "->", "getBaseType", "(", ")", ")", ";", "}", "const", "auto", "*", "BTy", "=", "dyn_cast", "<", "DIBasicType", ">", "(", "BaseTy", ")", ";", "while", "(", "!", "BTy", ")", "{", "const", "auto", "*", "CompTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "BaseTy", ")", ";", "if", "(", "!", "CompTy", "||", "CompTy", "->", "getTag", "(", ")", "!=", "dwarf", "::", "DW_TAG_enumeration_type", ")", "report_fatal_error", "(", "", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "CompTy", "->", "getBaseType", "(", ")", ")", ";", "BTy", "=", "dyn_cast", "<", "DIBasicType", ">", "(", "BaseTy", ")", ";", "}", "uint32_t", "Encoding", "=", "BTy", "->", "getEncoding", "(", ")", ";", "return", "(", "Encoding", "==", "dwarf", "::", "DW_ATE_signed", "||", "Encoding", "==", "dwarf", "::", "DW_ATE_signed_char", ")", ";", "}", "if", "(", "InfoKind", "==", "", ")", "{", "const", "Triple", "&", "Triple", "=", "TM", "->", "getTargetTriple", "(", ")", ";", "DIDerivedType", "*", "MemberTy", "=", "nullptr", ";", "bool", "IsBitField", "=", "false", ";", "uint32_t", "SizeInBits", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "{", "auto", "*", "EltTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "SizeInBits", "=", "calcArraySize", "(", "CTy", ",", "", ")", "*", "EltTy", "->", "getSizeInBits", "(", ")", ";", "}", "else", "{", "MemberTy", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "AccessIndex", "]", ")", ";", "SizeInBits", "=", "MemberTy", "->", "getSizeInBits", "(", ")", ";", "IsBitField", "=", "MemberTy", "->", "isBitField", "(", ")", ";", "}", "if", "(", "!", "IsBitField", ")", "{", "if", "(", "SizeInBits", ">", "", ")", "report_fatal_error", "(", "", ")", ";", "return", "", "-", "SizeInBits", ";", "}", "unsigned", "SBitOffset", ",", "NextSBitOffset", ";", "GetStorageBitRange", "(", "CTy", ",", "MemberTy", ",", "AccessIndex", ",", "SBitOffset", ",", "NextSBitOffset", ")", ";", "if", "(", "NextSBitOffset", "-", "SBitOffset", ">", "", ")", "report_fatal_error", "(", "", ")", ";", "unsigned", "OffsetInBits", "=", "MemberTy", "->", "getOffsetInBits", "(", ")", ";", "if", "(", "Triple", ".", "getArch", "(", ")", "==", "Triple", "::", "bpfel", ")", "return", "SBitOffset", "+", "", "-", "OffsetInBits", "-", "SizeInBits", ";", "else", "return", "OffsetInBits", "+", "", "-", "NextSBitOffset", ";", "}", "if", "(", "InfoKind", "==", "", ")", "{", "DIDerivedType", "*", "MemberTy", "=", "nullptr", ";", "bool", "IsBitField", "=", "false", ";", "uint32_t", "SizeInBits", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "{", "auto", "*", "EltTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "SizeInBits", "=", "calcArraySize", "(", "CTy", ",", "", ")", "*", "EltTy", "->", "getSizeInBits", "(", ")", ";", "}", "else", "{", "MemberTy", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "AccessIndex", "]", ")", ";", "SizeInBits", "=", "MemberTy", "->", "getSizeInBits", "(", ")", ";", "IsBitField", "=", "MemberTy", "->", "isBitField", "(", ")", ";", "}", "if", "(", "!", "IsBitField", ")", "{"], "ground_truth": ["if", "(", "SizeInBits", ">", "", ")", "report_fatal_error", "(", "", ")", ";"], "File": "BPFAbstractMemberAccess20", "Func": "GetFieldInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1139, "Length": 496, "Cover_Rate": 0.5701149425287356} {"Template_token": ["", "uint32_t", "Index", "=", "AccessIndex", "+", "", ";", "for", "(", ";", "Index", "<", "CTy", "->", "getElements", "(", ")", ".", "size", "(", ")", ";", "++", "Index", ")", "{", "auto", "Member", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "Index", "]", ")", ";", "if", "(", "!", "Member", "->", "getStorageOffsetInBits", "(", ")", ")", "{", "EndBitOffset", "=", "Member", "->", "getOffsetInBits", "(", ")", ";", "break", ";", "}", "SOff", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "Member", "->", "getStorageOffsetInBits", "(", ")", ")", ";", "assert", "(", "SOff", ")", ";"], "ground_truth": ["unsigned", "BitOffset", "=", "SOff", "->", "getZExtValue", "(", ")", ";"], "File": "BPFAbstractMemberAccess20", "Func": "GetStorageBitRange", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1140, "Length": 93, "Cover_Rate": 0.5470588235294118} {"Template_token": ["", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveStructAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";", "CInfo", ".", "Metadata", "=", "nullptr", ";", "uint64_t", "InfoKind", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";"], "ground_truth": ["if", "(", "InfoKind", ">=", "", ")", "report_fatal_error", "(", "", ")", ";"], "File": "BPFAbstractMemberAccess20", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1141, "Length": 165, "Cover_Rate": 0.49107142857142855} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["if", "(", "M", ".", "debug_compile_units", "(", ")", ".", "empty", "(", ")", ")", "return", "false", ";"], "File": "BPFAbstractMemberAccess20", "Func": "runOnModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1142, "Length": 24, "Cover_Rate": 0.5853658536585366} {"Template_token": ["", "if", "(", "M", ".", "debug_compile_units", "(", ")", ".", "empty", "(", ")", ")", "return", "false", ";"], "ground_truth": ["return", "doTransformation", "(", "M", ")", ";"], "File": "BPFAbstractMemberAccess20", "Func": "runOnModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1143, "Length": 21, "Cover_Rate": 0.5121951219512195} {"Template_token": ["", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "std", "::", "string", "TypeName", ";", "MDNode", "*", "MDN", ";", "if", "(", "Kind", "==", "PreserveUnionAI", "||", "Kind", "==", "PreserveStructAI", ")", "{", "MDN", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "MDN", ")", "return", "nullptr", ";", "DIType", "*", "Ty", "=", "dyn_cast", "<", "DIType", ">", "(", "MDN", ")", ";", "if", "(", "!", "Ty", ")", "return", "nullptr", ";", "TypeName", "=", "Ty", "->", "getName", "(", ")", ";", "}", "uint64_t", "AccessIndex", ";", "uint32_t", "ArgIndex", "=", "(", "Kind", "==", "PreserveUnionAI", ")", "?", "", ":", "", ";", "if", "(", "!", "getAccessIndex", "(", "Call", "->", "getArgOperand", "(", "ArgIndex", ")", ",", "AccessIndex", ")", ")", "return", "nullptr", ";", "AccessIndices", ".", "push_back", "(", "AccessIndex", ")", ";", "if", "(", "TypeName", ".", "size", "(", ")", ")", "{", "TypeNameIndex", "=", "AccessIndices", ".", "size", "(", ")", "-", "", ";", "LastTypeName", "=", "TypeName", ";", "TypeMeta", "=", "MDN", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess21", "Func": "computeBaseAndAccessStr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1144, "Length": 146, "Cover_Rate": 0.4694533762057878} {"Template_token": ["", "uint64_t", "TypeNameIndex", "=", "", ";", "std", "::", "string", "LastTypeName", ";", "while", "(", "Call", ")", "{", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "std", "::", "string", "TypeName", ";", "MDNode", "*", "MDN", ";", "if", "(", "Kind", "==", "PreserveUnionAI", "||", "Kind", "==", "PreserveStructAI", ")", "{", "MDN", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "MDN", ")", "return", "nullptr", ";", "DIType", "*", "Ty", "=", "dyn_cast", "<", "DIType", ">", "(", "MDN", ")", ";", "if", "(", "!", "Ty", ")", "return", "nullptr", ";", "TypeName", "=", "Ty", "->", "getName", "(", ")", ";", "}", "uint64_t", "AccessIndex", ";"], "ground_truth": ["uint32_t", "ArgIndex", "=", "(", "Kind", "==", "PreserveUnionAI", ")", "?", "", ":", "", ";"], "File": "BPFAbstractMemberAccess21", "Func": "computeBaseAndAccessStr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1145, "Length": 108, "Cover_Rate": 0.34726688102893893} {"Template_token": ["", "bool", "AbstractMemberAccess", "::", "transformGEPChain", "(", "Module", "&", "M", ",", "CallInst", "*", "Call", ",", "uint32_t", "Kind", ")", "{", "std", "::", "string", "AccessStr", ",", "AccessKey", ";", "MDNode", "*", "TypeMeta", "=", "nullptr", ";", "Value", "*", "Base", "=", "computeBaseAndAccessStr", "(", "Call", ",", "AccessStr", ",", "AccessKey", ",", "Kind", ",", "TypeMeta", ")", ";", "if", "(", "!", "Base", ")", "return", "false", ";", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "GlobalVariable", "*", "GV", ";", "if", "(", "GEPGlobals", ".", "find", "(", "AccessKey", ")", "==", "GEPGlobals", ".", "end", "(", ")", ")", "{", "GV", "=", "new", "GlobalVariable", "(", "M", ",", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "AccessStr", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "if", "(", "TypeMeta", ")", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "TypeMeta", ")", ";", "GEPGlobals", "[", "AccessKey", "]", "=", "GV", ";", "}", "else", "{", "GV", "=", "GEPGlobals", "[", "AccessKey", "]", ";", "}", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "LDInst", ")", ";", "auto", "*", "BCInst", "=", "new", "BitCastInst", "(", "Base", ",", "Type", "::", "getInt8PtrTy", "(", "BB", "->", "getContext", "(", ")", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst", ")", ";", "auto", "*", "GEP", "=", "GetElementPtrInst", "::", "Create", "(", "Type", "::", "getInt8Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "BCInst", ",", "LDInst", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "GEP", ")", ";", "auto", "*", "BCInst2", "=", "new", "BitCastInst", "(", "GEP", ",", "Call", "->", "getType", "(", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst2", ")", ";"], "ground_truth": ["Call", "->", "replaceAllUsesWith", "(", "BCInst2", ")", ";"], "File": "BPFAbstractMemberAccess21", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1146, "Length": 311, "Cover_Rate": 0.9628482972136223} {"Template_token": ["", "MDNode", "*", "TypeMeta", "=", "nullptr", ";", "Value", "*", "Base", "=", "computeBaseAndAccessStr", "(", "Call", ",", "AccessStr", ",", "AccessKey", ",", "Kind", ",", "TypeMeta", ")", ";", "if", "(", "!", "Base", ")", "return", "false", ";", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "GlobalVariable", "*", "GV", ";", "if", "(", "GEPGlobals", ".", "find", "(", "AccessKey", ")", "==", "GEPGlobals", ".", "end", "(", ")", ")", "{", "GV", "=", "new", "GlobalVariable", "(", "M", ",", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "AccessStr", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "if", "(", "TypeMeta", ")", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "TypeMeta", ")", ";", "GEPGlobals", "[", "AccessKey", "]", "=", "GV", ";", "}", "else", "{", "GV", "=", "GEPGlobals", "[", "AccessKey", "]", ";", "}", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "LDInst", ")", ";", "auto", "*", "BCInst", "=", "new", "BitCastInst", "(", "Base", ",", "Type", "::", "getInt8PtrTy", "(", "BB", "->", "getContext", "(", ")", ")", ")", ";"], "ground_truth": ["BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst", ")", ";"], "File": "BPFAbstractMemberAccess21", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1147, "Length": 206, "Cover_Rate": 0.6377708978328174} {"Template_token": ["", "auto", "Member", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "Index", "]", ")", ";", "if", "(", "!", "Member", "->", "isBitField", "(", ")", ")", "{", "EndBitOffset", "=", "Member", "->", "getOffsetInBits", "(", ")", ";", "break", ";", "}", "SOff", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "Member", "->", "getStorageOffsetInBits", "(", ")", ")", ";", "assert", "(", "SOff", ")", ";", "unsigned", "BitOffset", "=", "SOff", "->", "getZExtValue", "(", ")", ";", "if", "(", "BitOffset", "!=", "StartBitOffset", ")", "{", "EndBitOffset", "=", "BitOffset", ";", "break", ";", "}", "}"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess3", "Func": "GetStorageBitRange", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1148, "Length": 83, "Cover_Rate": 0.48823529411764705} {"Template_token": ["", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveArrayAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlign", "(", "CInfo", ".", "Base", "->", "getType", "(", ")", "->", "getPointerElementType", "(", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveUnionAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlign", "(", "CInfo", ".", "Base", "->", "getType", "(", ")", "->", "getPointerElementType", "(", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveStructAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlign", "(", "CInfo", ".", "Base", "->", "getType", "(", ")", "->", "getPointerElementType", "(", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveFieldInfoAI", ";", "CInfo", ".", "Metadata", "=", "nullptr", ";", "uint64_t", "InfoKind", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";"], "ground_truth": ["if", "(", "InfoKind", ">=", "", ")", "report_fatal_error", "(", "", ")", ";"], "File": "BPFAbstractMemberAccess5", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1149, "Length": 335, "Cover_Rate": 0.8395989974937343} {"Template_token": ["", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveUnionAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlign", "(", "CInfo", ".", "Base", "->", "getType", "(", ")", "->", "getPointerElementType", "(", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveStructAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";"], "ground_truth": ["CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";"], "File": "BPFAbstractMemberAccess5", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1150, "Length": 154, "Cover_Rate": 0.38596491228070173} {"Template_token": ["", "AbstractMemberAccess", "(", "TargetMachine", "*", "TM", "=", "nullptr", ")", ":", "ModulePass", "(", "ID", ")", ",", "TM", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "BPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1151, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "AbstractMemberAccess", "(", "TargetMachine", "*", "TM", "=", "nullptr", ")", ":", "ModulePass", "(", "ID", ")", ",", "TM", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "BPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1152, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "!", "IsPreserveDIAccessIndexCall", "(", "Call", ",", "CInfo", ")", "||", "AIChain", ".", "find", "(", "Call", ")", "!=", "AIChain", ".", "end", "(", ")", ")", "continue", ";"], "ground_truth": ["traceAICall", "(", "Call", ",", "CInfo", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "collectAICallChains", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1153, "Length": 32, "Cover_Rate": 0.34408602150537637} {"Template_token": ["", "for", "(", "auto", "&", "BB", ":", "F", ")", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "CallInfo", "CInfo", ";", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ";", "if", "(", "!", "IsPreserveDIAccessIndexCall", "(", "Call", ",", "CInfo", ")", "||", "AIChain", ".", "find", "(", "Call", ")", "!=", "AIChain", ".", "end", "(", ")", ")", "continue", ";", "traceAICall", "(", "Call", ",", "CInfo", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "collectAICallChains", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1154, "Length": 67, "Cover_Rate": 0.7204301075268817} {"Template_token": ["", "DIType", "*", "BaseTy", "=", "nullptr", ";", "bool", "CheckElemType", "=", "false", ";", "if", "(", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "Ty", ")", ")", "{", "assert", "(", "CTy", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_array_type", ")", ";", "FirstIndex", "+=", "AccessIndex", "*", "calcArraySize", "(", "CTy", ",", "", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "CheckElemType", "=", "CTy", "->", "getElements", "(", ")", ".", "size", "(", ")", "==", "", ";", "}", "else", "{", "auto", "*", "DTy", "=", "cast", "<", "DIDerivedType", ">", "(", "Ty", ")", ";", "assert", "(", "DTy", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_pointer_type", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "DTy", "->", "getBaseType", "(", ")", ")", ";", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "BaseTy", ")", ";", "if", "(", "!", "CTy", ")", "{", "CheckElemType", "=", "true", ";", "}", "else", "if", "(", "CTy", "->", "getTag", "(", ")", "!=", "dwarf", "::", "DW_TAG_array_type", ")", "{", "FirstIndex", "+=", "AccessIndex", ";", "CheckElemType", "=", "true", ";", "}", "else", "{", "FirstIndex", "+=", "AccessIndex", "*", "calcArraySize", "(", "CTy", ",", "", ")", ";", "}", "}", "if", "(", "CheckElemType", ")", "{", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "BaseTy", ")", ";", "if", "(", "!", "CTy", ")", "{", "if", "(", "HasPreserveFieldInfoCall", "(", "CallStack", ")", ")", "report_fatal_error", "(", "", ")", ";", "return", "nullptr", ";", "}", "unsigned", "CTag", "=", "CTy", "->", "getTag", "(", ")", ";", "if", "(", "CTag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "CTag", "==", "dwarf", "::", "DW_TAG_union_type", ")", "{", "TypeName", "=", "std", "::", "string", "(", "CTy", "->", "getName", "(", ")", ")", ";", "}", "else", "{", "if", "(", "HasPreserveFieldInfoCall", "(", "CallStack", ")", ")", "report_fatal_error", "(", "", ")", ";", "return", "nullptr", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "computeBaseAndAccessKey", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1155, "Length": 269, "Cover_Rate": 0.36400541271989173} {"Template_token": ["", "ModulePass", "*", "llvm", "::", "createAbstractMemberAccess", "(", "TargetMachine", "*", "TM", ")", "{"], "ground_truth": ["return", "new", "AbstractMemberAccess", "(", "TM", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "createBPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1156, "Length": 18, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "ModulePass", "*", "llvm", "::", "createAbstractMemberAccess", "(", "TargetMachine", "*", "TM", ")", "{"], "ground_truth": ["return", "new", "AbstractMemberAccess", "(", "TM", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "createBPFAbstractMemberAccess", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1157, "Length": 18, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "for", "(", "auto", "&", "C", ":", "BaseAICalls", ")", "Transformed", "=", "transformGEPChain", "(", "M", ",", "C", ".", "first", ",", "C", ".", "second", ")", "||", "Transformed", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "doTransformation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1158, "Length": 26, "Cover_Rate": 0.3939393939393939} {"Template_token": ["", "for", "(", "auto", "&", "C", ":", "BaseAICalls", ")", "Transformed", "=", "transformGEPChain", "(", "M", ",", "C", ".", "first", ",", "C", ".", "second", ")", "||", "Transformed", ";", "}", "return", "removePreserveAccessIndexIntrinsic", "(", "M", ")", "||", "Transformed", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "doTransformation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1159, "Length": 35, "Cover_Rate": 0.5303030303030303} {"Template_token": ["", "uint32_t", "Encoding", "=", "BTy", "->", "getEncoding", "(", ")", ";", "return", "(", "Encoding", "==", "dwarf", "::", "DW_ATE_signed", "||", "Encoding", "==", "dwarf", "::", "DW_ATE_signed_char", ")", ";", "}", "if", "(", "InfoKind", "==", "", ")", "{", "const", "Triple", "&", "Triple", "=", "TM", "->", "getTargetTriple", "(", ")", ";", "DIDerivedType", "*", "MemberTy", "=", "nullptr", ";", "bool", "IsBitField", "=", "false", ";", "uint32_t", "SizeInBits", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "{", "auto", "*", "EltTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "SizeInBits", "=", "calcArraySize", "(", "CTy", ",", "", ")", "*", "EltTy", "->", "getSizeInBits", "(", ")", ";", "}", "else", "{", "MemberTy", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "AccessIndex", "]", ")", ";", "SizeInBits", "=", "MemberTy", "->", "getSizeInBits", "(", ")", ";", "IsBitField", "=", "MemberTy", "->", "isBitField", "(", ")", ";", "}", "if", "(", "!", "IsBitField", ")", "{", "if", "(", "SizeInBits", ">", "", ")", "report_fatal_error", "(", "", ")", ";", "return", "", "-", "SizeInBits", ";", "}", "unsigned", "SBitOffset", ",", "NextSBitOffset", ";", "GetStorageBitRange", "(", "MemberTy", ",", "RecordAlignment", ",", "SBitOffset", ",", "NextSBitOffset", ")", ";", "if", "(", "NextSBitOffset", "-", "SBitOffset", ">", "", ")", "report_fatal_error", "(", "", ")", ";", "unsigned", "OffsetInBits", "=", "MemberTy", "->", "getOffsetInBits", "(", ")", ";", "if", "(", "Triple", ".", "getArch", "(", ")", "==", "Triple", "::", "bpfel", ")", "return", "SBitOffset", "+", "", "-", "OffsetInBits", "-", "SizeInBits", ";", "else", "return", "OffsetInBits", "+", "", "-", "NextSBitOffset", ";", "}", "if", "(", "InfoKind", "==", "", ")", "{", "DIDerivedType", "*", "MemberTy", "=", "nullptr", ";", "bool", "IsBitField", "=", "false", ";", "uint32_t", "SizeInBits", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "{", "auto", "*", "EltTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "SizeInBits", "=", "calcArraySize", "(", "CTy", ",", "", ")", "*", "EltTy", "->", "getSizeInBits", "(", ")", ";", "}", "else", "{", "MemberTy", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "AccessIndex", "]", ")", ";", "SizeInBits", "=", "MemberTy", "->", "getSizeInBits", "(", ")", ";", "IsBitField", "=", "MemberTy", "->", "isBitField", "(", ")", ";", "}", "if", "(", "!", "IsBitField", ")", "{", "if", "(", "SizeInBits", ">", "", ")", "report_fatal_error", "(", "", ")", ";", "return", "", "-", "SizeInBits", ";", "}", "unsigned", "SBitOffset", ",", "NextSBitOffset", ";", "GetStorageBitRange", "(", "MemberTy", ",", "RecordAlignment", ",", "SBitOffset", ",", "NextSBitOffset", ")", ";", "if", "(", "NextSBitOffset", "-", "SBitOffset", ">", "", ")", "report_fatal_error", "(", "", ")", ";", "return", "", "-", "SizeInBits", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "GetFieldInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1161, "Length": 375, "Cover_Rate": 0.43655413271245636} {"Template_token": ["", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "{", "auto", "*", "EltTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "PatchImm", "+=", "AccessIndex", "*", "calcArraySize", "(", "CTy", ",", "", ")", "*", "(", "EltTy", "->", "getSizeInBits", "(", ")", ">>", "", ")", ";", "}", "else", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_structure_type", ")", "{", "auto", "*", "MemberTy", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "AccessIndex", "]", ")", ";", "if", "(", "!", "MemberTy", "->", "isBitField", "(", ")", ")", "{", "PatchImm", "+=", "MemberTy", "->", "getOffsetInBits", "(", ")", ">>", "", ";", "}", "else", "{", "unsigned", "SBitOffset", ",", "NextSBitOffset", ";", "GetStorageBitRange", "(", "MemberTy", ",", "RecordAlignment", ",", "SBitOffset", ",", "NextSBitOffset", ")", ";", "PatchImm", "+=", "SBitOffset", ">>", "", ";", "}", "}", "return", "PatchImm", ";", "}", "if", "(", "InfoKind", "==", "", ")", "{", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "{", "auto", "*", "EltTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "return", "calcArraySize", "(", "CTy", ",", "", ")", "*", "(", "EltTy", "->", "getSizeInBits", "(", ")", ">>", "", ")", ";", "}", "else", "{", "auto", "*", "MemberTy", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "AccessIndex", "]", ")", ";", "uint32_t", "SizeInBits", "=", "MemberTy", "->", "getSizeInBits", "(", ")", ";", "if", "(", "!", "MemberTy", "->", "isBitField", "(", ")", ")", "return", "SizeInBits", ">>", "", ";", "unsigned", "SBitOffset", ",", "NextSBitOffset", ";", "GetStorageBitRange", "(", "MemberTy", ",", "RecordAlignment", ",", "SBitOffset", ",", "NextSBitOffset", ")", ";", "SizeInBits", "=", "NextSBitOffset", "-", "SBitOffset", ";", "if", "(", "SizeInBits", "&", "(", "SizeInBits", "-", "", ")", ")", "report_fatal_error", "(", "", ")", ";", "return", "SizeInBits", ">>", "", ";", "}", "}", "if", "(", "InfoKind", "==", "", ")", "{", "const", "DIType", "*", "BaseTy", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "{", "if", "(", "CTy", "->", "getElements", "(", ")", ".", "size", "(", ")", "!=", "", ")", "report_fatal_error", "(", "", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "CTy", "->", "getBaseType", "(", ")", ")", ";", "}", "else", "{", "auto", "*", "MemberTy", "=", "cast", "<", "DIDerivedType", ">", "(", "CTy", "->", "getElements", "(", ")", "[", "AccessIndex", "]", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "MemberTy", "->", "getBaseType", "(", ")", ")", ";", "}", "const", "auto", "*", "BTy", "=", "dyn_cast", "<", "DIBasicType", ">", "(", "BaseTy", ")", ";", "while", "(", "!", "BTy", ")", "{", "const", "auto", "*", "CompTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "BaseTy", ")", ";", "if", "(", "!", "CompTy", "||", "CompTy", "->", "getTag", "(", ")", "!=", "dwarf", "::", "DW_TAG_enumeration_type", ")", "report_fatal_error", "(", "", ")", ";", "BaseTy", "=", "stripQualifiers", "(", "CompTy", "->", "getBaseType", "(", ")", ")", ";", "BTy", "=", "dyn_cast", "<", "DIBasicType", ">", "(", "BaseTy", ")", ";", "}", "uint32_t", "Encoding", "=", "BTy", "->", "getEncoding", "(", ")", ";"], "ground_truth": ["return", "(", "Encoding", "==", "dwarf", "::", "DW_ATE_signed", "||", "Encoding", "==", "dwarf", "::", "DW_ATE_signed_char", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "GetFieldInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1162, "Length": 443, "Cover_Rate": 0.5157159487776485} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{"], "ground_truth": ["return", "", ";"], "File": "BPFAbstractMemberAccess", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1164, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "uint32_t", "AlignBits", "=", "RecordAlignment", "*", "", ";", "if", "(", "RecordAlignment", ">", "", "||", "MemberBitSize", ">", "AlignBits", ")", "report_fatal_error", "(", "", "", ")", ";", "StartBitOffset", "=", "MemberBitOffset", "&", "~", "(", "AlignBits", "-", "", ")", ";"], "ground_truth": ["if", "(", "(", "StartBitOffset", "+", "AlignBits", ")", "<", "(", "MemberBitOffset", "+", "MemberBitSize", ")", ")", "report_fatal_error", "(", "", "", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "GetStorageBitRange", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1165, "Length": 54, "Cover_Rate": 0.54} {"Template_token": ["", "auto", "StackElem", "=", "CallStack", ".", "top", "(", ")", ";", "if", "(", "StackElem", ".", "second", ".", "Kind", "==", "PreserveFieldInfoAI", ")", "return", "true", ";", "CallStack", ".", "pop", "(", ")", ";", "}"], "ground_truth": ["return", "false", ";"], "File": "BPFAbstractMemberAccess", "Func": "HasPreserveFieldInfoCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1166, "Length": 32, "Cover_Rate": 0.6153846153846154} {"Template_token": ["", "while", "(", "CallStack", ".", "size", "(", ")", ")", "{", "auto", "StackElem", "=", "CallStack", ".", "top", "(", ")", ";", "if", "(", "StackElem", ".", "second", ".", "Kind", "==", "PreserveFieldInfoAI", ")", "return", "true", ";", "CallStack", ".", "pop", "(", ")", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "HasPreserveFieldInfoCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1167, "Length": 42, "Cover_Rate": 0.8076923076923077} {"Template_token": ["", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveUnionAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";", "CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "CInfo", ".", "Base", "=", "Call", "->", "getArgOperand", "(", "", ")", ";", "CInfo", ".", "RecordAlignment", "=", "DL", "->", "getABITypeAlignment", "(", "CInfo", ".", "Base", "->", "getType", "(", ")", "->", "getPointerElementType", "(", ")", ")", ";", "return", "true", ";", "}", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "CInfo", ".", "Kind", "=", "PreserveStructAI", ";", "CInfo", ".", "Metadata", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "if", "(", "!", "CInfo", ".", "Metadata", ")", "report_fatal_error", "(", "", ")", ";"], "ground_truth": ["CInfo", ".", "AccessIndex", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "IsPreserveDIAccessIndexCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1168, "Length": 155, "Cover_Rate": 0.38847117794486213} {"Template_token": ["", "if", "(", "isa", "<", "DIDerivedType", ">", "(", "CType", ")", ")", "return", "false", ";", "if", "(", "const", "auto", "*", "PtrTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "PType", ")", ")", "{", "if", "(", "PtrTy", "->", "getTag", "(", ")", "!=", "dwarf", "::", "DW_TAG_pointer_type", ")", "return", "false", ";", "return", "stripQualifiers", "(", "PtrTy", "->", "getBaseType", "(", ")", ")", "==", "CType", ";", "}", "const", "auto", "*", "PTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "PType", ")", ";", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "CType", ")", ";", "assert", "(", "PTy", "&&", "CTy", "&&", "", ")", ";", "uint32_t", "PTyTag", "=", "PTy", "->", "getTag", "(", ")", ";", "assert", "(", "PTyTag", "==", "dwarf", "::", "DW_TAG_array_type", "||", "PTyTag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "PTyTag", "==", "dwarf", "::", "DW_TAG_union_type", ")", ";", "uint32_t", "CTyTag", "=", "CTy", "->", "getTag", "(", ")", ";", "assert", "(", "CTyTag", "==", "dwarf", "::", "DW_TAG_array_type", "||", "CTyTag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "CTyTag", "==", "dwarf", "::", "DW_TAG_union_type", ")", ";", "if", "(", "PTyTag", "==", "dwarf", "::", "DW_TAG_array_type", "&&", "PTyTag", "==", "CTyTag", ")", "return", "PTy", "->", "getBaseType", "(", ")", "==", "CTy", "->", "getBaseType", "(", ")", ";", "DIType", "*", "Ty", ";", "if", "(", "PTyTag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "Ty", "=", "PTy", "->", "getBaseType", "(", ")", ";"], "ground_truth": ["else", "Ty", "=", "dyn_cast", "<", "DIType", ">", "(", "PTy", "->", "getElements", "(", ")", "[", "ParentAI", "]", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "IsValidAIChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1169, "Length": 215, "Cover_Rate": 0.7439446366782007} {"Template_token": ["", "bool", "AbstractMemberAccess", "::", "IsValidAIChain", "(", "const", "MDNode", "*", "ParentType", ",", "uint32_t", "ParentAI", ",", "const", "MDNode", "*", "ChildType", ")", "{", "if", "(", "!", "ChildType", ")", "return", "true", ";", "const", "DIType", "*", "PType", "=", "stripQualifiers", "(", "cast", "<", "DIType", ">", "(", "ParentType", ")", ")", ";", "const", "DIType", "*", "CType", "=", "stripQualifiers", "(", "cast", "<", "DIType", ">", "(", "ChildType", ")", ")", ";", "if", "(", "isa", "<", "DIDerivedType", ">", "(", "CType", ")", ")", "return", "false", ";", "if", "(", "const", "auto", "*", "PtrTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "PType", ")", ")", "{", "if", "(", "PtrTy", "->", "getTag", "(", ")", "!=", "dwarf", "::", "DW_TAG_pointer_type", ")", "return", "false", ";", "return", "stripQualifiers", "(", "PtrTy", "->", "getBaseType", "(", ")", ")", "==", "CType", ";", "}", "const", "auto", "*", "PTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "PType", ")", ";", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "CType", ")", ";", "assert", "(", "PTy", "&&", "CTy", "&&", "", ")", ";", "uint32_t", "PTyTag", "=", "PTy", "->", "getTag", "(", ")", ";", "assert", "(", "PTyTag", "==", "dwarf", "::", "DW_TAG_array_type", "||", "PTyTag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "PTyTag", "==", "dwarf", "::", "DW_TAG_union_type", ")", ";", "uint32_t", "CTyTag", "=", "CTy", "->", "getTag", "(", ")", ";", "assert", "(", "CTyTag", "==", "dwarf", "::", "DW_TAG_array_type", "||", "CTyTag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "CTyTag", "==", "dwarf", "::", "DW_TAG_union_type", ")", ";", "if", "(", "PTyTag", "==", "dwarf", "::", "DW_TAG_array_type", "&&", "PTyTag", "==", "CTyTag", ")", "return", "PTy", "->", "getBaseType", "(", ")", "==", "CTy", "->", "getBaseType", "(", ")", ";", "DIType", "*", "Ty", ";"], "ground_truth": ["if", "(", "PTyTag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "Ty", "=", "PTy", "->", "getBaseType", "(", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "IsValidAIChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1170, "Length": 256, "Cover_Rate": 0.8858131487889274} {"Template_token": ["", "Found", "=", "true", ";", "if", "(", "CInfo", ".", "Kind", "==", "PreserveArrayAI", ")", "PreserveArrayIndexCalls", ".", "push_back", "(", "Call", ")", ";", "else", "if", "(", "CInfo", ".", "Kind", "==", "PreserveUnionAI", ")", "PreserveUnionIndexCalls", ".", "push_back", "(", "Call", ")", ";", "else", "PreserveStructIndexCalls", ".", "push_back", "(", "Call", ")", ";", "}", "replaceWithGEP", "(", "PreserveArrayIndexCalls", ",", "", ",", "", ")", ";", "replaceWithGEP", "(", "PreserveStructIndexCalls", ",", "", ",", "", ")", ";", "for", "(", "auto", "Call", ":", "PreserveUnionIndexCalls", ")", "{", "Call", "->", "replaceAllUsesWith", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "}", "return", "Found", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "removePreserveAccessIndexIntrinsic", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1171, "Length": 93, "Cover_Rate": 0.4946808510638298} {"Template_token": ["", "uint32_t", "Dimension", "=", "", ";", "if", "(", "DimensionIndex", ">", "", ")", "Dimension", "=", "getConstant", "(", "Call", "->", "getArgOperand", "(", "DimensionIndex", ")", ")", ";", "Constant", "*", "Zero", "=", "ConstantInt", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "Call", "->", "getParent", "(", ")", "->", "getContext", "(", ")", ")", ",", "", ")", ";", "SmallVector", "<", "Value", "*", ",", "", ">", "IdxList", ";", "for", "(", "unsigned", "I", "=", "", ";", "I", "<", "Dimension", ";", "++", "I", ")", "IdxList", ".", "push_back", "(", "Zero", ")", ";", "IdxList", ".", "push_back", "(", "Call", "->", "getArgOperand", "(", "GEPIndex", ")", ")", ";", "auto", "*", "GEP", "=", "GetElementPtrInst", "::", "CreateInBounds", "(", "Call", "->", "getArgOperand", "(", "", ")", ",", "IdxList", ",", "", ",", "Call", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "GEP", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "replaceWithGEP", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1172, "Length": 128, "Cover_Rate": 0.810126582278481} {"Template_token": ["", "for", "(", "unsigned", "I", "=", "", ";", "I", "<", "Dimension", ";", "++", "I", ")", "IdxList", ".", "push_back", "(", "Zero", ")", ";", "IdxList", ".", "push_back", "(", "Call", "->", "getArgOperand", "(", "GEPIndex", ")", ")", ";", "auto", "*", "GEP", "=", "GetElementPtrInst", "::", "CreateInBounds", "(", "Call", "->", "getArgOperand", "(", "", ")", ",", "IdxList", ",", "", ",", "Call", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "GEP", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "replaceWithGEP", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1173, "Length": 70, "Cover_Rate": 0.4430379746835443} {"Template_token": ["", "bool", "AbstractMemberAccess", "::", "runOnModule", "(", "Module", "&", "M", ")", "{"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "runOnModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1174, "Length": 19, "Cover_Rate": 0.38} {"Template_token": ["", "}", "else", "{", "BaseAICalls", "[", "Parent", "]", "=", "ParentInfo", ";", "}", "}", "else", "if", "(", "auto", "*", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "Inst", ")", ")", "{", "if", "(", "GI", "->", "hasAllZeroIndices", "(", ")", ")", "traceGEP", "(", "GI", ",", "Parent", ",", "ParentInfo", ")", ";", "else", "BaseAICalls", "[", "Parent", "]", "=", "ParentInfo", ";", "}", "else", "{", "BaseAICalls", "[", "Parent", "]", "=", "ParentInfo", ";"], "ground_truth": ["}"], "File": "BPFAbstractMemberAccess", "Func": "traceBitCast", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1175, "Length": 64, "Cover_Rate": 0.3106796116504854} {"Template_token": ["", "Instruction", "*", "Inst", "=", "dyn_cast", "<", "Instruction", ">", "(", "U", ")", ";", "if", "(", "!", "Inst", ")", "continue", ";", "if", "(", "auto", "*", "BI", "=", "dyn_cast", "<", "BitCastInst", ">", "(", "Inst", ")", ")", "{", "traceBitCast", "(", "BI", ",", "Parent", ",", "ParentInfo", ")", ";", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "CallInfo", "ChildInfo", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "ChildInfo", ")", "&&", "IsValidAIChain", "(", "ParentInfo", ".", "Metadata", ",", "ParentInfo", ".", "AccessIndex", ",", "ChildInfo", ".", "Metadata", ")", ")", "{", "AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Parent", ",", "ParentInfo", ")", ";", "traceAICall", "(", "CI", ",", "ChildInfo", ")", ";", "}", "else", "{", "BaseAICalls", "[", "Parent", "]", "=", "ParentInfo", ";", "}"], "ground_truth": ["}", "else", "if", "(", "auto", "*", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "Inst", ")", ")", "{"], "File": "BPFAbstractMemberAccess", "Func": "traceBitCast", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1176, "Length": 137, "Cover_Rate": 0.6650485436893204} {"Template_token": ["", "if", "(", "!", "Inst", ")", "continue", ";", "if", "(", "auto", "*", "BI", "=", "dyn_cast", "<", "BitCastInst", ">", "(", "Inst", ")", ")", "{", "traceBitCast", "(", "BI", ",", "Parent", ",", "ParentInfo", ")", ";", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "CallInfo", "ChildInfo", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "ChildInfo", ")", "&&", "IsValidAIChain", "(", "ParentInfo", ".", "Metadata", ",", "ParentInfo", ".", "AccessIndex", ",", "ChildInfo", ".", "Metadata", ")", ")", "{", "AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Parent", ",", "ParentInfo", ")", ";", "traceAICall", "(", "CI", ",", "ChildInfo", ")", ";", "}", "else", "{", "BaseAICalls", "[", "Parent", "]", "=", "ParentInfo", ";", "}", "}", "else", "if", "(", "auto", "*", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "Inst", ")", ")", "{", "if", "(", "GI", "->", "hasAllZeroIndices", "(", ")", ")", "traceGEP", "(", "GI", ",", "Parent", ",", "ParentInfo", ")", ";", "else", "BaseAICalls", "[", "Parent", "]", "=", "ParentInfo", ";", "}", "else", "{"], "ground_truth": ["BaseAICalls", "[", "Parent", "]", "=", "ParentInfo", ";"], "File": "BPFAbstractMemberAccess", "Func": "traceGEP", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1177, "Length": 160, "Cover_Rate": 0.7766990291262136} {"Template_token": ["", "for", "(", "User", "*", "U", ":", "GEP", "->", "users", "(", ")", ")", "{", "Instruction", "*", "Inst", "=", "dyn_cast", "<", "Instruction", ">", "(", "U", ")", ";", "if", "(", "!", "Inst", ")", "continue", ";", "if", "(", "auto", "*", "BI", "=", "dyn_cast", "<", "BitCastInst", ">", "(", "Inst", ")", ")", "{", "traceBitCast", "(", "BI", ",", "Parent", ",", "ParentInfo", ")", ";", "}", "else", "if", "(", "auto", "*", "CI", "=", "dyn_cast", "<", "CallInst", ">", "(", "Inst", ")", ")", "{", "CallInfo", "ChildInfo", ";", "if", "(", "IsPreserveDIAccessIndexCall", "(", "CI", ",", "ChildInfo", ")", "&&", "IsValidAIChain", "(", "ParentInfo", ".", "Metadata", ",", "ParentInfo", ".", "AccessIndex", ",", "ChildInfo", ".", "Metadata", ")", ")", "{"], "ground_truth": ["AIChain", "[", "CI", "]", "=", "std", "::", "make_pair", "(", "Parent", ",", "ParentInfo", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "traceGEP", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1178, "Length": 115, "Cover_Rate": 0.558252427184466} {"Template_token": ["", "else", "VarType", "=", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "GV", "=", "new", "GlobalVariable", "(", "M", ",", "VarType", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "AccessKey", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "TypeMeta", ")", ";", "GEPGlobals", "[", "AccessKey", "]", "=", "GV", ";", "}", "else", "{", "GV", "=", "GEPGlobals", "[", "AccessKey", "]", ";", "}", "if", "(", "CInfo", ".", "Kind", "==", "PreserveFieldInfoAI", ")", "{", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "LDInst", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "return", "true", ";", "}", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "auto", "*", "BCInst", "=", "new", "BitCastInst", "(", "Base", ",", "Type", "::", "getInt8PtrTy", "(", "BB", "->", "getContext", "(", ")", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst", ")", ";", "auto", "*", "GEP", "=", "GetElementPtrInst", "::", "Create", "(", "Type", "::", "getInt8Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "BCInst", ",", "LDInst", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "GEP", ")", ";", "auto", "*", "BCInst2", "=", "new", "BitCastInst", "(", "GEP", ",", "Call", "->", "getType", "(", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst2", ")", ";"], "ground_truth": ["Call", "->", "replaceAllUsesWith", "(", "BCInst2", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1179, "Length": 265, "Cover_Rate": 0.693717277486911} {"Template_token": ["", "auto", "*", "BCInst", "=", "new", "BitCastInst", "(", "Base", ",", "Type", "::", "getInt8PtrTy", "(", "BB", "->", "getContext", "(", ")", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst", ")", ";", "auto", "*", "GEP", "=", "GetElementPtrInst", "::", "Create", "(", "Type", "::", "getInt8Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "BCInst", ",", "LDInst", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "GEP", ")", ";", "auto", "*", "BCInst2", "=", "new", "BitCastInst", "(", "GEP", ",", "Call", "->", "getType", "(", ")", ")", ";", "BB", "->", "getInstList", "(", ")", ".", "insert", "(", "Call", "->", "getIterator", "(", ")", ",", "BCInst2", ")", ";"], "ground_truth": ["Call", "->", "replaceAllUsesWith", "(", "BCInst2", ")", ";"], "File": "BPFAbstractMemberAccess", "Func": "transformGEPChain", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1180, "Length": 119, "Cover_Rate": 0.31151832460732987} {"Template_token": ["", "bool", "AdjustOptImpl", "::", "run", "(", ")", "{", "for", "(", "Function", "&", "F", ":", "*", "M", ")", "for", "(", "auto", "&", "BB", ":", "F", ")", "{", "adjustBasicBlock", "(", "BB", ")", ";", "for", "(", "auto", "&", "I", ":", "BB", ")", "adjustInst", "(", "I", ")", ";", "}", "return", "insertPassThrough", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt1", "Func": "run", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1181, "Length": 50, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "AdjustOptImpl", "::", "run", "(", ")", "{", "for", "(", "Function", "&", "F", ":", "*", "M", ")", "for", "(", "auto", "&", "BB", ":", "F", ")", "{", "adjustBasicBlock", "(", "BB", ")", ";", "for", "(", "auto", "&", "I", ":", "BB", ")", "adjustInst", "(", "I", ")", ";", "}"], "ground_truth": ["return", "insertPassThrough", "(", ")", ";"], "File": "BPFAdjustOpt1", "Func": "run", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1182, "Length": 49, "Cover_Rate": 0.98} {"Template_token": ["", "if", "(", "!", "BI", "||", "!", "BI", "->", "isConditional", "(", ")", ")", "return", "false", ";", "auto", "*", "Cond", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "BI", "->", "getCondition", "(", ")", ")", ";", "if", "(", "!", "Cond", "||", "B2", "->", "getFirstNonPHI", "(", ")", "!=", "Cond", ")", "return", "false", ";", "Value", "*", "B2Op0", "=", "Cond", "->", "getOperand", "(", "", ")", ";", "auto", "Cond2Op", "=", "Cond", "->", "getPredicate", "(", ")", ";", "TI", "=", "B1", "->", "getTerminator", "(", ")", ";", "BI", "=", "dyn_cast", "<", "BranchInst", ">", "(", "TI", ")", ";", "if", "(", "!", "BI", "||", "!", "BI", "->", "isConditional", "(", ")", ")", "return", "false", ";", "Cond", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "BI", "->", "getCondition", "(", ")", ")", ";", "if", "(", "!", "Cond", ")", "return", "false", ";", "Value", "*", "B1Op0", "=", "Cond", "->", "getOperand", "(", "", ")", ";", "auto", "Cond1Op", "=", "Cond", "->", "getPredicate", "(", ")", ";", "if", "(", "B1Op0", "!=", "B2Op0", ")", "return", "false", ";", "if", "(", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SGT", "||", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SGE", ")", "{", "if", "(", "Cond2Op", "!=", "ICmpInst", "::", "ICMP_SLT", "&&", "Cond1Op", "!=", "ICmpInst", "::", "ICMP_SLE", ")", "return", "false", ";", "}", "else", "if", "(", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SLT", "||", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SLE", ")", "{", "if", "(", "Cond2Op", "!=", "ICmpInst", "::", "ICMP_SGT", "&&", "Cond1Op", "!=", "ICmpInst", "::", "ICMP_SGE", ")", "return", "false", ";", "}", "else", "{", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt1", "Func": "serializeICMPCrossBB", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1183, "Length": 224, "Cover_Rate": 0.7156549520766773} {"Template_token": ["", "if", "(", "!", "isa", "<", "Constant", ">", "(", "Icmp1Op1", ")", ")", "return", "false", ";", "isCandidate", "=", "true", ";", "continue", ";", "}", "if", "(", "Inst", "->", "getParent", "(", ")", "==", "I", ".", "getParent", "(", ")", ")", "continue", ";", "for", "(", "auto", "&", "I2", ":", "*", "Inst", "->", "getParent", "(", ")", ")", "{", "if", "(", "dyn_cast", "<", "CallInst", ">", "(", "&", "I2", ")", ")", "return", "false", ";", "if", "(", "dyn_cast", "<", "LoadInst", ">", "(", "&", "I2", ")", "||", "dyn_cast", "<", "StoreInst", ">", "(", "&", "I2", ")", ")", "return", "false", ";", "if", "(", "&", "I2", "==", "Inst", ")", "break", ";", "}", "if", "(", "Inst", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "ZExt", "||", "Inst", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "SExt", ")", "{"], "ground_truth": ["PassThroughInfo", "Info", "(", "&", "I", ",", "Inst", ",", "", ")", ";"], "File": "BPFAdjustOpt2", "Func": "avoidSpeculation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1184, "Length": 132, "Cover_Rate": 0.30985915492957744} {"Template_token": ["", "if", "(", "auto", "*", "GV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "LdInst", "->", "getOperand", "(", "", ")", ")", ")", "{", "if", "(", "GV", "->", "hasAttribute", "(", "", ")", "||", "GV", "->", "hasAttribute", "(", "", ")", ")", "return", "false", ";", "}", "}", "if", "(", "!", "isa", "<", "LoadInst", ">", "(", "&", "I", ")", "&&", "!", "isa", "<", "CallInst", ">", "(", "&", "I", ")", ")", "return", "false", ";", "bool", "isCandidate", "=", "false", ";", "SmallVector", "<", "PassThroughInfo", ",", "", ">", "Candidates", ";", "for", "(", "User", "*", "U", ":", "I", ".", "users", "(", ")", ")", "{", "Instruction", "*", "Inst", "=", "dyn_cast", "<", "Instruction", ">", "(", "U", ")", ";", "if", "(", "!", "Inst", ")", "continue", ";", "if", "(", "auto", "*", "Icmp1", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "Inst", ")", ")", "{", "Value", "*", "Icmp1Op1", "=", "Icmp1", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "isa", "<", "Constant", ">", "(", "Icmp1Op1", ")", ")", "return", "false", ";", "isCandidate", "=", "true", ";", "continue", ";", "}", "if", "(", "Inst", "->", "getParent", "(", ")", "==", "I", ".", "getParent", "(", ")", ")", "continue", ";", "for", "(", "auto", "&", "I2", ":", "*", "Inst", "->", "getParent", "(", ")", ")", "{", "if", "(", "dyn_cast", "<", "CallInst", ">", "(", "&", "I2", ")", ")", "return", "false", ";", "if", "(", "dyn_cast", "<", "LoadInst", ">", "(", "&", "I2", ")", "||", "dyn_cast", "<", "StoreInst", ">", "(", "&", "I2", ")", ")", "return", "false", ";", "if", "(", "&", "I2", "==", "Inst", ")", "break", ";", "}", "if", "(", "Inst", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "ZExt", "||", "Inst", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "SExt", ")", "{", "PassThroughInfo", "Info", "(", "&", "I", ",", "Inst", ",", "", ")", ";", "Candidates", ".", "push_back", "(", "Info", ")", ";", "}", "else", "if", "(", "auto", "*", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "Inst", ")", ")", "{", "unsigned", "i", ",", "e", ";", "for", "(", "i", "=", "", ",", "e", "=", "GI", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Value", "*", "V", "=", "GI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "V", "==", "&", "I", ")", "break", ";", "}", "if", "(", "i", "==", "e", ")", "continue", ";", "PassThroughInfo", "Info", "(", "&", "I", ",", "GI", ",", "i", ")", ";", "Candidates", ".", "push_back", "(", "Info", ")", ";", "}", "}", "if", "(", "!", "isCandidate", "||", "Candidates", ".", "empty", "(", ")", ")", "return", "false", ";"], "ground_truth": ["llvm", "::", "append_range", "(", "PassThroughs", ",", "Candidates", ")", ";"], "File": "BPFAdjustOpt2", "Func": "avoidSpeculation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1185, "Length": 392, "Cover_Rate": 0.92018779342723} {"Template_token": ["", "bool", "AdjustOptImpl", "::", "serializeICMPInBB", "(", "Instruction", "&", "I", ")", "{", "if", "(", "I", ".", "getOpcode", "(", ")", "!=", "Instruction", "::", "Or", ")", "return", "false", ";", "auto", "*", "Icmp1", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "I", ".", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "Icmp1", ")", "return", "false", ";", "auto", "*", "Icmp2", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "I", ".", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "Icmp2", ")", "return", "false", ";"], "ground_truth": ["Value", "*", "Icmp1Op0", "=", "Icmp1", "->", "getOperand", "(", "", ")", ";"], "File": "BPFAdjustOpt2", "Func": "serializeICMPInBB", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1186, "Length": 86, "Cover_Rate": 0.671875} {"Template_token": ["", "}", "if", "(", "!", "dyn_cast", "<", "LoadInst", ">", "(", "&", "I", ")", "&&", "!", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ")", "return", "false", ";", "bool", "isCandidate", "=", "false", ";", "SmallVector", "<", "PassThroughInfo", ",", "", ">", "Candidates", ";", "for", "(", "User", "*", "U", ":", "I", ".", "users", "(", ")", ")", "{", "Instruction", "*", "Inst", "=", "dyn_cast", "<", "Instruction", ">", "(", "U", ")", ";", "if", "(", "!", "Inst", ")", "continue", ";", "if", "(", "auto", "*", "Icmp1", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "Inst", ")", ")", "{", "Value", "*", "Icmp1Op1", "=", "Icmp1", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "isa", "<", "Constant", ">", "(", "Icmp1Op1", ")", ")", "return", "false", ";", "isCandidate", "=", "true", ";", "continue", ";", "}", "if", "(", "Inst", "->", "getParent", "(", ")", "==", "I", ".", "getParent", "(", ")", ")", "continue", ";", "for", "(", "auto", "&", "I2", ":", "*", "Inst", "->", "getParent", "(", ")", ")", "{", "if", "(", "dyn_cast", "<", "CallInst", ">", "(", "&", "I2", ")", ")", "return", "false", ";", "if", "(", "dyn_cast", "<", "LoadInst", ">", "(", "&", "I2", ")", "||", "dyn_cast", "<", "StoreInst", ">", "(", "&", "I2", ")", ")", "return", "false", ";", "if", "(", "&", "I2", "==", "Inst", ")", "break", ";", "}", "if", "(", "Inst", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "ZExt", "||", "Inst", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "SExt", ")", "{"], "ground_truth": ["PassThroughInfo", "Info", "(", "&", "I", ",", "Inst", ",", "", ")", ";"], "File": "BPFAdjustOpt3", "Func": "avoidSpeculation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1187, "Length": 229, "Cover_Rate": 0.5204545454545455} {"Template_token": ["", "void", "AdjustOpt", "::", "adjustBasicBlock", "(", "BasicBlock", "&", "BB", ")", "{", "if", "(", "!", "DisableserializeICMP", "&&", "serializeICMPCrossBB", "(", "BB", ")", ")", "return", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt5", "Func": "adjustBasicBlock", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1189, "Length": 23, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "!", "DisableavoidSpeculation", "&&", "avoidSpeculation", "(", "I", ")", ")", "return", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt5", "Func": "adjustInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1190, "Length": 13, "Cover_Rate": 0.37142857142857144} {"Template_token": ["", "if", "(", "!", "DisableserializeICMP", "&&", "serializeICMPInBB", "(", "I", ")", ")", "return", ";", "if", "(", "!", "DisableavoidSpeculation", "&&", "avoidSpeculation", "(", "I", ")", ")", "return", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt5", "Func": "adjustInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1191, "Length": 25, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "if", "(", "auto", "*", "Icmp1", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "Inst", ")", ")", "{", "Value", "*", "Icmp1Op1", "=", "Icmp1", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "isa", "<", "Constant", ">", "(", "Icmp1Op1", ")", ")", "return", "false", ";", "isCandidate", "=", "true", ";", "continue", ";", "}", "if", "(", "Inst", "->", "getParent", "(", ")", "==", "I", ".", "getParent", "(", ")", ")", "continue", ";", "for", "(", "auto", "&", "I2", ":", "*", "Inst", "->", "getParent", "(", ")", ")", "{", "if", "(", "dyn_cast", "<", "CallInst", ">", "(", "&", "I2", ")", ")", "return", "false", ";", "if", "(", "dyn_cast", "<", "LoadInst", ">", "(", "&", "I2", ")", "||", "dyn_cast", "<", "StoreInst", ">", "(", "&", "I2", ")", ")", "return", "false", ";", "if", "(", "&", "I2", "==", "Inst", ")", "break", ";", "}", "if", "(", "Inst", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "ZExt", "||", "Inst", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "SExt", ")", "{", "PassThroughInfo", "Info", "(", "&", "I", ",", "Inst", ",", "", ")", ";", "Candidates", ".", "push_back", "(", "Info", ")", ";", "}", "else", "if", "(", "auto", "*", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "Inst", ")", ")", "{", "unsigned", "i", ",", "e", ";", "for", "(", "i", "=", "", ",", "e", "=", "GI", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Value", "*", "V", "=", "GI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "V", "==", "&", "I", ")", "break", ";", "}", "if", "(", "i", "==", "e", ")", "continue", ";", "PassThroughInfo", "Info", "(", "&", "I", ",", "GI", ",", "i", ")", ";", "Candidates", ".", "push_back", "(", "Info", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFAdjustOpt5", "Func": "avoidSpeculation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1192, "Length": 258, "Cover_Rate": 0.5863636363636363} {"Template_token": ["", "auto", "*", "CI", "=", "", "(", "Mod", ",", "Info", ".", "UsedInst", "->", "getParent", "(", ")", ",", "Info", ".", "Input", ",", "Info", ".", "UsedInst", ")", ";", "Info", ".", "UsedInst", "->", "setOperand", "(", "Info", ".", "OpIdx", ",", "CI", ")", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt5", "Func": "insertPassThrough", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1193, "Length": 39, "Cover_Rate": 0.5909090909090909} {"Template_token": ["", "Mod", "=", "&", "M", ";", "for", "(", "Function", "&", "F", ":", "M", ")", "for", "(", "auto", "&", "BB", ":", "F", ")", "{", "adjustBasicBlock", "(", "BB", ")", ";", "for", "(", "auto", "&", "I", ":", "BB", ")", "adjustInst", "(", "I", ")", ";", "}", "return", "insertPassThrough", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt5", "Func": "runOnModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1194, "Length": 47, "Cover_Rate": 0.8245614035087719} {"Template_token": ["", "if", "(", "!", "BI", "||", "!", "BI", "->", "isConditional", "(", ")", ")", "return", "false", ";", "Cond", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "BI", "->", "getCondition", "(", ")", ")", ";", "if", "(", "!", "Cond", ")", "return", "false", ";", "Value", "*", "B1Op0", "=", "Cond", "->", "getOperand", "(", "", ")", ";", "auto", "Cond1Op", "=", "Cond", "->", "getPredicate", "(", ")", ";", "if", "(", "B1Op0", "!=", "B2Op0", ")", "return", "false", ";", "if", "(", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SGT", "||", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SGE", ")", "{", "if", "(", "Cond2Op", "!=", "ICmpInst", "::", "ICMP_SLT", "&&", "Cond1Op", "!=", "ICmpInst", "::", "ICMP_SLE", ")", "return", "false", ";", "}", "else", "if", "(", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SLT", "||", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SLE", ")", "{", "if", "(", "Cond2Op", "!=", "ICmpInst", "::", "ICMP_SGT", "&&", "Cond1Op", "!=", "ICmpInst", "::", "ICMP_SGE", ")", "return", "false", ";", "}", "else", "{", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt5", "Func": "serializeICMPCrossBB", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1195, "Length": 139, "Cover_Rate": 0.4440894568690096} {"Template_token": ["", "Value", "*", "B1Op0", "=", "Cond", "->", "getOperand", "(", "", ")", ";", "auto", "Cond1Op", "=", "Cond", "->", "getPredicate", "(", ")", ";", "if", "(", "B1Op0", "!=", "B2Op0", ")", "return", "false", ";", "if", "(", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SGT", "||", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SGE", ")", "{", "if", "(", "Cond2Op", "!=", "ICmpInst", "::", "ICMP_SLT", "&&", "Cond1Op", "!=", "ICmpInst", "::", "ICMP_SLE", ")", "return", "false", ";", "}", "else", "if", "(", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SLT", "||", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SLE", ")", "{", "if", "(", "Cond2Op", "!=", "ICmpInst", "::", "ICMP_SGT", "&&", "Cond1Op", "!=", "ICmpInst", "::", "ICMP_SGE", ")", "return", "false", ";", "}", "else", "{", "return", "false", ";", "}", "PassThroughInfo", "Info", "(", "Cond", ",", "BI", ",", "", ")", ";", "PassThroughs", ".", "push_back", "(", "Info", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt5", "Func": "serializeICMPCrossBB", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1196, "Length": 123, "Cover_Rate": 0.3929712460063898} {"Template_token": ["", "if", "(", "!", "Icmp1", ")", "return", "false", ";", "auto", "*", "Icmp2", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "I", ".", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "Icmp2", ")", "return", "false", ";", "Value", "*", "Icmp1Op0", "=", "Icmp1", "->", "getOperand", "(", "", ")", ";", "Value", "*", "Icmp2Op0", "=", "Icmp2", "->", "getOperand", "(", "", ")", ";", "if", "(", "Icmp1Op0", "!=", "Icmp2Op0", ")", "return", "false", ";", "PassThroughInfo", "Info", "(", "Icmp1", ",", "&", "I", ",", "", ")", ";", "PassThroughs", ".", "push_back", "(", "Info", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "BPFAdjustOpt5", "Func": "serializeICMPInBB", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1197, "Length": 85, "Cover_Rate": 0.6640625} {"Template_token": ["", "auto", "*", "Icmp1", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "I", ".", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "Icmp1", ")", "return", "false", ";", "auto", "*", "Icmp2", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "I", ".", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "Icmp2", ")", "return", "false", ";", "Value", "*", "Icmp1Op0", "=", "Icmp1", "->", "getOperand", "(", "", ")", ";", "Value", "*", "Icmp2Op0", "=", "Icmp2", "->", "getOperand", "(", "", ")", ";", "if", "(", "Icmp1Op0", "!=", "Icmp2Op0", ")", "return", "false", ";", "PassThroughInfo", "Info", "(", "Icmp1", ",", "&", "I", ",", "", ")", ";"], "ground_truth": ["PassThroughs", ".", "push_back", "(", "Info", ")", ";"], "File": "BPFAdjustOpt5", "Func": "serializeICMPInBB", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1198, "Length": 99, "Cover_Rate": 0.7734375} {"Template_token": ["", "void", "AdjustOptImpl", "::", "adjustBasicBlock", "(", "BasicBlock", "&", "BB", ")", "{", "if", "(", "!", "DisableserializeICMP", "&&", "serializeICMPCrossBB", "(", "BB", ")", ")", "return", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt", "Func": "adjustBasicBlock", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1199, "Length": 23, "Cover_Rate": 1.0} {"Template_token": ["", "ToBeDeleted", "=", "nullptr", ";", "}", "auto", "*", "Icmp", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "&", "I", ")", ";", "if", "(", "!", "Icmp", ")", "continue", ";", "Value", "*", "Op0", "=", "Icmp", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "isa", "<", "TruncInst", ">", "(", "Op0", ")", ")", "continue", ";", "auto", "ConstOp1", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "Icmp", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "ConstOp1", ")", "continue", ";", "auto", "ConstOp1Val", "=", "ConstOp1", "->", "getValue", "(", ")", ".", "getZExtValue", "(", ")", ";", "auto", "Op", "=", "Icmp", "->", "getPredicate", "(", ")", ";", "if", "(", "Op", "==", "ICmpInst", "::", "ICMP_ULT", "||", "Op", "==", "ICmpInst", "::", "ICMP_UGE", ")", "{", "if", "(", "(", "ConstOp1Val", "-", "", ")", "&", "ConstOp1Val", ")", "continue", ";", "}", "else", "if", "(", "Op", "==", "ICmpInst", "::", "ICMP_ULE", "||", "Op", "==", "ICmpInst", "::", "ICMP_UGT", ")", "{", "if", "(", "ConstOp1Val", "&", "(", "ConstOp1Val", "+", "", ")", ")", "continue", ";", "}", "else", "{", "continue", ";", "}", "Constant", "*", "Opcode", "=", "ConstantInt", "::", "get", "(", "Type", "::", "getInt32Ty", "(", "BB", ".", "getContext", "(", ")", ")", ",", "Op", ")", ";", "Function", "*", "Fn", "=", "", "(", "M", ",", "", ",", "{", "Op0", "->", "getType", "(", ")", ",", "ConstOp1", "->", "getType", "(", ")", "}", ")", ";", "auto", "*", "NewInst", "=", "CallInst", "::", "Create", "(", "Fn", ",", "{", "Opcode", ",", "Op0", ",", "ConstOp1", "}", ")", ";", "BB", ".", "getInstList", "(", ")", ".", "insert", "(", "I", ".", "getIterator", "(", ")", ",", "NewInst", ")", ";"], "ground_truth": ["Icmp", "->", "replaceAllUsesWith", "(", "NewInst", ")", ";"], "File": "BPFAdjustOpt", "Func": "adjustICmpToBuiltin", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1201, "Length": 246, "Cover_Rate": 0.7735849056603774} {"Template_token": ["", "void", "AdjustOptImpl", "::", "adjustInst", "(", "Instruction", "&", "I", ")", "{", "if", "(", "!", "DisableserializeICMP", "&&", "serializeICMPInBB", "(", "I", ")", ")", "return", ";"], "ground_truth": ["if", "(", "!", "DisableavoidSpeculation", "&&", "avoidSpeculation", "(", "I", ")", ")", "return", ";"], "File": "BPFAdjustOpt", "Func": "adjustInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1202, "Length": 34, "Cover_Rate": 0.9714285714285714} {"Template_token": ["", "if", "(", "!", "DisableserializeICMP", "&&", "serializeICMPInBB", "(", "I", ")", ")", "return", ";"], "ground_truth": ["if", "(", "!", "DisableavoidSpeculation", "&&", "avoidSpeculation", "(", "I", ")", ")", "return", ";"], "File": "BPFAdjustOpt", "Func": "adjustInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1203, "Length": 24, "Cover_Rate": 0.6857142857142857} {"Template_token": ["", "}", "}", "if", "(", "!", "isa", "<", "LoadInst", ">", "(", "&", "I", ")", "&&", "!", "isa", "<", "CallInst", ">", "(", "&", "I", ")", ")", "return", "false", ";", "bool", "isCandidate", "=", "false", ";", "SmallVector", "<", "PassThroughInfo", ",", "", ">", "Candidates", ";", "for", "(", "User", "*", "U", ":", "I", ".", "users", "(", ")", ")", "{", "Instruction", "*", "Inst", "=", "dyn_cast", "<", "Instruction", ">", "(", "U", ")", ";", "if", "(", "!", "Inst", ")", "continue", ";", "if", "(", "auto", "*", "Icmp1", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "Inst", ")", ")", "{", "Value", "*", "Icmp1Op1", "=", "Icmp1", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "isa", "<", "Constant", ">", "(", "Icmp1Op1", ")", ")", "return", "false", ";", "isCandidate", "=", "true", ";", "continue", ";", "}", "if", "(", "Inst", "->", "getParent", "(", ")", "==", "I", ".", "getParent", "(", ")", ")", "continue", ";", "for", "(", "auto", "&", "I2", ":", "*", "Inst", "->", "getParent", "(", ")", ")", "{", "if", "(", "isa", "<", "CallInst", ">", "(", "&", "I2", ")", ")", "return", "false", ";", "if", "(", "isa", "<", "LoadInst", ">", "(", "&", "I2", ")", "||", "isa", "<", "StoreInst", ">", "(", "&", "I2", ")", ")", "return", "false", ";", "if", "(", "&", "I2", "==", "Inst", ")", "break", ";", "}"], "ground_truth": ["if", "(", "Inst", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "ZExt", "||", "Inst", "->", "getOpcode", "(", ")", "==", "Instruction", "::", "SExt", ")", "{"], "File": "BPFAdjustOpt", "Func": "avoidSpeculation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1204, "Length": 219, "Cover_Rate": 0.5140845070422535} {"Template_token": ["", "AdjustOpt", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFAdjustOpt", "Func": "BPFAdjustOpt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1205, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "AdjustOpt", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFAdjustOpt", "Func": "BPFAdjustOpt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1206, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "AdjustOptImpl", "(", "Module", "*", "M", ")", ":", "M", "(", "M", ")", "{"], "ground_truth": ["}"], "File": "BPFAdjustOpt", "Func": "BPFAdjustOptImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1207, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "AdjustOptImpl", "(", "Module", "*", "M", ")", ":", "M", "(", "M", ")", "{"], "ground_truth": ["}"], "File": "BPFAdjustOpt", "Func": "BPFAdjustOptImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1208, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "ModulePass", "*", "llvm", "::", "createAdjustOpt", "(", ")", "{", "return", "new", "AdjustOpt", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt", "Func": "createBPFAdjustOpt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1209, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "for", "(", "auto", "&", "Info", ":", "PassThroughs", ")", "{"], "ground_truth": ["auto", "*", "CI", "=", "", "(", "M", ",", "Info", ".", "UsedInst", "->", "getParent", "(", ")", ",", "Info", ".", "Input", ",", "Info", ".", "UsedInst", ")", ";"], "File": "BPFAdjustOpt", "Func": "insertPassThrough", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1211, "Length": 34, "Cover_Rate": 0.5151515151515151} {"Template_token": ["", "for", "(", "auto", "&", "Info", ":", "PassThroughs", ")", "{", "auto", "*", "CI", "=", "", "(", "M", ",", "Info", ".", "UsedInst", "->", "getParent", "(", ")", ",", "Info", ".", "Input", ",", "Info", ".", "UsedInst", ")", ";"], "ground_truth": ["Info", ".", "UsedInst", "->", "setOperand", "(", "Info", ".", "OpIdx", ",", "CI", ")", ";"], "File": "BPFAdjustOpt", "Func": "insertPassThrough", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1212, "Length": 47, "Cover_Rate": 0.7121212121212122} {"Template_token": ["", "PassThroughInfo", "(", "Instruction", "*", "I", ",", "Instruction", "*", "U", ",", "uint32_t", "Idx", ")", ":", "Input", "(", "I", ")", ",", "UsedInst", "(", "U", ")", ",", "OpIdx", "(", "Idx", ")", "{"], "ground_truth": ["}"], "File": "BPFAdjustOpt", "Func": "PassThroughInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1213, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "PassThroughInfo", "(", "Instruction", "*", "I", ",", "Instruction", "*", "U", ",", "uint32_t", "Idx", ")", ":", "Input", "(", "I", ")", ",", "UsedInst", "(", "U", ")", ",", "OpIdx", "(", "Idx", ")", "{"], "ground_truth": ["}"], "File": "BPFAdjustOpt", "Func": "PassThroughInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1214, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "PreservedAnalyses", "AdjustOptPass", "::", "run", "(", "Module", "&", "M", ",", "ModuleAnalysisManager", "&", "AM", ")", "{"], "ground_truth": ["return", "AdjustOptImpl", "(", "&", "M", ")", ".", "run", "(", ")", "?", "PreservedAnalyses", "::", "none", "(", ")", ":", "PreservedAnalyses", "::", "all", "(", ")", ";"], "File": "BPFAdjustOpt", "Func": "run", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1215, "Length": 37, "Cover_Rate": 0.9736842105263158} {"Template_token": ["", "bool", "AdjustOpt", "::", "runOnModule", "(", "Module", "&", "M", ")", "{", "return", "AdjustOptImpl", "(", "&", "M", ")", ".", "run", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt", "Func": "runOnModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1217, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "AdjustOpt", "::", "runOnModule", "(", "Module", "&", "M", ")", "{", "return", "AdjustOptImpl", "(", "&", "M", ")", ".", "run", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt", "Func": "runOnModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1218, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "!", "Cond", "||", "B2", "->", "getFirstNonPHI", "(", ")", "!=", "Cond", ")", "return", "false", ";", "Value", "*", "B2Op0", "=", "Cond", "->", "getOperand", "(", "", ")", ";", "auto", "Cond2Op", "=", "Cond", "->", "getPredicate", "(", ")", ";", "TI", "=", "B1", "->", "getTerminator", "(", ")", ";", "BI", "=", "dyn_cast", "<", "BranchInst", ">", "(", "TI", ")", ";", "if", "(", "!", "BI", "||", "!", "BI", "->", "isConditional", "(", ")", ")", "return", "false", ";", "Cond", "=", "dyn_cast", "<", "ICmpInst", ">", "(", "BI", "->", "getCondition", "(", ")", ")", ";", "if", "(", "!", "Cond", ")", "return", "false", ";", "Value", "*", "B1Op0", "=", "Cond", "->", "getOperand", "(", "", ")", ";", "auto", "Cond1Op", "=", "Cond", "->", "getPredicate", "(", ")", ";", "if", "(", "B1Op0", "!=", "B2Op0", ")", "return", "false", ";", "if", "(", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SGT", "||", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SGE", ")", "{", "if", "(", "Cond2Op", "!=", "ICmpInst", "::", "ICMP_SLT", "&&", "Cond2Op", "!=", "ICmpInst", "::", "ICMP_SLE", ")", "return", "false", ";", "}", "else", "if", "(", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SLT", "||", "Cond1Op", "==", "ICmpInst", "::", "ICMP_SLE", ")", "{", "if", "(", "Cond2Op", "!=", "ICmpInst", "::", "ICMP_SGT", "&&", "Cond2Op", "!=", "ICmpInst", "::", "ICMP_SGE", ")", "return", "false", ";"], "ground_truth": ["}", "else", "if", "(", "Cond1Op", "==", "ICmpInst", "::", "ICMP_ULT", "||", "Cond1Op", "==", "ICmpInst", "::", "ICMP_ULE", ")", "{"], "File": "BPFAdjustOpt", "Func": "serializeICMPCrossBB", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1219, "Length": 203, "Cover_Rate": 0.5328083989501312} {"Template_token": ["", "Value", "*", "Icmp2Op0", "=", "Icmp2", "->", "getOperand", "(", "", ")", ";", "if", "(", "Icmp1Op0", "!=", "Icmp2Op0", ")", "return", "false", ";", "PassThroughInfo", "Info", "(", "Icmp1", ",", "&", "I", ",", "", ")", ";", "PassThroughs", ".", "push_back", "(", "Info", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFAdjustOpt", "Func": "serializeICMPInBB", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1220, "Length": 42, "Cover_Rate": 0.3111111111111111} {"Template_token": ["", "", "::", "write", "<", "uint32_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "]", ",", "Value", ",", "Endian", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_8", ")", "{", "", "::", "write", "<", "uint64_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "]", ",", "Value", ",", "Endian", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_4", ")", "{", "Value", "=", "(", "uint32_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "Endian", "==", "", ")", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32le", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "else", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32be", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "int64_t", "ByteOff", "=", "(", "int64_t", ")", "Value", "-", "", ";", "if", "(", "ByteOff", ">", "INT16_MAX", "*", "", "||", "ByteOff", "<", "INT16_MIN", "*", "", ")", "report_fatal_error", "(", "", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "", "::", "write", "<", "uint16_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ",", "Endian", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend (2)1", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1221, "Length": 243, "Cover_Rate": 0.6787709497206704} {"Template_token": ["", "AsmBackend", "(", "", "Endian", ")", ":", "MCAsmBackend", "(", "Endian", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend (2)1", "Func": "BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1222, "Length": 12, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "AsmBackend", "(", "", "Endian", ")", ":", "MCAsmBackend", "(", "Endian", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend (2)1", "Func": "BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1223, "Length": 12, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "MCAsmBackend", "*", "llvm", "::", "createAsmBackend", "(", "const", "Target", "&", "T", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "MCTargetOptions", "&", ")", "{"], "ground_truth": ["return", "new", "AsmBackend", "(", "", ")", ";"], "File": "BPFAsmBackend (2)1", "Func": "createBPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1224, "Length": 33, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "MCAsmBackend", "*", "llvm", "::", "createAsmBackend", "(", "const", "Target", "&", "T", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "MCTargetOptions", "&", ")", "{", "return", "new", "AsmBackend", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend (2)1", "Func": "createBPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1225, "Length": 34, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "MCAsmBackend", "*", "llvm", "::", "createbeAsmBackend", "(", "const", "Target", "&", "T", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "MCTargetOptions", "&", ")", "{"], "ground_truth": ["return", "new", "AsmBackend", "(", "", ")", ";"], "File": "BPFAsmBackend (2)1", "Func": "createBPFbeAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1226, "Length": 33, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "std", "::", "unique_ptr", "<", "MCObjectTargetWriter", ">", "AsmBackend", "::", "createObjectTargetWriter", "(", ")", "const", "{", "return", "createELFObjectWriter", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend (2)1", "Func": "createObjectTargetWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1227, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "return", "createELFObjectWriter", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend (2)1", "Func": "createObjectTargetWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1228, "Length": 7, "Cover_Rate": 0.35} {"Template_token": ["", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend (2)1", "Func": "fixupNeedsRelaxation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1229, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{"], "ground_truth": ["return", "false", ";"], "File": "BPFAsmBackend (2)1", "Func": "fixupNeedsRelaxation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1230, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{", "return", "", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend (2)1", "Func": "getNumFixupKinds", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1231, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{", "return", "", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend (2)1", "Func": "getNumFixupKinds", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1232, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "(", "Count", "%", "", ")", "!=", "", ")", "return", "false", ";", "for", "(", "uint64_t", "i", "=", "", ";", "i", "<", "Count", ";", "i", "+=", "", ")", "", "::", "write", "<", "uint64_t", ">", "(", "OS", ",", "", ",", "Endian", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend (2)1", "Func": "writeNopData", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1233, "Length": 46, "Cover_Rate": 0.6865671641791045} {"Template_token": ["", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_8", ")", "{", "assert", "(", "Value", "==", "", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_8", ")", "{", "unsigned", "Size", "=", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "?", "", ":", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "Size", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittleEndian", "?", "i", ":", "Size", "-", "i", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "Idx", "]", "=", "uint8_t", "(", "Value", ">>", "(", "i", "*", "", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend12", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1234, "Length": 111, "Cover_Rate": 0.4703389830508475} {"Template_token": ["", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_8", ")", "{", "unsigned", "Size", "=", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "?", "", ":", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "Size", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittleEndian", "?", "i", ":", "Size", "-", "i", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "Idx", "]", "=", "uint8_t", "(", "Value", ">>", "(", "i", "*", "", ")", ")", ";", "}"], "ground_truth": ["}", "else", "{"], "File": "BPFAsmBackend12", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1235, "Length": 88, "Cover_Rate": 0.3728813559322034} {"Template_token": ["", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_8", ")", "{", "assert", "(", "Value", "==", "", ")", ";", "return", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend13", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1236, "Length": 29, "Cover_Rate": 0.3020833333333333} {"Template_token": ["", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "*", "(", "uint16_t", "*", ")", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend13", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1237, "Length": 42, "Cover_Rate": 0.4375} {"Template_token": ["", "AsmBackend", "(", ")", ":", "MCAsmBackend", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend13", "Func": "BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1238, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "AsmBackend", "(", ")", ":", "MCAsmBackend", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend13", "Func": "BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1239, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "MCObjectWriter", "*", "AsmBackend", "::", "createObjectWriter", "(", "raw_ostream", "&", "OS", ")", "const", "{", "return", "createELFObjectWriter", "(", "OS", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend13", "Func": "createObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1241, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "AsmBackend", "::", "writeNopData", "(", "uint64_t", "Count", ",", "MCObjectWriter", "*", "OW", ")", "const", "{", "if", "(", "(", "Count", "%", "", ")", "!=", "", ")", "return", "false", ";", "for", "(", "uint64_t", "i", "=", "", ";", "i", "<", "Count", ";", "i", "+=", "", ")", "OW", "->", "Write64", "(", "", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend13", "Func": "writeNopData", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1242, "Length": 53, "Cover_Rate": 1.0} {"Template_token": ["", "for", "(", "uint64_t", "i", "=", "", ";", "i", "<", "Count", ";", "i", "+=", "", ")", "OW", "->", "Write64", "(", "", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "BPFAsmBackend13", "Func": "writeNopData", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1243, "Length": 25, "Cover_Rate": 0.4716981132075472} {"Template_token": ["", "assert", "(", "Value", "==", "", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", ")", "{", "", "::", "write", "<", "uint32_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "]", ",", "Value", ",", "Endian", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_8", ")", "{", "", "::", "write", "<", "uint64_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "]", ",", "Value", ",", "Endian", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_4", ")", "{", "Value", "=", "(", "uint32_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "Endian", "==", "", ")", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32le", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "else", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32be", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "", "::", "write", "<", "uint16_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ",", "Endian", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFAsmBackend14", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1244, "Length": 235, "Cover_Rate": 0.7704918032786885} {"Template_token": ["", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "override", "{"], "ground_truth": ["return", "false", ";"], "File": "BPFAsmBackend14", "Func": "mayNeedRelaxation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1245, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "if", "(", "(", "Count", "%", "", ")", "!=", "", ")", "return", "false", ";", "for", "(", "uint64_t", "i", "=", "", ";", "i", "<", "Count", ";", "i", "+=", "", ")", "", "::", "write", "<", "uint64_t", ">", "(", "OS", ",", "", ",", "Endian", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "BPFAsmBackend14", "Func": "writeNopData", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1246, "Length": 45, "Cover_Rate": 0.7258064516129032} {"Template_token": ["", "if", "(", "(", "Count", "%", "", ")", "!=", "", ")", "return", "false", ";", "for", "(", "uint64_t", "i", "=", "", ";", "i", "<", "Count", ";", "i", "+=", "", ")", "", "::", "write", "<", "uint64_t", ">", "(", "OS", ",", "", ",", "Endian", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "BPFAsmBackend14", "Func": "writeNopData", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1247, "Length": 45, "Cover_Rate": 0.7258064516129032} {"Template_token": ["", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_8", ")", "{", "assert", "(", "Value", "<=", "UINT32_MAX", ")", ";", "", "::", "write", "<", "uint32_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "static_cast", "<", "uint32_t", ">", "(", "Value", ")", ",", "Endian", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", ")", "{", "", "::", "write", "<", "uint32_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "]", ",", "Value", ",", "Endian", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_8", ")", "{", "", "::", "write", "<", "uint64_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "]", ",", "Value", ",", "Endian", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_4", ")", "{", "Value", "=", "(", "uint32_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "Endian", "==", "", ")", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32le", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "else", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32be", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "}", "else", "{"], "ground_truth": ["assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";"], "File": "BPFAsmBackend16", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1248, "Length": 243, "Cover_Rate": 0.7210682492581603} {"Template_token": ["", "", "::", "write", "<", "uint32_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "static_cast", "<", "uint32_t", ">", "(", "Value", ")", ",", "Endian", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", ")", "{", "", "::", "write", "<", "uint32_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "]", ",", "Value", ",", "Endian", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_8", ")", "{", "", "::", "write", "<", "uint64_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "]", ",", "Value", ",", "Endian", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_4", ")", "{", "Value", "=", "(", "uint32_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "Endian", "==", "", ")", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32le", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "else", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32be", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";"], "ground_truth": ["", "::", "write", "<", "uint16_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ",", "Endian", ")", ";"], "File": "BPFAsmBackend16", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1249, "Length": 256, "Cover_Rate": 0.7596439169139466} {"Template_token": ["", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_8", ")", "{", "", "::", "write", "<", "uint64_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "]", ",", "Value", ",", "Endian", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_4", ")", "{", "Value", "=", "(", "uint32_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "Endian", "==", "", ")", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32le", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "else", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32be", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "", "::", "write", "<", "uint16_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ",", "Endian", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend17", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1250, "Length": 192, "Cover_Rate": 0.5853658536585366} {"Template_token": ["", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_8", ")", "{", "unsigned", "Size", "=", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "?", "", ":", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "Size", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittleEndian", "?", "i", ":", "Size", "-", "i", "-", "", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "Idx", "]", "=", "uint8_t", "(", "Value", ">>", "(", "i", "*", "", ")", ")", ";", "}", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_4", ")", "{", "Value", "=", "(", "uint32_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "IsLittleEndian", ")", "{"], "ground_truth": ["Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";"], "File": "BPFAsmBackend18", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1251, "Length": 133, "Cover_Rate": 0.3778409090909091} {"Template_token": ["", "assert", "(", "Value", "==", "", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_8", ")", "{", "unsigned", "Size", "=", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "?", "", ":", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "Size", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittleEndian", "?", "i", ":", "Size", "-", "i", "-", "", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "Idx", "]", "=", "uint8_t", "(", "Value", ">>", "(", "i", "*", "", ")", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "IsLittleEndian", ")", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", "&", "", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", ">>", "", ";", "}", "else", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", ">>", "", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", "&", "", ";", "}"], "ground_truth": ["}"], "File": "BPFAsmBackend19", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1254, "Length": 193, "Cover_Rate": 0.7813765182186235} {"Template_token": ["", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_8", ")", "{", "assert", "(", "Value", "==", "", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_8", ")", "{", "unsigned", "Size", "=", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "?", "", ":", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "Size", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittleEndian", "?", "i", ":", "Size", "-", "i", "-", "", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "Idx", "]", "=", "uint8_t", "(", "Value", ">>", "(", "i", "*", "", ")", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "IsLittleEndian", ")", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", "&", "", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", ">>", "", ";", "}", "else", "{"], "ground_truth": ["Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", ">>", "", ";"], "File": "BPFAsmBackend19", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1255, "Length": 195, "Cover_Rate": 0.7894736842105263} {"Template_token": ["", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "IsLittleEndian", ")", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", "&", "", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", ">>", "", ";", "}", "else", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", ">>", "", ";"], "ground_truth": ["Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", "&", "", ";"], "File": "BPFAsmBackend1", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1256, "Length": 94, "Cover_Rate": 0.3900414937759336} {"Template_token": ["", "MCAsmBackend", "*", "llvm", "::", "createAsmBackend", "(", "const", "Target", "&", "T", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "const", "MCTargetOptions", "&", ")", "{", "return", "new", "AsmBackend", "(", "true", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend1", "Func": "createBPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1257, "Length": 37, "Cover_Rate": 1.0} {"Template_token": ["", "MCAsmBackend", "*", "llvm", "::", "createbeAsmBackend", "(", "const", "Target", "&", "T", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "const", "MCTargetOptions", "&", ")", "{", "return", "new", "AsmBackend", "(", "false", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend1", "Func": "createBPFbeAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1258, "Length": 37, "Cover_Rate": 1.0} {"Template_token": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "override", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend1", "Func": "relaxInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1260, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCInst", "&", "Res", ")", "const", "override", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend1", "Func": "relaxInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1261, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "MCAsmBackend", "*", "llvm", "::", "createbeAsmBackend", "(", "const", "Target", "&", "T", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "StringRef", "TT", ",", "StringRef", "CPU", ")", "{", "return", "new", "AsmBackend", "(", "false", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend23", "Func": "createBPFbeAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1263, "Length": 31, "Cover_Rate": 1.0} {"Template_token": ["", "MCAsmBackend", "*", "llvm", "::", "createbeAsmBackend", "(", "const", "Target", "&", "T", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "StringRef", "TT", ",", "StringRef", "CPU", ")", "{", "return", "new", "AsmBackend", "(", "false", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend23", "Func": "createBPFbeAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1264, "Length": 31, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_8", ")", "{", "assert", "(", "Value", "==", "", ")", ";", "}", "else", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_8", ")", "{", "unsigned", "Size", "=", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "?", "", ":", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "Size", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittleEndian", "?", "i", ":", "Size", "-", "i", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "Idx", "]", "=", "uint8_t", "(", "Value", ">>", "(", "i", "*", "", ")", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "IsLittleEndian", ")", "{"], "ground_truth": ["Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", "&", "", ";"], "File": "BPFAsmBackend24", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1265, "Length": 160, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "if", "(", "Endian", "==", "", ")", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32le", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "else", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32be", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "", "::", "write", "<", "uint16_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ",", "Endian", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend25", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1266, "Length": 129, "Cover_Rate": 0.39209726443769} {"Template_token": ["", "", "::", "write32le", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "else", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32be", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";"], "ground_truth": ["", "::", "write", "<", "uint16_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ",", "Endian", ")", ";"], "File": "BPFAsmBackend25", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1267, "Length": 108, "Cover_Rate": 0.3282674772036474} {"Template_token": ["", "return", ";", "}", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "*", "(", "uint16_t", "*", ")", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend27", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1268, "Length": 45, "Cover_Rate": 0.33088235294117646} {"Template_token": ["", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";"], "ground_truth": ["*", "(", "uint16_t", "*", ")", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";"], "File": "BPFAsmBackend27", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1269, "Length": 41, "Cover_Rate": 0.3014705882352941} {"Template_token": ["", "AsmBackend", "(", ")", ":", "MCAsmBackend", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend27", "Func": "BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1270, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "AsmBackend", "(", ")", ":", "MCAsmBackend", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend27", "Func": "BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1271, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend27", "Func": "getNumFixupKinds", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1273, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "unsigned", "getNumFixupKinds", "(", ")", "const", "{", "return", "", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend27", "Func": "getNumFixupKinds", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1274, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "MCInst", "&", "Res", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend27", "Func": "relaxInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1277, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "MCInst", "&", "Res", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend27", "Func": "relaxInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1278, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "virtual", "~", "AsmBackend", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend27", "Func": "~BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1279, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "virtual", "~", "AsmBackend", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend27", "Func": "~BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1280, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "return", "createELFObjectWriter", "(", "OS", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend28", "Func": "createObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1281, "Length": 9, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "return", "createELFObjectWriter", "(", "OS", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend28", "Func": "createObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1282, "Length": 9, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "unsigned", "Size", "=", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "?", "", ":", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "Size", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittleEndian", "?", "i", ":", "Size", "-", "i", "-", "", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "Idx", "]", "=", "uint8_t", "(", "Value", ">>", "(", "i", "*", "", ")", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";"], "ground_truth": ["if", "(", "IsLittleEndian", ")", "{"], "File": "BPFAsmBackend2", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1283, "Length": 100, "Cover_Rate": 0.4132231404958678} {"Template_token": ["", "unsigned", "Size", "=", "Fixup", ".", "getKind", "(", ")", "==", "FK_Data_4", "?", "", ":", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "Size", ";", "++", "i", ")", "{", "unsigned", "Idx", "=", "IsLittleEndian", "?", "i", ":", "Size", "-", "i", "-", "", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "Idx", "]", "=", "uint8_t", "(", "Value", ">>", "(", "i", "*", "", ")", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "IsLittleEndian", ")", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", "&", "", ";", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", ">>", "", ";", "}", "else", "{"], "ground_truth": ["Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "Value", ">>", "", ";"], "File": "BPFAsmBackend4", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1284, "Length": 148, "Cover_Rate": 0.5991902834008097} {"Template_token": ["", "Value", "=", "(", "uint32_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "if", "(", "Endian", "==", "", ")", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32le", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "else", "{", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", "=", "", ";", "", "::", "write32be", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ")", ";", "}", "}", "else", "{", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";", "Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";", "", "::", "write", "<", "uint16_t", ">", "(", "&", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "", "]", ",", "Value", ",", "Endian", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFAsmBackend5", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1285, "Length": 145, "Cover_Rate": 0.48333333333333334} {"Template_token": ["", "MCAsmBackend", "*", "llvm", "::", "createAsmBackend", "(", "const", "Target", "&", "T", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "MCTargetOptions", "&", ")", "{", "return", "new", "AsmBackend", "(", "true", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend8", "Func": "createBPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1286, "Length": 34, "Cover_Rate": 1.0} {"Template_token": ["", "MCAsmBackend", "*", "llvm", "::", "createAsmBackend", "(", "const", "Target", "&", "T", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "MCTargetOptions", "&", ")", "{"], "ground_truth": ["return", "new", "AsmBackend", "(", "true", ")", ";"], "File": "BPFAsmBackend8", "Func": "createBPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1287, "Length": 33, "Cover_Rate": 0.9705882352941176} {"Template_token": ["", "if", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_4", "||", "Fixup", ".", "getKind", "(", ")", "==", "FK_SecRel_8", ")", "{", "assert", "(", "Value", "==", "", ")", ";", "return", ";", "}", "assert", "(", "Fixup", ".", "getKind", "(", ")", "==", "FK_PCRel_2", ")", ";"], "ground_truth": ["Value", "=", "(", "uint16_t", ")", "(", "(", "Value", "-", "", ")", "/", "", ")", ";"], "File": "BPFAsmBackend", "Func": "applyFixup", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1290, "Length": 55, "Cover_Rate": 0.36666666666666664} {"Template_token": ["", "AsmBackend", "(", "bool", "IsLittleEndian", ")", ":", "MCAsmBackend", "(", ")", ",", "IsLittleEndian", "(", "IsLittleEndian", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend", "Func": "BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1291, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "AsmBackend", "(", "bool", "IsLittleEndian", ")", ":", "MCAsmBackend", "(", ")", ",", "IsLittleEndian", "(", "IsLittleEndian", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend", "Func": "BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1292, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "MCAsmBackend", "*", "llvm", "::", "createAsmBackend", "(", "const", "Target", "&", "T", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ")", "{", "return", "new", "AsmBackend", "(", "true", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend", "Func": "createBPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1293, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "MCAsmBackend", "*", "llvm", "::", "createAsmBackend", "(", "const", "Target", "&", "T", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ")", "{", "return", "new", "AsmBackend", "(", "true", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmBackend", "Func": "createBPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1294, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "mayNeedRelaxation", "(", "const", "MCInst", "&", "Inst", ")", "const", "override", "{"], "ground_truth": ["return", "false", ";"], "File": "BPFAsmBackend", "Func": "mayNeedRelaxation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1299, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "MCInst", "&", "Res", ")", "const", "override", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend", "Func": "relaxInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1300, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "MCInst", "&", "Res", ")", "const", "override", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend", "Func": "relaxInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1301, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "for", "(", "uint64_t", "i", "=", "", ";", "i", "<", "Count", ";", "i", "+=", "", ")", "OW", "->", "write64", "(", "", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "BPFAsmBackend", "Func": "writeNopData", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1303, "Length": 25, "Cover_Rate": 0.4716981132075472} {"Template_token": ["", "~", "AsmBackend", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend", "Func": "~BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1304, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "~", "AsmBackend", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "BPFAsmBackend", "Func": "~BPFAsmBackend", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1305, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "return", "isImm", "(", ")", "&&", "dyn_cast", "<", "MCConstantExpr", ">", "(", "getImm", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmParser10", "Func": "isConstantImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1306, "Length": 16, "Cover_Rate": 0.7272727272727273} {"Template_token": ["", "unsigned", "RegNo", "=", "MatchRegisterName", "(", "Name", ")", ";", "if", "(", "RegNo", "!=", "", ")", "{", "SMLoc", "E", "=", "SMLoc", "::", "getFromPointer", "(", "NameLoc", ".", "getPointer", "(", ")", "-", "", ")", ";", "Operands", ".", "push_back", "(", "", "(", "RegNo", ",", "NameLoc", ",", "E", ")", ")", ";", "}", "else", "if", "(", "", "(", "Name", ")", ")", "Operands", ".", "push_back", "(", "", "(", "Name", ",", "NameLoc", ")", ")", ";", "else", "return", "true", ";", "while", "(", "!", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "if", "(", "parseOperandAsOperator", "(", "Operands", ")", "==", "MatchOperand_Success", ")", "continue", ";", "if", "(", "parseRegister", "(", "Operands", ")", "==", "MatchOperand_Success", ")", "continue", ";", "if", "(", "parseImmediate", "(", "Operands", ")", "!=", "MatchOperand_Success", ")", "return", "true", ";", "}", "if", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "SMLoc", "Loc", "=", "getLexer", "(", ")", ".", "getLoc", "(", ")", ";", "getParser", "(", ")", ".", "eatToEndOfStatement", "(", ")", ";", "return", "Error", "(", "Loc", ",", "", ")", ";", "}", "getParser", "(", ")", ".", "Lex", "(", ")", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAsmParser11", "Func": "ParseInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1307, "Length": 174, "Cover_Rate": 0.87} {"Template_token": ["", "if", "(", "parseOperandAsOperator", "(", "Operands", ")", "==", "MatchOperand_Success", ")", "continue", ";", "if", "(", "parseRegister", "(", "Operands", ")", "==", "MatchOperand_Success", ")", "continue", ";", "if", "(", "parseImmediate", "(", "Operands", ")", "!=", "MatchOperand_Success", ")", "return", "true", ";", "}", "if", "(", "getLexer", "(", ")", ".", "isNot", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{", "SMLoc", "Loc", "=", "getLexer", "(", ")", ".", "getLoc", "(", ")", ";", "getParser", "(", ")", ".", "eatToEndOfStatement", "(", ")", ";"], "ground_truth": ["return", "Error", "(", "Loc", ",", "", ")", ";"], "File": "BPFAsmParser11", "Func": "ParseInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1308, "Length": 76, "Cover_Rate": 0.38} {"Template_token": ["", "getLexer", "(", ")", ".", "Lex", "(", ")", ";", "Operands", ".", "push_back", "(", "", "(", "Name", ",", "S", ")", ")", ";", "return", "MatchOperand_Success", ";", "}", "case", "AsmToken", "::", "EqualEqual", ":", "case", "AsmToken", "::", "ExclaimEqual", ":", "case", "AsmToken", "::", "GreaterEqual", ":", "case", "AsmToken", "::", "GreaterGreater", ":", "case", "AsmToken", "::", "LessEqual", ":", "case", "AsmToken", "::", "LessLess", ":", "{", "Operands", ".", "push_back", "(", "", "(", "getLexer", "(", ")", ".", "getTok", "(", ")", ".", "getString", "(", ")", ".", "substr", "(", "", ",", "", ")", ",", "S", ")", ")", ";", "Operands", ".", "push_back", "(", "", "(", "getLexer", "(", ")", ".", "getTok", "(", ")", ".", "getString", "(", ")", ".", "substr", "(", "", ",", "", ")", ",", "S", ")", ")", ";", "getLexer", "(", ")", ".", "Lex", "(", ")", ";", "return", "MatchOperand_Success", ";", "}", "default", ":", "break", ";"], "ground_truth": ["}"], "File": "BPFAsmParser11", "Func": "parseOperandAsOperator", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1309, "Length": 130, "Cover_Rate": 0.37037037037037035} {"Template_token": ["", "Operand", "(", "KindTy", "K", ")", ":", "Kind", "(", "K", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmParser12", "Func": "BPFOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1310, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "Operand", "(", "KindTy", "K", ")", ":", "Kind", "(", "K", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmParser12", "Func": "BPFOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1311, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "static", "std", "::", "unique_ptr", "<", "Operand", ">", "createImm", "(", "const", "MCExpr", "*", "Val", ",", "SMLoc", "S", ",", "SMLoc", "E", ")", "{"], "ground_truth": ["auto", "Op", "=", "std", "::", "make_unique", "<", "Operand", ">", "(", "Immediate", ")", ";"], "File": "BPFAsmParser1", "Func": "createImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1312, "Length": 34, "Cover_Rate": 0.5862068965517241} {"Template_token": ["", "Op", "->", "Imm", ".", "Val", "=", "Val", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";"], "ground_truth": ["return", "Op", ";"], "File": "BPFAsmParser1", "Func": "createImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1313, "Length": 23, "Cover_Rate": 0.39655172413793105} {"Template_token": ["", "Op", "->", "Reg", ".", "RegNum", "=", "RegNo", ";", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "E", ";"], "ground_truth": ["return", "Op", ";"], "File": "BPFAsmParser1", "Func": "createReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1314, "Length": 23, "Cover_Rate": 0.4107142857142857} {"Template_token": ["", "Op", "->", "Reg", ".", "RegNum", "=", "RegNo", ";", "Op", "->", "StartLoc", "=", "S", ";"], "ground_truth": ["Op", "->", "EndLoc", "=", "E", ";"], "File": "BPFAsmParser1", "Func": "createReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1315, "Length": 20, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "static", "std", "::", "unique_ptr", "<", "Operand", ">", "createToken", "(", "StringRef", "Str", ",", "SMLoc", "S", ")", "{", "auto", "Op", "=", "std", "::", "make_unique", "<", "Operand", ">", "(", "Token", ")", ";"], "ground_truth": ["Op", "->", "Tok", "=", "Str", ";"], "File": "BPFAsmParser1", "Func": "createToken", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1316, "Length": 35, "Cover_Rate": 0.6862745098039216} {"Template_token": ["", "LLVM_EXTERNAL_VISIBILITY", "void", "LLVMInitializeAsmParser", "(", ")", "{", "RegisterMCAsmParser", "<", "AsmParser", ">", "X", "(", "getTheTarget", "(", ")", ")", ";", "RegisterMCAsmParser", "<", "AsmParser", ">", "Y", "(", "getTheleTarget", "(", ")", ")", ";", "RegisterMCAsmParser", "<", "AsmParser", ">", "Z", "(", "getThebeTarget", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmParser1", "Func": "LLVMInitializeBPFAsmParser", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1317, "Length": 40, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterMCAsmParser", "<", "AsmParser", ">", "X", "(", "getTheTarget", "(", ")", ")", ";"], "ground_truth": ["RegisterMCAsmParser", "<", "AsmParser", ">", "Y", "(", "getTheleTarget", "(", ")", ")", ";"], "File": "BPFAsmParser1", "Func": "LLVMInitializeBPFAsmParser", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1318, "Length": 22, "Cover_Rate": 0.55} {"Template_token": ["", "if", "(", "tryParseRegister", "(", "RegNo", ",", "StartLoc", ",", "EndLoc", ")", "!=", "MatchOperand_Success", ")", "return", "Error", "(", "StartLoc", ",", "", ")", ";"], "ground_truth": ["return", "false", ";"], "File": "BPFAsmParser1", "Func": "ParseRegister", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1319, "Length": 24, "Cover_Rate": 0.5581395348837209} {"Template_token": ["", "StartLoc", "=", "Tok", ".", "getLoc", "(", ")", ";", "EndLoc", "=", "Tok", ".", "getEndLoc", "(", ")", ";", "RegNo", "=", "", ";", "StringRef", "Name", "=", "getLexer", "(", ")", ".", "getTok", "(", ")", ".", "getIdentifier", "(", ")", ";", "if", "(", "!", "MatchRegisterName", "(", "Name", ")", ")", "{", "getParser", "(", ")", ".", "Lex", "(", ")", ";", "return", "MatchOperand_Success", ";", "}", "return", "MatchOperand_NoMatch", ";"], "ground_truth": ["}"], "File": "BPFAsmParser1", "Func": "tryParseRegister", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1320, "Length": 60, "Cover_Rate": 0.6593406593406593} {"Template_token": ["", "StringRef", "Name", "=", "getLexer", "(", ")", ".", "getTok", "(", ")", ".", "getIdentifier", "(", ")", ";", "if", "(", "!", "MatchRegisterName", "(", "Name", ")", ")", "{", "getParser", "(", ")", ".", "Lex", "(", ")", ";", "return", "MatchOperand_Success", ";"], "ground_truth": ["}"], "File": "BPFAsmParser1", "Func": "tryParseRegister", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1321, "Length": 36, "Cover_Rate": 0.3956043956043956} {"Template_token": ["", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "assert", "(", "Expr", "&&", "", ")", ";", "if", "(", "auto", "*", "CE", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Expr", ")", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "CE", "->", "getValue", "(", ")", ")", ")", ";"], "ground_truth": ["else", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createExpr", "(", "Expr", ")", ")", ";"], "File": "BPFAsmParser", "Func": "addExpr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1323, "Length": 64, "Cover_Rate": 0.9846153846153847} {"Template_token": ["", "assert", "(", "N", "==", "", "&&", "", ")", ";"], "ground_truth": ["addExpr", "(", "Inst", ",", "getImm", "(", ")", ")", ";"], "File": "BPFAsmParser", "Func": "addImmOperands", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1324, "Length": 18, "Cover_Rate": 0.5806451612903226} {"Template_token": ["", "assert", "(", "N", "==", "", "&&", "", ")", ";", "addExpr", "(", "Inst", ",", "getImm", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "addImmOperands", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1325, "Length": 19, "Cover_Rate": 0.6129032258064516} {"Template_token": ["", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "getReg", "(", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "addRegOperands", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1326, "Length": 15, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "assert", "(", "N", "==", "", "&&", "", ")", ";"], "ground_truth": ["Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "getReg", "(", ")", ")", ")", ";"], "File": "BPFAsmParser", "Func": "addRegOperands", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1327, "Length": 23, "Cover_Rate": 0.6388888888888888} {"Template_token": ["", "AsmParser", "(", "const", "MCSubtargetInfo", "&", "STI", ",", "MCAsmParser", "&", "Parser", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCTargetOptions", "&", "Options", ")", ":", "MCTargetAsmParser", "(", "Options", ",", "STI", ",", "MII", ")", "{"], "ground_truth": ["setAvailableFeatures", "(", "ComputeAvailableFeatures", "(", "STI", ".", "getFeatureBits", "(", ")", ")", ")", ";"], "File": "BPFAsmParser", "Func": "BPFAsmParser", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1328, "Length": 43, "Cover_Rate": 0.9772727272727273} {"Template_token": ["", "Operand", "(", "const", "Operand", "&", "o", ")", ":", "MCParsedAsmOperand", "(", ")", "{", "Kind", "=", "o", ".", "Kind", ";", "StartLoc", "=", "o", ".", "StartLoc", ";", "EndLoc", "=", "o", ".", "EndLoc", ";", "switch", "(", "Kind", ")", "{", "case", "Register", ":", "Reg", "=", "o", ".", "Reg", ";", "break", ";"], "ground_truth": ["case", "Immediate", ":"], "File": "BPFAsmParser", "Func": "BPFOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1330, "Length": 49, "Cover_Rate": 0.7} {"Template_token": ["", "EndLoc", "=", "o", ".", "EndLoc", ";", "switch", "(", "Kind", ")", "{", "case", "Register", ":", "Reg", "=", "o", ".", "Reg", ";", "break", ";", "case", "Immediate", ":"], "ground_truth": ["Imm", "=", "o", ".", "Imm", ";"], "File": "BPFAsmParser", "Func": "BPFOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1331, "Length": 31, "Cover_Rate": 0.44285714285714284} {"Template_token": ["", "auto", "Op", "=", "make_unique", "<", "Operand", ">", "(", "Immediate", ")", ";", "Op", "->", "Imm", ".", "Val", "=", "Val", ";", "Op", "->", "StartLoc", "=", "S", ";"], "ground_truth": ["Op", "->", "EndLoc", "=", "E", ";"], "File": "BPFAsmParser", "Func": "createImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1332, "Length": 31, "Cover_Rate": 0.5535714285714286} {"Template_token": ["", "static", "std", "::", "unique_ptr", "<", "Operand", ">", "createImm", "(", "const", "MCExpr", "*", "Val", ",", "SMLoc", "S", ",", "SMLoc", "E", ")", "{", "auto", "Op", "=", "make_unique", "<", "Operand", ">", "(", "Immediate", ")", ";", "Op", "->", "Imm", ".", "Val", "=", "Val", ";", "Op", "->", "StartLoc", "=", "S", ";"], "ground_truth": ["Op", "->", "EndLoc", "=", "E", ";"], "File": "BPFAsmParser", "Func": "createImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1333, "Length": 52, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "static", "std", "::", "unique_ptr", "<", "Operand", ">", "createReg", "(", "unsigned", "RegNo", ",", "SMLoc", "S", ",", "SMLoc", "E", ")", "{", "auto", "Op", "=", "make_unique", "<", "Operand", ">", "(", "Register", ")", ";"], "ground_truth": ["Op", "->", "Reg", ".", "RegNum", "=", "RegNo", ";"], "File": "BPFAsmParser", "Func": "createReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1334, "Length": 38, "Cover_Rate": 0.7037037037037037} {"Template_token": ["", "auto", "Op", "=", "make_unique", "<", "Operand", ">", "(", "Register", ")", ";", "Op", "->", "Reg", ".", "RegNum", "=", "RegNo", ";", "Op", "->", "StartLoc", "=", "S", ";"], "ground_truth": ["Op", "->", "EndLoc", "=", "E", ";"], "File": "BPFAsmParser", "Func": "createReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1335, "Length": 31, "Cover_Rate": 0.5740740740740741} {"Template_token": ["", "Op", "->", "StartLoc", "=", "S", ";", "Op", "->", "EndLoc", "=", "S", ";"], "ground_truth": ["return", "Op", ";"], "File": "BPFAsmParser", "Func": "createToken", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1336, "Length": 15, "Cover_Rate": 0.30612244897959184} {"Template_token": ["", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "equalIsAsmAssignment", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1337, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "const", "MCExpr", "*", "Val", "=", "getImm", "(", ")", ";"], "ground_truth": ["return", "static_cast", "<", "const", "MCConstantExpr", "*", ">", "(", "Val", ")", "->", "getValue", "(", ")", ";"], "File": "BPFAsmParser", "Func": "getConstantImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1338, "Length": 24, "Cover_Rate": 0.7741935483870968} {"Template_token": ["", "return", "static_cast", "<", "const", "MCConstantExpr", "*", ">", "(", "Val", ")", "->", "getValue", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "getConstantImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1339, "Length": 16, "Cover_Rate": 0.5161290322580645} {"Template_token": ["", "SMLoc", "getEndLoc", "(", ")", "const", "override", "{", "return", "EndLoc", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "getEndLoc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1340, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "SMLoc", "getEndLoc", "(", ")", "const", "override", "{"], "ground_truth": ["return", "EndLoc", ";"], "File": "BPFAsmParser", "Func": "getEndLoc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1341, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "assert", "(", "Kind", "==", "Immediate", "&&", "", ")", ";", "return", "Imm", ".", "Val", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "getImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1342, "Length": 15, "Cover_Rate": 0.6521739130434783} {"Template_token": ["", "const", "MCExpr", "*", "getImm", "(", ")", "const", "{", "assert", "(", "Kind", "==", "Immediate", "&&", "", ")", ";", "return", "Imm", ".", "Val", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "getImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1343, "Length": 23, "Cover_Rate": 1.0} {"Template_token": ["", "assert", "(", "Kind", "==", "Register", "&&", "", ")", ";", "return", "Reg", ".", "RegNum", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "getReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1346, "Length": 15, "Cover_Rate": 0.6818181818181818} {"Template_token": ["", "SMLoc", "getStartLoc", "(", ")", "const", "override", "{", "return", "StartLoc", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "getStartLoc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1347, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "return", "StartLoc", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "getStartLoc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1348, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "assert", "(", "Kind", "==", "Token", "&&", "", ")", ";", "return", "Tok", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "getToken", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1349, "Length": 13, "Cover_Rate": 0.6842105263157895} {"Template_token": ["", "return", "isImm", "(", ")", "&&", "isa", "<", "MCConstantExpr", ">", "(", "getImm", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "isConstantImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1350, "Length": 16, "Cover_Rate": 0.7272727272727273} {"Template_token": ["", "return", "Kind", "==", "Immediate", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "isImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1351, "Length": 6, "Cover_Rate": 0.46153846153846156} {"Template_token": ["", "bool", "isImm", "(", ")", "const", "override", "{", "return", "Kind", "==", "Immediate", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "isImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1352, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "isMem", "(", ")", "const", "override", "{", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "isMem", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1353, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "isSImm12", "(", ")", "const", "{", "return", "(", "isConstantImm", "(", ")", "&&", "isInt", "<", "", ">", "(", "getConstantImm", "(", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "isSImm12", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1356, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "isSImm12", "(", ")", "const", "{"], "ground_truth": ["return", "(", "isConstantImm", "(", ")", "&&", "isInt", "<", "", ">", "(", "getConstantImm", "(", ")", ")", ")", ";"], "File": "BPFAsmParser", "Func": "isSImm12", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1357, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "bool", "isToken", "(", ")", "const", "override", "{", "return", "Kind", "==", "Token", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "isToken", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1359, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "static", "bool", "isValidIdAtStart", "(", "StringRef", "Name", ")", "{"], "ground_truth": ["return", "StringSwitch", "<", "bool", ">", "(", "Name", ".", "lower", "(", ")", ")", ".", "Case", "(", "", ",", "true", ")", ".", "Case", "(", "", ",", "true", ")", ".", "Case", "(", "", ",", "true", ")", ".", "Case", "(", "", ",", "true", ")", ".", "Case", "(", "", ",", "true", ")", ".", "Case", "(", "", ",", "true", ")", ".", "Case", "(", "", ",", "true", ")", ".", "Default", "(", "false", ")", ";"], "File": "BPFAsmParser", "Func": "isValidIdAtStart", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1360, "Length": 75, "Cover_Rate": 0.9868421052631579} {"Template_token": ["", "void", "LLVMInitializeAsmParser", "(", ")", "{", "RegisterMCAsmParser", "<", "AsmParser", ">", "X", "(", "getTheTarget", "(", ")", ")", ";", "RegisterMCAsmParser", "<", "AsmParser", ">", "Y", "(", "getTheleTarget", "(", ")", ")", ";", "RegisterMCAsmParser", "<", "AsmParser", ">", "Z", "(", "getThebeTarget", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "LLVMInitializeBPFAsmParser", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1363, "Length": 39, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterMCAsmParser", "<", "AsmParser", ">", "X", "(", "getTheTarget", "(", ")", ")", ";", "RegisterMCAsmParser", "<", "AsmParser", ">", "Y", "(", "getTheleTarget", "(", ")", ")", ";", "RegisterMCAsmParser", "<", "AsmParser", ">", "Z", "(", "getThebeTarget", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "LLVMInitializeBPFAsmParser", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1364, "Length": 34, "Cover_Rate": 0.8717948717948718} {"Template_token": ["", "bool", "AsmParser", "::", "MatchAndEmitInstruction", "(", "SMLoc", "IDLoc", ",", "unsigned", "&", "Opcode", ",", "OperandVector", "&", "Operands", ",", "MCStreamer", "&", "Out", ",", "uint64_t", "&", "ErrorInfo", ",", "bool", "MatchingInlineAsm", ")", "{", "MCInst", "Inst", ";", "SMLoc", "ErrorLoc", ";", "if", "(", "PreMatchCheck", "(", "Operands", ")", ")", "return", "Error", "(", "IDLoc", ",", "", ")", ";", "switch", "(", "MatchInstructionImpl", "(", "Operands", ",", "Inst", ",", "ErrorInfo", ",", "MatchingInlineAsm", ")", ")", "{", "default", ":", "break", ";", "case", "Match_Success", ":", "Inst", ".", "setLoc", "(", "IDLoc", ")", ";", "Out", ".", "EmitInstruction", "(", "Inst", ",", "getSTI", "(", ")", ")", ";", "return", "false", ";", "case", "Match_MissingFeature", ":", "return", "Error", "(", "IDLoc", ",", "", ")", ";", "case", "Match_MnemonicFail", ":"], "ground_truth": ["return", "Error", "(", "IDLoc", ",", "", ")", ";"], "File": "BPFAsmParser", "Func": "MatchAndEmitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1365, "Length": 113, "Cover_Rate": 0.5885416666666666} {"Template_token": ["", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "ParseDirective", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1366, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "case", "AsmToken", "::", "Plus", ":", "case", "AsmToken", "::", "Integer", ":", "case", "AsmToken", "::", "String", ":", "case", "AsmToken", "::", "Identifier", ":", "break", ";", "}", "const", "MCExpr", "*", "IdVal", ";", "SMLoc", "S", "=", "getLoc", "(", ")", ";", "if", "(", "getParser", "(", ")", ".", "parseExpression", "(", "IdVal", ")", ")", "return", "MatchOperand_ParseFail", ";", "SMLoc", "E", "=", "SMLoc", "::", "getFromPointer", "(", "S", ".", "getPointer", "(", ")", "-", "", ")", ";", "Operands", ".", "push_back", "(", "", "(", "IdVal", ",", "S", ",", "E", ")", ")", ";"], "ground_truth": ["return", "MatchOperand_Success", ";"], "File": "BPFAsmParser", "Func": "parseImmediate", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1368, "Length": 82, "Cover_Rate": 0.6776859504132231} {"Template_token": ["", "break", ";", "}", "const", "MCExpr", "*", "IdVal", ";", "SMLoc", "S", "=", "getLoc", "(", ")", ";", "if", "(", "getParser", "(", ")", ".", "parseExpression", "(", "IdVal", ")", ")", "return", "MatchOperand_ParseFail", ";", "SMLoc", "E", "=", "SMLoc", "::", "getFromPointer", "(", "S", ".", "getPointer", "(", ")", "-", "", ")", ";", "Operands", ".", "push_back", "(", "", "(", "IdVal", ",", "S", ",", "E", ")", ")", ";", "return", "MatchOperand_Success", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "parseImmediate", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1369, "Length": 63, "Cover_Rate": 0.5206611570247934} {"Template_token": ["", "bool", "AsmParser", "::", "ParseInstruction", "(", "ParseInstructionInfo", "&", "Info", ",", "StringRef", "Name", ",", "SMLoc", "NameLoc", ",", "OperandVector", "&", "Operands", ")", "{", "unsigned", "RegNo", "=", "MatchRegisterName", "(", "Name", ")", ";", "if", "(", "RegNo", "!=", "", ")", "{", "SMLoc", "E", "=", "SMLoc", "::", "getFromPointer", "(", "NameLoc", ".", "getPointer", "(", ")", "-", "", ")", ";", "Operands", ".", "push_back", "(", "", "(", "RegNo", ",", "NameLoc", ",", "E", ")", ")", ";", "}", "else", "if", "(", "", "(", "Name", ")", ")", "Operands", ".", "push_back", "(", "", "(", "Name", ",", "NameLoc", ")", ")", ";", "else", "return", "Error", "(", "NameLoc", ",", "", ")", ";", "while", "(", "!", "getLexer", "(", ")", ".", "is", "(", "AsmToken", "::", "EndOfStatement", ")", ")", "{"], "ground_truth": ["if", "(", "parseOperandAsOperator", "(", "Operands", ")", "==", "MatchOperand_Success", ")", "continue", ";"], "File": "BPFAsmParser", "Func": "ParseInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1370, "Length": 121, "Cover_Rate": 0.5426008968609866} {"Template_token": ["", "LLVM_FALLTHROUGH", ";", "}", "case", "AsmToken", "::", "Equal", ":", "case", "AsmToken", "::", "Greater", ":", "case", "AsmToken", "::", "Less", ":", "case", "AsmToken", "::", "Pipe", ":", "case", "AsmToken", "::", "Star", ":", "case", "AsmToken", "::", "LParen", ":", "case", "AsmToken", "::", "RParen", ":", "case", "AsmToken", "::", "LBrac", ":", "case", "AsmToken", "::", "RBrac", ":", "case", "AsmToken", "::", "Slash", ":", "case", "AsmToken", "::", "Amp", ":", "case", "AsmToken", "::", "Percent", ":", "case", "AsmToken", "::", "Caret", ":", "{", "StringRef", "Name", "=", "getLexer", "(", ")", ".", "getTok", "(", ")", ".", "getString", "(", ")", ";", "getLexer", "(", ")", ".", "Lex", "(", ")", ";", "Operands", ".", "push_back", "(", "", "(", "Name", ",", "S", ")", ")", ";", "return", "MatchOperand_Success", ";", "}", "case", "AsmToken", "::", "EqualEqual", ":", "case", "AsmToken", "::", "ExclaimEqual", ":", "case", "AsmToken", "::", "GreaterEqual", ":"], "ground_truth": ["case", "AsmToken", "::", "GreaterGreater", ":"], "File": "BPFAsmParser", "Func": "parseOperandAsOperator", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1371, "Length": 128, "Cover_Rate": 0.3626062322946176} {"Template_token": ["", "if", "(", "Operands", ".", "size", "(", ")", "==", "", ")", "{", "Operand", "&", "Op0", "=", "(", "Operand", "&", ")", "*", "Operands", "[", "", "]", ";", "Operand", "&", "Op1", "=", "(", "Operand", "&", ")", "*", "Operands", "[", "", "]", ";", "Operand", "&", "Op2", "=", "(", "Operand", "&", ")", "*", "Operands", "[", "", "]", ";", "Operand", "&", "Op3", "=", "(", "Operand", "&", ")", "*", "Operands", "[", "", "]", ";", "if", "(", "Op0", ".", "isReg", "(", ")", "&&", "Op1", ".", "isToken", "(", ")", "&&", "Op2", ".", "isToken", "(", ")", "&&", "Op3", ".", "isReg", "(", ")", "&&", "Op1", ".", "getToken", "(", ")", "==", "", "&&", "(", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", ")", "&&", "Op0", ".", "getReg", "(", ")", "!=", "Op3", ".", "getReg", "(", ")", ")", "return", "true", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "PreMatchCheck", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1372, "Length": 179, "Cover_Rate": 0.9470899470899471} {"Template_token": ["", "Operand", "&", "Op2", "=", "(", "Operand", "&", ")", "*", "Operands", "[", "", "]", ";", "Operand", "&", "Op3", "=", "(", "Operand", "&", ")", "*", "Operands", "[", "", "]", ";", "if", "(", "Op0", ".", "isReg", "(", ")", "&&", "Op1", ".", "isToken", "(", ")", "&&", "Op2", ".", "isToken", "(", ")", "&&", "Op3", ".", "isReg", "(", ")", "&&", "Op1", ".", "getToken", "(", ")", "==", "", "&&", "(", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", "||", "Op2", ".", "getToken", "(", ")", "==", "", ")", "&&", "Op0", ".", "getReg", "(", ")", "!=", "Op3", ".", "getReg", "(", ")", ")", "return", "true", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "PreMatchCheck", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1373, "Length": 140, "Cover_Rate": 0.7407407407407407} {"Template_token": ["", "void", "print", "(", "raw_ostream", "&", "OS", ")", "const", "override", "{", "switch", "(", "Kind", ")", "{", "case", "Immediate", ":", "OS", "<<", "*", "getImm", "(", ")", ";"], "ground_truth": ["break", ";"], "File": "BPFAsmParser", "Func": "print", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1374, "Length": 27, "Cover_Rate": 0.4426229508196721} {"Template_token": ["", "bool", "starIsStartOfStatement", "(", ")", "override", "{"], "ground_truth": ["return", "true", ";"], "File": "BPFAsmParser", "Func": "starIsStartOfStatement", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1375, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFAsmParser", "Func": "starIsStartOfStatement", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1376, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "explicit", "AsmPrinter", "(", "TargetMachine", "&", "TM", ",", "std", "::", "unique_ptr", "<", "MCStreamer", ">", "Streamer", ")", ":", "AsmPrinter", "(", "TM", ",", "std", "::", "move", "(", "Streamer", ")", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmPrinter (2)", "Func": "BPFAsmPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1377, "Length": 29, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "AsmPrinter", "(", "TargetMachine", "&", "TM", ",", "std", "::", "unique_ptr", "<", "MCStreamer", ">", "Streamer", ")", ":", "AsmPrinter", "(", "TM", ",", "std", "::", "move", "(", "Streamer", ")", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmPrinter (2)", "Func": "BPFAsmPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1378, "Length": 29, "Cover_Rate": 1.0} {"Template_token": ["", "MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter (2)", "Func": "EmitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1379, "Length": 18, "Cover_Rate": 0.43902439024390244} {"Template_token": ["", "MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";"], "ground_truth": ["EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";"], "File": "BPFAsmPrinter (2)", "Func": "EmitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1380, "Length": 17, "Cover_Rate": 0.4146341463414634} {"Template_token": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter (2)", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1382, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "void", "LLVMInitializeAsmPrinter", "(", ")", "{", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "X", "(", "TheleTarget", ")", ";", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "Y", "(", "ThebeTarget", ")", ";", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "Z", "(", "TheTarget", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter (2)", "Func": "LLVMInitializeBPFAsmPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1383, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "Y", "(", "ThebeTarget", ")", ";", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "Z", "(", "TheTarget", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter (2)", "Func": "LLVMInitializeBPFAsmPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1384, "Length": 19, "Cover_Rate": 0.5757575757575758} {"Template_token": ["", "case", "MachineOperand", "::", "MO_Register", ":", "O", "<<", "InstPrinter", "::", "getRegisterName", "(", "MO", ".", "getReg", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "O", "<<", "MO", ".", "getImm", "(", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "O", "<<", "*", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ";", "break", ";"], "ground_truth": ["case", "MachineOperand", "::", "MO_GlobalAddress", ":"], "File": "BPFAsmPrinter (2)", "Func": "printOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1385, "Length": 60, "Cover_Rate": 0.47244094488188976} {"Template_token": ["", "bool", "AsmPrinter", "::", "PrintAsmMemoryOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNum", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "assert", "(", "OpNum", "+", "", "<", "MI", "->", "getNumOperands", "(", ")", "&&", "", ")", ";", "const", "MachineOperand", "&", "BaseMO", "=", "MI", "->", "getOperand", "(", "OpNum", ")", ";", "const", "MachineOperand", "&", "OffsetMO", "=", "MI", "->", "getOperand", "(", "OpNum", "+", "", ")", ";", "assert", "(", "BaseMO", ".", "isReg", "(", ")", "&&", "", ")", ";"], "ground_truth": ["assert", "(", "OffsetMO", ".", "isImm", "(", ")", "&&", "", ")", ";"], "File": "BPFAsmPrinter11", "Func": "PrintAsmMemoryOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1386, "Length": 89, "Cover_Rate": 0.559748427672956} {"Template_token": ["", "bool", "AsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "unsigned", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "", "]", ")", "return", "true", ";", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";"], "ground_truth": ["return", "false", ";"], "File": "BPFAsmPrinter11", "Func": "PrintAsmOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1387, "Length": 49, "Cover_Rate": 0.98} {"Template_token": ["", "void", "AsmPrinter", "::", "printOperand", "(", "const", "MachineInstr", "*", "MI", ",", "int", "OpNum", ",", "raw_ostream", "&", "O", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "OpNum", ")", ";", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "case", "MachineOperand", "::", "MO_Register", ":", "O", "<<", "InstPrinter", "::", "getRegisterName", "(", "MO", ".", "getReg", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "O", "<<", "MO", ".", "getImm", "(", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "O", "<<", "*", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "O", "<<", "*", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_BlockAddress", ":", "{", "MCSymbol", "*", "BA", "=", "GetBlockAddressSymbol", "(", "MO", ".", "getBlockAddress", "(", ")", ")", ";", "O", "<<", "BA", "->", "getName", "(", ")", ";", "break", ";", "}", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "O", "<<", "*", "GetExternalSymbolSymbol", "(", "MO", ".", "getSymbolName", "(", ")", ")", ";", "break", ";"], "ground_truth": ["case", "MachineOperand", "::", "MO_JumpTableIndex", ":"], "File": "BPFAsmPrinter11", "Func": "printOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1388, "Length": 167, "Cover_Rate": 0.9226519337016574} {"Template_token": ["", "explicit", "AsmPrinter", "(", "TargetMachine", "&", "TM", ",", "std", "::", "unique_ptr", "<", "MCStreamer", ">", "Streamer", ")", ":", "AsmPrinter", "(", "TM", ",", "std", "::", "move", "(", "Streamer", ")", ")", ",", "BTF", "(", "nullptr", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmPrinter12", "Func": "BPFAsmPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1389, "Length": 34, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "AsmPrinter", "(", "TargetMachine", "&", "TM", ",", "std", "::", "unique_ptr", "<", "MCStreamer", ">", "Streamer", ")", ":", "AsmPrinter", "(", "TM", ",", "std", "::", "move", "(", "Streamer", ")", ")", ",", "BTF", "(", "nullptr", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmPrinter12", "Func": "BPFAsmPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1390, "Length": 34, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "AsmPrinter", "::", "doInitialization", "(", "Module", "&", "M", ")", "{", "AsmPrinter", "::", "doInitialization", "(", "M", ")", ";", "if", "(", "MAI", "->", "doesSupportDebugInformation", "(", ")", "&&", "!", "M", ".", "debug_compile_units", "(", ")", ".", "empty", "(", ")", ")", "{", "BTF", "=", "new", "BTFDebug", "(", "this", ")", ";", "Handlers", ".", "push_back", "(", "HandlerInfo", "(", "std", "::", "unique_ptr", "<", "BTFDebug", ">", "(", "BTF", ")", ",", "", ",", "", ",", "", ",", "", ")", ")", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter12", "Func": "doInitialization", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1391, "Length": 76, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "MAI", "->", "doesSupportDebugInformation", "(", ")", "&&", "!", "M", ".", "debug_compile_units", "(", ")", ".", "empty", "(", ")", ")", "{", "BTF", "=", "new", "BTFDebug", "(", "this", ")", ";", "Handlers", ".", "push_back", "(", "HandlerInfo", "(", "std", "::", "unique_ptr", "<", "BTFDebug", ">", "(", "BTF", ")", ",", "", ",", "", ",", "", ",", "", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter12", "Func": "doInitialization", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1392, "Length": 55, "Cover_Rate": 0.7236842105263158} {"Template_token": ["", "if", "(", "!", "BTF", "||", "!", "BTF", "->", "InstLower", "(", "MI", ",", "TmpInst", ")", ")", "{", "MCInstLower", "MCInstLowering", "(", "OutContext", ",", "*", "this", ")", ";"], "ground_truth": ["MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";"], "File": "BPFAsmPrinter12", "Func": "EmitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1393, "Length": 34, "Cover_Rate": 0.5862068965517241} {"Template_token": ["", "MCInstLower", "MCInstLowering", "(", "OutContext", ",", "*", "this", ")", ";"], "ground_truth": ["MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";"], "File": "BPFAsmPrinter12", "Func": "EmitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1394, "Length": 18, "Cover_Rate": 0.3103448275862069} {"Template_token": ["", "int", "Offset", "=", "OffsetMO", ".", "getImm", "(", ")", ";", "if", "(", "ExtraCode", ")", "return", "true", ";", "if", "(", "Offset", "<", "", ")", "O", "<<", "", "<<", "InstPrinter", "::", "getRegisterName", "(", "BaseMO", ".", "getReg", "(", ")", ")", "<<", "", "<<", "-", "Offset", "<<", "", ";", "else", "O", "<<", "", "<<", "InstPrinter", "::", "getRegisterName", "(", "BaseMO", ".", "getReg", "(", ")", ")", "<<", "", "<<", "Offset", "<<", "", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter12", "Func": "PrintAsmMemoryOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1395, "Length": 70, "Cover_Rate": 0.44871794871794873} {"Template_token": ["", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "", "]", ")", "return", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNo", ",", "ExtraCode", ",", "O", ")", ";", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter12", "Func": "PrintAsmOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1396, "Length": 36, "Cover_Rate": 0.6101694915254238} {"Template_token": ["", "bool", "AsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "", "]", ")", "return", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNo", ",", "ExtraCode", ",", "O", ")", ";"], "ground_truth": ["printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";"], "File": "BPFAsmPrinter12", "Func": "PrintAsmOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1397, "Length": 55, "Cover_Rate": 0.9322033898305084} {"Template_token": ["", "explicit", "AsmPrinter", "(", "TargetMachine", "&", "TM", ",", "MCStreamer", "&", "Streamer", ")", ":", "AsmPrinter", "(", "TM", ",", "Streamer", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmPrinter16", "Func": "BPFAsmPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1399, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "AsmPrinter", "(", "TargetMachine", "&", "TM", ",", "MCStreamer", "&", "Streamer", ")", ":", "AsmPrinter", "(", "TM", ",", "Streamer", ")", "{"], "ground_truth": ["}"], "File": "BPFAsmPrinter16", "Func": "BPFAsmPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1400, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "void", "AsmPrinter", "::", "customEmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{"], "ground_truth": ["MCInstLower", "MCInstLowering", "(", "OutContext", ",", "*", "Mang", ",", "*", "this", ")", ";"], "File": "BPFAsmPrinter16", "Func": "customEmitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1401, "Length": 23, "Cover_Rate": 0.5348837209302325} {"Template_token": ["", "MCInst", "TmpInst", ";", "MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";", "OutStreamer", ".", "EmitInstruction", "(", "TmpInst", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter16", "Func": "customEmitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1402, "Length": 20, "Cover_Rate": 0.46511627906976744} {"Template_token": ["", "MachineBasicBlock", "::", "const_instr_iterator", "I", "=", "MI", ";", "MachineBasicBlock", "::", "const_instr_iterator", "E", "=", "MI", "->", "getParent", "(", ")", "->", "instr_end", "(", ")", ";", "do", "{"], "ground_truth": ["customEmitInstruction", "(", "I", "++", ")", ";"], "File": "BPFAsmPrinter16", "Func": "EmitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1403, "Length": 30, "Cover_Rate": 0.5172413793103449} {"Template_token": ["", "void", "AsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "MachineBasicBlock", "::", "const_instr_iterator", "I", "=", "MI", ";", "MachineBasicBlock", "::", "const_instr_iterator", "E", "=", "MI", "->", "getParent", "(", ")", "->", "instr_end", "(", ")", ";"], "ground_truth": ["do", "{"], "File": "BPFAsmPrinter16", "Func": "EmitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1404, "Length": 35, "Cover_Rate": 0.603448275862069} {"Template_token": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter16", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1405, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter16", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1406, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "case", "MachineOperand", "::", "MO_Register", ":", "O", "<<", "InstPrinter", "::", "getRegisterName", "(", "MO", ".", "getReg", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "O", "<<", "MO", ".", "getImm", "(", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "O", "<<", "*", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "O", "<<", "*", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ";", "O", "<<", "*", "Mang", "->", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["O", "<<", "", ";"], "File": "BPFAsmPrinter16", "Func": "printOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1409, "Length": 108, "Cover_Rate": 0.7346938775510204} {"Template_token": ["", "void", "AsmPrinter", "::", "emitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "MCInst", "TmpInst", ";", "if", "(", "!", "BTF", "||", "!", "BTF", "->", "InstLower", "(", "MI", ",", "TmpInst", ")", ")", "{", "MCInstLower", "MCInstLowering", "(", "OutContext", ",", "*", "this", ")", ";", "MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";", "}", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter17", "Func": "emitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1410, "Length": 58, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "X", "(", "getTheleTarget", "(", ")", ")", ";"], "ground_truth": ["RegisterAsmPrinter", "<", "AsmPrinter", ">", "Y", "(", "getThebeTarget", "(", ")", ")", ";"], "File": "BPFAsmPrinter17", "Func": "LLVMInitializeBPFAsmPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1411, "Length": 22, "Cover_Rate": 0.55} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{"], "ground_truth": ["return", "", ";"], "File": "BPFAsmPrinter1", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1412, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter1", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1413, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "X", "(", "getTheleTarget", "(", ")", ")", ";", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "Y", "(", "getThebeTarget", "(", ")", ")", ";"], "ground_truth": ["RegisterAsmPrinter", "<", "AsmPrinter", ">", "Z", "(", "getTheTarget", "(", ")", ")", ";"], "File": "BPFAsmPrinter1", "Func": "LLVMInitializeBPFAsmPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1414, "Length": 33, "Cover_Rate": 0.8461538461538461} {"Template_token": ["", "void", "LLVMInitializeAsmPrinter", "(", ")", "{", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "X", "(", "getTheleTarget", "(", ")", ")", ";", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "Y", "(", "getThebeTarget", "(", ")", ")", ";"], "ground_truth": ["RegisterAsmPrinter", "<", "AsmPrinter", ">", "Z", "(", "getTheTarget", "(", ")", ")", ";"], "File": "BPFAsmPrinter1", "Func": "LLVMInitializeBPFAsmPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1415, "Length": 38, "Cover_Rate": 0.9743589743589743} {"Template_token": ["", "Handlers", ".", "emplace_back", "(", "llvm", "::", "make_unique", "<", "BTFDebug", ">", "(", "this", ")", ",", "", ",", "", ",", "", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter20", "Func": "doInitialization", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1416, "Length": 24, "Cover_Rate": 0.36923076923076925} {"Template_token": ["", "Handlers", ".", "emplace_back", "(", "llvm", "::", "make_unique", "<", "BTFDebug", ">", "(", "this", ")", ",", "", ",", "", ",", "", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter20", "Func": "doInitialization", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1417, "Length": 24, "Cover_Rate": 0.36923076923076925} {"Template_token": ["", "AsmPrinter", "::", "doInitialization", "(", "M", ")", ";"], "ground_truth": ["if", "(", "MAI", "->", "doesSupportDebugInformation", "(", ")", "&&", "!", "empty", "(", "M", ".", "debug_compile_units", "(", ")", ")", ")", "{"], "File": "BPFAsmPrinter2", "Func": "doInitialization", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1418, "Length": 26, "Cover_Rate": 0.3466666666666667} {"Template_token": ["", "bool", "AsmPrinter", "::", "doInitialization", "(", "Module", "&", "M", ")", "{", "AsmPrinter", "::", "doInitialization", "(", "M", ")", ";", "if", "(", "MAI", "->", "doesSupportDebugInformation", "(", ")", ")", "{", "Handlers", ".", "push_back", "(", "HandlerInfo", "(", "new", "BTFDebug", "(", "this", ")", ",", "", ",", "", ",", "", ",", "", ")", ")", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFAsmPrinter3", "Func": "doInitialization", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1419, "Length": 53, "Cover_Rate": 1.0} {"Template_token": ["", "Handlers", ".", "push_back", "(", "HandlerInfo", "(", "new", "BTFDebug", "(", "this", ")", ",", "", ",", "", ",", "", ",", "", ")", ")", ";", "}"], "ground_truth": ["return", "false", ";"], "File": "BPFAsmPrinter3", "Func": "doInitialization", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1420, "Length": 26, "Cover_Rate": 0.49056603773584906} {"Template_token": ["", "MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";"], "ground_truth": ["EmitToStreamer", "(", "OutStreamer", ",", "TmpInst", ")", ";"], "File": "BPFAsmPrinter4", "Func": "EmitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1421, "Length": 16, "Cover_Rate": 0.4} {"Template_token": ["", "void", "AsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "MCInstLower", "MCInstLowering", "(", "OutContext", ",", "*", "this", ")", ";", "MCInst", "TmpInst", ";"], "ground_truth": ["MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";"], "File": "BPFAsmPrinter4", "Func": "EmitInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1422, "Length": 32, "Cover_Rate": 0.8} {"Template_token": ["", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";"], "ground_truth": ["case", "", ":", "return", "", ";"], "File": "BPFBaseInfo", "Func": "getBPFRegisterNumbering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1423, "Length": 36, "Cover_Rate": 0.3025210084033613} {"Template_token": ["", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";"], "ground_truth": ["case", "", ":", "return", "", ";"], "File": "BPFBaseInfo", "Func": "getBPFRegisterNumbering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1424, "Length": 42, "Cover_Rate": 0.35294117647058826} {"Template_token": ["", "bool", "Changed", "=", "removePassThroughBuiltin", "(", "M", ")", ";", "Changed", "=", "removeCompareBuiltin", "(", "M", ")", "||", "Changed", ";", "return", "Changed", ";"], "ground_truth": ["}"], "File": "BPFCheckAndAdjustIR2", "Func": "adjustIR", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1425, "Length": 21, "Cover_Rate": 0.6774193548387096} {"Template_token": ["", "bool", "CheckAndAdjustIR", "::", "adjustIR", "(", "Module", "&", "M", ")", "{", "bool", "Changed", "=", "removePassThroughBuiltin", "(", "M", ")", ";", "Changed", "=", "removeCompareBuiltin", "(", "M", ")", "||", "Changed", ";"], "ground_truth": ["return", "Changed", ";"], "File": "BPFCheckAndAdjustIR2", "Func": "adjustIR", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1426, "Length": 30, "Cover_Rate": 0.967741935483871} {"Template_token": ["", "}", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ";", "if", "(", "!", "Call", ")", "continue", ";", "auto", "*", "GV", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "Call", "->", "getCalledOperand", "(", ")", ")", ";", "if", "(", "!", "GV", ")", "continue", ";", "if", "(", "!", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "continue", ";", "Changed", "=", "true", ";", "Value", "*", "Arg0", "=", "Call", "->", "getArgOperand", "(", "", ")", ";"], "ground_truth": ["Value", "*", "Arg1", "=", "Call", "->", "getArgOperand", "(", "", ")", ";"], "File": "BPFCheckAndAdjustIR2", "Func": "removeCompareBuiltin", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1427, "Length": 86, "Cover_Rate": 0.3644067796610169} {"Template_token": ["", "return", "removePassThroughBuiltin", "(", "M", ")", ";"], "ground_truth": ["}"], "File": "BPFCheckAndAdjustIR", "Func": "adjustIR", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1428, "Length": 7, "Cover_Rate": 0.4117647058823529} {"Template_token": ["", "bool", "CheckAndAdjustIR", "::", "adjustIR", "(", "Module", "&", "M", ")", "{", "return", "removePassThroughBuiltin", "(", "M", ")", ";"], "ground_truth": ["}"], "File": "BPFCheckAndAdjustIR", "Func": "adjustIR", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1429, "Length": 17, "Cover_Rate": 1.0} {"Template_token": ["", "CheckAndAdjustIR", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFCheckAndAdjustIR", "Func": "BPFCheckAndAdjustIR", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1430, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "CheckAndAdjustIR", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFCheckAndAdjustIR", "Func": "BPFCheckAndAdjustIR", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1431, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "for", "(", "Function", "&", "F", ":", "M", ")", "for", "(", "auto", "&", "BB", ":", "F", ")", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "PHINode", "*", "PN", "=", "dyn_cast", "<", "PHINode", ">", "(", "&", "I", ")", ";", "if", "(", "!", "PN", "||", "PN", "->", "use_empty", "(", ")", ")", "continue", ";", "for", "(", "int", "i", "=", "", ",", "e", "=", "PN", "->", "getNumIncomingValues", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{"], "ground_truth": ["auto", "*", "GV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "PN", "->", "getIncomingValue", "(", "i", ")", ")", ";"], "File": "BPFCheckAndAdjustIR", "Func": "checkIR", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1432, "Length": 91, "Cover_Rate": 0.6691176470588235} {"Template_token": ["", "return", "new", "CheckAndAdjustIR", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFCheckAndAdjustIR", "Func": "createBPFCheckAndAdjustIR", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1433, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "for", "(", "Function", "&", "F", ":", "M", ")", "for", "(", "auto", "&", "BB", ":", "F", ")", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "if", "(", "ToBeDeleted", ")", "{", "ToBeDeleted", "->", "eraseFromParent", "(", ")", ";", "ToBeDeleted", "=", "nullptr", ";", "}", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ";", "if", "(", "!", "Call", ")", "continue", ";", "auto", "*", "GV", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "Call", "->", "getCalledOperand", "(", ")", ")", ";"], "ground_truth": ["if", "(", "!", "GV", ")", "continue", ";"], "File": "BPFCheckAndAdjustIR", "Func": "removePassThroughBuiltin", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1435, "Length": 84, "Cover_Rate": 0.5526315789473685} {"Template_token": ["", "checkIR", "(", "M", ")", ";"], "ground_truth": ["return", "adjustIR", "(", "M", ")", ";"], "File": "BPFCheckAndAdjustIR", "Func": "runOnModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1436, "Length": 11, "Cover_Rate": 0.5} {"Template_token": ["", "bool", "CheckAndAdjustIR", "::", "runOnModule", "(", "Module", "&", "M", ")", "{"], "ground_truth": ["checkIR", "(", "M", ")", ";"], "File": "BPFCheckAndAdjustIR", "Func": "runOnModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1437, "Length": 15, "Cover_Rate": 0.6818181818181818} {"Template_token": ["", "DecodeStatus", "Result", ";", "Result", "=", "readInstruction64", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn", ",", "IsLittleEndian", ")", ";", "if", "(", "Result", "==", "MCDisassembler", "::", "Fail", ")", "return", "MCDisassembler", "::", "Fail", ";", "uint8_t", "InstClass", "=", "getInstClass", "(", "Insn", ")", ";", "uint8_t", "InstMode", "=", "getInstMode", "(", "Insn", ")", ";", "if", "(", "(", "InstClass", "==", "_LDX", "||", "InstClass", "==", "_STX", ")", "&&", "getInstSize", "(", "Insn", ")", "!=", "_DW", "&&", "(", "InstMode", "==", "_MEM", "||", "InstMode", "==", "_XADD", ")", "&&", "STI", ".", "getFeatureBits", "(", ")", "[", "", "]", ")", "Result", "=", "decodeInstruction", "(", "DecoderTableALU3264", ",", "Instr", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "else", "Result", "=", "decodeInstruction", "(", "DecoderTable64", ",", "Instr", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "==", "MCDisassembler", "::", "Fail", ")", "return", "MCDisassembler", "::", "Fail", ";", "switch", "(", "Instr", ".", "getOpcode", "(", ")", ")", "{", "case", "", ":", "case", "", ":", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "", ")", "{", "Size", "=", "", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Size", "=", "", ";", "if", "(", "IsLittleEndian", ")", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "else", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "auto", "&", "Op", "=", "Instr", ".", "getOperand", "(", "", ")", ";", "Op", ".", "setImm", "(", "Make_64", "(", "Hi", ",", "Op", ".", "getImm", "(", ")", ")", ")", ";"], "ground_truth": ["break", ";"], "File": "BPFDisassembler11", "Func": "getInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1438, "Length": 284, "Cover_Rate": 0.6843373493975904} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCDisassembler", "(", "getTheleTarget", "(", ")", ",", "createDisassembler", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCDisassembler", "(", "getThebeTarget", "(", ")", ",", "createDisassembler", ")", ";"], "File": "BPFDisassembler11", "Func": "LLVMInitializeBPFDisassembler", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1439, "Length": 22, "Cover_Rate": 0.55} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCDisassembler", "(", "getTheTarget", "(", ")", ",", "createDisassembler", ")", ";", "TargetRegistry", "::", "RegisterMCDisassembler", "(", "getTheleTarget", "(", ")", ",", "createDisassembler", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCDisassembler", "(", "getThebeTarget", "(", ")", ",", "createDisassembler", ")", ";"], "File": "BPFDisassembler11", "Func": "LLVMInitializeBPFDisassembler", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1440, "Length": 33, "Cover_Rate": 0.825} {"Template_token": ["", "if", "(", "Bytes", ".", "size", "(", ")", "<", "", ")", "{", "Size", "=", "", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Size", "=", "", ";", "uint64_t", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "auto", "&", "Op", "=", "Instr", ".", "getOperand", "(", "", ")", ";", "Op", ".", "setImm", "(", "Make_64", "(", "Hi", ",", "Op", ".", "getImm", "(", ")", ")", ")", ";", "break", ";", "}", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "{", "auto", "Op", "=", "Instr", ".", "getOperand", "(", "", ")", ";", "Instr", ".", "clear", "(", ")", ";", "Instr", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "", ")", ")", ";", "Instr", ".", "addOperand", "(", "Op", ")", ";", "break", ";"], "ground_truth": ["}"], "File": "BPFDisassembler12", "Func": "getInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1441, "Length": 151, "Cover_Rate": 0.5412186379928315} {"Template_token": ["", "return", "MCDisassembler", "::", "Fail", ";", "}", "Size", "=", "", ";", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "Lo", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";"], "ground_truth": ["Insn", "=", "Make_64", "(", "Hi", ",", "Lo", ")", ";"], "File": "BPFDisassembler12", "Func": "readInstruction64", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1442, "Length": 95, "Cover_Rate": 0.6643356643356644} {"Template_token": ["", "Size", "=", "", ";", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "Lo", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";"], "ground_truth": ["Insn", "=", "Make_64", "(", "Hi", ",", "Lo", ")", ";"], "File": "BPFDisassembler12", "Func": "readInstruction64", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1443, "Length": 89, "Cover_Rate": 0.6223776223776224} {"Template_token": ["", "static", "DecodeStatus", "decodeMemoryOpValue", "(", "MCInst", "&", "Inst", ",", "unsigned", "Insn", ",", "uint64_t", "Address", ",", "const", "void", "*", "Decoder", ")", "{", "unsigned", "Register", "=", "(", "Insn", ">>", "", ")", "&", "", ";", "if", "(", "Register", ">", "", ")", "return", "MCDisassembler", "::", "Fail", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "GPRDecoderTable", "[", "Register", "]", ")", ")", ";", "unsigned", "Offset", "=", "(", "Insn", "&", "", ")", ";"], "ground_truth": ["Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "SignExtend32", "<", "", ">", "(", "Offset", ")", ")", ")", ";"], "File": "BPFDisassembler13", "Func": "decodeMemoryOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1444, "Length": 84, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "if", "(", "Register", ">", "", ")", "return", "MCDisassembler", "::", "Fail", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "GPRDecoderTable", "[", "Register", "]", ")", ")", ";", "unsigned", "Offset", "=", "(", "Insn", "&", "", ")", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "SignExtend32", "<", "", ">", "(", "Offset", ")", ")", ")", ";"], "ground_truth": ["return", "MCDisassembler", "::", "Success", ";"], "File": "BPFDisassembler13", "Func": "decodeMemoryOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1445, "Length": 58, "Cover_Rate": 0.6444444444444445} {"Template_token": ["", "uint8_t", "InstMode", "=", "getInstMode", "(", "Insn", ")", ";", "if", "(", "(", "InstClass", "==", "_LDX", "||", "InstClass", "==", "_STX", ")", "&&", "getInstSize", "(", "Insn", ")", "!=", "_DW", "&&", "(", "InstMode", "==", "_MEM", "||", "InstMode", "==", "_ATOMIC", ")", "&&", "STI", ".", "getFeatureBits", "(", ")", "[", "", "]", ")", "Result", "=", "decodeInstruction", "(", "DecoderTableALU3264", ",", "Instr", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "else", "Result", "=", "decodeInstruction", "(", "DecoderTable64", ",", "Instr", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "==", "MCDisassembler", "::", "Fail", ")", "return", "MCDisassembler", "::", "Fail", ";", "switch", "(", "Instr", ".", "getOpcode", "(", ")", ")", "{", "case", "", ":", "case", "", ":", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "", ")", "{", "Size", "=", "", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Size", "=", "", ";", "if", "(", "IsLittleEndian", ")", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "else", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "auto", "&", "Op", "=", "Instr", ".", "getOperand", "(", "", ")", ";", "Op", ".", "setImm", "(", "Make_64", "(", "Hi", ",", "Op", ".", "getImm", "(", ")", ")", ")", ";", "break", ";", "}", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "{", "auto", "Op", "=", "Instr", ".", "getOperand", "(", "", ")", ";", "Instr", ".", "clear", "(", ")", ";"], "ground_truth": ["Instr", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "", ")", ")", ";"], "File": "BPFDisassembler13", "Func": "getInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1446, "Length": 293, "Cover_Rate": 0.7060240963855422} {"Template_token": ["", "switch", "(", "Instr", ".", "getOpcode", "(", ")", ")", "{", "case", "", ":", "case", "", ":", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "", ")", "{", "Size", "=", "", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Size", "=", "", ";", "if", "(", "IsLittleEndian", ")", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "else", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "auto", "&", "Op", "=", "Instr", ".", "getOperand", "(", "", ")", ";", "Op", ".", "setImm", "(", "Make_64", "(", "Hi", ",", "Op", ".", "getImm", "(", ")", ")", ")", ";", "break", ";", "}", "case", "", ":", "case", "", ":", "case", "", ":"], "ground_truth": ["case", "", ":"], "File": "BPFDisassembler1", "Func": "getInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1447, "Length": 164, "Cover_Rate": 0.3914081145584726} {"Template_token": ["", "if", "(", "Result", "==", "MCDisassembler", "::", "Fail", ")", "return", "MCDisassembler", "::", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable64", ",", "Instr", ",", "Insn", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Result", "==", "MCDisassembler", "::", "Fail", ")", "return", "MCDisassembler", "::", "Fail", ";", "switch", "(", "Instr", ".", "getOpcode", "(", ")", ")", "{", "case", "", ":", "case", "", ":", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "", ")", "{", "Size", "=", "", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Size", "=", "", ";", "if", "(", "IsLittleEndian", ")", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "else", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";"], "ground_truth": ["auto", "&", "Op", "=", "Instr", ".", "getOperand", "(", "", ")", ";"], "File": "BPFDisassembler2", "Func": "getInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1448, "Length": 176, "Cover_Rate": 0.5101449275362319} {"Template_token": ["", "if", "(", "RegNo", ">", "", ")", "return", "MCDisassembler", "::", "Fail", ";"], "ground_truth": ["unsigned", "Reg", "=", "GPR32DecoderTable", "[", "RegNo", "]", ";"], "File": "BPFDisassembler6", "Func": "DecodeGPR32RegisterClass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1449, "Length": 19, "Cover_Rate": 0.34545454545454546} {"Template_token": ["", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "Reg", ")", ")", ";", "return", "MCDisassembler", "::", "Success", ";"], "ground_truth": ["}"], "File": "BPFDisassembler6", "Func": "DecodeGPRRegisterClass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1451, "Length": 18, "Cover_Rate": 0.32727272727272727} {"Template_token": ["", "unsigned", "Reg", "=", "GPRDecoderTable", "[", "RegNo", "]", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "Reg", ")", ")", ";"], "ground_truth": ["return", "MCDisassembler", "::", "Success", ";"], "File": "BPFDisassembler6", "Func": "DecodeGPRRegisterClass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1452, "Length": 25, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "if", "(", "Register", ">", "", ")", "return", "MCDisassembler", "::", "Fail", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "GPRDecoderTable", "[", "Register", "]", ")", ")", ";"], "ground_truth": ["unsigned", "Offset", "=", "(", "Insn", "&", "", ")", ";"], "File": "BPFDisassembler6", "Func": "decodeMemoryOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1453, "Length": 35, "Cover_Rate": 0.3888888888888889} {"Template_token": ["", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "GPRDecoderTable", "[", "Register", "]", ")", ")", ";", "unsigned", "Offset", "=", "(", "Insn", "&", "", ")", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "SignExtend32", "<", "", ">", "(", "Offset", ")", ")", ")", ";", "return", "MCDisassembler", "::", "Success", ";"], "ground_truth": ["}"], "File": "BPFDisassembler6", "Func": "decodeMemoryOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1454, "Length": 48, "Cover_Rate": 0.5333333333333333} {"Template_token": ["", "Disassembler", "(", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ")", ":", "MCDisassembler", "(", "STI", ",", "Ctx", ")", "{"], "ground_truth": ["}"], "File": "BPFDisassembler", "Func": "BPFDisassembler", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1455, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "Disassembler", "(", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ")", ":", "MCDisassembler", "(", "STI", ",", "Ctx", ")", "{"], "ground_truth": ["}"], "File": "BPFDisassembler", "Func": "BPFDisassembler", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1456, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "static", "MCDisassembler", "*", "createDisassembler", "(", "const", "Target", "&", "T", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ")", "{", "return", "new", "Disassembler", "(", "STI", ",", "Ctx", ")", ";"], "ground_truth": ["}"], "File": "BPFDisassembler", "Func": "createBPFDisassembler", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1458, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "RegNo", ">", "", ")", "return", "MCDisassembler", "::", "Fail", ";", "unsigned", "Reg", "=", "GPR32DecoderTable", "[", "RegNo", "]", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "Reg", ")", ")", ";"], "ground_truth": ["return", "MCDisassembler", "::", "Success", ";"], "File": "BPFDisassembler", "Func": "DecodeGPR32RegisterClass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1459, "Length": 36, "Cover_Rate": 0.6545454545454545} {"Template_token": ["", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "Reg", ")", ")", ";"], "ground_truth": ["return", "MCDisassembler", "::", "Success", ";"], "File": "BPFDisassembler", "Func": "DecodeGPRRegisterClass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1461, "Length": 17, "Cover_Rate": 0.3090909090909091} {"Template_token": ["", "if", "(", "RegNo", ">", "", ")", "return", "MCDisassembler", "::", "Fail", ";"], "ground_truth": ["unsigned", "Reg", "=", "GPRDecoderTable", "[", "RegNo", "]", ";"], "File": "BPFDisassembler", "Func": "DecodeGPRRegisterClass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1462, "Length": 19, "Cover_Rate": 0.34545454545454546} {"Template_token": ["", "static", "DecodeStatus", "decodeMemoryOpValue", "(", "MCInst", "&", "Inst", ",", "unsigned", "Insn", ",", "uint64_t", "Address", ",", "const", "void", "*", "Decoder", ")", "{", "unsigned", "Register", "=", "(", "Insn", ">>", "", ")", "&", "", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "GPRDecoderTable", "[", "Register", "]", ")", ")", ";", "unsigned", "Offset", "=", "(", "Insn", "&", "", ")", ";", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "SignExtend32", "<", "", ">", "(", "Offset", ")", ")", ")", ";", "return", "MCDisassembler", "::", "Success", ";"], "ground_truth": ["}"], "File": "BPFDisassembler", "Func": "decodeMemoryOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1463, "Length": 79, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "Register", "=", "(", "Insn", ">>", "", ")", "&", "", ";"], "ground_truth": ["Inst", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "GPRDecoderTable", "[", "Register", "]", ")", ")", ";"], "File": "BPFDisassembler", "Func": "decodeMemoryOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1464, "Length": 26, "Cover_Rate": 0.3291139240506329} {"Template_token": ["", "case", "", ":", "case", "", ":", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "", ")", "{", "Size", "=", "", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Size", "=", "", ";", "if", "(", "IsLittleEndian", ")", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "else", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "auto", "&", "Op", "=", "Instr", ".", "getOperand", "(", "", ")", ";", "Op", ".", "setImm", "(", "Make_64", "(", "Hi", ",", "Op", ".", "getImm", "(", ")", ")", ")", ";", "break", ";", "}", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":"], "ground_truth": ["case", "", ":", "{"], "File": "BPFDisassembler", "Func": "getInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1469, "Length": 162, "Cover_Rate": 0.39705882352941174} {"Template_token": ["", "case", "", ":", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "", ")", "{", "Size", "=", "", ";", "return", "MCDisassembler", "::", "Fail", ";", "}", "Size", "=", "", ";", "if", "(", "IsLittleEndian", ")", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "else", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "auto", "&", "Op", "=", "Instr", ".", "getOperand", "(", "", ")", ";", "Op", ".", "setImm", "(", "Make_64", "(", "Hi", ",", "Op", ".", "getImm", "(", ")", ")", ")", ";", "break", ";", "}", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":"], "ground_truth": ["case", "", ":"], "File": "BPFDisassembler", "Func": "getInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1470, "Length": 155, "Cover_Rate": 0.3799019607843137} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCDisassembler", "(", "getTheTarget", "(", ")", ",", "createDisassembler", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCDisassembler", "(", "getTheleTarget", "(", ")", ",", "createDisassembler", ")", ";"], "File": "BPFDisassembler", "Func": "LLVMInitializeBPFDisassembler", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1473, "Length": 22, "Cover_Rate": 0.5641025641025641} {"Template_token": ["", "Lo", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";", "}", "else", "{", "Hi", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "(", "Bytes", "[", "", "]", "&", "", ")", "<<", "", ")", "|", "(", "(", "Bytes", "[", "", "]", "&", "", ")", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";"], "ground_truth": ["Lo", "=", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", "|", "(", "Bytes", "[", "", "]", "<<", "", ")", ";"], "File": "BPFDisassembler", "Func": "readInstruction64", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1474, "Length": 134, "Cover_Rate": 0.5403225806451613} {"Template_token": ["", "ELFObjectWriter", "::", "ELFObjectWriter", "(", "uint8_t", "OSABI", ")", ":", "MCELFObjectTargetWriter", "(", "true", ",", "OSABI", ",", "ELF", "::", "EM_", ",", "false", ")", "{"], "ground_truth": ["}"], "File": "BPFELFObjectWriter (2)1", "Func": "BPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1475, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "ELFObjectWriter", "::", "ELFObjectWriter", "(", "uint8_t", "OSABI", ")", ":", "MCELFObjectTargetWriter", "(", "true", ",", "OSABI", ",", "ELF", "::", "EM_", ",", "false", ")", "{"], "ground_truth": ["}"], "File": "BPFELFObjectWriter (2)1", "Func": "BPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1476, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "FK_SecRel_8", ":", "return", "ELF", "::", "R__64_64", ";", "case", "FK_SecRel_4", ":", "return", "ELF", "::", "R__64_32", ";", "case", "FK_Data_8", ":", "return", "ELF", "::", "R__64_64", ";", "case", "FK_Data_4", ":", "return", "ELF", "::", "R__64_32", ";"], "ground_truth": ["}"], "File": "BPFELFObjectWriter (2)1", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1477, "Length": 52, "Cover_Rate": 0.6753246753246753} {"Template_token": ["", "unsigned", "ELFObjectWriter", "::", "getRelocType", "(", "MCContext", "&", "Ctx", ",", "const", "MCValue", "&", "Target", ",", "const", "MCFixup", "&", "Fixup", ",", "bool", "IsPCRel", ")", "const", "{", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "FK_SecRel_8", ":", "return", "ELF", "::", "R__64_64", ";", "case", "FK_SecRel_4", ":", "return", "ELF", "::", "R__64_32", ";", "case", "FK_Data_8", ":", "return", "ELF", "::", "R__64_64", ";"], "ground_truth": ["case", "FK_Data_4", ":"], "File": "BPFELFObjectWriter (2)1", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1478, "Length": 70, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "ELFObjectWriter", "::", "ELFObjectWriter", "(", "uint8_t", "OSABI", ")", ":", "MCELFObjectTargetWriter", "(", "true", ",", "OSABI", ",", "ELF", "::", "EM_NONE", ",", "false", ")", "{"], "ground_truth": ["}"], "File": "BPFELFObjectWriter (2)", "Func": "BPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1479, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "ELFObjectWriter", "::", "ELFObjectWriter", "(", "uint8_t", "OSABI", ")", ":", "MCELFObjectTargetWriter", "(", "true", ",", "OSABI", ",", "ELF", "::", "EM_NONE", ",", "false", ")", "{"], "ground_truth": ["}"], "File": "BPFELFObjectWriter (2)", "Func": "BPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1480, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "MCELFObjectTargetWriter", "*", "MOTW", "=", "new", "ELFObjectWriter", "(", "OSABI", ")", ";", "return", "createELFObjectWriter", "(", "MOTW", ",", "OS", ",", "IsLittleEndian", ")", ";"], "ground_truth": ["}"], "File": "BPFELFObjectWriter (2)", "Func": "createBPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1482, "Length": 21, "Cover_Rate": 0.5526315789473685} {"Template_token": ["", "unsigned", "ELFObjectWriter", "::", "GetRelocType", "(", "const", "MCValue", "&", "Target", ",", "const", "MCFixup", "&", "Fixup", ",", "bool", "IsPCRel", ")", "const", "{", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "FK_SecRel_8", ":", "return", "ELF", "::", "R_X86_64_64", ";", "case", "FK_SecRel_4", ":", "return", "ELF", "::", "R_X86_64_PC32", ";"], "ground_truth": ["case", "FK_Data_8", ":"], "File": "BPFELFObjectWriter (2)", "Func": "GetRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1483, "Length": 58, "Cover_Rate": 0.6823529411764706} {"Template_token": ["", "ELFObjectWriter", "::", "~", "ELFObjectWriter", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFELFObjectWriter (2)", "Func": "~BPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1484, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "ELFObjectWriter", "::", "~", "ELFObjectWriter", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFELFObjectWriter (2)", "Func": "~BPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1485, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "llvm_unreachable", "(", "", ")", ";", "case", "FK_SecRel_8", ":", "return", "ELF", "::", "R__64_64", ";", "case", "FK_PCRel_4", ":", "case", "FK_SecRel_4", ":", "return", "ELF", "::", "R__64_32", ";", "case", "FK_Data_8", ":", "return", "ELF", "::", "R__64_64", ";", "case", "FK_Data_4", ":", "if", "(", "const", "MCSymbolRefExpr", "*", "A", "=", "Target", ".", "getSymA", "(", ")", ")", "{", "if", "(", "A", "->", "getSymbol", "(", ")", ".", "isTemporary", "(", ")", ")", "{", "MCSection", "&", "Section", "=", "A", "->", "getSymbol", "(", ")", ".", "getSection", "(", ")", ";", "const", "MCSectionELF", "*", "SectionELF", "=", "dyn_cast", "<", "MCSectionELF", ">", "(", "&", "Section", ")", ";", "assert", "(", "SectionELF", "&&", "", ")", ";", "unsigned", "Flags", "=", "SectionELF", "->", "getFlags", "(", ")", ";"], "ground_truth": ["if", "(", "(", "Flags", "&", "ELF", "::", "SHF_ALLOC", ")", "&&", "(", "Flags", "&", "ELF", "::", "SHF_EXECINSTR", ")", ")", "return", "ELF", "::", "R__NONE", ";"], "File": "BPFELFObjectWriter10", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1486, "Length": 129, "Cover_Rate": 0.7329545454545454} {"Template_token": ["", "case", "FK_Data_8", ":", "return", "ELF", "::", "R__64_64", ";", "case", "FK_Data_4", ":", "if", "(", "const", "MCSymbolRefExpr", "*", "A", "=", "Target", ".", "getSymA", "(", ")", ")", "{", "if", "(", "A", "->", "getSymbol", "(", ")", ".", "isTemporary", "(", ")", ")", "{", "MCSection", "&", "Section", "=", "A", "->", "getSymbol", "(", ")", ".", "getSection", "(", ")", ";", "const", "MCSectionELF", "*", "SectionELF", "=", "dyn_cast", "<", "MCSectionELF", ">", "(", "&", "Section", ")", ";", "assert", "(", "SectionELF", "&&", "", ")", ";", "unsigned", "Flags", "=", "SectionELF", "->", "getFlags", "(", ")", ";"], "ground_truth": ["if", "(", "(", "Flags", "&", "ELF", "::", "SHF_ALLOC", ")", "&&", "(", "Flags", "&", "ELF", "::", "SHF_EXECINSTR", ")", ")", "return", "ELF", "::", "R__NONE", ";"], "File": "BPFELFObjectWriter10", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1487, "Length": 105, "Cover_Rate": 0.5965909090909091} {"Template_token": ["", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "FK_SecRel_8", ":", "return", "ELF", "::", "R_X86_64_64", ";", "case", "FK_SecRel_4", ":", "return", "ELF", "::", "R_X86_64_PC32", ";"], "ground_truth": ["}"], "File": "BPFELFObjectWriter14", "Func": "GetRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1490, "Length": 36, "Cover_Rate": 0.631578947368421} {"Template_token": ["", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "FK_SecRel_8", ":", "return", "ELF", "::", "R_X86_64_64", ";", "case", "FK_SecRel_4", ":"], "ground_truth": ["return", "ELF", "::", "R_X86_64_PC32", ";"], "File": "BPFELFObjectWriter14", "Func": "GetRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1491, "Length": 23, "Cover_Rate": 0.40350877192982454} {"Template_token": ["", "std", "::", "unique_ptr", "<", "MCObjectTargetWriter", ">", "llvm", "::", "createELFObjectWriter", "(", "uint8_t", "OSABI", ")", "{"], "ground_truth": ["return", "std", "::", "make_unique", "<", "ELFObjectWriter", ">", "(", "OSABI", ")", ";"], "File": "BPFELFObjectWriter17", "Func": "createBPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1492, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "case", "FK_Data_4", ":", "if", "(", "const", "MCSymbolRefExpr", "*", "A", "=", "Target", ".", "getSymA", "(", ")", ")", "{", "const", "MCSymbol", "&", "Sym", "=", "A", "->", "getSymbol", "(", ")", ";", "if", "(", "Sym", ".", "isDefined", "(", ")", ")", "{", "MCSection", "&", "Section", "=", "Sym", ".", "getSection", "(", ")", ";", "const", "MCSectionELF", "*", "SectionELF", "=", "dyn_cast", "<", "MCSectionELF", ">", "(", "&", "Section", ")", ";", "assert", "(", "SectionELF", "&&", "", ")", ";", "unsigned", "Flags", "=", "SectionELF", "->", "getFlags", "(", ")", ";", "if", "(", "Sym", ".", "isTemporary", "(", ")", ")", "{", "if", "(", "(", "Flags", "&", "ELF", "::", "SHF_ALLOC", ")", "&&", "(", "Flags", "&", "ELF", "::", "SHF_EXECINSTR", ")", ")", "return", "ELF", "::", "R__64_NODYLD32", ";", "}", "else", "{", "if", "(", "(", "Flags", "&", "ELF", "::", "SHF_ALLOC", ")", "&&", "(", "Flags", "&", "ELF", "::", "SHF_WRITE", ")", ")", "return", "ELF", "::", "R__64_NODYLD32", ";", "}", "}", "}"], "ground_truth": ["return", "ELF", "::", "R__64_ABS32", ";"], "File": "BPFELFObjectWriter17", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1494, "Length": 143, "Cover_Rate": 0.6842105263157895} {"Template_token": ["", "MCELFObjectTargetWriter", "*", "MOTW", "=", "new", "ELFObjectWriter", "(", "OSABI", ")", ";", "return", "createELFObjectWriter", "(", "MOTW", ",", "OS", ",", "true", ")", ";"], "ground_truth": ["}"], "File": "BPFELFObjectWriter18", "Func": "createBPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1495, "Length": 21, "Cover_Rate": 0.6} {"Template_token": ["", "MCObjectWriter", "*", "llvm", "::", "createELFObjectWriter", "(", "raw_ostream", "&", "OS", ",", "uint8_t", "OSABI", ")", "{"], "ground_truth": ["MCELFObjectTargetWriter", "*", "MOTW", "=", "new", "ELFObjectWriter", "(", "OSABI", ")", ";"], "File": "BPFELFObjectWriter18", "Func": "createBPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1496, "Length": 24, "Cover_Rate": 0.6857142857142857} {"Template_token": ["", "ELFObjectWriter", "::", "~", "ELFObjectWriter", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFELFObjectWriter18", "Func": "~BPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1498, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "ELFObjectWriter", "::", "~", "ELFObjectWriter", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFELFObjectWriter18", "Func": "~BPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1499, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "return", "ELF", "::", "R__64_32", ";", "case", "FK_Data_8", ":", "return", "ELF", "::", "R__64_64", ";", "case", "FK_Data_4", ":", "if", "(", "const", "MCSymbolRefExpr", "*", "A", "=", "Target", ".", "getSymA", "(", ")", ")", "{"], "ground_truth": ["if", "(", "A", "->", "getSymbol", "(", ")", ".", "isTemporary", "(", ")", ")", "return", "ELF", "::", "R__NONE", ";"], "File": "BPFELFObjectWriter19", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1500, "Length": 47, "Cover_Rate": 0.41964285714285715} {"Template_token": ["", "case", "FK_SecRel_8", ":", "return", "ELF", "::", "R_X86_64_64", ";", "case", "FK_SecRel_4", ":", "return", "ELF", "::", "R_X86_64_PC32", ";", "case", "FK_Data_8", ":", "return", "IsPCRel", "?", "ELF", "::", "R_X86_64_PC64", ":", "ELF", "::", "R_X86_64_64", ";", "case", "FK_Data_4", ":"], "ground_truth": ["return", "IsPCRel", "?", "ELF", "::", "R_X86_64_PC32", ":", "ELF", "::", "R_X86_64_32", ";"], "File": "BPFELFObjectWriter1", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1501, "Length": 44, "Cover_Rate": 0.4943820224719101} {"Template_token": ["", "unsigned", "ELFObjectWriter", "::", "getRelocType", "(", "MCContext", "&", "Ctx", ",", "const", "MCValue", "&", "Target", ",", "const", "MCFixup", "&", "Fixup", ",", "bool", "IsPCRel", ")", "const", "{", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "FK_SecRel_8", ":"], "ground_truth": ["return", "ELF", "::", "R_X86_64_64", ";"], "File": "BPFELFObjectWriter1", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1502, "Length": 51, "Cover_Rate": 0.5730337078651685} {"Template_token": ["", "return", "createELFObjectWriter", "(", "MOTW", ",", "OS", ",", "true", ")", ";"], "ground_truth": ["}"], "File": "BPFELFObjectWriter20", "Func": "createBPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1503, "Length": 11, "Cover_Rate": 0.3142857142857143} {"Template_token": ["", "MCELFObjectTargetWriter", "*", "MOTW", "=", "new", "ELFObjectWriter", "(", "OSABI", ")", ";"], "ground_truth": ["return", "createELFObjectWriter", "(", "MOTW", ",", "OS", ",", "true", ")", ";"], "File": "BPFELFObjectWriter20", "Func": "createBPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1504, "Length": 20, "Cover_Rate": 0.5714285714285714} {"Template_token": ["", "const", "MCSectionELF", "*", "SectionELF", "=", "dyn_cast", "<", "MCSectionELF", ">", "(", "&", "Section", ")", ";", "assert", "(", "SectionELF", "&&", "", ")", ";", "unsigned", "Flags", "=", "SectionELF", "->", "getFlags", "(", ")", ";", "if", "(", "Sym", ".", "isTemporary", "(", ")", ")", "{", "if", "(", "(", "Flags", "&", "ELF", "::", "SHF_ALLOC", ")", "&&", "(", "Flags", "&", "ELF", "::", "SHF_EXECINSTR", ")", ")", "return", "ELF", "::", "R__NONE", ";"], "ground_truth": ["}", "else", "{"], "File": "BPFELFObjectWriter22", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1505, "Length": 65, "Cover_Rate": 0.30660377358490565} {"Template_token": ["", "case", "FK_SecRel_4", ":", "return", "ELF", "::", "R__64_32", ";", "case", "FK_Data_8", ":", "return", "ELF", "::", "R__64_64", ";", "case", "FK_Data_4", ":", "if", "(", "const", "MCSymbolRefExpr", "*", "A", "=", "Target", ".", "getSymA", "(", ")", ")", "{", "const", "MCSymbol", "&", "Sym", "=", "A", "->", "getSymbol", "(", ")", ";", "if", "(", "Sym", ".", "isDefined", "(", ")", ")", "{", "MCSection", "&", "Section", "=", "Sym", ".", "getSection", "(", ")", ";"], "ground_truth": ["const", "MCSectionELF", "*", "SectionELF", "=", "dyn_cast", "<", "MCSectionELF", ">", "(", "&", "Section", ")", ";"], "File": "BPFELFObjectWriter22", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1506, "Length": 77, "Cover_Rate": 0.3632075471698113} {"Template_token": ["", "case", "FK_SecRel_4", ":", "return", "ELF", "::", "R__64_32", ";", "case", "FK_Data_8", ":", "return", "ELF", "::", "R__64_64", ";", "case", "FK_Data_4", ":", "if", "(", "const", "MCSymbolRefExpr", "*", "A", "=", "Target", ".", "getSymA", "(", ")", ")", "{", "const", "MCSymbol", "&", "Sym", "=", "A", "->", "getSymbol", "(", ")", ";", "if", "(", "Sym", ".", "isDefined", "(", ")", ")", "{", "MCSection", "&", "Section", "=", "Sym", ".", "getSection", "(", ")", ";", "const", "MCSectionELF", "*", "SectionELF", "=", "dyn_cast", "<", "MCSectionELF", ">", "(", "&", "Section", ")", ";", "assert", "(", "SectionELF", "&&", "", ")", ";", "unsigned", "Flags", "=", "SectionELF", "->", "getFlags", "(", ")", ";", "if", "(", "Sym", ".", "isTemporary", "(", ")", ")", "{", "if", "(", "(", "Flags", "&", "ELF", "::", "SHF_ALLOC", ")", "&&", "(", "Flags", "&", "ELF", "::", "SHF_EXECINSTR", ")", ")", "return", "ELF", "::", "R__NONE", ";", "}", "else", "{", "if", "(", "(", "Flags", "&", "ELF", "::", "SHF_ALLOC", ")", "&&", "(", "Flags", "&", "ELF", "::", "SHF_WRITE", ")", ")", "return", "ELF", "::", "R__NONE", ";", "}", "}", "}", "return", "ELF", "::", "R__64_32", ";"], "ground_truth": ["}"], "File": "BPFELFObjectWriter2", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1507, "Length": 160, "Cover_Rate": 0.7441860465116279} {"Template_token": ["", "MCELFObjectTargetWriter", "*", "MOTW", "=", "new", "ELFObjectWriter", "(", "OSABI", ")", ";"], "ground_truth": ["return", "createELFObjectWriter", "(", "MOTW", ",", "OS", ",", "true", ")", ";"], "File": "BPFELFObjectWriter5", "Func": "createBPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1508, "Length": 20, "Cover_Rate": 0.5714285714285714} {"Template_token": ["", "std", "::", "unique_ptr", "<", "MCObjectTargetWriter", ">", "llvm", "::", "createELFObjectWriter", "(", "uint8_t", "OSABI", ")", "{", "return", "llvm", "::", "make_unique", "<", "ELFObjectWriter", ">", "(", "OSABI", ")", ";"], "ground_truth": ["}"], "File": "BPFELFObjectWriter", "Func": "createBPFELFObjectWriter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1509, "Length": 26, "Cover_Rate": 1.0} {"Template_token": ["", "case", "FK_SecRel_8", ":", "return", "ELF", "::", "R__64_64", ";", "case", "FK_PCRel_4", ":", "case", "FK_SecRel_4", ":", "return", "ELF", "::", "R__64_32", ";", "case", "FK_Data_8", ":"], "ground_truth": ["return", "ELF", "::", "R__64_64", ";"], "File": "BPFELFObjectWriter", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1511, "Length": 27, "Cover_Rate": 0.3375} {"Template_token": ["", "unsigned", "ELFObjectWriter", "::", "getRelocType", "(", "MCContext", "&", "Ctx", ",", "const", "MCValue", "&", "Target", ",", "const", "MCFixup", "&", "Fixup", ",", "bool", "IsPCRel", ")", "const", "{", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "FK_SecRel_8", ":", "return", "ELF", "::", "R__64_64", ";"], "ground_truth": ["case", "FK_PCRel_4", ":"], "File": "BPFELFObjectWriter", "Func": "getRelocType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1512, "Length": 54, "Cover_Rate": 0.675} {"Template_token": ["", "explicit", "FrameLowering", "(", "const", "Subtarget", "&", "sti", ")", ":", "TargetFrameLowering", "(", "TargetFrameLowering", "::", "StackGrowsDown", ",", "", ",", "", ")", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering11", "Func": "BPFFrameLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1513, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "FrameLowering", "(", "const", "Subtarget", "&", "sti", ")", ":", "TargetFrameLowering", "(", "TargetFrameLowering", "::", "StackGrowsDown", ",", "", ",", "", ")", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering11", "Func": "BPFFrameLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1514, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "void", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "{"], "ground_truth": ["MBB", ".", "erase", "(", "MI", ")", ";"], "File": "BPFFrameLowering11", "Func": "eliminateCallFramePseudoInstr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1515, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "MBB", ".", "erase", "(", "MI", ")", ";"], "ground_truth": ["}"], "File": "BPFFrameLowering11", "Func": "eliminateCallFramePseudoInstr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1516, "Length": 8, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "explicit", "FrameLowering", "(", "const", "Subtarget", "&", "sti", ")", ":", "TargetFrameLowering", "(", "TargetFrameLowering", "::", "StackGrowsDown", ",", "Align", "(", "", ")", ",", "", ")", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering2", "Func": "BPFFrameLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1517, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "FrameLowering", "(", "const", "Subtarget", "&", "sti", ")", ":", "TargetFrameLowering", "(", "TargetFrameLowering", "::", "StackGrowsDown", ",", "Align", "(", "", ")", ",", "", ")", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering2", "Func": "BPFFrameLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1518, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "void", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ")", "const", "override", "{"], "ground_truth": ["MBB", ".", "erase", "(", "MI", ")", ";"], "File": "BPFFrameLowering4", "Func": "eliminateCallFramePseudoInstr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1520, "Length": 26, "Cover_Rate": 0.9629629629629629} {"Template_token": ["", "MRI", ".", "setPhysRegUnused", "(", "", ")", ";", "MRI", ".", "setPhysRegUnused", "(", "", ")", ";", "MRI", ".", "setPhysRegUnused", "(", "", ")", ";", "MRI", ".", "setPhysRegUnused", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFFrameLowering5", "Func": "processFunctionBeforeCalleeSavedScan", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1521, "Length": 29, "Cover_Rate": 0.46774193548387094} {"Template_token": ["", "MRI", ".", "setPhysRegUnused", "(", "", ")", ";", "MRI", ".", "setPhysRegUnused", "(", "", ")", ";", "MRI", ".", "setPhysRegUnused", "(", "", ")", ";", "MRI", ".", "setPhysRegUnused", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFFrameLowering5", "Func": "processFunctionBeforeCalleeSavedScan", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1522, "Length": 29, "Cover_Rate": 0.46774193548387094} {"Template_token": ["", "void", "FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering6", "Func": "emitPrologue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1523, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering6", "Func": "emitPrologue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1524, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering7", "Func": "emitEpilogue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1525, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering7", "Func": "emitEpilogue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1526, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering7", "Func": "emitPrologue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1527, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering7", "Func": "emitPrologue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1528, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "MRI", ".", "setPhysRegUnused", "(", "", ")", ";", "MRI", ".", "setPhysRegUnused", "(", "", ")", ";"], "ground_truth": ["MRI", ".", "setPhysRegUnused", "(", "", ")", ";"], "File": "BPFFrameLowering7", "Func": "processFunctionBeforeCalleeSavedScan", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1529, "Length": 21, "Cover_Rate": 0.3387096774193548} {"Template_token": ["", "explicit", "FrameLowering", "(", "const", "Subtarget", "&", "sti", ")", ":", "TargetFrameLowering", "(", "TargetFrameLowering", "::", "StackGrowsDown", ",", "", ",", "", ")", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering", "Func": "BPFFrameLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1530, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "FrameLowering", "(", "const", "Subtarget", "&", "sti", ")", ":", "TargetFrameLowering", "(", "TargetFrameLowering", "::", "StackGrowsDown", ",", "", ",", "", ")", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering", "Func": "BPFFrameLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1531, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "SavedRegs", ".", "reset", "(", "", ")", ";", "SavedRegs", ".", "reset", "(", "", ")", ";", "SavedRegs", ".", "reset", "(", "", ")", ";", "SavedRegs", ".", "reset", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFFrameLowering", "Func": "determineCalleeSaves", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1532, "Length": 40, "Cover_Rate": 0.5970149253731343} {"Template_token": ["", "void", "FrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedRegs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedRegs", ",", "RS", ")", ";", "SavedRegs", ".", "reset", "(", "", ")", ";", "SavedRegs", ".", "reset", "(", "", ")", ";", "SavedRegs", ".", "reset", "(", "", ")", ";"], "ground_truth": ["SavedRegs", ".", "reset", "(", "", ")", ";"], "File": "BPFFrameLowering", "Func": "determineCalleeSaves", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1533, "Length": 58, "Cover_Rate": 0.8656716417910447} {"Template_token": ["", "void", "FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering", "Func": "emitEpilogue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1535, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering", "Func": "emitEpilogue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1536, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering", "Func": "emitPrologue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1537, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "void", "FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{"], "ground_truth": ["}"], "File": "BPFFrameLowering", "Func": "emitPrologue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1538, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "FrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{"], "ground_truth": ["return", "true", ";"], "File": "BPFFrameLowering", "Func": "hasFP", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1539, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "bool", "FrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{"], "ground_truth": ["return", "true", ";"], "File": "BPFFrameLowering", "Func": "hasFP", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1540, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "int16_t", "Imm", "=", "Op", ".", "getImm", "(", ")", ";", "O", "<<", "(", "(", "Imm", ">=", "", ")", "?", "", ":", "", ")", "<<", "formatImm", "(", "Imm", ")", ";", "}", "else", "if", "(", "Op", ".", "isExpr", "(", ")", ")", "{", "printExpr", "(", "Op", ".", "getExpr", "(", ")", ",", "O", ")", ";", "}", "else", "{", "O", "<<", "Op", ";", "}"], "ground_truth": ["}"], "File": "BPFInstPrinter10", "Func": "printBrTargetOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1541, "Length": 68, "Cover_Rate": 0.6938775510204082} {"Template_token": ["", "void", "InstPrinter", "::", "printBrTargetOperand", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";"], "ground_truth": ["if", "(", "Op", ".", "isImm", "(", ")", ")", "{"], "File": "BPFInstPrinter10", "Func": "printBrTargetOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1542, "Length": 39, "Cover_Rate": 0.3979591836734694} {"Template_token": ["", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isImm", "(", ")", ")", "O", "<<", "formatImm", "(", "Op", ".", "getImm", "(", ")", ")", ";"], "ground_truth": ["else", "if", "(", "Op", ".", "isExpr", "(", ")", ")", "printExpr", "(", "Op", ".", "getExpr", "(", ")", ",", "O", ")", ";"], "File": "BPFInstPrinter10", "Func": "printImm64Operand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1543, "Length": 51, "Cover_Rate": 0.68} {"Template_token": ["", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isImm", "(", ")", ")", "O", "<<", "formatImm", "(", "Op", ".", "getImm", "(", ")", ")", ";", "else", "if", "(", "Op", ".", "isExpr", "(", ")", ")", "printExpr", "(", "Op", ".", "getExpr", "(", ")", ",", "O", ")", ";", "else", "O", "<<", "Op", ";"], "ground_truth": ["}"], "File": "BPFInstPrinter10", "Func": "printImm64Operand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1544, "Length": 57, "Cover_Rate": 0.76} {"Template_token": ["", "O", "<<", "getRegisterName", "(", "Op", ".", "getReg", "(", ")", ")", ";", "}", "else", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "O", "<<", "formatImm", "(", "(", "int32_t", ")", "Op", ".", "getImm", "(", ")", ")", ";", "}", "else", "{", "assert", "(", "Op", ".", "isExpr", "(", ")", "&&", "", ")", ";", "printExpr", "(", "Op", ".", "getExpr", "(", ")", ",", "O", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFInstPrinter10", "Func": "printOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1546, "Length": 63, "Cover_Rate": 0.504} {"Template_token": ["", "printInstruction", "(", "MI", ",", "O", ")", ";", "printAnnotation", "(", "O", ",", "Annot", ")", ";"], "ground_truth": ["}"], "File": "BPFInstPrinter13", "Func": "printInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1547, "Length": 15, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "int16_t", "Imm", "=", "Op", ".", "getImm", "(", ")", ";", "O", "<<", "(", "(", "Imm", ">=", "", ")", "?", "", ":", "", ")", "<<", "Imm", ";", "}", "else", "if", "(", "Op", ".", "isExpr", "(", ")", ")", "{", "printExpr", "(", "Op", ".", "getExpr", "(", ")", ",", "O", ")", ";", "}", "else", "{", "O", "<<", "Op", ";"], "ground_truth": ["}"], "File": "BPFInstPrinter15", "Func": "printBrTargetOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1548, "Length": 55, "Cover_Rate": 0.5789473684210527} {"Template_token": ["", "void", "InstPrinter", "::", "printImm64Operand", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";"], "ground_truth": ["if", "(", "Op", ".", "isImm", "(", ")", ")", "O", "<<", "(", "uint64_t", ")", "Op", ".", "getImm", "(", ")", ";"], "File": "BPFInstPrinter15", "Func": "printImm64Operand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1549, "Length": 49, "Cover_Rate": 0.6533333333333333} {"Template_token": ["", "void", "InstPrinter", "::", "printOperand", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ",", "const", "char", "*", "Modifier", ")", "{", "assert", "(", "(", "Modifier", "==", "nullptr", "||", "Modifier", "[", "", "]", "==", "", ")", "&&", "", ")", ";", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isReg", "(", ")", ")", "{", "O", "<<", "getRegisterName", "(", "Op", ".", "getReg", "(", ")", ")", ";", "}", "else", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "O", "<<", "formatImm", "(", "(", "int32_t", ")", "Op", ".", "getImm", "(", ")", ")", ";", "}", "else", "{", "assert", "(", "Op", ".", "isExpr", "(", ")", "&&", "", ")", ";"], "ground_truth": ["printExpr", "(", "Op", ".", "getExpr", "(", ")", ",", "O", ")", ";"], "File": "BPFInstPrinter19", "Func": "printOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1550, "Length": 123, "Cover_Rate": 0.984} {"Template_token": ["", "if", "(", "Op", ".", "isReg", "(", ")", ")", "{", "O", "<<", "getRegisterName", "(", "Op", ".", "getReg", "(", ")", ")", ";", "}", "else", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "O", "<<", "formatImm", "(", "(", "int32_t", ")", "Op", ".", "getImm", "(", ")", ")", ";"], "ground_truth": ["}", "else", "{"], "File": "BPFInstPrinter19", "Func": "printOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1551, "Length": 48, "Cover_Rate": 0.384} {"Template_token": ["", "O", "<<", "getRegisterName", "(", "RegOp", ".", "getReg", "(", ")", ")", ";", "if", "(", "OffsetOp", ".", "isImm", "(", ")", ")", "{", "auto", "Imm", "=", "OffsetOp", ".", "getImm", "(", ")", ";", "if", "(", "Imm", ">=", "", ")", "O", "<<", "", "<<", "formatDec", "(", "Imm", ")", ";", "else", "O", "<<", "", "<<", "formatDec", "(", "-", "Imm", ")", ";", "}", "else", "{", "assert", "(", "", "&&", "", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFInstPrinter1", "Func": "printMemOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1552, "Length": 67, "Cover_Rate": 0.5275590551181102} {"Template_token": ["", "O", "<<", "OffsetOp", ".", "getImm", "(", ")", ";", "}", "else", "{", "assert", "(", "", "&&", "", ")", ";", "}", "assert", "(", "RegOp", ".", "isReg", "(", ")", "&&", "", ")", ";", "O", "<<", "", "<<", "getRegisterName", "(", "RegOp", ".", "getReg", "(", ")", ")", "<<", "", ";"], "ground_truth": ["}"], "File": "BPFInstPrinter20", "Func": "printMemOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1553, "Length": 46, "Cover_Rate": 0.4423076923076923} {"Template_token": ["", "InstPrinter", "(", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", ":", "MCInstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", "{"], "ground_truth": ["}"], "File": "BPFInstPrinter", "Func": "BPFInstPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1554, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "InstPrinter", "(", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", ":", "MCInstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", "{"], "ground_truth": ["}"], "File": "BPFInstPrinter", "Func": "BPFInstPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1555, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "const", "MCBinaryExpr", "*", "BE", "=", "dyn_cast", "<", "MCBinaryExpr", ">", "(", "Expr", ")", ")", "SRE", "=", "dyn_cast", "<", "MCSymbolRefExpr", ">", "(", "BE", "->", "getLHS", "(", ")", ")", ";", "else", "SRE", "=", "dyn_cast", "<", "MCSymbolRefExpr", ">", "(", "Expr", ")", ";", "assert", "(", "SRE", "&&", "", ")", ";", "MCSymbolRefExpr", "::", "VariantKind", "Kind", "=", "SRE", "->", "getKind", "(", ")", ";", "assert", "(", "Kind", "==", "MCSymbolRefExpr", "::", "VK_None", ")", ";"], "ground_truth": ["O", "<<", "*", "Expr", ";"], "File": "BPFInstPrinter", "Func": "printExpr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1556, "Length": 72, "Cover_Rate": 0.782608695652174} {"Template_token": ["", "static", "void", "printExpr", "(", "const", "MCExpr", "*", "Expr", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCSymbolRefExpr", "*", "SRE", ";", "if", "(", "const", "MCBinaryExpr", "*", "BE", "=", "dyn_cast", "<", "MCBinaryExpr", ">", "(", "Expr", ")", ")", "SRE", "=", "dyn_cast", "<", "MCSymbolRefExpr", ">", "(", "BE", "->", "getLHS", "(", ")", ")", ";", "else", "SRE", "=", "dyn_cast", "<", "MCSymbolRefExpr", ">", "(", "Expr", ")", ";", "assert", "(", "SRE", "&&", "", ")", ";"], "ground_truth": ["MCSymbolRefExpr", "::", "VariantKind", "Kind", "=", "SRE", "->", "getKind", "(", ")", ";"], "File": "BPFInstPrinter", "Func": "printExpr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1557, "Length": 77, "Cover_Rate": 0.8369565217391305} {"Template_token": ["", "void", "InstPrinter", "::", "printImm64Operand", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{"], "ground_truth": ["const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";"], "File": "BPFInstPrinter", "Func": "printImm64Operand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1558, "Length": 30, "Cover_Rate": 0.5454545454545454} {"Template_token": ["", "if", "(", "Op", ".", "isImm", "(", ")", ")", "O", "<<", "(", "uint64_t", ")", "Op", ".", "getImm", "(", ")", ";", "else", "O", "<<", "Op", ";"], "ground_truth": ["}"], "File": "BPFInstPrinter", "Func": "printImm64Operand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1559, "Length": 25, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "void", "InstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "O", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "printInstruction", "(", "MI", ",", "O", ")", ";", "printAnnotation", "(", "O", ",", "Annot", ")", ";"], "ground_truth": ["}"], "File": "BPFInstPrinter", "Func": "printInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1560, "Length": 38, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "OffsetOp", ".", "isImm", "(", ")", ")", "O", "<<", "formatDec", "(", "OffsetOp", ".", "getImm", "(", ")", ")", ";", "else", "assert", "(", "", "&&", "", ")", ";"], "ground_truth": ["assert", "(", "RegOp", ".", "isReg", "(", ")", "&&", "", ")", ";"], "File": "BPFInstPrinter", "Func": "printMemOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1561, "Length": 38, "Cover_Rate": 0.36893203883495146} {"Template_token": ["", "void", "InstPrinter", "::", "printOperand", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ",", "const", "char", "*", "Modifier", ")", "{", "assert", "(", "(", "Modifier", "==", "", "||", "Modifier", "[", "", "]", "==", "", ")", "&&", "", ")", ";", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isReg", "(", ")", ")", "{", "O", "<<", "getRegisterName", "(", "Op", ".", "getReg", "(", ")", ")", ";", "}", "else", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "O", "<<", "(", "int32_t", ")", "Op", ".", "getImm", "(", ")", ";", "}", "else", "{", "assert", "(", "Op", ".", "isExpr", "(", ")", "&&", "", ")", ";", "printExpr", "(", "Op", ".", "getExpr", "(", ")", ",", "O", ")", ";"], "ground_truth": ["}"], "File": "BPFInstPrinter", "Func": "printOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1562, "Length": 121, "Cover_Rate": 0.9918032786885246} {"Template_token": ["", "assert", "(", "(", "Modifier", "==", "", "||", "Modifier", "[", "", "]", "==", "", ")", "&&", "", ")", ";", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isReg", "(", ")", ")", "{", "O", "<<", "getRegisterName", "(", "Op", ".", "getReg", "(", ")", ")", ";", "}", "else", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{"], "ground_truth": ["O", "<<", "(", "int32_t", ")", "Op", ".", "getImm", "(", ")", ";"], "File": "BPFInstPrinter", "Func": "printOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1563, "Length": 72, "Cover_Rate": 0.5901639344262295} {"Template_token": ["", "bool", "InstrInfo", "::", "analyzeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "&", "TBB", ",", "MachineBasicBlock", "*", "&", "FBB", ",", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ",", "bool", "AllowModify", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "end", "(", ")", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "!", "isUnpredicatedTerminator", "(", "*", "I", ")", ")", "break", ";", "if", "(", "!", "I", "->", "isBranch", "(", ")", ")", "return", "true", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "==", "", ")", "{", "if", "(", "!", "AllowModify", ")", "{", "TBB", "=", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "while", "(", "std", "::", "next", "(", "I", ")", "!=", "MBB", ".", "end", "(", ")", ")", "std", "::", "next", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";", "Cond", ".", "clear", "(", ")", ";", "FBB", "=", "nullptr", ";"], "ground_truth": ["if", "(", "MBB", ".", "isLayoutSuccessor", "(", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ")", ")", "{"], "File": "BPFInstrInfo10", "Func": "analyzeBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1564, "Length": 177, "Cover_Rate": 0.7901785714285714} {"Template_token": ["", "continue", ";", "}", "while", "(", "std", "::", "next", "(", "I", ")", "!=", "MBB", ".", "end", "(", ")", ")", "std", "::", "next", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";", "Cond", ".", "clear", "(", ")", ";", "FBB", "=", "nullptr", ";", "if", "(", "MBB", ".", "isLayoutSuccessor", "(", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ")", ")", "{", "TBB", "=", "nullptr", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "continue", ";", "}"], "ground_truth": ["TBB", "=", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";"], "File": "BPFInstrInfo10", "Func": "analyzeBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1565, "Length": 92, "Cover_Rate": 0.4107142857142857} {"Template_token": ["", "assert", "(", "TBB", "&&", "", ")", ";", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "assert", "(", "!", "FBB", "&&", "", ")", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addMBB", "(", "TBB", ")", ";"], "ground_truth": ["return", "", ";"], "File": "BPFInstrInfo10", "Func": "insertBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1566, "Length": 45, "Cover_Rate": 0.46875} {"Template_token": ["", "unsigned", "InstrInfo", "::", "removeBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "int", "*", "BytesRemoved", ")", "const", "{", "assert", "(", "!", "BytesRemoved", "&&", "", ")", ";", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "end", "(", ")", ";", "unsigned", "Count", "=", "", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "!=", "", ")", "break", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "++", "Count", ";", "}", "return", "Count", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo10", "Func": "removeBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1567, "Length": 97, "Cover_Rate": 0.9797979797979798} {"Template_token": ["", "--", "I", ";", "if", "(", "I", "->", "isDebugInstr", "(", ")", ")", "continue", ";", "if", "(", "!", "isUnpredicatedTerminator", "(", "*", "I", ")", ")", "break", ";", "if", "(", "!", "I", "->", "isBranch", "(", ")", ")", "return", "true", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "==", "", ")", "{", "if", "(", "!", "AllowModify", ")", "{", "TBB", "=", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "while", "(", "std", "::", "next", "(", "I", ")", "!=", "MBB", ".", "end", "(", ")", ")", "std", "::", "next", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";", "Cond", ".", "clear", "(", ")", ";", "FBB", "=", "nullptr", ";", "if", "(", "MBB", ".", "isLayoutSuccessor", "(", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ")", ")", "{", "TBB", "=", "nullptr", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "continue", ";", "}", "TBB", "=", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo12", "Func": "analyzeBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1568, "Length": 165, "Cover_Rate": 0.7366071428571429} {"Template_token": ["", "if", "(", "", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";"], "ground_truth": ["else", "if", "(", "", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";"], "File": "BPFInstrInfo12", "Func": "copyPhysReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1569, "Length": 75, "Cover_Rate": 0.625} {"Template_token": ["", "return", "RI", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo12", "Func": "getRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1570, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";", "else", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";"], "ground_truth": ["else", "llvm_unreachable", "(", "", ")", ";"], "File": "BPFInstrInfo12", "Func": "loadRegFromStackSlot", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1571, "Length": 73, "Cover_Rate": 0.5407407407407407} {"Template_token": ["", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";", "else", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo12", "Func": "loadRegFromStackSlot", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1572, "Length": 74, "Cover_Rate": 0.5481481481481482} {"Template_token": ["", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "IsKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";"], "ground_truth": ["else", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "IsKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";"], "File": "BPFInstrInfo12", "Func": "storeRegToStackSlot", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1573, "Length": 101, "Cover_Rate": 0.6558441558441559} {"Template_token": ["", "if", "(", "", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";"], "ground_truth": ["else", "if", "(", "", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";"], "File": "BPFInstrInfo14", "Func": "copyPhysReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1574, "Length": 75, "Cover_Rate": 0.625} {"Template_token": ["", "if", "(", "", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "else", "if", "(", "", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo14", "Func": "copyPhysReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1575, "Length": 82, "Cover_Rate": 0.6833333333333333} {"Template_token": ["", "bool", "Hanging2Byte", "=", "BytesLeft", "&", "", ";", "bool", "Hanging1Byte", "=", "BytesLeft", "&", "", ";", "if", "(", "Hanging4Byte", ")", "{", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "Offset", ")", ";", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ".", "addReg", "(", "DstReg", ")", ".", "addImm", "(", "Offset", ")", ";", "Offset", "+=", "", ";", "}", "if", "(", "Hanging2Byte", ")", "{", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "Offset", ")", ";", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ".", "addReg", "(", "DstReg", ")", ".", "addImm", "(", "Offset", ")", ";", "Offset", "+=", "", ";", "}", "if", "(", "Hanging1Byte", ")", "{"], "ground_truth": ["BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "Offset", ")", ";"], "File": "BPFInstrInfo14", "Func": "expandMEMCPY", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1576, "Length": 209, "Cover_Rate": 0.3641114982578397} {"Template_token": ["", "expandMEMCPY", "(", "MI", ")", ";", "return", "true", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo14", "Func": "expandPostRAPseudo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1577, "Length": 13, "Cover_Rate": 0.35135135135135137} {"Template_token": ["", "bool", "InstrInfo", "::", "expandPostRAPseudo", "(", "MachineInstr", "&", "MI", ")", "const", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "expandMEMCPY", "(", "MI", ")", ";", "return", "true", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo14", "Func": "expandPostRAPseudo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1578, "Length": 35, "Cover_Rate": 0.9459459459459459} {"Template_token": ["", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";", "else", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo14", "Func": "loadRegFromStackSlot", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1579, "Length": 92, "Cover_Rate": 0.6814814814814815} {"Template_token": ["", "else", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo14", "Func": "loadRegFromStackSlot", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1580, "Length": 41, "Cover_Rate": 0.3037037037037037} {"Template_token": ["", "void", "InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "SrcReg", ",", "bool", "IsKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "IsKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";", "else", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "IsKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";"], "ground_truth": ["else", "llvm_unreachable", "(", "", ")", ";"], "File": "BPFInstrInfo14", "Func": "storeRegToStackSlot", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1581, "Length": 145, "Cover_Rate": 0.9415584415584416} {"Template_token": ["", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "IsKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";", "else", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "IsKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";"], "ground_truth": ["else", "llvm_unreachable", "(", "", ")", ";"], "File": "BPFInstrInfo14", "Func": "storeRegToStackSlot", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1582, "Length": 89, "Cover_Rate": 0.577922077922078} {"Template_token": ["", "Cond", ".", "clear", "(", ")", ";", "FBB", "=", "", ";", "if", "(", "MBB", ".", "isLayoutSuccessor", "(", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ")", ")", "{", "TBB", "=", "", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "continue", ";", "}", "TBB", "=", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo16", "Func": "AnalyzeBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1583, "Length": 70, "Cover_Rate": 0.31390134529147984} {"Template_token": ["", "InstrInfo", "::", "InstrInfo", "(", ")", ":", "GenInstrInfo", "(", "", ",", "", ")", ",", "RI", "(", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "BPFInstrInfo16", "Func": "BPFInstrInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1584, "Length": 20, "Cover_Rate": 0.8333333333333334} {"Template_token": ["", "InstrInfo", "::", "InstrInfo", "(", ")", ":", "GenInstrInfo", "(", "", ",", "", ")", ",", "RI", "(", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "BPFInstrInfo16", "Func": "BPFInstrInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1585, "Length": 20, "Cover_Rate": 0.8333333333333334} {"Template_token": ["", "unsigned", "InstrInfo", "::", "InsertBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "TBB", ",", "MachineBasicBlock", "*", "FBB", ",", "const", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Cond", ",", "DebugLoc", "DL", ")", "const", "{", "assert", "(", "TBB", "&&", "", ")", ";", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "assert", "(", "!", "FBB", "&&", "", ")", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addMBB", "(", "TBB", ")", ";"], "ground_truth": ["return", "", ";"], "File": "BPFInstrInfo16", "Func": "InsertBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1586, "Length": 75, "Cover_Rate": 0.8620689655172413} {"Template_token": ["", "void", "InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";"], "ground_truth": ["if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "isKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";"], "File": "BPFInstrInfo16", "Func": "storeRegToStackSlot", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1588, "Length": 97, "Cover_Rate": 0.8981481481481481} {"Template_token": ["", "switch", "(", "Alignment", ")", "{", "case", "", ":", "LdOpc", "=", "", ";", "StOpc", "=", "", ";", "break", ";", "case", "", ":", "LdOpc", "=", "", ";", "StOpc", "=", "", ";", "break", ";", "case", "", ":", "LdOpc", "=", "", ";", "StOpc", "=", "", ";", "break", ";", "case", "", ":", "LdOpc", "=", "", ";", "StOpc", "=", "", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "", ")", ";", "}", "unsigned", "IterationNum", "=", "CopyLen", ">>", "Log2_64", "(", "Alignment", ")", ";", "for", "(", "unsigned", "I", "=", "", ";", "I", "<", "IterationNum", ";", "++", "I", ")", "{", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "LdOpc", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "I", "*", "Alignment", ")", ";", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "StOpc", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ".", "addReg", "(", "DstReg", ")", ".", "addImm", "(", "I", "*", "Alignment", ")", ";", "}", "unsigned", "BytesLeft", "=", "CopyLen", "&", "(", "Alignment", "-", "", ")", ";", "unsigned", "Offset", "=", "IterationNum", "*", "Alignment", ";", "bool", "Hanging4Byte", "=", "BytesLeft", "&", "", ";", "bool", "Hanging2Byte", "=", "BytesLeft", "&", "", ";", "bool", "Hanging1Byte", "=", "BytesLeft", "&", "", ";", "if", "(", "Hanging4Byte", ")", "{", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "Offset", ")", ";", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ".", "addReg", "(", "DstReg", ")", ".", "addImm", "(", "Offset", ")", ";", "Offset", "+=", "", ";", "}", "if", "(", "Hanging2Byte", ")", "{", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "Offset", ")", ";", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ".", "addReg", "(", "DstReg", ")", ".", "addImm", "(", "Offset", ")", ";", "Offset", "+=", "", ";", "}", "if", "(", "Hanging1Byte", ")", "{", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "Offset", ")", ";"], "ground_truth": ["BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ".", "addReg", "(", "DstReg", ")", ".", "addImm", "(", "Offset", ")", ";"], "File": "BPFInstrInfo18", "Func": "expandMEMCPY", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1589, "Length": 431, "Cover_Rate": 0.7508710801393729} {"Template_token": ["", "break", ";", "case", "", ":", "LdOpc", "=", "", ";", "StOpc", "=", "", ";", "break", ";", "case", "", ":", "LdOpc", "=", "", ";", "StOpc", "=", "", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "", ")", ";", "}", "unsigned", "IterationNum", "=", "CopyLen", ">>", "Log2_64", "(", "Alignment", ")", ";", "for", "(", "unsigned", "I", "=", "", ";", "I", "<", "IterationNum", ";", "++", "I", ")", "{", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "LdOpc", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "I", "*", "Alignment", ")", ";", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "StOpc", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ".", "addReg", "(", "DstReg", ")", ".", "addImm", "(", "I", "*", "Alignment", ")", ";", "}", "unsigned", "BytesLeft", "=", "CopyLen", "&", "(", "Alignment", "-", "", ")", ";", "unsigned", "Offset", "=", "IterationNum", "*", "Alignment", ";", "bool", "Hanging4Byte", "=", "BytesLeft", "&", "", ";", "bool", "Hanging2Byte", "=", "BytesLeft", "&", "", ";", "bool", "Hanging1Byte", "=", "BytesLeft", "&", "", ";", "if", "(", "Hanging4Byte", ")", "{", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "Offset", ")", ";", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ".", "addReg", "(", "DstReg", ")", ".", "addImm", "(", "Offset", ")", ";", "Offset", "+=", "", ";", "}", "if", "(", "Hanging2Byte", ")", "{", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "Offset", ")", ";", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ".", "addReg", "(", "DstReg", ")", ".", "addImm", "(", "Offset", ")", ";", "Offset", "+=", "", ";", "}", "if", "(", "Hanging1Byte", ")", "{", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "Offset", ")", ";", "BuildMI", "(", "*", "BB", ",", "MI", ",", "dl", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Kill", ")", ".", "addReg", "(", "DstReg", ")", ".", "addImm", "(", "Offset", ")", ";", "}", "BB", "->", "erase", "(", "MI", ")", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo18", "Func": "expandMEMCPY", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1590, "Length": 411, "Cover_Rate": 0.7160278745644599} {"Template_token": ["", "TBB", "=", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "while", "(", "std", "::", "next", "(", "I", ")", "!=", "MBB", ".", "end", "(", ")", ")", "std", "::", "next", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";", "Cond", ".", "clear", "(", ")", ";", "FBB", "=", "", ";", "if", "(", "MBB", ".", "isLayoutSuccessor", "(", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ")", ")", "{", "TBB", "=", "", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "continue", ";", "}", "TBB", "=", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "return", "true", ";", "}"], "ground_truth": ["return", "false", ";"], "File": "BPFInstrInfo1", "Func": "AnalyzeBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1591, "Length": 115, "Cover_Rate": 0.515695067264574} {"Template_token": ["", "if", "(", "", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo1", "Func": "copyPhysReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1592, "Length": 44, "Cover_Rate": 0.5789473684210527} {"Template_token": ["", "assert", "(", "!", "FBB", "&&", "", ")", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "return", "", ";", "}", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo1", "Func": "InsertBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1593, "Length": 36, "Cover_Rate": 0.43902439024390244} {"Template_token": ["", "if", "(", "!", "AllowModify", ")", "{", "TBB", "=", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "while", "(", "std", "::", "next", "(", "I", ")", "!=", "MBB", ".", "end", "(", ")", ")", "std", "::", "next", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";", "Cond", ".", "clear", "(", ")", ";", "FBB", "=", "", ";", "if", "(", "MBB", ".", "isLayoutSuccessor", "(", "I", "->", "getOperand", "(", "", ")", ".", "getMBB", "(", ")", ")", ")", "{"], "ground_truth": ["TBB", "=", "", ";"], "File": "BPFInstrInfo", "Func": "analyzeBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1594, "Length": 81, "Cover_Rate": 0.36160714285714285} {"Template_token": ["", "InstrInfo", "::", "InstrInfo", "(", ")", ":", "GenInstrInfo", "(", "", ",", "", ")", "{"], "ground_truth": ["}"], "File": "BPFInstrInfo", "Func": "BPFInstrInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1595, "Length": 14, "Cover_Rate": 0.7777777777777778} {"Template_token": ["", "InstrInfo", "::", "InstrInfo", "(", ")", ":", "GenInstrInfo", "(", "", ",", "", ")", "{"], "ground_truth": ["}"], "File": "BPFInstrInfo", "Func": "BPFInstrInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1596, "Length": 14, "Cover_Rate": 0.7777777777777778} {"Template_token": ["", "if", "(", "", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";"], "ground_truth": ["else", "llvm_unreachable", "(", "", ")", ";"], "File": "BPFInstrInfo", "Func": "copyPhysReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1597, "Length": 43, "Cover_Rate": 0.5512820512820513} {"Template_token": ["", "const", "RegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "{", "return", "RI", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo", "Func": "getRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1598, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "const", "RegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "{"], "ground_truth": ["return", "RI", ";"], "File": "BPFInstrInfo", "Func": "getRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1599, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "unsigned", "InstrInfo", "::", "InsertBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "TBB", ",", "MachineBasicBlock", "*", "FBB", ",", "ArrayRef", "<", "MachineOperand", ">", "Cond", ",", "const", "DebugLoc", "&", "DL", ")", "const", "{", "assert", "(", "TBB", "&&", "", ")", ";", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "assert", "(", "!", "FBB", "&&", "", ")", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "return", "", ";", "}", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo", "Func": "InsertBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1600, "Length": 82, "Cover_Rate": 0.9761904761904762} {"Template_token": ["", "unsigned", "InstrInfo", "::", "RemoveBranch", "(", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "end", "(", ")", ";", "unsigned", "Count", "=", "", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "!=", "", ")", "break", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "++", "Count", ";", "}"], "ground_truth": ["return", "Count", ";"], "File": "BPFInstrInfo", "Func": "RemoveBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1602, "Length": 84, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "unsigned", "Count", "=", "", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "!=", "", ")", "break", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "++", "Count", ";"], "ground_truth": ["}"], "File": "BPFInstrInfo", "Func": "RemoveBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1603, "Length": 59, "Cover_Rate": 0.6781609195402298} {"Template_token": ["", "void", "InstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "IsKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "&", "", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "IsKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "", ")", ";"], "ground_truth": ["else", "llvm_unreachable", "(", "", ")", ";"], "File": "BPFInstrInfo", "Func": "storeRegToStackSlot", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1604, "Length": 103, "Cover_Rate": 0.9537037037037037} {"Template_token": ["", "IRPeephole", "(", ")", ":", "FunctionPass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFIRPeephole", "Func": "BPFIRPeephole", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1605, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "IRPeephole", "(", ")", ":", "FunctionPass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFIRPeephole", "Func": "BPFIRPeephole", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1606, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "}", "continue", ";", "}", "if", "(", "auto", "*", "LD", "=", "dyn_cast", "<", "LoadInst", ">", "(", "&", "I", ")", ")", "{", "if", "(", "!", "LD", "->", "hasOneUser", "(", ")", ")", "continue", ";", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "*", "LD", "->", "user_begin", "(", ")", ")", ";", "if", "(", "!", "Call", ")", "continue", ";", "auto", "*", "GV", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "Call", "->", "getCalledOperand", "(", ")", ")", ";", "if", "(", "!", "GV", ")", "continue", ";", "if", "(", "!", "GV", "->", "getName", "(", ")", ".", "equals", "(", "", ")", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "I", ".", "dump", "(", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Call", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "Changed", "=", "true", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "&", "I", ";", "}", "}"], "ground_truth": ["}"], "File": "BPFIRPeephole", "Func": "BPFIRPeepholeImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1607, "Length": 148, "Cover_Rate": 0.4289855072463768} {"Template_token": ["", "PreservedAnalyses", "IRPeepholePass", "::", "run", "(", "Function", "&", "F", ",", "FunctionAnalysisManager", "&", "AM", ")", "{"], "ground_truth": ["return", "IRPeepholeImpl", "(", "F", ")", "?", "PreservedAnalyses", "::", "none", "(", ")", ":", "PreservedAnalyses", "::", "all", "(", ")", ";"], "File": "BPFIRPeephole", "Func": "run", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1611, "Length": 32, "Cover_Rate": 0.9696969696969697} {"Template_token": ["", "return", "IRPeepholeImpl", "(", "F", ")", ";"], "ground_truth": ["}"], "File": "BPFIRPeephole", "Func": "runOnFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1612, "Length": 7, "Cover_Rate": 0.4117647058823529} {"Template_token": ["", "explicit", "DAGToDAGISel", "(", "TargetMachine", "&", "TM", ")", ":", "SelectionDAGISel", "(", "TM", ")", ",", "Subtarget", "(", "nullptr", ")", "{"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG10", "Func": "BPFDAGToDAGISel", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1614, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "DAGToDAGISel", "(", "TargetMachine", "&", "TM", ")", ":", "SelectionDAGISel", "(", "TM", ")", ",", "Subtarget", "(", "nullptr", ")", "{"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG10", "Func": "BPFDAGToDAGISel", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1615, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "uint64_t", "Size", "=", "DL", ".", "getTypeAllocSize", "(", "CV", "->", "getType", "(", ")", ")", ";", "if", "(", "isa", "<", "ConstantAggregateZero", ">", "(", "CV", ")", "||", "isa", "<", "UndefValue", ">", "(", "CV", ")", ")", "return", "true", ";", "if", "(", "const", "ConstantInt", "*", "CI", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "CV", ")", ")", "{", "uint64_t", "val", "=", "CI", "->", "getZExtValue", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "Offset", "<<", "", "<<", "val", "<<", "'\\n'", ")", ";", "if", "(", "Size", ">", "", "||", "(", "Size", "&", "(", "Size", "-", "", ")", ")", ")", "return", "false", ";", "for", "(", "uint64_t", "i", "=", "", ";", "i", "<", "Size", ";", "++", "i", ")", "{", "Vals", "[", "Offset", "+", "i", "]", "=", "DL", ".", "isLittleEndian", "(", ")", "?", "(", "(", "val", ">>", "(", "i", "*", "", ")", ")", "&", "", ")", ":", "(", "(", "val", ">>", "(", "(", "Size", "-", "i", "-", "", ")", "*", "", ")", ")", "&", "", ")", ";", "}", "return", "true", ";", "}"], "ground_truth": ["if", "(", "const", "ConstantDataArray", "*", "CDA", "=", "dyn_cast", "<", "ConstantDataArray", ">", "(", "CV", ")", ")", "return", "fillConstantDataArray", "(", "DL", ",", "CDA", ",", "Vals", ",", "Offset", ")", ";"], "File": "BPFISelDAGToDAG10", "Func": "fillGenericConstant", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1616, "Length": 190, "Cover_Rate": 0.7011070110701108} {"Template_token": ["", "if", "(", "Size", ">", "", "||", "(", "Size", "&", "(", "Size", "-", "", ")", ")", ")", "return", "false", ";", "for", "(", "uint64_t", "i", "=", "", ";", "i", "<", "Size", ";", "++", "i", ")", "{", "Vals", "[", "Offset", "+", "i", "]", "=", "DL", ".", "isLittleEndian", "(", ")", "?", "(", "(", "val", ">>", "(", "i", "*", "", ")", ")", "&", "", ")", ":", "(", "(", "val", ">>", "(", "(", "Size", "-", "i", "-", "", ")", "*", "", ")", ")", "&", "", ")", ";", "}"], "ground_truth": ["return", "true", ";"], "File": "BPFISelDAGToDAG10", "Func": "fillGenericConstant", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1617, "Length": 85, "Cover_Rate": 0.31365313653136534} {"Template_token": ["", "const", "Constant", "*", "Init", "=", "V", "->", "getInitializer", "(", ")", ";", "const", "DataLayout", "&", "DL", "=", "CurDAG", "->", "getDataLayout", "(", ")", ";", "val_vec_type", "TmpVal", ";", "auto", "it", "=", "cs_vals_", ".", "find", "(", "static_cast", "<", "const", "void", "*", ">", "(", "Init", ")", ")", ";", "if", "(", "it", "!=", "cs_vals_", ".", "end", "(", ")", ")", "{", "TmpVal", "=", "it", "->", "second", ";", "}", "else", "{", "uint64_t", "total_size", "=", "", ";", "if", "(", "const", "ConstantStruct", "*", "CS", "=", "dyn_cast", "<", "ConstantStruct", ">", "(", "Init", ")", ")", "total_size", "=", "DL", ".", "getStructLayout", "(", "cast", "<", "StructType", ">", "(", "CS", "->", "getType", "(", ")", ")", ")", "->", "getSizeInBytes", "(", ")", ";", "else", "if", "(", "const", "ConstantArray", "*", "CA", "=", "dyn_cast", "<", "ConstantArray", ">", "(", "Init", ")", ")", "total_size", "=", "DL", ".", "getTypeAllocSize", "(", "CA", "->", "getType", "(", ")", "->", "getElementType", "(", ")", ")", "*", "CA", "->", "getNumOperands", "(", ")", ";", "else", "return", "false", ";", "val_vec_type", "Vals", "(", "total_size", ",", "", ")", ";", "if", "(", "fillGenericConstant", "(", "DL", ",", "Init", ",", "Vals", ",", "", ")", "==", "false", ")", "return", "false", ";"], "ground_truth": ["cs_vals_", "[", "static_cast", "<", "const", "void", "*", ">", "(", "Init", ")", "]", "=", "Vals", ";"], "File": "BPFISelDAGToDAG10", "Func": "getConstantFieldValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1618, "Length": 190, "Cover_Rate": 0.5080213903743316} {"Template_token": ["", "else", "if", "(", "const", "ConstantArray", "*", "CA", "=", "dyn_cast", "<", "ConstantArray", ">", "(", "Init", ")", ")", "total_size", "=", "DL", ".", "getTypeAllocSize", "(", "CA", "->", "getType", "(", ")", "->", "getElementType", "(", ")", ")", "*", "CA", "->", "getNumOperands", "(", ")", ";", "else", "return", "false", ";", "val_vec_type", "Vals", "(", "total_size", ",", "", ")", ";", "if", "(", "fillGenericConstant", "(", "DL", ",", "Init", ",", "Vals", ",", "", ")", "==", "false", ")", "return", "false", ";", "cs_vals_", "[", "static_cast", "<", "const", "void", "*", ">", "(", "Init", ")", "]", "=", "Vals", ";", "TmpVal", "=", "std", "::", "move", "(", "Vals", ")", ";", "}", "union", "{", "uint8_t", "c", "[", "", "]", ";", "uint16_t", "s", ";", "}", "test_buf", ";", "uint16_t", "test_val", "=", "", ";", "if", "(", "DL", ".", "isLittleEndian", "(", ")", ")", "", "::", "write16le", "(", "test_buf", ".", "c", ",", "test_val", ")", ";"], "ground_truth": ["else", "", "::", "write16be", "(", "test_buf", ".", "c", ",", "test_val", ")", ";"], "File": "BPFISelDAGToDAG10", "Func": "getConstantFieldValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1619, "Length": 144, "Cover_Rate": 0.3850267379679144} {"Template_token": ["", "I", "!=", "E", ";", ")", "{", "SDNode", "*", "Node", "=", "&", "*", "I", "++", ";", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "PreprocessLoad", "(", "Node", ",", "I", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "PreprocessTrunc", "(", "Node", ",", "I", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG10", "Func": "PreprocessISelDAG", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1620, "Length": 53, "Cover_Rate": 0.6235294117647059} {"Template_token": ["", "const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1N", "->", "getOperand", "(", "", ")", ".", "getNode", "(", ")", ")", ";", "const", "ConstantSDNode", "*", "CDN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "OP2", ".", "getNode", "(", ")", ")", ";", "if", "(", "GADN", "&&", "CDN", ")", "to_replace", "=", "getConstantFieldValue", "(", "GADN", ",", "CDN", "->", "getZExtValue", "(", ")", ",", "size", ",", "new_val", ".", "c", ")", ";", "}", "else", "if", "(", "LDAddrNode", "->", "getOpcode", "(", ")", ">", "", "&&", "LDAddrNode", "->", "getNumOperands", "(", ")", ">", "", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "LD", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "SDValue", "OP1", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "if", "(", "const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1", ".", "getNode", "(", ")", ")", ")", "to_replace", "=", "getConstantFieldValue", "(", "GADN", ",", "", ",", "size", ",", "new_val", ".", "c", ")", ";", "}", "if", "(", "!", "to_replace", ")", "return", ";", "uint64_t", "val", ";", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "c", "[", "", "]", ";", "else", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "s", ";", "else", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "i", ";", "else", "{", "val", "=", "new_val", ".", "d", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "size", "<<", "", "<<", "val", "<<", "'\\n'", ")", ";", "SDValue", "NVal", "=", "CurDAG", "->", "getConstant", "(", "val", ",", "DL", ",", "LD", "->", "getValueType", "(", "", ")", ")", ";", "I", "--", ";", "SDValue", "From", "[", "]", "=", "{", "SDValue", "(", "Node", ",", "", ")", ",", "SDValue", "(", "Node", ",", "", ")", "}", ";", "SDValue", "To", "[", "]", "=", "{", "NVal", ",", "NVal", "}", ";", "CurDAG", "->", "ReplaceAllUsesOfValuesWith", "(", "From", ",", "To", ",", "", ")", ";"], "ground_truth": ["I", "++", ";"], "File": "BPFISelDAGToDAG10", "Func": "PreprocessLoad", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1621, "Length": 296, "Cover_Rate": 0.5769980506822612} {"Template_token": ["", "void", "DAGToDAGISel", "::", "PreprocessTrunc", "(", "SDNode", "*", "Node", ",", "SelectionDAG", "::", "allnodes_iterator", "&", "I", ")", "{", "ConstantSDNode", "*", "MaskN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "MaskN", ")", "return", ";", "SDValue", "BaseV", "=", "Node", "->", "getOperand", "(", "", ")", ";", "if", "(", "BaseV", ".", "getOpcode", "(", ")", "!=", "", ")", "return", ";", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "BaseV", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "uint64_t", "MaskV", "=", "MaskN", "->", "getZExtValue", "(", ")", ";", "if", "(", "!", "(", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", "||", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", "||", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", ")", ")", "return", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "I", "--", ";", "CurDAG", "->", "ReplaceAllUsesWith", "(", "SDValue", "(", "Node", ",", "", ")", ",", "BaseV", ")", ";", "I", "++", ";"], "ground_truth": ["CurDAG", "->", "DeleteNode", "(", "Node", ")", ";"], "File": "BPFISelDAGToDAG10", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1622, "Length": 176, "Cover_Rate": 0.9513513513513514} {"Template_token": ["", "void", "DAGToDAGISel", "::", "PreprocessTrunc", "(", "SDNode", "*", "Node", ",", "SelectionDAG", "::", "allnodes_iterator", "&", "I", ")", "{", "ConstantSDNode", "*", "MaskN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "MaskN", ")", "return", ";", "SDValue", "BaseV", "=", "Node", "->", "getOperand", "(", "", ")", ";", "if", "(", "BaseV", ".", "getOpcode", "(", ")", "!=", "", ")", "return", ";", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "BaseV", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "uint64_t", "MaskV", "=", "MaskN", "->", "getZExtValue", "(", ")", ";", "if", "(", "!", "(", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", "||", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", "||", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", ")", ")", "return", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";"], "ground_truth": ["I", "--", ";"], "File": "BPFISelDAGToDAG10", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1623, "Length": 152, "Cover_Rate": 0.8216216216216217} {"Template_token": ["", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "Subtarget", ">", "(", ")", ";", "return", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG10", "Func": "runOnMachineFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1624, "Length": 21, "Cover_Rate": 0.7} {"Template_token": ["", "DebugLoc", "Empty", ";", "const", "DebugLoc", "&", "DL", "=", "Node", "->", "getDebugLoc", "(", ")", ";", "if", "(", "DL", "!=", "Empty", ")", "errs", "(", ")", "<<", "", "<<", "DL", ".", "getLine", "(", ")", "<<", "", ";", "else", "errs", "(", ")", "<<", "", ";", "errs", "(", ")", "<<", "", ";", "Node", "->", "print", "(", "errs", "(", ")", ",", "CurDAG", ")", ";", "errs", "(", ")", "<<", "", ";", "break", ";", "}", "case", "", ":", "{", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "switch", "(", "IntNo", ")", "{", "case", "", ":", "case", "", ":", "case", "", ":", "{", "SDLoc", "DL", "(", "Node", ")", ";", "SDValue", "Chain", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N1", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "Skb", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N3", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "R6Reg", "=", "CurDAG", "->", "getRegister", "(", "", ",", "", ")", ";", "Chain", "=", "CurDAG", "->", "getCopyToReg", "(", "Chain", ",", "DL", ",", "R6Reg", ",", "Skb", ",", "SDValue", "(", ")", ")", ";", "Node", "=", "CurDAG", "->", "UpdateNodeOperands", "(", "Node", ",", "Chain", ",", "N1", ",", "R6Reg", ",", "N3", ")", ";", "break", ";", "}", "}", "break", ";", "}", "case", "", ":", "{", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";"], "ground_truth": ["EVT", "VT", "=", "Node", "->", "getValueType", "(", "", ")", ";"], "File": "BPFISelDAGToDAG10", "Func": "Select", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1625, "Length": 236, "Cover_Rate": 0.6005089058524173} {"Template_token": ["", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "return", ";", "}", "switch", "(", "Opcode", ")", "{", "default", ":", "break", ";", "case", "", ":", "{", "DebugLoc", "Empty", ";", "const", "DebugLoc", "&", "DL", "=", "Node", "->", "getDebugLoc", "(", ")", ";", "if", "(", "DL", "!=", "Empty", ")", "errs", "(", ")", "<<", "", "<<", "DL", ".", "getLine", "(", ")", "<<", "", ";", "else", "errs", "(", ")", "<<", "", ";", "errs", "(", ")", "<<", "", ";", "Node", "->", "print", "(", "errs", "(", ")", ",", "CurDAG", ")", ";", "errs", "(", ")", "<<", "", ";", "break", ";", "}", "case", "", ":", "{", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "switch", "(", "IntNo", ")", "{", "case", "", ":", "case", "", ":", "case", "", ":", "{", "SDLoc", "DL", "(", "Node", ")", ";", "SDValue", "Chain", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N1", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "Skb", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N3", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "R6Reg", "=", "CurDAG", "->", "getRegister", "(", "", ",", "", ")", ";", "Chain", "=", "CurDAG", "->", "getCopyToReg", "(", "Chain", ",", "DL", ",", "R6Reg", ",", "Skb", ",", "SDValue", "(", ")", ")", ";", "Node", "=", "CurDAG", "->", "UpdateNodeOperands", "(", "Node", ",", "Chain", ",", "N1", ",", "R6Reg", ",", "N3", ")", ";", "break", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG10", "Func": "Select", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1626, "Length": 250, "Cover_Rate": 0.6361323155216285} {"Template_token": ["", "SDLoc", "DL", "(", "Addr", ")", ";", "if", "(", "!", "CurDAG", "->", "isBaseWithConstantOffset", "(", "Addr", ")", ")", "return", "false", ";", "auto", "*", "CN", "=", "cast", "<", "ConstantSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ";"], "ground_truth": ["if", "(", "isInt", "<", "", ">", "(", "CN", "->", "getSExtValue", "(", ")", ")", ")", "{"], "File": "BPFISelDAGToDAG10", "Func": "SelectFIAddr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1627, "Length": 51, "Cover_Rate": 0.37777777777777777} {"Template_token": ["", "bool", "to_replace", "=", "false", ";", "SDLoc", "DL", "(", "Node", ")", ";", "const", "LoadSDNode", "*", "LD", "=", "cast", "<", "LoadSDNode", ">", "(", "Node", ")", ";", "uint64_t", "size", "=", "LD", "->", "getMemOperand", "(", ")", "->", "getSize", "(", ")", ";", "if", "(", "!", "size", "||", "size", ">", "", "||", "(", "size", "&", "(", "size", "-", "", ")", ")", ")", "return", ";", "SDNode", "*", "LDAddrNode", "=", "LD", "->", "getOperand", "(", "", ")", ".", "getNode", "(", ")", ";", "unsigned", "opcode", "=", "LDAddrNode", "->", "getOpcode", "(", ")", ";", "if", "(", "opcode", "==", "", ")", "{", "SDValue", "OP1", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "SDValue", "OP2", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "SDNode", "*", "OP1N", "=", "OP1", ".", "getNode", "(", ")", ";", "if", "(", "OP1N", "->", "getOpcode", "(", ")", "<=", "", "||", "OP1N", "->", "getNumOperands", "(", ")", "==", "", ")", "return", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "LD", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";"], "ground_truth": ["const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1N", "->", "getOperand", "(", "", ")", ".", "getNode", "(", ")", ")", ";"], "File": "BPFISelDAGToDAG12", "Func": "PreprocessLoad", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1629, "Length": 182, "Cover_Rate": 0.36182902584493043} {"Template_token": ["", "uint64_t", "MaskV", "=", "MaskN", "->", "getZExtValue", "(", ")", ";", "if", "(", "!", "(", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", "||", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", "||", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", ")", ")", "return", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "I", "--", ";", "CurDAG", "->", "ReplaceAllUsesWith", "(", "SDValue", "(", "Node", ",", "", ")", ",", "BaseV", ")", ";", "I", "++", ";", "CurDAG", "->", "DeleteNode", "(", "Node", ")", ";", "return", ";", "}", "if", "(", "BaseV", ".", "getOpcode", "(", ")", "!=", "", ")", "return", ";", "unsigned", "match_load_op", "=", "", ";", "switch", "(", "MaskN", "->", "getZExtValue", "(", ")", ")", "{", "default", ":", "return", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "}", "const", "RegisterSDNode", "*", "RegN", "=", "dyn_cast", "<", "RegisterSDNode", ">", "(", "BaseV", ".", "getNode", "(", ")", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "RegN", "||", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "RegN", "->", "getReg", "(", ")", ")", ")", "return", ";", "unsigned", "AndOpReg", "=", "RegN", "->", "getReg", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "printReg", "(", "AndOpReg", ")", "<<", "'\\n'", ")", ";", "MachineBasicBlock", "*", "MBB", "=", "FuncInfo", "->", "MBB", ";", "MachineInstr", "*", "MII", "=", "nullptr", ";", "for", "(", "auto", "&", "MI", ":", "*", "MBB", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MI", ".", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MI", ".", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MOP", ".", "isReg", "(", ")", "||", "!", "MOP", ".", "isDef", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MOP", ".", "getReg", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Reg", ")", "&&", "Reg", "==", "AndOpReg", ")", "{", "MII", "=", "&", "MI", ";", "break", ";", "}", "}", "}", "if", "(", "MII", "==", "nullptr", ")", "{", "if", "(", "!", "checkLoadDef", "(", "AndOpReg", ",", "match_load_op", ")", ")", "return", ";", "}", "else", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "MII", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";"], "ground_truth": ["unsigned", "PrevReg", "=", "-", "", ";"], "File": "BPFISelDAGToDAG12", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1630, "Length": 376, "Cover_Rate": 0.6194398682042833} {"Template_token": ["", "return", ";", "}", "if", "(", "BaseV", ".", "getOpcode", "(", ")", "!=", "", ")", "return", ";", "unsigned", "match_load_op", "=", "", ";", "switch", "(", "MaskN", "->", "getZExtValue", "(", ")", ")", "{", "default", ":", "return", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "}", "const", "RegisterSDNode", "*", "RegN", "=", "dyn_cast", "<", "RegisterSDNode", ">", "(", "BaseV", ".", "getNode", "(", ")", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "RegN", "||", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "RegN", "->", "getReg", "(", ")", ")", ")", "return", ";", "unsigned", "AndOpReg", "=", "RegN", "->", "getReg", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "printReg", "(", "AndOpReg", ")", "<<", "'\\n'", ")", ";", "MachineBasicBlock", "*", "MBB", "=", "FuncInfo", "->", "MBB", ";", "MachineInstr", "*", "MII", "=", "nullptr", ";", "for", "(", "auto", "&", "MI", ":", "*", "MBB", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MI", ".", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MI", ".", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MOP", ".", "isReg", "(", ")", "||", "!", "MOP", ".", "isDef", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MOP", ".", "getReg", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Reg", ")", "&&", "Reg", "==", "AndOpReg", ")", "{", "MII", "=", "&", "MI", ";", "break", ";", "}", "}", "}", "if", "(", "MII", "==", "nullptr", ")", "{", "if", "(", "!", "checkLoadDef", "(", "AndOpReg", ",", "match_load_op", ")", ")", "return", ";", "}", "else", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "MII", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "unsigned", "PrevReg", "=", "-", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MII", "->", "getNumOperands", "(", ")", ";", "++", "i", ")", "{"], "ground_truth": ["const", "MachineOperand", "&", "MOP", "=", "MII", "->", "getOperand", "(", "i", ")", ";"], "File": "BPFISelDAGToDAG12", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1631, "Length": 313, "Cover_Rate": 0.515650741350906} {"Template_token": ["", "case", "", ":", "{", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "switch", "(", "IntNo", ")", "{", "case", "", ":", "case", "", ":", "case", "", ":", "{", "SDLoc", "DL", "(", "Node", ")", ";", "SDValue", "Chain", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N1", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "Skb", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N3", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "R6Reg", "=", "CurDAG", "->", "getRegister", "(", "", ",", "", ")", ";", "Chain", "=", "CurDAG", "->", "getCopyToReg", "(", "Chain", ",", "DL", ",", "R6Reg", ",", "Skb", ",", "SDValue", "(", ")", ")", ";", "Node", "=", "CurDAG", "->", "UpdateNodeOperands", "(", "Node", ",", "Chain", ",", "N1", ",", "R6Reg", ",", "N3", ")", ";", "break", ";", "}", "}", "break", ";", "}", "case", "", ":", "{", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";", "EVT", "VT", "=", "Node", "->", "getValueType", "(", "", ")", ";", "SDValue", "TFI", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FI", ",", "VT", ")", ";", "unsigned", "Opc", "=", "", ";", "if", "(", "Node", "->", "hasOneUse", "(", ")", ")", "{", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "Opc", ",", "VT", ",", "TFI", ")", ";", "return", ";", "}", "ReplaceNode", "(", "Node", ",", "CurDAG", "->", "getMachineNode", "(", "Opc", ",", "SDLoc", "(", "Node", ")", ",", "VT", ",", "TFI", ")", ")", ";", "return", ";", "}"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG12", "Func": "Select", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1632, "Length": 236, "Cover_Rate": 0.6005089058524173} {"Template_token": ["", "Node", "->", "print", "(", "errs", "(", ")", ",", "CurDAG", ")", ";", "errs", "(", ")", "<<", "", ";", "break", ";", "}", "case", "", ":", "{", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "switch", "(", "IntNo", ")", "{", "case", "", ":", "case", "", ":", "case", "", ":", "{", "SDLoc", "DL", "(", "Node", ")", ";", "SDValue", "Chain", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N1", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "Skb", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N3", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "R6Reg", "=", "CurDAG", "->", "getRegister", "(", "", ",", "", ")", ";", "Chain", "=", "CurDAG", "->", "getCopyToReg", "(", "Chain", ",", "DL", ",", "R6Reg", ",", "Skb", ",", "SDValue", "(", ")", ")", ";", "Node", "=", "CurDAG", "->", "UpdateNodeOperands", "(", "Node", ",", "Chain", ",", "N1", ",", "R6Reg", ",", "N3", ")", ";", "break", ";", "}", "}", "break", ";", "}", "case", "", ":", "{", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";"], "ground_truth": ["EVT", "VT", "=", "Node", "->", "getValueType", "(", "", ")", ";"], "File": "BPFISelDAGToDAG12", "Func": "Select", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1633, "Length": 189, "Cover_Rate": 0.48091603053435117} {"Template_token": ["", "SDValue", "Chain", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N1", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "Skb", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N3", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "R6Reg", "=", "CurDAG", "->", "getRegister", "(", "", ",", "", ")", ";", "Chain", "=", "CurDAG", "->", "getCopyToReg", "(", "Chain", ",", "DL", ",", "R6Reg", ",", "Skb", ",", "SDValue", "(", ")", ")", ";", "Node", "=", "CurDAG", "->", "UpdateNodeOperands", "(", "Node", ",", "Chain", ",", "N1", ",", "R6Reg", ",", "N3", ")", ";", "break", ";", "}", "}", "break", ";", "}", "case", "", ":", "{", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";", "EVT", "VT", "=", "Node", "->", "getValueType", "(", "", ")", ";", "SDValue", "TFI", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FI", ",", "VT", ")", ";", "unsigned", "Opc", "=", "", ";", "if", "(", "Node", "->", "hasOneUse", "(", ")", ")", "{", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "Opc", ",", "VT", ",", "TFI", ")", ";", "return", ";", "}", "ReplaceNode", "(", "Node", ",", "CurDAG", "->", "getMachineNode", "(", "Opc", ",", "SDLoc", "(", "Node", ")", ",", "VT", ",", "TFI", ")", ")", ";"], "ground_truth": ["return", ";"], "File": "BPFISelDAGToDAG16", "Func": "Select", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1634, "Length": 189, "Cover_Rate": 0.45542168674698796} {"Template_token": ["", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";", "Offset", "=", "CurDAG", "->", "getTargetConstant", "(", "", ",", "DL", ",", "", ")", ";", "return", "true", ";", "}", "if", "(", "Addr", ".", "getOpcode", "(", ")", "==", "", "||", "Addr", ".", "getOpcode", "(", ")", "==", "", ")", "return", "false", ";", "if", "(", "CurDAG", "->", "isBaseWithConstantOffset", "(", "Addr", ")", ")", "{"], "ground_truth": ["ConstantSDNode", "*", "CN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ";"], "File": "BPFISelDAGToDAG16", "Func": "SelectAddr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1635, "Length": 80, "Cover_Rate": 0.3418803418803419} {"Template_token": ["", "if", "(", "Addr", ".", "getOpcode", "(", ")", "==", "", "||", "Addr", ".", "getOpcode", "(", ")", "==", "", ")", "return", "false", ";", "if", "(", "CurDAG", "->", "isBaseWithConstantOffset", "(", "Addr", ")", ")", "{", "ConstantSDNode", "*", "CN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ";", "if", "(", "isInt", "<", "", ">", "(", "CN", "->", "getSExtValue", "(", ")", ")", ")", "{"], "ground_truth": ["if", "(", "FrameIndexSDNode", "*", "FIN", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ")", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";"], "File": "BPFISelDAGToDAG16", "Func": "SelectAddr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1636, "Length": 97, "Cover_Rate": 0.41452991452991456} {"Template_token": ["", "if", "(", "isInt", "<", "", ">", "(", "CN", "->", "getSExtValue", "(", ")", ")", ")", "{", "if", "(", "FrameIndexSDNode", "*", "FIN", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ")", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";", "else", "return", "false", ";", "Offset", "=", "CurDAG", "->", "getTargetConstant", "(", "CN", "->", "getSExtValue", "(", ")", ",", "DL", ",", "", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "BPFISelDAGToDAG16", "Func": "SelectFIAddr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1637, "Length": 73, "Cover_Rate": 0.5407407407407407} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "LD", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1N", "->", "getOperand", "(", "", ")", ".", "getNode", "(", ")", ")", ";", "const", "ConstantSDNode", "*", "CDN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "OP2", ".", "getNode", "(", ")", ")", ";", "if", "(", "GADN", "&&", "CDN", ")", "to_replace", "=", "getConstantFieldValue", "(", "GADN", ",", "CDN", "->", "getZExtValue", "(", ")", ",", "size", ",", "new_val", ".", "c", ")", ";", "}", "else", "if", "(", "LDAddrNode", "->", "getOpcode", "(", ")", ">", "", "&&", "LDAddrNode", "->", "getNumOperands", "(", ")", ">", "", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "LD", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "SDValue", "OP1", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "if", "(", "const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1", ".", "getNode", "(", ")", ")", ")", "to_replace", "=", "getConstantFieldValue", "(", "GADN", ",", "", ",", "size", ",", "new_val", ".", "c", ")", ";", "}", "if", "(", "!", "to_replace", ")", "return", ";", "uint64_t", "val", ";", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "c", "[", "", "]", ";", "else", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "s", ";", "else", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "i", ";", "else", "{", "val", "=", "new_val", ".", "d", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "size", "<<", "", "<<", "val", "<<", "'\\n'", ")", ";", "SDValue", "NVal", "=", "CurDAG", "->", "getConstant", "(", "val", ",", "DL", ",", "", ")", ";", "I", "--", ";", "SDValue", "From", "[", "]", "=", "{", "SDValue", "(", "Node", ",", "", ")", ",", "SDValue", "(", "Node", ",", "", ")", "}", ";", "SDValue", "To", "[", "]", "=", "{", "NVal", ",", "NVal", "}", ";", "CurDAG", "->", "ReplaceAllUsesOfValuesWith", "(", "From", ",", "To", ",", "", ")", ";", "I", "++", ";", "CurDAG", "->", "DeleteNode", "(", "Node", ")", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG18", "Func": "PreprocessLoad", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1638, "Length": 320, "Cover_Rate": 0.6361829025844931} {"Template_token": ["", "if", "(", "BaseV", ".", "getOpcode", "(", ")", "!=", "", ")", "return", ";", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "BaseV", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "uint64_t", "MaskV", "=", "MaskN", "->", "getZExtValue", "(", ")", ";", "if", "(", "!", "(", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", "||", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", "||", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", ")", ")", "return", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "I", "--", ";"], "ground_truth": ["CurDAG", "->", "ReplaceAllUsesWith", "(", "SDValue", "(", "Node", ",", "", ")", ",", "BaseV", ")", ";"], "File": "BPFISelDAGToDAG18", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1639, "Length": 116, "Cover_Rate": 0.6203208556149733} {"Template_token": ["", "if", "(", "!", "MaskN", ")", "return", ";", "SDValue", "BaseV", "=", "Node", "->", "getOperand", "(", "", ")", ";", "if", "(", "BaseV", ".", "getOpcode", "(", ")", "!=", "", ")", "return", ";", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "BaseV", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";"], "ground_truth": ["uint64_t", "MaskV", "=", "MaskN", "->", "getZExtValue", "(", ")", ";"], "File": "BPFISelDAGToDAG18", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1640, "Length": 58, "Cover_Rate": 0.31016042780748665} {"Template_token": ["", "explicit", "DAGToDAGISel", "(", "TargetMachine", "&", "TM", ")", ":", "SelectionDAGISel", "(", "TM", ")", "{"], "ground_truth": ["curr_func_", "=", "nullptr", ";"], "File": "BPFISelDAGToDAG1", "Func": "BPFDAGToDAGISel", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1641, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "explicit", "DAGToDAGISel", "(", "TargetMachine", "&", "TM", ")", ":", "SelectionDAGISel", "(", "TM", ")", "{"], "ground_truth": ["curr_func_", "=", "nullptr", ";"], "File": "BPFISelDAGToDAG1", "Func": "BPFDAGToDAGISel", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1642, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "auto", "it", "=", "load_to_vreg_", ".", "find", "(", "DefReg", ")", ";"], "ground_truth": ["if", "(", "it", "==", "load_to_vreg_", ".", "end", "(", ")", ")", "return", "false", ";"], "File": "BPFISelDAGToDAG1", "Func": "checkLoadDef", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1643, "Length": 23, "Cover_Rate": 0.5348837209302325} {"Template_token": ["", "auto", "it", "=", "load_to_vreg_", ".", "find", "(", "DefReg", ")", ";", "if", "(", "it", "==", "load_to_vreg_", ".", "end", "(", ")", ")", "return", "false", ";", "return", "it", "->", "second", "==", "match_load_op", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG1", "Func": "checkLoadDef", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1644, "Length": 31, "Cover_Rate": 0.7209302325581395} {"Template_token": ["", "default", ":", "return", ";", "case", "", ":", "mem_load_op", "=", "", ";", "break", ";", "case", "", ":", "mem_load_op", "=", "", ";", "break", ";", "case", "", ":", "mem_load_op", "=", "", ";", "break", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "TargetRegisterInfo", "::", "virtReg2Index", "(", "RegN", "->", "getReg", "(", ")", ")", "<<", "'\\n'", ")", ";"], "ground_truth": ["load_to_vreg_", "[", "RegN", "->", "getReg", "(", ")", "]", "=", "mem_load_op", ";"], "File": "BPFISelDAGToDAG1", "Func": "PreprocessCopyToReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1645, "Length": 65, "Cover_Rate": 0.4012345679012346} {"Template_token": ["", "I", "!=", "E", ";", ")", "{", "SDNode", "*", "Node", "=", "&", "*", "I", "++", ";", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "PreprocessLoad", "(", "Node", ",", "I", ")", ";"], "ground_truth": ["else", "if", "(", "Opcode", "==", "", ")", "PreprocessCopyToReg", "(", "Node", ")", ";"], "File": "BPFISelDAGToDAG1", "Func": "PreprocessISelDAG", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1646, "Length": 49, "Cover_Rate": 0.362962962962963} {"Template_token": ["", "uint64_t", "size", "=", "LD", "->", "getMemOperand", "(", ")", "->", "getSize", "(", ")", ";", "if", "(", "!", "size", "||", "size", ">", "", "||", "(", "size", "&", "(", "size", "-", "", ")", ")", ")", "return", ";", "SDNode", "*", "LDAddrNode", "=", "LD", "->", "getOperand", "(", "", ")", ".", "getNode", "(", ")", ";", "unsigned", "opcode", "=", "LDAddrNode", "->", "getOpcode", "(", ")", ";", "if", "(", "opcode", "==", "", ")", "{", "SDValue", "OP1", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "SDValue", "OP2", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "SDNode", "*", "OP1N", "=", "OP1", ".", "getNode", "(", ")", ";", "if", "(", "OP1N", "->", "getOpcode", "(", ")", "<=", "", "||", "OP1N", "->", "getNumOperands", "(", ")", "==", "", ")", "return", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "LD", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1N", "->", "getOperand", "(", "", ")", ".", "getNode", "(", ")", ")", ";", "const", "ConstantSDNode", "*", "CDN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "OP2", ".", "getNode", "(", ")", ")", ";", "if", "(", "GADN", "&&", "CDN", ")", "to_replace", "=", "getConstantFieldValue", "(", "GADN", ",", "CDN", "->", "getZExtValue", "(", ")", ",", "size", ",", "new_val", ".", "c", ")", ";", "}", "else", "if", "(", "LDAddrNode", "->", "getOpcode", "(", ")", ">", "", "&&", "LDAddrNode", "->", "getNumOperands", "(", ")", ">", "", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "LD", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "SDValue", "OP1", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "if", "(", "const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1", ".", "getNode", "(", ")", ")", ")", "to_replace", "=", "getConstantFieldValue", "(", "GADN", ",", "", ",", "size", ",", "new_val", ".", "c", ")", ";", "}", "if", "(", "!", "to_replace", ")", "return", ";"], "ground_truth": ["uint64_t", "val", ";"], "File": "BPFISelDAGToDAG1", "Func": "PreprocessLoad", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1647, "Length": 297, "Cover_Rate": 0.5916334661354582} {"Template_token": ["", "SDValue", "OP1", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "if", "(", "const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1", ".", "getNode", "(", ")", ")", ")", "to_replace", "=", "getConstantFieldValue", "(", "GADN", ",", "", ",", "size", ",", "new_val", ".", "c", ")", ";", "}", "if", "(", "!", "to_replace", ")", "return", ";", "uint64_t", "val", ";", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "c", "[", "", "]", ";", "else", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "s", ";", "else", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "i", ";", "else", "{", "val", "=", "new_val", ".", "d", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "size", "<<", "", "<<", "val", "<<", "'\\n'", ")", ";", "SDValue", "NVal", "=", "CurDAG", "->", "getConstant", "(", "val", ",", "DL", ",", "", ")", ";", "I", "--", ";"], "ground_truth": ["SDValue", "From", "[", "]", "=", "{", "SDValue", "(", "Node", ",", "", ")", ",", "SDValue", "(", "Node", ",", "", ")", "}", ";"], "File": "BPFISelDAGToDAG1", "Func": "PreprocessLoad", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1648, "Length": 160, "Cover_Rate": 0.3187250996015936} {"Template_token": ["", "CurDAG", "->", "ReplaceAllUsesWith", "(", "SDValue", "(", "Node", ",", "", ")", ",", "BaseV", ")", ";", "I", "++", ";", "CurDAG", "->", "DeleteNode", "(", "Node", ")", ";", "return", ";", "}", "if", "(", "BaseV", ".", "getOpcode", "(", ")", "!=", "", ")", "return", ";", "unsigned", "match_load_op", "=", "", ";", "switch", "(", "MaskN", "->", "getZExtValue", "(", ")", ")", "{", "default", ":", "return", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "}", "const", "RegisterSDNode", "*", "RegN", "=", "dyn_cast", "<", "RegisterSDNode", ">", "(", "BaseV", ".", "getNode", "(", ")", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "RegN", "||", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "RegN", "->", "getReg", "(", ")", ")", ")", "return", ";", "unsigned", "AndOpReg", "=", "RegN", "->", "getReg", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "printReg", "(", "AndOpReg", ")", "<<", "'\\n'", ")", ";", "MachineBasicBlock", "*", "MBB", "=", "FuncInfo", "->", "MBB", ";", "MachineInstr", "*", "MII", "=", "nullptr", ";", "for", "(", "auto", "&", "MI", ":", "*", "MBB", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MI", ".", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MI", ".", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MOP", ".", "isReg", "(", ")", "||", "!", "MOP", ".", "isDef", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MOP", ".", "getReg", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Reg", ")", "&&", "Reg", "==", "AndOpReg", ")", "{", "MII", "=", "&", "MI", ";", "break", ";", "}", "}", "}", "if", "(", "MII", "==", "nullptr", ")", "{", "if", "(", "!", "checkLoadDef", "(", "AndOpReg", ",", "match_load_op", ")", ")", "return", ";", "}", "else", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "MII", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "unsigned", "PrevReg", "=", "-", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MII", "->", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MII", "->", "getOperand", "(", "i", ")", ";", "if", "(", "MOP", ".", "isReg", "(", ")", ")", "{", "if", "(", "MOP", ".", "isDef", "(", ")", ")", "continue", ";", "PrevReg", "=", "MOP", ".", "getReg", "(", ")", ";", "if", "(", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "PrevReg", ")", ")", "return", ";", "if", "(", "!", "checkLoadDef", "(", "PrevReg", ",", "match_load_op", ")", ")", "return", ";", "}", "}"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG1", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1649, "Length": 391, "Cover_Rate": 0.6452145214521452} {"Template_token": ["", "SDLoc", "DL", "(", "Op", ")", ";", "SDValue", "AluOp", "=", "CurDAG", "->", "getTargetConstant", "(", "", ",", "DL", ",", "", ")", ";", ";", "OutOps", ".", "push_back", "(", "Op0", ")", ";", "OutOps", ".", "push_back", "(", "Op1", ")", ";", "OutOps", ".", "push_back", "(", "AluOp", ")", ";"], "ground_truth": ["return", "false", ";"], "File": "BPFISelDAGToDAG1", "Func": "SelectInlineAsmMemoryOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1650, "Length": 45, "Cover_Rate": 0.40540540540540543} {"Template_token": ["", "case", "InlineAsm", "::", "Constraint_m", ":", "if", "(", "!", "SelectAddr", "(", "Op", ",", "Op0", ",", "Op1", ")", ")", "return", "true", ";", "break", ";", "}", "SDLoc", "DL", "(", "Op", ")", ";", "SDValue", "AluOp", "=", "CurDAG", "->", "getTargetConstant", "(", "", ",", "DL", ",", "", ")", ";", ";", "OutOps", ".", "push_back", "(", "Op0", ")", ";"], "ground_truth": ["OutOps", ".", "push_back", "(", "Op1", ")", ";"], "File": "BPFISelDAGToDAG1", "Func": "SelectInlineAsmMemoryOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1651, "Length": 58, "Cover_Rate": 0.5225225225225225} {"Template_token": ["", "void", "DAGToDAGISel", "::", "PreprocessLoad", "(", "SDNode", "*", "Node", ",", "SelectionDAG", "::", "allnodes_iterator", "&", "I", ")", "{", "union", "{", "uint8_t", "c", "[", "", "]", ";", "uint16_t", "s", ";", "uint32_t", "i", ";", "uint64_t", "d", ";", "}", "new_val", ";", "bool", "to_replace", "=", "false", ";", "SDLoc", "DL", "(", "Node", ")", ";", "const", "LoadSDNode", "*", "LD", "=", "cast", "<", "LoadSDNode", ">", "(", "Node", ")", ";", "uint64_t", "size", "=", "LD", "->", "getMemOperand", "(", ")", "->", "getSize", "(", ")", ";", "if", "(", "!", "size", "||", "size", ">", "", "||", "(", "size", "&", "(", "size", "-", "", ")", ")", ")", "return", ";", "SDNode", "*", "LDAddrNode", "=", "LD", "->", "getOperand", "(", "", ")", ".", "getNode", "(", ")", ";", "unsigned", "opcode", "=", "LDAddrNode", "->", "getOpcode", "(", ")", ";", "if", "(", "opcode", "==", "", ")", "{", "SDValue", "OP1", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "SDValue", "OP2", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "SDNode", "*", "OP1N", "=", "OP1", ".", "getNode", "(", ")", ";", "if", "(", "OP1N", "->", "getOpcode", "(", ")", "<=", "", "||", "OP1N", "->", "getNumOperands", "(", ")", "==", "", ")", "return", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "LD", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1N", "->", "getOperand", "(", "", ")", ".", "getNode", "(", ")", ")", ";", "const", "ConstantSDNode", "*", "CDN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "OP2", ".", "getNode", "(", ")", ")", ";", "if", "(", "GADN", "&&", "CDN", ")", "to_replace", "=", "getConstantFieldValue", "(", "GADN", ",", "CDN", "->", "getZExtValue", "(", ")", ",", "size", ",", "new_val", ".", "c", ")", ";", "}", "else", "if", "(", "LDAddrNode", "->", "getOpcode", "(", ")", ">", "", "&&", "LDAddrNode", "->", "getNumOperands", "(", ")", ">", "", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "LD", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "SDValue", "OP1", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "if", "(", "const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1", ".", "getNode", "(", ")", ")", ")", "to_replace", "=", "getConstantFieldValue", "(", "GADN", ",", "", ",", "size", ",", "new_val", ".", "c", ")", ";", "}", "if", "(", "!", "to_replace", ")", "return", ";", "uint64_t", "val", ";", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "c", "[", "", "]", ";", "else", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "s", ";", "else", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "i", ";", "else", "{", "val", "=", "new_val", ".", "d", ";", "}"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "size", "<<", "", "<<", "val", "<<", "'\\n'", ")", ";"], "File": "BPFISelDAGToDAG20", "Func": "PreprocessLoad", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1652, "Length": 424, "Cover_Rate": 0.8379446640316206} {"Template_token": ["", "const", "ConstantSDNode", "*", "CDN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "OP2", ".", "getNode", "(", ")", ")", ";", "if", "(", "GADN", "&&", "CDN", ")", "to_replace", "=", "getConstantFieldValue", "(", "GADN", ",", "CDN", "->", "getZExtValue", "(", ")", ",", "size", ",", "new_val", ".", "c", ")", ";", "}", "else", "if", "(", "LDAddrNode", "->", "getOpcode", "(", ")", ">", "", "&&", "LDAddrNode", "->", "getNumOperands", "(", ")", ">", "", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "LD", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "SDValue", "OP1", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "if", "(", "const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1", ".", "getNode", "(", ")", ")", ")", "to_replace", "=", "getConstantFieldValue", "(", "GADN", ",", "", ",", "size", ",", "new_val", ".", "c", ")", ";", "}", "if", "(", "!", "to_replace", ")", "return", ";", "uint64_t", "val", ";", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "c", "[", "", "]", ";", "else", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "s", ";", "else", "if", "(", "size", "==", "", ")", "val", "=", "new_val", ".", "i", ";", "else", "{", "val", "=", "new_val", ".", "d", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "size", "<<", "", "<<", "val", "<<", "'\\n'", ")", ";", "SDValue", "NVal", "=", "CurDAG", "->", "getConstant", "(", "val", ",", "DL", ",", "LD", "->", "getValueType", "(", "", ")", ")", ";", "I", "--", ";", "SDValue", "From", "[", "]", "=", "{", "SDValue", "(", "Node", ",", "", ")", ",", "SDValue", "(", "Node", ",", "", ")", "}", ";", "SDValue", "To", "[", "]", "=", "{", "NVal", ",", "NVal", "}", ";", "CurDAG", "->", "ReplaceAllUsesOfValuesWith", "(", "From", ",", "To", ",", "", ")", ";", "I", "++", ";"], "ground_truth": ["CurDAG", "->", "DeleteNode", "(", "Node", ")", ";"], "File": "BPFISelDAGToDAG20", "Func": "PreprocessLoad", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1653, "Length": 281, "Cover_Rate": 0.5553359683794467} {"Template_token": ["", "I", "!=", "E", ";", ")", "{", "SDNode", "*", "Node", "=", "&", "*", "I", "++", ";", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "PreprocessLoad", "(", "Node", ",", "I", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "PreprocessCopyToReg", "(", "Node", ")", ";"], "ground_truth": ["else", "if", "(", "Opcode", "==", "", ")", "PreprocessTrunc", "(", "Node", ",", "I", ")", ";"], "File": "BPFISelDAGToDAG22", "Func": "PreprocessISelDAG", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1654, "Length": 63, "Cover_Rate": 0.6363636363636364} {"Template_token": ["", "unsigned", "Opcode", "=", "Node", "->", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "PreprocessLoad", "(", "Node", ",", "I", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "PreprocessCopyToReg", "(", "Node", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "PreprocessTrunc", "(", "Node", ",", "I", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG22", "Func": "PreprocessISelDAG", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1655, "Length": 50, "Cover_Rate": 0.5050505050505051} {"Template_token": ["", "void", "DAGToDAGISel", "::", "PreprocessTrunc", "(", "SDNode", "*", "Node", ",", "SelectionDAG", "::", "allnodes_iterator", "&", "I", ")", "{", "ConstantSDNode", "*", "MaskN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "MaskN", ")", "return", ";", "SDValue", "BaseV", "=", "Node", "->", "getOperand", "(", "", ")", ";", "if", "(", "BaseV", ".", "getOpcode", "(", ")", "==", "", ")", "{", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "BaseV", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "uint64_t", "MaskV", "=", "MaskN", "->", "getZExtValue", "(", ")", ";", "if", "(", "!", "(", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", "||", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", "||", "(", "IntNo", "==", "", "&&", "MaskV", "==", "", ")", ")", ")", "return", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "I", "--", ";", "CurDAG", "->", "ReplaceAllUsesWith", "(", "SDValue", "(", "Node", ",", "", ")", ",", "BaseV", ")", ";", "I", "++", ";", "CurDAG", "->", "DeleteNode", "(", "Node", ")", ";", "return", ";", "}", "if", "(", "BaseV", ".", "getOpcode", "(", ")", "!=", "", ")", "return", ";", "unsigned", "match_load_op", "=", "", ";", "switch", "(", "MaskN", "->", "getZExtValue", "(", ")", ")", "{", "default", ":", "return", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "}", "const", "RegisterSDNode", "*", "RegN", "=", "dyn_cast", "<", "RegisterSDNode", ">", "(", "BaseV", ".", "getNode", "(", ")", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "RegN", "||", "!", "Register", "::", "isVirtualRegister", "(", "RegN", "->", "getReg", "(", ")", ")", ")", "return", ";", "unsigned", "AndOpReg", "=", "RegN", "->", "getReg", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "printReg", "(", "AndOpReg", ")", "<<", "'\\n'", ")", ";", "MachineBasicBlock", "*", "MBB", "=", "FuncInfo", "->", "MBB", ";", "MachineInstr", "*", "MII", "=", "nullptr", ";", "for", "(", "auto", "&", "MI", ":", "*", "MBB", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MI", ".", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MI", ".", "getOperand", "(", "i", ")", ";"], "ground_truth": ["if", "(", "!", "MOP", ".", "isReg", "(", ")", "||", "!", "MOP", ".", "isDef", "(", ")", ")", "continue", ";"], "File": "BPFISelDAGToDAG23", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1656, "Length": 375, "Cover_Rate": 0.6177924217462932} {"Template_token": ["", "unsigned", "match_load_op", "=", "", ";", "switch", "(", "MaskN", "->", "getZExtValue", "(", ")", ")", "{", "default", ":", "return", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "}", "const", "RegisterSDNode", "*", "RegN", "=", "dyn_cast", "<", "RegisterSDNode", ">", "(", "BaseV", ".", "getNode", "(", ")", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "RegN", "||", "!", "Register", "::", "isVirtualRegister", "(", "RegN", "->", "getReg", "(", ")", ")", ")", "return", ";", "unsigned", "AndOpReg", "=", "RegN", "->", "getReg", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "printReg", "(", "AndOpReg", ")", "<<", "'\\n'", ")", ";", "MachineBasicBlock", "*", "MBB", "=", "FuncInfo", "->", "MBB", ";", "MachineInstr", "*", "MII", "=", "nullptr", ";", "for", "(", "auto", "&", "MI", ":", "*", "MBB", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MI", ".", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MI", ".", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MOP", ".", "isReg", "(", ")", "||", "!", "MOP", ".", "isDef", "(", ")", ")", "continue", ";", "Register", "Reg", "=", "MOP", ".", "getReg", "(", ")", ";", "if", "(", "Register", "::", "isVirtualRegister", "(", "Reg", ")", "&&", "Reg", "==", "AndOpReg", ")", "{", "MII", "=", "&", "MI", ";", "break", ";", "}", "}", "}", "if", "(", "MII", "==", "nullptr", ")", "{", "if", "(", "!", "checkLoadDef", "(", "AndOpReg", ",", "match_load_op", ")", ")", "return", ";", "}", "else", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "MII", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "unsigned", "PrevReg", "=", "-", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MII", "->", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MII", "->", "getOperand", "(", "i", ")", ";", "if", "(", "MOP", ".", "isReg", "(", ")", ")", "{", "if", "(", "MOP", ".", "isDef", "(", ")", ")", "continue", ";", "PrevReg", "=", "MOP", ".", "getReg", "(", ")", ";", "if", "(", "!", "Register", "::", "isVirtualRegister", "(", "PrevReg", ")", ")", "return", ";"], "ground_truth": ["if", "(", "!", "checkLoadDef", "(", "PrevReg", ",", "match_load_op", ")", ")", "return", ";"], "File": "BPFISelDAGToDAG23", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1657, "Length": 349, "Cover_Rate": 0.5749588138385503} {"Template_token": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{"], "ground_truth": ["return", "", ";"], "File": "BPFISelDAGToDAG24", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1658, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG24", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1659, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "", ";", "break", ";", "}", "case", "", ":", "{", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "switch", "(", "IntNo", ")", "{", "case", "", ":", "case", "", ":", "case", "", ":", "{", "SDLoc", "DL", "(", "Node", ")", ";", "SDValue", "Chain", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N1", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "Skb", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N3", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "R6Reg", "=", "CurDAG", "->", "getRegister", "(", "", ",", "", ")", ";", "Chain", "=", "CurDAG", "->", "getCopyToReg", "(", "Chain", ",", "DL", ",", "R6Reg", ",", "Skb", ",", "SDValue", "(", ")", ")", ";", "Node", "=", "CurDAG", "->", "UpdateNodeOperands", "(", "Node", ",", "Chain", ",", "N1", ",", "R6Reg", ",", "N3", ")", ";", "break", ";", "}", "}", "break", ";", "}", "case", "", ":", "{", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";"], "ground_truth": ["EVT", "VT", "=", "Node", "->", "getValueType", "(", "", ")", ";"], "File": "BPFISelDAGToDAG25", "Func": "Select", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1660, "Length": 185, "Cover_Rate": 0.45012165450121655} {"Template_token": ["", "if", "(", "FrameIndexSDNode", "*", "FIN", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ")", ")", "{", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";", "Offset", "=", "CurDAG", "->", "getTargetConstant", "(", "", ",", "DL", ",", "", ")", ";", "return", "true", ";", "}", "if", "(", "Addr", ".", "getOpcode", "(", ")", "==", "", "||", "Addr", ".", "getOpcode", "(", ")", "==", "", ")", "return", "false", ";", "if", "(", "CurDAG", "->", "isBaseWithConstantOffset", "(", "Addr", ")", ")", "{", "ConstantSDNode", "*", "CN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ";", "if", "(", "isInt", "<", "", ">", "(", "CN", "->", "getSExtValue", "(", ")", ")", ")", "{", "if", "(", "FrameIndexSDNode", "*", "FIN", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ")", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";", "else", "Base", "=", "Addr", ".", "getOperand", "(", "", ")", ";", "Offset", "=", "CurDAG", "->", "getTargetConstant", "(", "CN", "->", "getSExtValue", "(", ")", ",", "DL", ",", "", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "BPFISelDAGToDAG28", "Func": "SelectAddr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1661, "Length": 174, "Cover_Rate": 0.7435897435897436} {"Template_token": ["", "}", "}", "break", ";", "}", "case", "", ":", "{", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";", "EVT", "VT", "=", "Node", "->", "getValueType", "(", "", ")", ";", "SDValue", "TFI", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FI", ",", "VT", ")", ";", "unsigned", "Opc", "=", "", ";", "if", "(", "Node", "->", "hasOneUse", "(", ")", ")", "return", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "Opc", ",", "VT", ",", "TFI", ")", ";", "return", "CurDAG", "->", "getMachineNode", "(", "Opc", ",", "SDLoc", "(", "Node", ")", ",", "VT", ",", "TFI", ")", ";", "}", "}", "SDNode", "*", "ResNode", "=", "SelectCode", "(", "Node", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "if", "(", "ResNode", "==", "nullptr", "||", "ResNode", "==", "Node", ")", "Node", "->", "dump", "(", "CurDAG", ")", ";", "else", "ResNode", "->", "dump", "(", "CurDAG", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "return", "ResNode", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG29", "Func": "Select", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1662, "Length": 145, "Cover_Rate": 0.3493975903614458} {"Template_token": ["", "switch", "(", "IntNo", ")", "{", "case", "", ":", "case", "", ":", "case", "", ":", "{", "SDLoc", "DL", "(", "Node", ")", ";", "SDValue", "Chain", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N1", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "Skb", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N3", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "R6Reg", "=", "CurDAG", "->", "getRegister", "(", "", ",", "", ")", ";", "Chain", "=", "CurDAG", "->", "getCopyToReg", "(", "Chain", ",", "DL", ",", "R6Reg", ",", "Skb", ",", "SDValue", "(", ")", ")", ";", "Node", "=", "CurDAG", "->", "UpdateNodeOperands", "(", "Node", ",", "Chain", ",", "N1", ",", "R6Reg", ",", "N3", ")", ";", "break", ";", "}", "}", "break", ";", "}", "case", "", ":", "{"], "ground_truth": ["int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";"], "File": "BPFISelDAGToDAG29", "Func": "Select", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1663, "Length": 135, "Cover_Rate": 0.3253012048192771} {"Template_token": ["", "SelectionDAGISel", "(", "tm", ")", ",", "TM", "(", "tm", ")", ",", "Subtarget", "(", "tm", ".", "getSubtarget", "<", "Subtarget", ">", "(", ")", ")", "{"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG30", "Func": "BPFDAGToDAGISel", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1664, "Length": 23, "Cover_Rate": 0.7419354838709677} {"Template_token": ["", "inline", "SDValue", "getI32Imm", "(", "unsigned", "Imm", ")", "{"], "ground_truth": ["return", "CurDAG", "->", "getTargetConstant", "(", "Imm", ",", "", ")", ";"], "File": "BPFISelDAGToDAG30", "Func": "getI32Imm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1665, "Length": 18, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "return", "CurDAG", "->", "getTargetConstant", "(", "Imm", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG30", "Func": "getI32Imm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1666, "Length": 11, "Cover_Rate": 0.5238095238095238} {"Template_token": ["", "virtual", "const", "char", "*", "getPassName", "(", ")", "const", "{"], "ground_truth": ["return", "", ";"], "File": "BPFISelDAGToDAG30", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1669, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "DEBUG", "(", "errs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "", ")", ";", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "DEBUG", "(", "errs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "", ")", ";", "return", "NULL", ";", "}", "switch", "(", "Opcode", ")", "{", "default", ":", "break", ";", "case", "", ":", "{", "int", "FI", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";", "EVT", "VT", "=", "Node", "->", "getValueType", "(", "", ")", ";", "SDValue", "TFI", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FI", ",", "VT", ")", ";"], "ground_truth": ["unsigned", "Opc", "=", "", ";"], "File": "BPFISelDAGToDAG30", "Func": "Select", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1672, "Length": 112, "Cover_Rate": 0.4357976653696498} {"Template_token": ["", "if", "(", "FrameIndexSDNode", "*", "FIN", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ")", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";", "else", "Base", "=", "Addr", ".", "getOperand", "(", "", ")", ";", "Offset", "=", "CurDAG", "->", "getTargetConstant", "(", "CN", "->", "getSExtValue", "(", ")", ",", "", ")", ";", "return", "true", ";", "}", "}", "if", "(", "Addr", ".", "getOpcode", "(", ")", "==", "", ")", "{", "if", "(", "ConstantSDNode", "*", "CN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ")", "{", "if", "(", "isInt", "<", "", ">", "(", "CN", "->", "getSExtValue", "(", ")", ")", ")", "{", "if", "(", "FrameIndexSDNode", "*", "FIN", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ")", "{"], "ground_truth": ["Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";"], "File": "BPFISelDAGToDAG30", "Func": "SelectAddr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1673, "Length": 145, "Cover_Rate": 0.4227405247813411} {"Template_token": ["", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "}", "SDValue", "BaseV", "=", "Node", "->", "getOperand", "(", "", ")", ";", "if", "(", "BaseV", ".", "getOpcode", "(", ")", "!=", "", ")", "return", ";", "const", "RegisterSDNode", "*", "RegN", "=", "dyn_cast", "<", "RegisterSDNode", ">", "(", "BaseV", ".", "getNode", "(", ")", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "RegN", "||", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "RegN", "->", "getReg", "(", ")", ")", ")", "return", ";", "unsigned", "AndOpReg", "=", "RegN", "->", "getReg", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "printReg", "(", "AndOpReg", ")", "<<", "'\\n'", ")", ";", "MachineBasicBlock", "*", "MBB", "=", "FuncInfo", "->", "MBB", ";", "MachineInstr", "*", "MII", "=", "nullptr", ";", "for", "(", "auto", "&", "MI", ":", "*", "MBB", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MI", ".", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MI", ".", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MOP", ".", "isReg", "(", ")", "||", "!", "MOP", ".", "isDef", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MOP", ".", "getReg", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Reg", ")", "&&", "Reg", "==", "AndOpReg", ")", "{", "MII", "=", "&", "MI", ";", "break", ";", "}", "}", "}", "if", "(", "MII", "==", "nullptr", ")", "{", "if", "(", "!", "checkLoadDef", "(", "AndOpReg", ",", "match_load_op", ")", ")", "return", ";", "}", "else", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "MII", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "unsigned", "PrevReg", "=", "-", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MII", "->", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MII", "->", "getOperand", "(", "i", ")", ";", "if", "(", "MOP", ".", "isReg", "(", ")", ")", "{"], "ground_truth": ["if", "(", "MOP", ".", "isDef", "(", ")", ")", "continue", ";"], "File": "BPFISelDAGToDAG31", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1674, "Length": 303, "Cover_Rate": 0.6446808510638298} {"Template_token": ["", "}", "else", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "MII", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "unsigned", "PrevReg", "=", "-", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MII", "->", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MII", "->", "getOperand", "(", "i", ")", ";", "if", "(", "MOP", ".", "isReg", "(", ")", ")", "{", "if", "(", "MOP", ".", "isDef", "(", ")", ")", "continue", ";", "PrevReg", "=", "MOP", ".", "getReg", "(", ")", ";", "if", "(", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "PrevReg", ")", ")", "return", ";", "if", "(", "!", "checkLoadDef", "(", "PrevReg", ",", "match_load_op", ")", ")", "return", ";", "}", "}", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "I", "--", ";", "CurDAG", "->", "ReplaceAllUsesWith", "(", "SDValue", "(", "Node", ",", "", ")", ",", "BaseV", ")", ";", "I", "++", ";", "CurDAG", "->", "DeleteNode", "(", "Node", ")", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG31", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1675, "Length": 164, "Cover_Rate": 0.34893617021276596} {"Template_token": ["", "unsigned", "mem_load_op", "=", "", ";", "switch", "(", "LD", "->", "getMemOperand", "(", ")", "->", "getSize", "(", ")", ")", "{", "default", ":", "return", ";", "case", "", ":", "mem_load_op", "=", "", ";", "break", ";", "case", "", ":", "mem_load_op", "=", "", ";", "break", ";", "case", "", ":", "mem_load_op", "=", "", ";", "break", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "TargetRegisterInfo", "::", "virtReg2Index", "(", "RegN", "->", "getReg", "(", ")", ")", "<<", "'\\n'", ")", ";", "load_to_vreg_", "[", "RegN", "->", "getReg", "(", ")", "]", "=", "mem_load_op", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG35", "Func": "PreprocessCopyToReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1676, "Length": 84, "Cover_Rate": 0.5185185185185185} {"Template_token": ["", "CurDAG", "->", "DeleteNode", "(", "Node", ")", ";", "return", ";", "}", "if", "(", "BaseV", ".", "getOpcode", "(", ")", "!=", "", ")", "return", ";", "unsigned", "match_load_op", "=", "", ";", "switch", "(", "MaskN", "->", "getZExtValue", "(", ")", ")", "{", "default", ":", "return", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "case", "", ":", "match_load_op", "=", "", ";", "break", ";", "}", "const", "RegisterSDNode", "*", "RegN", "=", "dyn_cast", "<", "RegisterSDNode", ">", "(", "BaseV", ".", "getNode", "(", ")", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "RegN", "||", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "RegN", "->", "getReg", "(", ")", ")", ")", "return", ";", "unsigned", "AndOpReg", "=", "RegN", "->", "getReg", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "printReg", "(", "AndOpReg", ")", "<<", "'\\n'", ")", ";", "MachineBasicBlock", "*", "MBB", "=", "FuncInfo", "->", "MBB", ";", "MachineInstr", "*", "MII", "=", "nullptr", ";", "for", "(", "auto", "&", "MI", ":", "*", "MBB", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MI", ".", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MI", ".", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MOP", ".", "isReg", "(", ")", "||", "!", "MOP", ".", "isDef", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MOP", ".", "getReg", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Reg", ")", "&&", "Reg", "==", "AndOpReg", ")", "{", "MII", "=", "&", "MI", ";", "break", ";", "}", "}", "}", "if", "(", "MII", "==", "nullptr", ")", "{", "if", "(", "!", "checkLoadDef", "(", "AndOpReg", ",", "match_load_op", ")", ")", "return", ";", "}", "else", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "MII", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "unsigned", "PrevReg", "=", "-", "", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "MII", "->", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "const", "MachineOperand", "&", "MOP", "=", "MII", "->", "getOperand", "(", "i", ")", ";", "if", "(", "MOP", ".", "isReg", "(", ")", ")", "{", "if", "(", "MOP", ".", "isDef", "(", ")", ")", "continue", ";", "PrevReg", "=", "MOP", ".", "getReg", "(", ")", ";", "if", "(", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "PrevReg", ")", ")", "return", ";", "if", "(", "!", "checkLoadDef", "(", "PrevReg", ",", "match_load_op", ")", ")", "return", ";", "}", "}", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "I", "--", ";", "CurDAG", "->", "ReplaceAllUsesWith", "(", "SDValue", "(", "Node", ",", "", ")", ",", "BaseV", ")", ";", "I", "++", ";", "CurDAG", "->", "DeleteNode", "(", "Node", ")", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG35", "Func": "PreprocessTrunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1677, "Length": 423, "Cover_Rate": 0.6968698517298187} {"Template_token": ["", "case", "", ":", "{", "SDLoc", "DL", "(", "Node", ")", ";", "SDValue", "Chain", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N1", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "Skb", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N3", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "R6Reg", "=", "CurDAG", "->", "getRegister", "(", "", ",", "", ")", ";", "Chain", "=", "CurDAG", "->", "getCopyToReg", "(", "Chain", ",", "DL", ",", "R6Reg", ",", "Skb", ",", "SDValue", "(", ")", ")", ";", "Node", "=", "CurDAG", "->", "UpdateNodeOperands", "(", "Node", ",", "Chain", ",", "N1", ",", "R6Reg", ",", "N3", ")", ";", "break", ";", "}", "}", "break", ";", "}", "case", "", ":", "{", "int", "FI", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";", "EVT", "VT", "=", "Node", "->", "getValueType", "(", "", ")", ";", "SDValue", "TFI", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FI", ",", "VT", ")", ";", "unsigned", "Opc", "=", "", ";", "if", "(", "Node", "->", "hasOneUse", "(", ")", ")", "return", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "Opc", ",", "VT", ",", "TFI", ")", ";", "return", "CurDAG", "->", "getMachineNode", "(", "Opc", ",", "SDLoc", "(", "Node", ")", ",", "VT", ",", "TFI", ")", ";", "}", "}", "SDNode", "*", "ResNode", "=", "SelectCode", "(", "Node", ")", ";"], "ground_truth": ["DEBUG", "(", "dbgs", "(", ")", "<<", "", ";"], "File": "BPFISelDAGToDAG4", "Func": "Select", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1678, "Length": 209, "Cover_Rate": 0.5036144578313253} {"Template_token": ["", "ConstantSDNode", "*", "CN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ";", "if", "(", "isInt", "<", "", ">", "(", "CN", "->", "getSExtValue", "(", ")", ")", ")", "{", "if", "(", "FrameIndexSDNode", "*", "FIN", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ")", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";"], "ground_truth": ["else", "Base", "=", "Addr", ".", "getOperand", "(", "", ")", ";"], "File": "BPFISelDAGToDAG4", "Func": "SelectAddr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1679, "Length": 76, "Cover_Rate": 0.34234234234234234} {"Template_token": ["", "explicit", "DAGToDAGISel", "(", "TargetMachine", "&", "TM", ")", ":", "SelectionDAGISel", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "BPFDAGToDAGISel", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1680, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "DAGToDAGISel", "(", "TargetMachine", "&", "TM", ")", ":", "SelectionDAGISel", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "BPFDAGToDAGISel", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1681, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createISelDag", "(", "TargetMachine", "&", "TM", ")", "{"], "ground_truth": ["return", "new", "DAGToDAGISel", "(", "TM", ")", ";"], "File": "BPFISelDAGToDAG", "Func": "createBPFISelDag", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1682, "Length": 18, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "if", "(", "fillGenericConstant", "(", "DL", ",", "CA", "->", "getOperand", "(", "i", ")", ",", "Vals", ",", "Offset", ")", "==", "false", ")", "return", "false", ";", "Offset", "+=", "DL", ".", "getTypeAllocSize", "(", "CA", "->", "getOperand", "(", "i", ")", "->", "getType", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "fillConstantArray", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1684, "Length": 42, "Cover_Rate": 0.45652173913043476} {"Template_token": ["", "if", "(", "fillGenericConstant", "(", "DL", ",", "CA", "->", "getOperand", "(", "i", ")", ",", "Vals", ",", "Offset", ")", "==", "false", ")", "return", "false", ";", "Offset", "+=", "DL", ".", "getTypeAllocSize", "(", "CA", "->", "getOperand", "(", "i", ")", "->", "getType", "(", ")", ")", ";", "}", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "fillConstantArray", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1685, "Length": 46, "Cover_Rate": 0.5} {"Template_token": ["", "if", "(", "fillGenericConstant", "(", "DL", ",", "CDA", "->", "getElementAsConstant", "(", "i", ")", ",", "Vals", ",", "Offset", ")", "==", "false", ")", "return", "false", ";", "Offset", "+=", "DL", ".", "getTypeAllocSize", "(", "CDA", "->", "getElementAsConstant", "(", "i", ")", "->", "getType", "(", ")", ")", ";", "}", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "fillConstantDataArray", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1686, "Length": 46, "Cover_Rate": 0.5} {"Template_token": ["", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "CDA", "->", "getNumElements", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{"], "ground_truth": ["if", "(", "fillGenericConstant", "(", "DL", ",", "CDA", "->", "getElementAsConstant", "(", "i", ")", ",", "Vals", ",", "Offset", ")", "==", "false", ")", "return", "false", ";"], "File": "BPFISelDAGToDAG", "Func": "fillConstantDataArray", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1687, "Length": 46, "Cover_Rate": 0.5} {"Template_token": ["", "const", "StructLayout", "*", "Layout", "=", "DL", ".", "getStructLayout", "(", "CS", "->", "getType", "(", ")", ")", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "CS", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "const", "Constant", "*", "Field", "=", "CS", "->", "getOperand", "(", "i", ")", ";", "uint64_t", "SizeSoFar", "=", "Layout", "->", "getElementOffset", "(", "i", ")", ";", "if", "(", "fillGenericConstant", "(", "DL", ",", "Field", ",", "Vals", ",", "Offset", "+", "SizeSoFar", ")", "==", "false", ")", "return", "false", ";", "}", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "fillConstantStruct", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1688, "Length": 86, "Cover_Rate": 0.7889908256880734} {"Template_token": ["", "bool", "DAGToDAGISel", "::", "fillGenericConstant", "(", "const", "DataLayout", "&", "DL", ",", "const", "Constant", "*", "CV", ",", "val_vec_type", "&", "Vals", ",", "uint64_t", "Offset", ")", "{", "uint64_t", "Size", "=", "DL", ".", "getTypeAllocSize", "(", "CV", "->", "getType", "(", ")", ")", ";", "if", "(", "isa", "<", "ConstantAggregateZero", ">", "(", "CV", ")", "||", "isa", "<", "UndefValue", ">", "(", "CV", ")", ")", "return", "true", ";", "if", "(", "const", "ConstantInt", "*", "CI", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "CV", ")", ")", "{", "uint64_t", "val", "=", "CI", "->", "getZExtValue", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", "<<", "Offset", "<<", "", "<<", "val", "<<", "'\\n'", ")", ";", "if", "(", "Size", ">", "", "||", "(", "Size", "&", "(", "Size", "-", "", ")", ")", ")", "return", "false", ";", "for", "(", "uint64_t", "i", "=", "", ";", "i", "<", "Size", ";", "++", "i", ")", "{", "Vals", "[", "Offset", "+", "i", "]", "=", "DL", ".", "isLittleEndian", "(", ")", "?", "(", "(", "val", ">>", "(", "i", "*", "", ")", ")", "&", "", ")", ":", "(", "(", "val", ">>", "(", "(", "Size", "-", "i", "-", "", ")", "*", "", ")", ")", "&", "", ")", ";", "}", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "fillGenericConstant", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1689, "Length": 186, "Cover_Rate": 0.6863468634686347} {"Template_token": ["", "}", "else", "{", "uint64_t", "total_size", "=", "", ";", "if", "(", "const", "ConstantStruct", "*", "CS", "=", "dyn_cast", "<", "ConstantStruct", ">", "(", "Init", ")", ")", "total_size", "=", "DL", ".", "getStructLayout", "(", "cast", "<", "StructType", ">", "(", "CS", "->", "getType", "(", ")", ")", ")", "->", "getSizeInBytes", "(", ")", ";", "else", "if", "(", "const", "ConstantArray", "*", "CA", "=", "dyn_cast", "<", "ConstantArray", ">", "(", "Init", ")", ")", "total_size", "=", "DL", ".", "getTypeAllocSize", "(", "CA", "->", "getType", "(", ")", "->", "getElementType", "(", ")", ")", "*", "CA", "->", "getNumOperands", "(", ")", ";", "else", "return", "false", ";", "val_vec_type", "Vals", "(", "total_size", ",", "", ")", ";", "if", "(", "fillGenericConstant", "(", "DL", ",", "Init", ",", "Vals", ",", "", ")", "==", "false", ")", "return", "false", ";", "cs_vals_", "[", "static_cast", "<", "const", "void", "*", ">", "(", "Init", ")", "]", "=", "Vals", ";", "TmpVal", "=", "std", "::", "move", "(", "Vals", ")", ";", "}", "union", "{", "uint8_t", "c", "[", "", "]", ";", "uint16_t", "s", ";", "}", "test_buf", ";", "uint16_t", "test_val", "=", "", ";", "if", "(", "DL", ".", "isLittleEndian", "(", ")", ")", "", "::", "write16le", "(", "test_buf", ".", "c", ",", "test_val", ")", ";"], "ground_truth": ["else", "", "::", "write16be", "(", "test_buf", ".", "c", ",", "test_val", ")", ";"], "File": "BPFISelDAGToDAG", "Func": "getConstantFieldValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1690, "Length": 190, "Cover_Rate": 0.5177111716621253} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1691, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1692, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "const", "LoadSDNode", "*", "LD", "=", "cast", "<", "LoadSDNode", ">", "(", "Node", ")", ";", "uint64_t", "size", "=", "LD", "->", "getMemOperand", "(", ")", "->", "getSize", "(", ")", ";", "if", "(", "!", "size", "||", "size", ">", "", "||", "(", "size", "&", "(", "size", "-", "", ")", ")", ")", "continue", ";", "SDNode", "*", "LDAddrNode", "=", "LD", "->", "getOperand", "(", "", ")", ".", "getNode", "(", ")", ";", "unsigned", "opcode", "=", "LDAddrNode", "->", "getOpcode", "(", ")", ";", "if", "(", "opcode", "==", "", ")", "{", "SDValue", "OP1", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "SDValue", "OP2", "=", "LDAddrNode", "->", "getOperand", "(", "", ")", ";", "SDNode", "*", "OP1N", "=", "OP1", ".", "getNode", "(", ")", ";", "if", "(", "OP1N", "->", "getOpcode", "(", ")", "<=", "", "||", "OP1N", "->", "getNumOperands", "(", ")", "==", "", ")", "continue", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "LD", "->", "dump", "(", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "const", "GlobalAddressSDNode", "*", "GADN", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "OP1N", "->", "getOperand", "(", "", ")", ".", "getNode", "(", ")", ")", ";"], "ground_truth": ["const", "ConstantSDNode", "*", "CDN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "OP2", ".", "getNode", "(", ")", ")", ";"], "File": "BPFISelDAGToDAG", "Func": "PreprocessISelDAG", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1693, "Length": 188, "Cover_Rate": 0.3418181818181818} {"Template_token": ["", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "if", "(", "Node", "->", "isMachineOpcode", "(", ")", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "Node", "->", "dump", "(", "CurDAG", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ")", ";", "return", ";", "}", "switch", "(", "Opcode", ")", "{", "default", ":", "break", ";", "case", "", ":", "{", "DebugLoc", "Empty", ";", "const", "DebugLoc", "&", "DL", "=", "Node", "->", "getDebugLoc", "(", ")", ";", "if", "(", "DL", "!=", "Empty", ")", "errs", "(", ")", "<<", "", "<<", "DL", ".", "getLine", "(", ")", "<<", "", ";", "else", "errs", "(", ")", "<<", "", ";", "errs", "(", ")", "<<", "", ";", "Node", "->", "print", "(", "errs", "(", ")", ",", "CurDAG", ")", ";", "errs", "(", ")", "<<", "", ";", "break", ";", "}", "case", "", ":", "{", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "switch", "(", "IntNo", ")", "{", "case", "", ":", "case", "", ":", "case", "", ":", "{", "SDLoc", "DL", "(", "Node", ")", ";", "SDValue", "Chain", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N1", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "Skb", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "N3", "=", "Node", "->", "getOperand", "(", "", ")", ";", "SDValue", "R6Reg", "=", "CurDAG", "->", "getRegister", "(", "", ",", "", ")", ";", "Chain", "=", "CurDAG", "->", "getCopyToReg", "(", "Chain", ",", "DL", ",", "R6Reg", ",", "Skb", ",", "SDValue", "(", ")", ")", ";", "Node", "=", "CurDAG", "->", "UpdateNodeOperands", "(", "Node", ",", "Chain", ",", "N1", ",", "R6Reg", ",", "N3", ")", ";", "break", ";", "}", "}", "break", ";", "}", "case", "", ":", "{", "int", "FI", "=", "cast", "<", "FrameIndexSDNode", ">", "(", "Node", ")", "->", "getIndex", "(", ")", ";", "EVT", "VT", "=", "Node", "->", "getValueType", "(", "", ")", ";", "SDValue", "TFI", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FI", ",", "VT", ")", ";", "unsigned", "Opc", "=", "", ";", "if", "(", "Node", "->", "hasOneUse", "(", ")", ")", "{", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "Opc", ",", "VT", ",", "TFI", ")", ";", "return", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "Select", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1694, "Length": 347, "Cover_Rate": 0.8361445783132531} {"Template_token": ["", "if", "(", "isInt", "<", "", ">", "(", "CN", "->", "getSExtValue", "(", ")", ")", ")", "{", "if", "(", "FrameIndexSDNode", "*", "FIN", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ")", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";", "else", "Base", "=", "Addr", ".", "getOperand", "(", "", ")", ";", "Offset", "=", "CurDAG", "->", "getTargetConstant", "(", "CN", "->", "getSExtValue", "(", ")", ",", "DL", ",", "", ")", ";", "return", "true", ";", "}", "}", "Base", "=", "Addr", ";", "Offset", "=", "CurDAG", "->", "getTargetConstant", "(", "", ",", "DL", ",", "", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "SelectAddr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1695, "Length": 102, "Cover_Rate": 0.4358974358974359} {"Template_token": ["", "if", "(", "CurDAG", "->", "isBaseWithConstantOffset", "(", "Addr", ")", ")", "{", "ConstantSDNode", "*", "CN", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ";", "if", "(", "isInt", "<", "", ">", "(", "CN", "->", "getSExtValue", "(", ")", ")", ")", "{", "if", "(", "FrameIndexSDNode", "*", "FIN", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ")", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";", "else", "Base", "=", "Addr", ".", "getOperand", "(", "", ")", ";", "Offset", "=", "CurDAG", "->", "getTargetConstant", "(", "CN", "->", "getSExtValue", "(", ")", ",", "DL", ",", "", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "BPFISelDAGToDAG", "Func": "SelectAddr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1696, "Length": 106, "Cover_Rate": 0.452991452991453} {"Template_token": ["", "if", "(", "isInt", "<", "", ">", "(", "CN", "->", "getSExtValue", "(", ")", ")", ")", "{", "if", "(", "FrameIndexSDNode", "*", "FIN", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ")", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";", "else", "return", "false", ";", "Offset", "=", "CurDAG", "->", "getTargetConstant", "(", "CN", "->", "getSExtValue", "(", ")", ",", "DL", ",", "", ")", ";", "return", "true", ";", "}"], "ground_truth": ["return", "false", ";"], "File": "BPFISelDAGToDAG", "Func": "SelectFIAddr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1697, "Length": 77, "Cover_Rate": 0.5703703703703704} {"Template_token": ["", "if", "(", "FrameIndexSDNode", "*", "FIN", "=", "dyn_cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ".", "getOperand", "(", "", ")", ")", ")", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "FIN", "->", "getIndex", "(", ")", ",", "", ")", ";", "else", "return", "false", ";", "Offset", "=", "CurDAG", "->", "getTargetConstant", "(", "CN", "->", "getSExtValue", "(", ")", ",", "DL", ",", "", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFISelDAGToDAG", "Func": "SelectFIAddr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1698, "Length": 59, "Cover_Rate": 0.43703703703703706} {"Template_token": ["", "computeRegisterProperties", "(", "STI", ".", "getRegisterInfo", "(", ")", ")", ";", "setStackPointerRegisterToSaveRestore", "(", "", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";"], "ground_truth": ["setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";"], "File": "BPFISelLowering (2)", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1699, "Length": 248, "Cover_Rate": 0.37237237237237236} {"Template_token": ["", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "for", "(", "MVT", "VT", ":", "", "(", ")", ")", "{", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "}", "setBooleanContents", "(", "ZeroOrOneBooleanContent", ")", ";", "setMinFunctionAlignment", "(", "", ")", ";", "setPrefFunctionAlignment", "(", "", ")", ";", "MaxStoresPerMemset", "=", "MaxStoresPerMemsetOptSize", "=", "", ";", "MaxStoresPerMemcpy", "=", "MaxStoresPerMemcpyOptSize", "=", "", ";", "MaxStoresPerMemmove", "=", "MaxStoresPerMemmoveOptSize", "=", "", ";"], "ground_truth": ["}"], "File": "BPFISelLowering (2)", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1700, "Length": 345, "Cover_Rate": 0.5180180180180181} {"Template_token": ["", "static", "bool", "classof", "(", "const", "DiagnosticInfo", "*", "DI", ")", "{"], "ground_truth": ["return", "DI", "->", "getKind", "(", ")", "==", "getKindID", "(", ")", ";"], "File": "BPFISelLowering (2)", "Func": "classof", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1702, "Length": 21, "Cover_Rate": 0.9545454545454546} {"Template_token": ["", "DiagnosticInfoUnsupported", "(", "SDLoc", "DLoc", ",", "const", "Function", "&", "Fn", ",", "const", "Twine", "&", "Desc", ",", "SDValue", "Value", ")", ":", "DiagnosticInfo", "(", "getKindID", "(", ")", ",", "DS_Error", ")", ",", "DLoc", "(", "DLoc", ".", "getDebugLoc", "(", ")", ")", ",", "Description", "(", "Desc", ")", ",", "Fn", "(", "Fn", ")", ",", "Value", "(", "Value", ")", "{"], "ground_truth": ["}"], "File": "BPFISelLowering (2)", "Func": "DiagnosticInfoUnsupported", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1703, "Length": 53, "Cover_Rate": 1.0} {"Template_token": ["", "DiagnosticInfoUnsupported", "(", "SDLoc", "DLoc", ",", "const", "Function", "&", "Fn", ",", "const", "Twine", "&", "Desc", ",", "SDValue", "Value", ")", ":", "DiagnosticInfo", "(", "getKindID", "(", ")", ",", "DS_Error", ")", ",", "DLoc", "(", "DLoc", ".", "getDebugLoc", "(", ")", ")", ",", "Description", "(", "Desc", ")", ",", "Fn", "(", "Fn", ")", ",", "Value", "(", "Value", ")", "{"], "ground_truth": ["}"], "File": "BPFISelLowering (2)", "Func": "DiagnosticInfoUnsupported", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1704, "Length": 53, "Cover_Rate": 1.0} {"Template_token": ["", "case", "", ":", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "break", ";", "default", ":", "report_fatal_error", "(", "", "+", "Twine", "(", "CC", ")", ")", ";", "}", "BB", "=", "Copy0MBB", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "BB", "=", "Copy1MBB", ";", "BuildMI", "(", "*", "BB", ",", "BB", "->", "begin", "(", ")", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "Copy0MBB", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "ThisMBB", ")", ";"], "ground_truth": ["MI", "->", "eraseFromParent", "(", ")", ";"], "File": "BPFISelLowering (2)", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1705, "Length": 206, "Cover_Rate": 0.3576388888888889} {"Template_token": ["", "F", "->", "insert", "(", "I", ",", "Copy1MBB", ")", ";", "Copy1MBB", "->", "splice", "(", "Copy1MBB", "->", "begin", "(", ")", ",", "BB", ",", "std", "::", "next", "(", "MachineBasicBlock", "::", "iterator", "(", "MI", ")", ")", ",", "BB", "->", "end", "(", ")", ")", ";", "Copy1MBB", "->", "transferSuccessorsAndUpdatePHIs", "(", "BB", ")", ";", "BB", "->", "addSuccessor", "(", "Copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "unsigned", "LHS", "=", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "unsigned", "RHS", "=", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "int", "CC", "=", "MI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "switch", "(", "CC", ")", "{", "case", "", ":", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";"], "ground_truth": ["break", ";"], "File": "BPFISelLowering (2)", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1706, "Length": 176, "Cover_Rate": 0.3055555555555556} {"Template_token": ["", "static", "int", "getKindID", "(", ")", "{"], "ground_truth": ["if", "(", "KindID", "==", "", ")", "KindID", "=", "llvm", "::", "getNextAvailablePluginDiagnosticKind", "(", ")", ";"], "File": "BPFISelLowering (2)", "Func": "getKindID", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1707, "Length": 20, "Cover_Rate": 0.8333333333333334} {"Template_token": ["", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";"], "ground_truth": ["case", "", ":"], "File": "BPFISelLowering (2)", "Func": "getTargetNodeName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1711, "Length": 24, "Cover_Rate": 0.32432432432432434} {"Template_token": ["", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "Op", ".", "getValueType", "(", ")", ",", "Chain", ",", "LHS", ",", "RHS", ",", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "", ")", ",", "Dest", ")", ";"], "File": "BPFISelLowering (2)", "Func": "LowerBR_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1712, "Length": 44, "Cover_Rate": 0.33587786259541985} {"Template_token": ["", "SDValue", "LHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "Dest", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "Op", ".", "getValueType", "(", ")", ",", "Chain", ",", "LHS", ",", "RHS", ",", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "", ")", ",", "Dest", ")", ";"], "File": "BPFISelLowering (2)", "Func": "LowerBR_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1713, "Length": 80, "Cover_Rate": 0.6106870229007634} {"Template_token": ["", "}", "auto", "PtrVT", "=", "getPointerTy", "(", "MF", ".", "getDataLayout", "(", ")", ")", ";", "Chain", "=", "DAG", ".", "getCALLSEQ_START", "(", "Chain", ",", "DAG", ".", "getConstant", "(", "NumBytes", ",", "CLI", ".", "DL", ",", "PtrVT", ",", "true", ")", ",", "CLI", ".", "DL", ")", ";", "SmallVector", "<", "std", "::", "pair", "<", "unsigned", ",", "SDValue", ">", ",", "", ">", "RegsToPass", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "SDValue", "Arg", "=", "OutVals", "[", "i", "]", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "}", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "RegsToPass", ".", "push_back", "(", "std", "::", "make_pair", "(", "VA", ".", "getLocReg", "(", ")", ",", "Arg", ")", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";", "}", "SDValue", "InFlag", ";", "for", "(", "auto", "&", "Reg", ":", "RegsToPass", ")", "{", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "CLI", ".", "DL", ",", "Reg", ".", "first", ",", "Reg", ".", "second", ",", "InFlag", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "}", "if", "(", "GlobalAddressSDNode", "*", "G", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", ")", "Callee", "=", "DAG", ".", "getTargetGlobalAddress", "(", "G", "->", "getGlobal", "(", ")", ",", "CLI", ".", "DL", ",", "PtrVT", ",", "G", "->", "getOffset", "(", ")", ",", "", ")", ";", "else", "if", "(", "ExternalSymbolSDNode", "*", "E", "=", "dyn_cast", "<", "ExternalSymbolSDNode", ">", "(", "Callee", ")", ")", "Callee", "=", "DAG", ".", "getTargetExternalSymbol", "(", "E", "->", "getSymbol", "(", ")", ",", "PtrVT", ",", "", ")", ";", "SDVTList", "NodeTys", "=", "DAG", ".", "getVTList", "(", "", ",", "", ")", ";", "SmallVector", "<", "SDValue", ",", "", ">", "Ops", ";", "Ops", ".", "push_back", "(", "Chain", ")", ";", "Ops", ".", "push_back", "(", "Callee", ")", ";", "for", "(", "auto", "&", "Reg", ":", "RegsToPass", ")", "Ops", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "Reg", ".", "first", ",", "Reg", ".", "second", ".", "getValueType", "(", ")", ")", ")", ";", "if", "(", "InFlag", ".", "getNode", "(", ")", ")", "Ops", ".", "push_back", "(", "InFlag", ")", ";", "Chain", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "NodeTys", ",", "Ops", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";"], "ground_truth": ["Chain", "=", "DAG", ".", "getCALLSEQ_END", "(", "Chain", ",", "DAG", ".", "getConstant", "(", "NumBytes", ",", "CLI", ".", "DL", ",", "PtrVT", ",", "true", ")", ",", "DAG", ".", "getConstant", "(", "", ",", "CLI", ".", "DL", ",", "PtrVT", ",", "true", ")", ",", "InFlag", ",", "CLI", ".", "DL", ")", ";"], "File": "BPFISelLowering (2)", "Func": "LowerCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1714, "Length": 505, "Cover_Rate": 0.6128640776699029} {"Template_token": ["", "for", "(", "auto", "&", "VA", ":", "ArgLocs", ")", "{", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "{", "EVT", "RegVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "switch", "(", "RegVT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "default", ":", "{", "errs", "(", ")", "<<", "", "<<", "RegVT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", "<<", "'\\n'", ";", "llvm_unreachable", "(", "", ")", ";", "}", "case", "", ":", "unsigned", "VReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "&", "", ")", ";", "RegInfo", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "VReg", ")", ";", "SDValue", "ArgValue", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "VReg", ",", "RegVT", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "!=", "CCValAssign", "::", "Full", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "ArgValue", ")", ";", "InVals", ".", "push_back", "(", "ArgValue", ")", ";", "}", "}", "else", "{"], "ground_truth": ["DiagnosticInfoUnsupported", "Err", "(", "DL", ",", "*", "MF", ".", "getFunction", "(", ")", ",", "", ",", "SDValue", "(", ")", ")", ";"], "File": "BPFISelLowering (2)", "Func": "LowerFormalArguments", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1715, "Length": 244, "Cover_Rate": 0.5545454545454546} {"Template_token": ["", "const", "GlobalValue", "*", "GV", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "Op", ")", "->", "getGlobal", "(", ")", ";"], "ground_truth": ["SDValue", "GA", "=", "DAG", ".", "getTargetGlobalAddress", "(", "GV", ",", "DL", ",", "", ")", ";"], "File": "BPFISelLowering (2)", "Func": "LowerGlobalAddress", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1716, "Length": 31, "Cover_Rate": 0.4305555555555556} {"Template_token": ["", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "case", "", ":", "return", "LowerBR_CC", "(", "Op", ",", "DAG", ")", ";", "case", "", ":"], "ground_truth": ["return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";"], "File": "BPFISelLowering (2)", "Func": "LowerOperation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1717, "Length": 31, "Cover_Rate": 0.43661971830985913} {"Template_token": ["", "SmallVector", "<", "CCValAssign", ",", "", ">", "RVLocs", ";", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "if", "(", "MF", ".", "getFunction", "(", ")", "->", "getReturnType", "(", ")", "->", "isAggregateType", "(", ")", ")", "{", "DiagnosticInfoUnsupported", "Err", "(", "DL", ",", "*", "MF", ".", "getFunction", "(", ")", ",", "", ",", "SDValue", "(", ")", ")", ";", "DAG", ".", "getContext", "(", ")", "->", "diagnose", "(", "Err", ")", ";", "}", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_64", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "", ">", "RetOps", "(", "", ",", "Chain", ")", ";"], "ground_truth": ["for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{"], "File": "BPFISelLowering (2)", "Func": "LowerReturn", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1718, "Length": 129, "Cover_Rate": 0.4387755102040816} {"Template_token": ["", "SDValue", "LHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "TrueV", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "FalseV", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";"], "ground_truth": ["SDValue", "TargetCC", "=", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "", ")", ";"], "File": "BPFISelLowering (2)", "Func": "LowerSELECT_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1719, "Length": 89, "Cover_Rate": 0.559748427672956} {"Template_token": ["", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";", "SDValue", "TargetCC", "=", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "Op", ".", "getValueType", "(", ")", ",", "", ")", ";"], "ground_truth": ["SDValue", "Ops", "[", "]", "=", "{", "LHS", ",", "RHS", ",", "TargetCC", ",", "TrueV", ",", "FalseV", "}", ";"], "File": "BPFISelLowering (2)", "Func": "LowerSELECT_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1720, "Length": 82, "Cover_Rate": 0.5157232704402516} {"Template_token": ["", "switch", "(", "CC", ")", "{", "default", ":", "break", ";", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "CC", "=", "", "(", "CC", ")", ";"], "ground_truth": ["std", "::", "swap", "(", "LHS", ",", "RHS", ")", ";"], "File": "BPFISelLowering (2)", "Func": "NegateCC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1721, "Length": 37, "Cover_Rate": 0.5285714285714286} {"Template_token": ["", "OS", "<<", "", "<<", "Fn", ".", "getName", "(", ")", "<<", "' '", "<<", "*", "Fn", ".", "getFunctionType", "(", ")", "<<", "'\\n'", "<<", "Description", ";", "if", "(", "Value", ")", "Value", "->", "print", "(", "OS", ")", ";", "OS", "<<", "'\\n'", ";"], "ground_truth": ["OS", ".", "flush", "(", ")", ";"], "File": "BPFISelLowering (2)", "Func": "print", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1722, "Length": 44, "Cover_Rate": 0.3492063492063492} {"Template_token": ["", "unsigned", "Line", "=", "DIL", "->", "getLine", "(", ")", ";", "unsigned", "Column", "=", "DIL", "->", "getColumn", "(", ")", ";", "OS", "<<", "Filename", "<<", "':'", "<<", "Line", "<<", "':'", "<<", "Column", "<<", "' '", ";", "}", "OS", "<<", "", "<<", "Fn", ".", "getName", "(", ")", "<<", "' '", "<<", "*", "Fn", ".", "getFunctionType", "(", ")", "<<", "'\\n'", "<<", "Description", ";"], "ground_truth": ["if", "(", "Value", ")", "Value", "->", "print", "(", "OS", ")", ";"], "File": "BPFISelLowering (2)", "Func": "print", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1723, "Length": 67, "Cover_Rate": 0.5317460317460317} {"Template_token": ["", "bool", "shouldConvertConstantLoadToIntImm", "(", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ")", "const", "override", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFISelLowering (2)", "Func": "shouldConvertConstantLoadToIntImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1724, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "shouldConvertConstantLoadToIntImm", "(", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ")", "const", "override", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFISelLowering (2)", "Func": "shouldConvertConstantLoadToIntImm", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1725, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "report_fatal_error", "(", "", "+", "Twine", "(", "CC", ")", ")", ";", "}", "if", "(", "isSelectOp", ")", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "else", "{", "int64_t", "imm32", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "assert", "(", "isInt", "<", "", ">", "(", "imm32", ")", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addImm", "(", "imm32", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "}", "BB", "=", "Copy0MBB", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "BB", "=", "Copy1MBB", ";", "BuildMI", "(", "*", "BB", ",", "BB", "->", "begin", "(", ")", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "Copy0MBB", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "ThisMBB", ")", ";"], "ground_truth": ["MI", ".", "eraseFromParent", "(", ")", ";"], "File": "BPFISelLowering11", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1726, "Length": 201, "Cover_Rate": 0.3544973544973545} {"Template_token": ["", "BB", "->", "addSuccessor", "(", "Copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "unsigned", "LHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "int", "CC", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "int", "NewCC", ";", "switch", "(", "CC", ")", "{", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "default", ":", "report_fatal_error", "(", "", "+", "Twine", "(", "CC", ")", ")", ";", "}", "if", "(", "isSelectOp", ")", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "else", "{", "int64_t", "imm32", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "assert", "(", "isInt", "<", "", ">", "(", "imm32", ")", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addImm", "(", "imm32", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "}", "BB", "=", "Copy0MBB", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "BB", "=", "Copy1MBB", ";"], "ground_truth": ["BuildMI", "(", "*", "BB", ",", "BB", "->", "begin", "(", ")", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "Copy0MBB", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "ThisMBB", ")", ";"], "File": "BPFISelLowering11", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1727, "Length": 325, "Cover_Rate": 0.5731922398589065} {"Template_token": ["", "std", "::", "string", "Str", ";", "raw_string_ostream", "OS", "(", "Str", ")", ";", "OS", "<<", "Msg", ";", "Val", "->", "print", "(", "OS", ")", ";"], "ground_truth": ["OS", ".", "flush", "(", ")", ";"], "File": "BPFISelLowering11", "Func": "fail", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1729, "Length": 28, "Cover_Rate": 0.3181818181818182} {"Template_token": ["", "bool", "getHasJmp32", "(", ")", "const", "{"], "ground_truth": ["return", "HasJmp32", ";"], "File": "BPFISelLowering11", "Func": "getHasJmp32", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1730, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "EVT", "getOptimalMemOpType", "(", "const", "MemOp", "&", "Op", ",", "const", "AttributeList", "&", "FuncAttributes", ")", "const", "override", "{", "return", "Op", ".", "size", "(", ")", ">=", "", "?", "", ":", "", ";"], "ground_truth": ["}"], "File": "BPFISelLowering11", "Func": "getOptimalMemOpType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1732, "Length": 30, "Cover_Rate": 0.8823529411764706} {"Template_token": ["", "return", "Op", ".", "size", "(", ")", ">=", "", "?", "", ":", "", ";"], "ground_truth": ["}"], "File": "BPFISelLowering11", "Func": "getOptimalMemOpType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1733, "Length": 14, "Cover_Rate": 0.4117647058823529} {"Template_token": ["", "bool", "isIntDivCheap", "(", "EVT", "VT", ",", "AttributeList", "Attr", ")", "const", "override", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFISelLowering11", "Func": "isIntDivCheap", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1734, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "isIntDivCheap", "(", "EVT", "VT", ",", "AttributeList", "Attr", ")", "const", "override", "{"], "ground_truth": ["return", "true", ";"], "File": "BPFISelLowering11", "Func": "isIntDivCheap", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1735, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "return", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "", ",", "Ins", "[", "", "]", ".", "VT", ",", "InFlag", ")", ".", "getValue", "(", "", ")", ";", "}", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_64", ")", ";", "for", "(", "auto", "&", "Val", ":", "RVLocs", ")", "{", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "Val", ".", "getLocReg", "(", ")", ",", "Val", ".", "getValVT", "(", ")", ",", "InFlag", ")", ".", "getValue", "(", "", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "InVals", ".", "push_back", "(", "Chain", ".", "getValue", "(", "", ")", ")", ";", "}"], "ground_truth": ["return", "Chain", ";"], "File": "BPFISelLowering11", "Func": "LowerCallResult", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1737, "Length": 100, "Cover_Rate": 0.4032258064516129} {"Template_token": ["", "SDValue", "ArgValue", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "VReg", ",", "RegVT", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "!=", "CCValAssign", "::", "Full", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "ArgValue", ")", ";", "InVals", ".", "push_back", "(", "ArgValue", ")", ";"], "ground_truth": ["}"], "File": "BPFISelLowering11", "Func": "LowerFormalArguments", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1738, "Length": 132, "Cover_Rate": 0.3157894736842105} {"Template_token": ["", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVals", "[", "i", "]", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "RetOps", "[", "", "]", "=", "Chain", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Flag", ")", ";", "return", "DAG", ".", "getNode", "(", "Opc", ",", "DL", ",", "", ",", "RetOps", ")", ";"], "ground_truth": ["}"], "File": "BPFISelLowering11", "Func": "LowerReturn", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1739, "Length": 93, "Cover_Rate": 0.31958762886597936} {"Template_token": ["", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "if", "(", "MF", ".", "getFunction", "(", ")", "->", "getReturnType", "(", ")", "->", "isAggregateType", "(", ")", ")", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "return", "DAG", ".", "getNode", "(", "Opc", ",", "DL", ",", "", ",", "Chain", ")", ";", "}", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_64", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "", ">", "RetOps", "(", "", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "", ")", ";"], "ground_truth": ["Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVals", "[", "i", "]", ",", "Flag", ")", ";"], "File": "BPFISelLowering11", "Func": "LowerReturn", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1740, "Length": 158, "Cover_Rate": 0.5429553264604811} {"Template_token": ["", "bool", "shouldReduceLoadWidth", "(", "SDNode", "*", "Load", ",", "", "ExtTy", ",", "EVT", "NewVT", ")", "const", "override", "{"], "ground_truth": ["return", "false", ";"], "File": "BPFISelLowering11", "Func": "shouldReduceLoadWidth", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1741, "Length": 19, "Cover_Rate": 0.8636363636363636} {"Template_token": ["", "bool", "shouldReduceLoadWidth", "(", "SDNode", "*", "Load", ",", "", "ExtTy", ",", "EVT", "NewVT", ")", "const", "override", "{", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFISelLowering11", "Func": "shouldReduceLoadWidth", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1742, "Length": 20, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";"], "ground_truth": ["setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";"], "File": "BPFISelLowering13", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1743, "Length": 234, "Cover_Rate": 0.34718100890207715} {"Template_token": ["", "}", "case", "", ":", "unsigned", "VReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "&", "", ")", ";", "RegInfo", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "VReg", ")", ";", "SDValue", "ArgValue", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "VReg", ",", "RegVT", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "!=", "CCValAssign", "::", "Full", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "ArgValue", ")", ";", "InVals", ".", "push_back", "(", "ArgValue", ")", ";", "}", "}", "else", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "InVals", ".", "push_back", "(", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "}", "if", "(", "IsVarArg", "||", "MF", ".", "getFunction", "(", ")", "->", "hasStructRetAttr", "(", ")", ")", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "}"], "ground_truth": ["return", "Chain", ";"], "File": "BPFISelLowering13", "Func": "LowerFormalArguments", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1744, "Length": 222, "Cover_Rate": 0.5311004784688995} {"Template_token": ["", "SDValue", "FalseV", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "if", "(", "!", "getHasJmpExt", "(", ")", ")", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";", "SDValue", "TargetCC", "=", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "Op", ".", "getValueType", "(", ")", ",", "", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "LHS", ",", "RHS", ",", "TargetCC", ",", "TrueV", ",", "FalseV", "}", ";", "return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VTs", ",", "Ops", ")", ";"], "ground_truth": ["}"], "File": "BPFISelLowering13", "Func": "LowerSELECT_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1745, "Length": 114, "Cover_Rate": 0.6867469879518072} {"Template_token": ["", "SDValue", "FalseV", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "if", "(", "!", "getHasJmpExt", "(", ")", ")", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";"], "ground_truth": ["SDValue", "TargetCC", "=", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "", ")", ";"], "File": "BPFISelLowering13", "Func": "LowerSELECT_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1746, "Length": 66, "Cover_Rate": 0.39759036144578314} {"Template_token": ["", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "break", ";", "default", ":", "report_fatal_error", "(", "", "+", "Twine", "(", "CC", ")", ")", ";", "}", "BB", "=", "Copy0MBB", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "BB", "=", "Copy1MBB", ";", "BuildMI", "(", "*", "BB", ",", "BB", "->", "begin", "(", ")", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "Copy0MBB", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "ThisMBB", ")", ";", "MI", "->", "eraseFromParent", "(", ")", ";", "return", "BB", ";"], "ground_truth": ["}"], "File": "BPFISelLowering14", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1747, "Length": 207, "Cover_Rate": 0.35751295336787564} {"Template_token": ["", "return", "NULL", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";"], "ground_truth": ["case", "", ":"], "File": "BPFISelLowering14", "Func": "getTargetNodeName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1748, "Length": 24, "Cover_Rate": 0.375} {"Template_token": ["", "SDValue", "Chain", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDValue", "LHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "Dest", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";"], "ground_truth": ["NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";"], "File": "BPFISelLowering14", "Func": "LowerBR_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1749, "Length": 75, "Cover_Rate": 0.5813953488372093} {"Template_token": ["", "SDValue", "Chain", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDValue", "LHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";"], "ground_truth": ["SDValue", "Dest", "=", "Op", ".", "getOperand", "(", "", ")", ";"], "File": "BPFISelLowering14", "Func": "LowerBR_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1750, "Length": 60, "Cover_Rate": 0.46511627906976744} {"Template_token": ["", "auto", "&", "Ins", "=", "CLI", ".", "Ins", ";", "SDValue", "Chain", "=", "CLI", ".", "Chain", ";", "SDValue", "Callee", "=", "CLI", ".", "Callee", ";", "bool", "&", "IsTailCall", "=", "CLI", ".", "IsTailCall", ";", "CallingConv", "::", "ID", "CallConv", "=", "CLI", ".", "CallConv", ";", "bool", "IsVarArg", "=", "CLI", ".", "IsVarArg", ";", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "IsTailCall", "=", "false", ";", "switch", "(", "CallConv", ")", "{", "default", ":", "report_fatal_error", "(", "", ")", ";", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "C", ":", "break", ";", "}", "SmallVector", "<", "CCValAssign", ",", "", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallOperands", "(", "Outs", ",", "CC_64", ")", ";", "unsigned", "NumBytes", "=", "CCInfo", ".", "getNextStackOffset", "(", ")", ";", "if", "(", "Outs", ".", "size", "(", ")", ">=", "", ")", "{", "DiagnosticInfoUnsupported", "Err", "(", "CLI", ".", "DL", ",", "*", "MF", ".", "getFunction", "(", ")", ",", "", ",", "Callee", ")", ";", "DAG", ".", "getContext", "(", ")", "->", "diagnose", "(", "Err", ")", ";", "}", "for", "(", "auto", "&", "Arg", ":", "Outs", ")", "{", "", "Flags", "=", "Arg", ".", "Flags", ";", "if", "(", "!", "Flags", ".", "isByVal", "(", ")", ")", "continue", ";", "DiagnosticInfoUnsupported", "Err", "(", "CLI", ".", "DL", ",", "*", "MF", ".", "getFunction", "(", ")", ",", "", ",", "Callee", ")", ";", "DAG", ".", "getContext", "(", ")", "->", "diagnose", "(", "Err", ")", ";", "}", "Chain", "=", "DAG", ".", "getCALLSEQ_START", "(", "Chain", ",", "DAG", ".", "getConstant", "(", "NumBytes", ",", "getPointerTy", "(", ")", ",", "true", ")", ",", "CLI", ".", "DL", ")", ";"], "ground_truth": ["SmallVector", "<", "std", "::", "pair", "<", "unsigned", ",", "SDValue", ">", ",", "", ">", "RegsToPass", ";"], "File": "BPFISelLowering14", "Func": "LowerCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1751, "Length": 271, "Cover_Rate": 0.3345679012345679} {"Template_token": ["", "SmallVector", "<", "CCValAssign", ",", "", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallOperands", "(", "Outs", ",", "CC_64", ")", ";", "unsigned", "NumBytes", "=", "CCInfo", ".", "getNextStackOffset", "(", ")", ";", "if", "(", "Outs", ".", "size", "(", ")", ">=", "", ")", "{", "DiagnosticInfoUnsupported", "Err", "(", "CLI", ".", "DL", ",", "*", "MF", ".", "getFunction", "(", ")", ",", "", ",", "Callee", ")", ";", "DAG", ".", "getContext", "(", ")", "->", "diagnose", "(", "Err", ")", ";", "}", "for", "(", "auto", "&", "Arg", ":", "Outs", ")", "{", "", "Flags", "=", "Arg", ".", "Flags", ";", "if", "(", "!", "Flags", ".", "isByVal", "(", ")", ")", "continue", ";", "DiagnosticInfoUnsupported", "Err", "(", "CLI", ".", "DL", ",", "*", "MF", ".", "getFunction", "(", ")", ",", "", ",", "Callee", ")", ";", "DAG", ".", "getContext", "(", ")", "->", "diagnose", "(", "Err", ")", ";", "}", "Chain", "=", "DAG", ".", "getCALLSEQ_START", "(", "Chain", ",", "DAG", ".", "getConstant", "(", "NumBytes", ",", "getPointerTy", "(", ")", ",", "true", ")", ",", "CLI", ".", "DL", ")", ";", "SmallVector", "<", "std", "::", "pair", "<", "unsigned", ",", "SDValue", ">", ",", "", ">", "RegsToPass", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "SDValue", "Arg", "=", "OutVals", "[", "i", "]", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["case", "CCValAssign", "::", "Full", ":"], "File": "BPFISelLowering14", "Func": "LowerCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1752, "Length": 247, "Cover_Rate": 0.30493827160493825} {"Template_token": ["", "SDValue", "FalseV", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";", "SDValue", "TargetCC", "=", "DAG", ".", "getConstant", "(", "CC", ",", "", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "Op", ".", "getValueType", "(", ")", ",", "", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "LHS", ",", "RHS", ",", "TargetCC", ",", "TrueV", ",", "FalseV", "}", ";"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VTs", ",", "Ops", ")", ";"], "File": "BPFISelLowering14", "Func": "LowerSELECT_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1753, "Length": 104, "Cover_Rate": 0.6624203821656051} {"Template_token": ["", "raw_string_ostream", "OS", "(", "Str", ")", ";", "if", "(", "DLoc", ".", "isUnknown", "(", ")", "==", "false", ")", "{", "DILocation", "DIL", "(", "DLoc", ".", "getAsMDNode", "(", "Fn", ".", "getContext", "(", ")", ")", ")", ";", "StringRef", "Filename", "=", "DIL", ".", "getFilename", "(", ")", ";", "unsigned", "Line", "=", "DIL", ".", "getLineNumber", "(", ")", ";", "unsigned", "Column", "=", "DIL", ".", "getColumnNumber", "(", ")", ";", "OS", "<<", "Filename", "<<", "':'", "<<", "Line", "<<", "':'", "<<", "Column", "<<", "' '", ";", "}"], "ground_truth": ["OS", "<<", "", "<<", "Fn", ".", "getName", "(", ")", "<<", "' '", "<<", "*", "Fn", ".", "getFunctionType", "(", ")", "<<", "'\\n'", "<<", "Description", ";"], "File": "BPFISelLowering14", "Func": "print", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1754, "Length": 97, "Cover_Rate": 0.7028985507246377} {"Template_token": ["", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "for", "(", "MVT", "VT", ":", "", "(", ")", ")", "{", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "}"], "ground_truth": ["setBooleanContents", "(", "ZeroOrOneBooleanContent", ")", ";"], "File": "BPFISelLowering15", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1755, "Length": 343, "Cover_Rate": 0.515015015015015} {"Template_token": ["", "OS", "<<", "", "<<", "Fn", ".", "getName", "(", ")", "<<", "' '", "<<", "*", "Fn", ".", "getFunctionType", "(", ")", "<<", "'\\n'", "<<", "Description", ";", "if", "(", "Value", ")", "Value", "->", "print", "(", "OS", ")", ";", "OS", "<<", "'\\n'", ";", "OS", ".", "flush", "(", ")", ";", "DP", "<<", "Str", ";"], "ground_truth": ["}"], "File": "BPFISelLowering15", "Func": "print", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1756, "Length": 49, "Cover_Rate": 0.3858267716535433} {"Template_token": ["", "std", "::", "string", "Str", ";", "raw_string_ostream", "OS", "(", "Str", ")", ";", "if", "(", "DLoc", ")", "{", "DILocation", "DIL", "(", "DLoc", ".", "getAsMDNode", "(", ")", ")", ";", "StringRef", "Filename", "=", "DIL", ".", "getFilename", "(", ")", ";", "unsigned", "Line", "=", "DIL", ".", "getLineNumber", "(", ")", ";", "unsigned", "Column", "=", "DIL", ".", "getColumnNumber", "(", ")", ";", "OS", "<<", "Filename", "<<", "':'", "<<", "Line", "<<", "':'", "<<", "Column", "<<", "' '", ";"], "ground_truth": ["}"], "File": "BPFISelLowering15", "Func": "print", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1757, "Length": 68, "Cover_Rate": 0.5354330708661418} {"Template_token": ["", "const", "BasicBlock", "*", "LLVM_BB", "=", "BB", "->", "getBasicBlock", "(", ")", ";", "MachineFunction", "::", "iterator", "I", "=", "++", "BB", "->", "getIterator", "(", ")", ";", "MachineBasicBlock", "*", "ThisMBB", "=", "BB", ";", "MachineFunction", "*", "F", "=", "BB", "->", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "Copy0MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "MachineBasicBlock", "*", "Copy1MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "F", "->", "insert", "(", "I", ",", "Copy0MBB", ")", ";", "F", "->", "insert", "(", "I", ",", "Copy1MBB", ")", ";", "Copy1MBB", "->", "splice", "(", "Copy1MBB", "->", "begin", "(", ")", ",", "BB", ",", "std", "::", "next", "(", "MachineBasicBlock", "::", "iterator", "(", "MI", ")", ")", ",", "BB", "->", "end", "(", ")", ")", ";", "Copy1MBB", "->", "transferSuccessorsAndUpdatePHIs", "(", "BB", ")", ";", "BB", "->", "addSuccessor", "(", "Copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "unsigned", "LHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "int", "CC", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "int", "NewCC", ";", "switch", "(", "CC", ")", "{", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "case", "", ":"], "ground_truth": ["NewCC", "=", "isSelectOp", "?", "", ":", "", ";"], "File": "BPFISelLowering17", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1758, "Length": 256, "Cover_Rate": 0.39813374805598756} {"Template_token": ["", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "!=", "CCValAssign", "::", "Full", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "ArgValue", ")", ";", "InVals", ".", "push_back", "(", "ArgValue", ")", ";", "}", "}", "else", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "InVals", ".", "push_back", "(", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "}"], "ground_truth": ["if", "(", "IsVarArg", "||", "MF", ".", "getFunction", "(", ")", ".", "hasStructRetAttr", "(", ")", ")", "{"], "File": "BPFISelLowering17", "Func": "LowerFormalArguments", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1760, "Length": 127, "Cover_Rate": 0.3038277511961722} {"Template_token": ["", "if", "(", "!", "getHasJmpExt", "(", ")", ")", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";", "SDValue", "TargetCC", "=", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "Op", ".", "getValueType", "(", ")", ",", "", ")", ";", "if", "(", "isa", "<", "ConstantSDNode", ">", "(", "LHS", ".", "getNode", "(", ")", ")", ")", "std", "::", "swap", "(", "LHS", ",", "RHS", ")", ";"], "ground_truth": ["SDValue", "Ops", "[", "]", "=", "{", "LHS", ",", "RHS", ",", "TargetCC", ",", "TrueV", ",", "FalseV", "}", ";"], "File": "BPFISelLowering17", "Func": "LowerSELECT_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1761, "Length": 86, "Cover_Rate": 0.455026455026455} {"Template_token": ["", "", "SimpleTy", "=", "RegVT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ";", "switch", "(", "SimpleTy", ")", "{", "default", ":", "{", "errs", "(", ")", "<<", "", "<<", "RegVT", ".", "getEVTString", "(", ")", "<<", "'\\n'", ";", "llvm_unreachable", "(", "nullptr", ")", ";", "}", "case", "", ":", "case", "", ":", "Register", "VReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "SimpleTy", "==", "", "?", "&", "", ":", "&", "", ")", ";", "RegInfo", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "VReg", ")", ";", "SDValue", "ArgValue", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "VReg", ",", "RegVT", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "!=", "CCValAssign", "::", "Full", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "ArgValue", ")", ";", "InVals", ".", "push_back", "(", "ArgValue", ")", ";", "break", ";", "}", "}", "else", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";"], "ground_truth": ["InVals", ".", "push_back", "(", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";"], "File": "BPFISelLowering19", "Func": "LowerFormalArguments", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1762, "Length": 242, "Cover_Rate": 0.5389755011135857} {"Template_token": ["", "report_fatal_error", "(", "", "+", "Twine", "(", "CC", ")", ")", ";", "}", "Register", "LHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "bool", "isSignedCmp", "=", "(", "CC", "==", "", "||", "CC", "==", "", "||", "CC", "==", "", "||", "CC", "==", "", ")", ";", "if", "(", "is32BitCmp", "&&", "!", "HasJmp32", ")", "LHS", "=", "EmitSubregExt", "(", "MI", ",", "BB", ",", "LHS", ",", "isSignedCmp", ")", ";", "if", "(", "isSelectRROp", ")", "{", "Register", "RHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "is32BitCmp", "&&", "!", "HasJmp32", ")", "RHS", "=", "EmitSubregExt", "(", "MI", ",", "BB", ",", "RHS", ",", "isSignedCmp", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "}", "else", "{", "int64_t", "imm32", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "assert", "(", "isInt", "<", "", ">", "(", "imm32", ")", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addImm", "(", "imm32", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "}", "BB", "=", "Copy0MBB", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "BB", "=", "Copy1MBB", ";"], "ground_truth": ["BuildMI", "(", "*", "BB", ",", "BB", "->", "begin", "(", ")", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "Copy0MBB", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "ThisMBB", ")", ";"], "File": "BPFISelLowering1", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1764, "Length": 277, "Cover_Rate": 0.3708165997322624} {"Template_token": ["", "SET_NEWCC", "(", "SETNE", ",", "JNE", ")", ";", "SET_NEWCC", "(", "SETLT", ",", "JSLT", ")", ";", "SET_NEWCC", "(", "SETULT", ",", "JULT", ")", ";", "SET_NEWCC", "(", "SETLE", ",", "JSLE", ")", ";", "SET_NEWCC", "(", "SETULE", ",", "JULE", ")", ";", "default", ":", "report_fatal_error", "(", "", "+", "Twine", "(", "CC", ")", ")", ";", "}", "Register", "LHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "bool", "isSignedCmp", "=", "(", "CC", "==", "", "||", "CC", "==", "", "||", "CC", "==", "", "||", "CC", "==", "", ")", ";", "if", "(", "is32BitCmp", "&&", "!", "HasJmp32", ")", "LHS", "=", "EmitSubregExt", "(", "MI", ",", "BB", ",", "LHS", ",", "isSignedCmp", ")", ";", "if", "(", "isSelectRROp", ")", "{", "Register", "RHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "is32BitCmp", "&&", "!", "HasJmp32", ")", "RHS", "=", "EmitSubregExt", "(", "MI", ",", "BB", ",", "RHS", ",", "isSignedCmp", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "}", "else", "{", "int64_t", "imm32", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "assert", "(", "isInt", "<", "", ">", "(", "imm32", ")", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addImm", "(", "imm32", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";"], "ground_truth": ["}"], "File": "BPFISelLowering1", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1765, "Length": 229, "Cover_Rate": 0.30655957161981257} {"Template_token": ["", "Register", "PromotedReg2", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "PromotedReg0", ")", ".", "addReg", "(", "Reg", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "PromotedReg1", ")", ".", "addReg", "(", "PromotedReg0", ")", ".", "addImm", "(", "", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "RShiftOp", ")", ",", "PromotedReg2", ")", ".", "addReg", "(", "PromotedReg1", ")", ".", "addImm", "(", "", ")", ";", "return", "PromotedReg2", ";"], "ground_truth": ["}"], "File": "BPFISelLowering1", "Func": "EmitSubregExt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1766, "Length": 87, "Cover_Rate": 0.3493975903614458} {"Template_token": ["", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "MachineRegisterInfo", "&", "RegInfo", "=", "F", "->", "getRegInfo", "(", ")", ";", "if", "(", "!", "isSigned", ")", "{", "Register", "PromotedReg0", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "PromotedReg0", ")", ".", "addReg", "(", "Reg", ")", ";", "return", "PromotedReg0", ";", "}", "Register", "PromotedReg0", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";", "Register", "PromotedReg1", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";", "Register", "PromotedReg2", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "PromotedReg0", ")", ".", "addReg", "(", "Reg", ")", ";"], "ground_truth": ["BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "PromotedReg1", ")", ".", "addReg", "(", "PromotedReg0", ")", ".", "addImm", "(", "", ")", ";"], "File": "BPFISelLowering1", "Func": "EmitSubregExt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1767, "Length": 137, "Cover_Rate": 0.5502008032128514} {"Template_token": ["", "TargetLowering", "::", "ConstraintType", "TargetLowering", "::", "getConstraintType", "(", "StringRef", "Constraint", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "", ")", "{", "switch", "(", "Constraint", "[", "", "]", ")", "{", "default", ":", "break", ";", "case", "'w'", ":", "return", "C_RegisterClass", ";", "}"], "ground_truth": ["}"], "File": "BPFISelLowering1", "Func": "getConstraintType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1768, "Length": 43, "Cover_Rate": 0.8269230769230769} {"Template_token": ["", "case", "'r'", ":", "return", "std", "::", "make_pair", "(", "", ",", "&", "", ")", ";", "case", "'w'", ":", "if", "(", "HasAlu32", ")", "return", "std", "::", "make_pair", "(", "", ",", "&", "", ")", ";", "break", ";", "default", ":", "break", ";"], "ground_truth": ["}"], "File": "BPFISelLowering1", "Func": "getRegForInlineAsmConstraint", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1769, "Length": 39, "Cover_Rate": 0.38613861386138615} {"Template_token": ["", "switch", "(", "AM", ".", "Scale", ")", "{", "case", "", ":", "break", ";", "case", "", ":", "if", "(", "!", "AM", ".", "HasBaseReg", ")", "break", ";", "return", "false", ";", "default", ":"], "ground_truth": ["return", "false", ";"], "File": "BPFISelLowering1", "Func": "isLegalAddressingMode", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1770, "Length": 32, "Cover_Rate": 0.43243243243243246} {"Template_token": ["", "bool", "TargetLowering", "::", "isTruncateFree", "(", "EVT", "VT1", ",", "EVT", "VT2", ")", "const", "{", "if", "(", "!", "VT1", ".", "isInteger", "(", ")", "||", "!", "VT2", ".", "isInteger", "(", ")", ")", "return", "false", ";"], "ground_truth": ["unsigned", "NumBits1", "=", "VT1", ".", "getSizeInBits", "(", ")", ";"], "File": "BPFISelLowering1", "Func": "isTruncateFree", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1771, "Length": 41, "Cover_Rate": 0.7321428571428571} {"Template_token": ["", "bool", "TargetLowering", "::", "isZExtFree", "(", "EVT", "VT1", ",", "EVT", "VT2", ")", "const", "{", "if", "(", "!", "getHasAlu32", "(", ")", "||", "!", "VT1", ".", "isInteger", "(", ")", "||", "!", "VT2", ".", "isInteger", "(", ")", ")", "return", "false", ";", "unsigned", "NumBits1", "=", "VT1", ".", "getSizeInBits", "(", ")", ";", "unsigned", "NumBits2", "=", "VT2", ".", "getSizeInBits", "(", ")", ";", "return", "NumBits1", "==", "", "&&", "NumBits2", "==", "", ";"], "ground_truth": ["}"], "File": "BPFISelLowering1", "Func": "isZExtFree", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1772, "Length": 65, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "!", "getHasAlu32", "(", ")", "||", "!", "VT1", ".", "isInteger", "(", ")", "||", "!", "VT2", ".", "isInteger", "(", ")", ")", "return", "false", ";", "unsigned", "NumBits1", "=", "VT1", ".", "getSizeInBits", "(", ")", ";", "unsigned", "NumBits2", "=", "VT2", ".", "getSizeInBits", "(", ")", ";"], "ground_truth": ["return", "NumBits1", "==", "", "&&", "NumBits2", "==", "", ";"], "File": "BPFISelLowering1", "Func": "isZExtFree", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1773, "Length": 51, "Cover_Rate": 0.7846153846153846} {"Template_token": ["", "SDValue", "LHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "Dest", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "if", "(", "!", "getHasJmpExt", "(", ")", ")", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "Op", ".", "getValueType", "(", ")", ",", "Chain", ",", "LHS", ",", "RHS", ",", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "LHS", ".", "getValueType", "(", ")", ")", ",", "Dest", ")", ";"], "File": "BPFISelLowering1", "Func": "LowerBR_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1774, "Length": 91, "Cover_Rate": 0.65} {"Template_token": ["", "SDValue", "TargetLowering", "::", "LowerBR_CC", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDValue", "Chain", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDValue", "LHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "Dest", "=", "Op", ".", "getOperand", "(", "", ")", ";"], "ground_truth": ["SDLoc", "DL", "(", "Op", ")", ";"], "File": "BPFISelLowering1", "Func": "LowerBR_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1775, "Length": 80, "Cover_Rate": 0.5714285714285714} {"Template_token": ["", "SDValue", "TargetLowering", "::", "LowerFormalArguments", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "", ">", "&", "Ins", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "switch", "(", "CallConv", ")", "{", "default", ":", "report_fatal_error", "(", "", ")", ";", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "break", ";", "}", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "MachineRegisterInfo", "&", "RegInfo", "=", "MF", ".", "getRegInfo", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeFormalArguments", "(", "Ins", ",", "getHasAlu32", "(", ")", "?", "CC_32", ":", "CC_64", ")", ";", "for", "(", "auto", "&", "VA", ":", "ArgLocs", ")", "{", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "{", "EVT", "RegVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "", "SimpleTy", "=", "RegVT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ";", "switch", "(", "SimpleTy", ")", "{", "default", ":", "{", "errs", "(", ")", "<<", "", "<<", "RegVT", ".", "getEVTString", "(", ")", "<<", "'\\n'", ";", "llvm_unreachable", "(", "", ")", ";", "}", "case", "", ":", "case", "", ":", "Register", "VReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "SimpleTy", "==", "", "?", "&", "", ":", "&", "", ")", ";"], "ground_truth": ["RegInfo", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "VReg", ")", ";"], "File": "BPFISelLowering1", "Func": "LowerFormalArguments", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1776, "Length": 232, "Cover_Rate": 0.5167037861915368} {"Template_token": ["", "case", "", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "LowerSELECT_CC", "(", "Op", ",", "DAG", ")", ";", "case", "", ":"], "ground_truth": ["report_fatal_error", "(", "", ")", ";"], "File": "BPFISelLowering1", "Func": "LowerOperation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1777, "Length": 30, "Cover_Rate": 0.37037037037037035} {"Template_token": ["", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "if", "(", "HasAlu32", "||", "Opcode", "==", "", ")", "err_msg", "=", "", ";", "else", "err_msg", "=", "", ";", "break", ";", "}", "SDLoc", "DL", "(", "N", ")", ";"], "ground_truth": ["fail", "(", "DL", ",", "DAG", ",", "err_msg", ")", ";"], "File": "BPFISelLowering1", "Func": "ReplaceNodeResults", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1778, "Length": 47, "Cover_Rate": 0.4051724137931034} {"Template_token": ["", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Custom", ")", ";", "}", "if", "(", "STI", ".", "getHasAlu32", "(", ")", ")", "{", "setOperationAction", "(", "", ",", "", ",", "Promote", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Promote", ")", ";", "}", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "for", "(", "MVT", "VT", ":", "", "(", ")", ")", "{", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "}", "setBooleanContents", "(", "ZeroOrOneBooleanContent", ")", ";", "setMinFunctionAlignment", "(", "", ")", ";"], "ground_truth": ["setPrefFunctionAlignment", "(", "", ")", ";"], "File": "BPFISelLowering20", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1779, "Length": 292, "Cover_Rate": 0.4} {"Template_token": ["", "}", "unsigned", "LHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "bool", "isSignedCmp", "=", "(", "CC", "==", "", "||", "CC", "==", "", "||", "CC", "==", "", "||", "CC", "==", "", ")", ";", "if", "(", "is32BitCmp", ")", "LHS", "=", "EmitSubregExt", "(", "MI", ",", "BB", ",", "LHS", ",", "isSignedCmp", ")", ";", "if", "(", "isSelectRROp", ")", "{", "unsigned", "RHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "is32BitCmp", ")", "RHS", "=", "EmitSubregExt", "(", "MI", ",", "BB", ",", "RHS", ",", "isSignedCmp", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "}", "else", "{", "int64_t", "imm32", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "assert", "(", "isInt", "<", "", ">", "(", "imm32", ")", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addImm", "(", "imm32", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "}", "BB", "=", "Copy0MBB", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "BB", "=", "Copy1MBB", ";", "BuildMI", "(", "*", "BB", ",", "BB", "->", "begin", "(", ")", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "Copy0MBB", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "ThisMBB", ")", ";"], "ground_truth": ["MI", ".", "eraseFromParent", "(", ")", ";"], "File": "BPFISelLowering20", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1780, "Length": 267, "Cover_Rate": 0.33883248730964466} {"Template_token": ["", "SDValue", "FalseV", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "if", "(", "!", "getHasJmpExt", "(", ")", ")", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";", "SDValue", "TargetCC", "=", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "LHS", ".", "getValueType", "(", ")", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "Op", ".", "getValueType", "(", ")", ",", "", ")", ";", "if", "(", "isa", "<", "ConstantSDNode", ">", "(", "LHS", ".", "getNode", "(", ")", ")", ")", "std", "::", "swap", "(", "LHS", ",", "RHS", ")", ";"], "ground_truth": ["SDValue", "Ops", "[", "]", "=", "{", "LHS", ",", "RHS", ",", "TargetCC", ",", "TrueV", ",", "FalseV", "}", ";"], "File": "BPFISelLowering20", "Func": "LowerSELECT_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1781, "Length": 126, "Cover_Rate": 0.6596858638743456} {"Template_token": ["", "Copy1MBB", "->", "splice", "(", "Copy1MBB", "->", "begin", "(", ")", ",", "BB", ",", "std", "::", "next", "(", "MachineBasicBlock", "::", "iterator", "(", "MI", ")", ")", ",", "BB", "->", "end", "(", ")", ")", ";", "Copy1MBB", "->", "transferSuccessorsAndUpdatePHIs", "(", "BB", ")", ";", "BB", "->", "addSuccessor", "(", "Copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "unsigned", "LHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "unsigned", "RHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "int", "CC", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "switch", "(", "CC", ")", "{", "case", "", ":", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "break", ";"], "ground_truth": ["case", "", ":"], "File": "BPFISelLowering23", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1782, "Length": 204, "Cover_Rate": 0.3541666666666667} {"Template_token": ["", "EVT", "getOptimalMemOpType", "(", "uint64_t", "Size", ",", "unsigned", "DstAlign", ",", "unsigned", "SrcAlign", ",", "bool", "IsMemset", ",", "bool", "ZeroMemset", ",", "bool", "MemcpyStrSrc", ",", "const", "AttributeList", "&", "FuncAttributes", ")", "const", "override", "{"], "ground_truth": ["return", "Size", ">=", "", "?", "", ":", "", ";"], "File": "BPFISelLowering23", "Func": "getOptimalMemOpType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1783, "Length": 38, "Cover_Rate": 0.8837209302325582} {"Template_token": ["", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallOperands", "(", "Outs", ",", "CC_64", ")", ";", "unsigned", "NumBytes", "=", "CCInfo", ".", "getNextStackOffset", "(", ")", ";", "if", "(", "Outs", ".", "size", "(", ")", ">", "MaxArgs", ")", "fail", "(", "CLI", ".", "DL", ",", "DAG", ",", "", ",", "Callee", ")", ";", "for", "(", "auto", "&", "Arg", ":", "Outs", ")", "{", "", "Flags", "=", "Arg", ".", "Flags", ";", "if", "(", "!", "Flags", ".", "isByVal", "(", ")", ")", "continue", ";", "fail", "(", "CLI", ".", "DL", ",", "DAG", ",", "", ",", "Callee", ")", ";", "}", "auto", "PtrVT", "=", "getPointerTy", "(", "MF", ".", "getDataLayout", "(", ")", ")", ";", "Chain", "=", "DAG", ".", "getCALLSEQ_START", "(", "Chain", ",", "DAG", ".", "getConstant", "(", "NumBytes", ",", "CLI", ".", "DL", ",", "PtrVT", ",", "true", ")", ",", "CLI", ".", "DL", ")", ";", "SmallVector", "<", "std", "::", "pair", "<", "unsigned", ",", "SDValue", ">", ",", "MaxArgs", ">", "RegsToPass", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "std", "::", "min", "(", "static_cast", "<", "unsigned", ">", "(", "ArgLocs", ".", "size", "(", ")", ")", ",", "MaxArgs", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "SDValue", "Arg", "=", "OutVals", "[", "i", "]", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "}", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "RegsToPass", ".", "push_back", "(", "std", "::", "make_pair", "(", "VA", ".", "getLocReg", "(", ")", ",", "Arg", ")", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";", "}", "SDValue", "InFlag", ";", "for", "(", "auto", "&", "Reg", ":", "RegsToPass", ")", "{", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "CLI", ".", "DL", ",", "Reg", ".", "first", ",", "Reg", ".", "second", ",", "InFlag", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "}", "if", "(", "GlobalAddressSDNode", "*", "G", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", ")", "{"], "ground_truth": ["auto", "GV", "=", "G", "->", "getGlobal", "(", ")", ";"], "File": "BPFISelLowering23", "Func": "LowerCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1784, "Length": 419, "Cover_Rate": 0.4794050343249428} {"Template_token": ["", "computeRegisterProperties", "(", "STI", ".", "getRegisterInfo", "(", ")", ")", ";", "setStackPointerRegisterToSaveRestore", "(", "", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "for", "(", "auto", "VT", ":", "{", "", ",", "", "}", ")", "{", "if", "(", "VT", "==", "", "&&", "!", "STI", ".", "getHasAlu32", "(", ")", ")", "continue", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Custom", ")", ";", "}"], "ground_truth": ["if", "(", "STI", ".", "getHasAlu32", "(", ")", ")", "{"], "File": "BPFISelLowering25", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1785, "Length": 276, "Cover_Rate": 0.3689839572192513} {"Template_token": ["", "std", "::", "string", "Str", ";", "raw_string_ostream", "OS", "(", "Str", ")", ";", "OS", "<<", "Msg", ";", "Val", "->", "print", "(", "OS", ")", ";", "OS", ".", "flush", "(", ")", ";"], "ground_truth": ["DAG", ".", "getContext", "(", ")", "->", "diagnose", "(", "DiagnosticInfoUnsupported", "(", "*", "MF", ".", "getFunction", "(", ")", ",", "Str", ",", "DL", ".", "getDebugLoc", "(", ")", ")", ")", ";"], "File": "BPFISelLowering29", "Func": "fail", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1787, "Length": 55, "Cover_Rate": 0.6395348837209303} {"Template_token": ["", "static", "void", "fail", "(", "SDLoc", "DL", ",", "SelectionDAG", "&", "DAG", ",", "const", "char", "*", "Msg", ",", "SDValue", "Val", ")", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";"], "ground_truth": ["std", "::", "string", "Str", ";"], "File": "BPFISelLowering29", "Func": "fail", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1788, "Length": 35, "Cover_Rate": 0.4069767441860465} {"Template_token": ["", "fail", "(", "CLI", ".", "DL", ",", "DAG", ",", "", ",", "Callee", ")", ";", "}", "auto", "PtrVT", "=", "getPointerTy", "(", "MF", ".", "getDataLayout", "(", ")", ")", ";", "Chain", "=", "DAG", ".", "getCALLSEQ_START", "(", "Chain", ",", "DAG", ".", "getConstant", "(", "NumBytes", ",", "CLI", ".", "DL", ",", "PtrVT", ",", "true", ")", ",", "CLI", ".", "DL", ")", ";", "SmallVector", "<", "std", "::", "pair", "<", "unsigned", ",", "SDValue", ">", ",", "MaxArgs", ">", "RegsToPass", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "std", "::", "min", "(", "static_cast", "<", "unsigned", ">", "(", "ArgLocs", ".", "size", "(", ")", ")", ",", "MaxArgs", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "SDValue", "Arg", "=", "OutVals", "[", "i", "]", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "}", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "RegsToPass", ".", "push_back", "(", "std", "::", "make_pair", "(", "VA", ".", "getLocReg", "(", ")", ",", "Arg", ")", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";", "}", "SDValue", "InFlag", ";", "for", "(", "auto", "&", "Reg", ":", "RegsToPass", ")", "{", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "CLI", ".", "DL", ",", "Reg", ".", "first", ",", "Reg", ".", "second", ",", "InFlag", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFISelLowering29", "Func": "LowerCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1789, "Length": 308, "Cover_Rate": 0.38451935081148564} {"Template_token": ["", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "if", "(", "Ins", ".", "size", "(", ")", ">=", "", ")", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "Ins", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "InVals", ".", "push_back", "(", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "Ins", "[", "i", "]", ".", "VT", ")", ")", ";", "return", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "", ",", "Ins", "[", "", "]", ".", "VT", ",", "InFlag", ")", ".", "getValue", "(", "", ")", ";", "}", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_64", ")", ";", "for", "(", "auto", "&", "Val", ":", "RVLocs", ")", "{", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "Val", ".", "getLocReg", "(", ")", ",", "Val", ".", "getValVT", "(", ")", ",", "InFlag", ")", ".", "getValue", "(", "", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "InVals", ".", "push_back", "(", "Chain", ".", "getValue", "(", "", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFISelLowering29", "Func": "LowerCallResult", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1790, "Length": 197, "Cover_Rate": 0.8008130081300813} {"Template_token": ["", "CCInfo", ".", "AnalyzeFormalArguments", "(", "Ins", ",", "CC_64", ")", ";", "for", "(", "auto", "&", "VA", ":", "ArgLocs", ")", "{", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "{", "EVT", "RegVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "switch", "(", "RegVT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "default", ":", "{", "errs", "(", ")", "<<", "", "<<", "RegVT", ".", "getEVTString", "(", ")", "<<", "'\\n'", ";", "llvm_unreachable", "(", "", ")", ";", "}", "case", "", ":", "unsigned", "VReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "&", "", ")", ";", "RegInfo", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "VReg", ")", ";", "SDValue", "ArgValue", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "VReg", ",", "RegVT", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "!=", "CCValAssign", "::", "Full", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "ArgValue", ")", ";", "InVals", ".", "push_back", "(", "ArgValue", ")", ";", "}", "}", "else", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "InVals", ".", "push_back", "(", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "}", "if", "(", "IsVarArg", "||", "MF", ".", "getFunction", "(", ")", "->", "hasStructRetAttr", "(", ")", ")", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "}"], "ground_truth": ["return", "Chain", ";"], "File": "BPFISelLowering29", "Func": "LowerFormalArguments", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1791, "Length": 291, "Cover_Rate": 0.6995192307692307} {"Template_token": ["", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "", ">", "RetOps", "(", "", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVals", "[", "i", "]", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "RetOps", "[", "", "]", "=", "Chain", ";", "if", "(", "Flag", ".", "getNode", "(", ")", ")", "RetOps", ".", "push_back", "(", "Flag", ")", ";"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "Opc", ",", "DL", ",", "", ",", "RetOps", ")", ";"], "File": "BPFISelLowering29", "Func": "LowerReturn", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1792, "Length": 147, "Cover_Rate": 0.5086505190311419} {"Template_token": ["", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Custom", ")", ";", "}", "if", "(", "STI", ".", "getHasAlu32", "(", ")", ")", "{", "setOperationAction", "(", "", ",", "", ",", "Promote", ")", ";", "setOperationAction", "(", "", ",", "", ",", "STI", ".", "getHasJmp32", "(", ")", "?", "Custom", ":", "Promote", ")", ";", "}", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "for", "(", "MVT", "VT", ":", "", "(", ")", ")", "{", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "}", "setBooleanContents", "(", "ZeroOrOneBooleanContent", ")", ";"], "ground_truth": ["setMinFunctionAlignment", "(", "llvm", "::", "Align", "(", "", ")", ")", ";"], "File": "BPFISelLowering30", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1793, "Length": 228, "Cover_Rate": 0.30319148936170215} {"Template_token": ["", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "PromotedReg0", ")", ".", "addReg", "(", "Reg", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "PromotedReg1", ")", ".", "addReg", "(", "PromotedReg0", ")", ".", "addImm", "(", "", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "RShiftOp", ")", ",", "PromotedReg2", ")", ".", "addReg", "(", "PromotedReg1", ")", ".", "addImm", "(", "", ")", ";"], "ground_truth": ["return", "PromotedReg2", ";"], "File": "BPFISelLowering30", "Func": "EmitSubregExt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1794, "Length": 76, "Cover_Rate": 0.36893203883495146} {"Template_token": ["", "Register", "PromotedReg1", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";", "Register", "PromotedReg2", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "PromotedReg0", ")", ".", "addReg", "(", "Reg", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "PromotedReg1", ")", ".", "addReg", "(", "PromotedReg0", ")", ".", "addImm", "(", "", ")", ";", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "RShiftOp", ")", ",", "PromotedReg2", ")", ".", "addReg", "(", "PromotedReg1", ")", ".", "addImm", "(", "", ")", ";"], "ground_truth": ["return", "PromotedReg2", ";"], "File": "BPFISelLowering30", "Func": "EmitSubregExt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1795, "Length": 96, "Cover_Rate": 0.46601941747572817} {"Template_token": ["", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "for", "(", "auto", "VT", ":", "{", "", ",", "", "}", ")", "{", "if", "(", "VT", "==", "", "&&", "!", "STI", ".", "getHasAlu32", "(", ")", ")", "continue", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Custom", ")", ";", "}", "if", "(", "STI", ".", "getHasAlu32", "(", ")", ")", "{", "setOperationAction", "(", "", ",", "", ",", "Promote", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Promote", ")", ";", "}", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "for", "(", "MVT", "VT", ":", "", "(", ")", ")", "{", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";"], "ground_truth": ["setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";"], "File": "BPFISelLowering33", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1796, "Length": 355, "Cover_Rate": 0.5174927113702624} {"Template_token": ["", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Custom", ")", ";", "}", "if", "(", "STI", ".", "getHasAlu32", "(", ")", ")", "{", "setOperationAction", "(", "", ",", "", ",", "Promote", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Promote", ")", ";", "}", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "for", "(", "MVT", "VT", ":", "", "(", ")", ")", "{", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "}", "setBooleanContents", "(", "ZeroOrOneBooleanContent", ")", ";", "setMinFunctionAlignment", "(", "", ")", ";", "setPrefFunctionAlignment", "(", "", ")", ";", "MaxStoresPerMemset", "=", "MaxStoresPerMemsetOptSize", "=", "", ";", "MaxStoresPerMemcpy", "=", "MaxStoresPerMemcpyOptSize", "=", "", ";", "MaxStoresPerMemmove", "=", "MaxStoresPerMemmoveOptSize", "=", "", ";", "HasAlu32", "=", "STI", ".", "getHasAlu32", "(", ")", ";"], "ground_truth": ["HasJmpExt", "=", "STI", ".", "getHasJmpExt", "(", ")", ";"], "File": "BPFISelLowering33", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1797, "Length": 281, "Cover_Rate": 0.4096209912536443} {"Template_token": ["", "static", "void", "fail", "(", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ",", "const", "char", "*", "Msg", ")", "{", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "DAG", ".", "getContext", "(", ")", "->", "diagnose", "(", "DiagnosticInfoUnsupported", "(", "*", "MF", ".", "getFunction", "(", ")", ",", "Msg", ",", "DL", ".", "getDebugLoc", "(", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFISelLowering35", "Func": "fail", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1799, "Length": 57, "Cover_Rate": 1.0} {"Template_token": ["", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "}", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "RegsToPass", ".", "push_back", "(", "std", "::", "make_pair", "(", "VA", ".", "getLocReg", "(", ")", ",", "Arg", ")", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";", "}", "SDValue", "InFlag", ";", "for", "(", "auto", "&", "Reg", ":", "RegsToPass", ")", "{", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "CLI", ".", "DL", ",", "Reg", ".", "first", ",", "Reg", ".", "second", ",", "InFlag", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "}", "if", "(", "GlobalAddressSDNode", "*", "G", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", ")", "Callee", "=", "DAG", ".", "getTargetGlobalAddress", "(", "G", "->", "getGlobal", "(", ")", ",", "CLI", ".", "DL", ",", "getPointerTy", "(", ")", ",", "G", "->", "getOffset", "(", ")", ",", "", ")", ";", "else", "if", "(", "ExternalSymbolSDNode", "*", "E", "=", "dyn_cast", "<", "ExternalSymbolSDNode", ">", "(", "Callee", ")", ")", "Callee", "=", "DAG", ".", "getTargetExternalSymbol", "(", "E", "->", "getSymbol", "(", ")", ",", "getPointerTy", "(", ")", ",", "", ")", ";", "SDVTList", "NodeTys", "=", "DAG", ".", "getVTList", "(", "", ",", "", ")", ";", "SmallVector", "<", "SDValue", ",", "", ">", "Ops", ";", "Ops", ".", "push_back", "(", "Chain", ")", ";", "Ops", ".", "push_back", "(", "Callee", ")", ";", "for", "(", "auto", "&", "Reg", ":", "RegsToPass", ")", "Ops", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "Reg", ".", "first", ",", "Reg", ".", "second", ".", "getValueType", "(", ")", ")", ")", ";"], "ground_truth": ["if", "(", "InFlag", ".", "getNode", "(", ")", ")", "Ops", ".", "push_back", "(", "InFlag", ")", ";"], "File": "BPFISelLowering36", "Func": "LowerCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1800, "Length": 342, "Cover_Rate": 0.41605839416058393} {"Template_token": ["", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Expand", ")", ";", "setMinFunctionAlignment", "(", "", ")", ";", "setPrefFunctionAlignment", "(", "", ")", ";"], "ground_truth": ["MaxStoresPerMemcpy", "=", "", ";"], "File": "BPFISelLowering38", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1801, "Length": 320, "Cover_Rate": 0.4915514592933948} {"Template_token": ["", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "", ",", "Expand", ")", ";"], "ground_truth": ["setMinFunctionAlignment", "(", "", ")", ";"], "File": "BPFISelLowering38", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1802, "Length": 275, "Cover_Rate": 0.42242703533026116} {"Template_token": ["", "MachineFunction", "::", "iterator", "I", "=", "BB", ";", "++", "I", ";", "MachineBasicBlock", "*", "thisMBB", "=", "BB", ";", "MachineFunction", "*", "F", "=", "BB", "->", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "copy0MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "MachineBasicBlock", "*", "copy1MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "F", "->", "insert", "(", "I", ",", "copy0MBB", ")", ";", "F", "->", "insert", "(", "I", ",", "copy1MBB", ")", ";", "copy1MBB", "->", "splice", "(", "copy1MBB", "->", "begin", "(", ")", ",", "BB", ",", "llvm", "::", "next", "(", "MachineBasicBlock", "::", "iterator", "(", "MI", ")", ")", ",", "BB", "->", "end", "(", ")", ")", ";", "copy1MBB", "->", "transferSuccessorsAndUpdatePHIs", "(", "BB", ")", ";", "BB", "->", "addSuccessor", "(", "copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "copy1MBB", ")", ";", "unsigned", "LHS", "=", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "unsigned", "RHS", "=", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "int", "CC", "=", "MI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "switch", "(", "CC", ")", "{", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "default", ":"], "ground_truth": ["report_fatal_error", "(", "", "+", "Twine", "(", "CC", ")", ")", ";"], "File": "BPFISelLowering38", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1803, "Length": 381, "Cover_Rate": 0.6649214659685864} {"Template_token": ["", "switch", "(", "CC", ")", "{", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "case", "", ":", "BuildMI", "(", "BB", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "copy1MBB", ")", ";", "break", ";", "default", ":", "report_fatal_error", "(", "", "+", "Twine", "(", "CC", ")", ")", ";", "}", "BB", "=", "copy0MBB", ";", "BB", "->", "addSuccessor", "(", "copy1MBB", ")", ";", "BB", "=", "copy1MBB", ";", "BuildMI", "(", "*", "BB", ",", "BB", "->", "begin", "(", ")", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ",", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "copy0MBB", ")", ".", "addReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "thisMBB", ")", ";"], "ground_truth": ["MI", "->", "eraseFromParent", "(", ")", ";"], "File": "BPFISelLowering38", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1804, "Length": 313, "Cover_Rate": 0.5462478184991274} {"Template_token": ["", "default", ":", "return", "NULL", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";"], "ground_truth": ["}"], "File": "BPFISelLowering38", "Func": "getTargetNodeName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1805, "Length": 42, "Cover_Rate": 0.5833333333333334} {"Template_token": ["", "DebugLoc", "dl", "=", "Op", ".", "getDebugLoc", "(", ")", ";", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "Op", ".", "getValueType", "(", ")", ",", "Chain", ",", "LHS", ",", "RHS", ",", "DAG", ".", "getConstant", "(", "CC", ",", "", ")", ",", "Dest", ")", ";"], "File": "BPFISelLowering38", "Func": "LowerBR_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1806, "Length": 51, "Cover_Rate": 0.3695652173913043} {"Template_token": ["", "SDValue", "Chain", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDValue", "LHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "Dest", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDLoc", "dl", "(", "Op", ")", ";", "DebugLoc", "dl", "=", "Op", ".", "getDebugLoc", "(", ")", ";"], "ground_truth": ["NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";"], "File": "BPFISelLowering38", "Func": "LowerBR_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1807, "Length": 84, "Cover_Rate": 0.6086956521739131} {"Template_token": ["", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "SDValue", "Arg", "=", "OutVals", "[", "i", "]", ";", "", "Flags", "=", "Outs", "[", "i", "]", ".", "Flags", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "}", "if", "(", "Flags", ".", "isByVal", "(", ")", ")", "Arg", "=", "ByValArgs", "[", "j", "++", "]", ";", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "{", "RegsToPass", ".", "push_back", "(", "std", "::", "make_pair", "(", "VA", ".", "getLocReg", "(", ")", ",", "Arg", ")", ")", ";", "}", "else", "{", "llvm_unreachable", "(", "", ")", ";", "}", "}", "SDValue", "InFlag", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "RegsToPass", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "CLI", ".", "DL", ",", "RegsToPass", "[", "i", "]", ".", "first", ",", "RegsToPass", "[", "i", "]", ".", "second", ",", "InFlag", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "}", "if", "(", "GlobalAddressSDNode", "*", "G", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", ")", "{", "Callee", "=", "DAG", ".", "getTargetGlobalAddress", "(", "G", "->", "getGlobal", "(", ")", ",", "CLI", ".", "DL", ",", "getPointerTy", "(", ")", ",", "G", "->", "getOffset", "(", ")", ",", "", ")", ";", "}", "else", "if", "(", "ExternalSymbolSDNode", "*", "E", "=", "dyn_cast", "<", "ExternalSymbolSDNode", ">", "(", "Callee", ")", ")", "{", "Callee", "=", "DAG", ".", "getTargetExternalSymbol", "(", "E", "->", "getSymbol", "(", ")", ",", "getPointerTy", "(", ")", ",", "", ")", ";", "}", "SDVTList", "NodeTys", "=", "DAG", ".", "getVTList", "(", "", ",", "", ")", ";"], "ground_truth": ["SmallVector", "<", "SDValue", ",", "", ">", "Ops", ";"], "File": "BPFISelLowering38", "Func": "LowerCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1808, "Length": 354, "Cover_Rate": 0.3877327491785323} {"Template_token": ["", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_64", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ",", "RVLocs", "[", "i", "]", ".", "getValVT", "(", ")", ",", "InFlag", ")", ".", "getValue", "(", "", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "InVals", ".", "push_back", "(", "Chain", ".", "getValue", "(", "", ")", ")", ";", "}"], "ground_truth": ["return", "Chain", ";"], "File": "BPFISelLowering38", "Func": "LowerCallResult", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1809, "Length": 116, "Cover_Rate": 0.6705202312138728} {"Template_token": ["", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "RVLocs", "[", "i", "]", ".", "getLocReg", "(", ")", ",", "RVLocs", "[", "i", "]", ".", "getValVT", "(", ")", ",", "InFlag", ")", ".", "getValue", "(", "", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "InVals", ".", "push_back", "(", "Chain", ".", "getValue", "(", "", ")", ")", ";", "}", "return", "Chain", ";"], "ground_truth": ["}"], "File": "BPFISelLowering38", "Func": "LowerCallResult", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1810, "Length": 81, "Cover_Rate": 0.4682080924855491} {"Template_token": ["", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeFormalArguments", "(", "Ins", ",", "CC_64", ")", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "ArgLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "{", "EVT", "RegVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "switch", "(", "RegVT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "default", ":", "{", "errs", "(", ")", "<<", "", "<<", "RegVT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", "<<", "", ";", "llvm_unreachable", "(", "", ")", ";", "}", "case", "", ":", "unsigned", "VReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "&", "", ")", ";", "RegInfo", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "VReg", ")", ";", "SDValue", "ArgValue", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "VReg", ",", "RegVT", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "!=", "CCValAssign", "::", "Full", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "ArgValue", ")", ";", "InVals", ".", "push_back", "(", "ArgValue", ")", ";", "}", "}", "else", "{"], "ground_truth": ["assert", "(", "VA", ".", "isMemLoc", "(", ")", ")", ";"], "File": "BPFISelLowering38", "Func": "LowerFormalArguments", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1811, "Length": 293, "Cover_Rate": 0.5848303393213573} {"Template_token": ["", "SDLoc", "dl", "(", "Op", ")", ";", "DebugLoc", "dl", "=", "Op", ".", "getDebugLoc", "(", ")", ";", "const", "GlobalValue", "*", "GV", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "Op", ")", "->", "getGlobal", "(", ")", ";", "SDValue", "GA", "=", "DAG", ".", "getTargetGlobalAddress", "(", "GV", ",", "dl", ",", "", ")", ";"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "", ",", "GA", ")", ";"], "File": "BPFISelLowering38", "Func": "LowerGlobalAddress", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1812, "Length": 60, "Cover_Rate": 0.7407407407407407} {"Template_token": ["", "case", "", ":", "return", "LowerBR_CC", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "LowerSELECT_CC", "(", "Op", ",", "DAG", ")", ";"], "ground_truth": ["default", ":"], "File": "BPFISelLowering38", "Func": "LowerOperation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1813, "Length": 35, "Cover_Rate": 0.49295774647887325} {"Template_token": ["", "case", "", ":", "return", "LowerBR_CC", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "", ":", "return", "LowerSELECT_CC", "(", "Op", ",", "DAG", ")", ";", "default", ":", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BPFISelLowering38", "Func": "LowerOperation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1814, "Length": 41, "Cover_Rate": 0.5774647887323944} {"Template_token": ["", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "", ">", "RetOps", "(", "", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVals", "[", "i", "]", ",", "Flag", ")", ";", "Flag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "if", "(", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", "->", "hasStructRetAttr", "(", ")", ")", "{", "errs", "(", ")", "<<", "", "<<", "DAG", ".", "getMachineFunction", "(", ")", ".", "getName", "(", ")", "<<", "", ";", "DAG", ".", "getMachineFunction", "(", ")", ".", "getFunction", "(", ")", "->", "getFunctionType", "(", ")", "->", "dump", "(", ")", ";", "errs", "(", ")", "<<", "", ";"], "ground_truth": ["report_fatal_error", "(", "", ")", ";"], "File": "BPFISelLowering38", "Func": "LowerReturn", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1815, "Length": 175, "Cover_Rate": 0.40415704387990764} {"Template_token": ["", "SDValue", "TrueV", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "FalseV", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDLoc", "dl", "(", "Op", ")", ";", "DebugLoc", "dl", "=", "Op", ".", "getDebugLoc", "(", ")", ";", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";", "SDValue", "TargetCC", "=", "DAG", ".", "getConstant", "(", "CC", ",", "", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "Op", ".", "getValueType", "(", ")", ",", "", ")", ";", "SmallVector", "<", "SDValue", ",", "", ">", "Ops", ";"], "ground_truth": ["Ops", ".", "push_back", "(", "LHS", ")", ";"], "File": "BPFISelLowering38", "Func": "LowerSELECT_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1816, "Length": 107, "Cover_Rate": 0.4692982456140351} {"Template_token": ["", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "Op", ".", "getValueType", "(", ")", ",", "", ")", ";", "SmallVector", "<", "SDValue", ",", "", ">", "Ops", ";", "Ops", ".", "push_back", "(", "LHS", ")", ";", "Ops", ".", "push_back", "(", "RHS", ")", ";", "Ops", ".", "push_back", "(", "TargetCC", ")", ";", "Ops", ".", "push_back", "(", "TrueV", ")", ";", "Ops", ".", "push_back", "(", "FalseV", ")", ";", "SDValue", "sel", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "VTs", ",", "&", "Ops", "[", "", "]", ",", "Ops", ".", "size", "(", ")", ")", ";"], "ground_truth": ["DEBUG", "(", "errs", "(", ")", "<<", "", ";", "sel", ".", "dumpr", "(", ")", ";", "errs", "(", ")", "<<", "", ")", ";"], "File": "BPFISelLowering38", "Func": "LowerSELECT_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1817, "Length": 106, "Cover_Rate": 0.4649122807017544} {"Template_token": ["", "std", "::", "swap", "(", "LHS", ",", "RHS", ")", ";", "return", "true", ";", "case", "", ":", "CC", "=", "", ";", "std", "::", "swap", "(", "LHS", ",", "RHS", ")", ";", "return", "true", ";", "case", "", ":", "CC", "=", "", ";"], "ground_truth": ["std", "::", "swap", "(", "LHS", ",", "RHS", ")", ";"], "File": "BPFISelLowering38", "Func": "NegateCC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1818, "Length": 47, "Cover_Rate": 0.3821138211382114} {"Template_token": ["", "return", "true", ";", "case", "", ":", "CC", "=", "", ";", "std", "::", "swap", "(", "LHS", ",", "RHS", ")", ";", "return", "true", ";", "case", "", ":", "CC", "=", "", ";", "std", "::", "swap", "(", "LHS", ",", "RHS", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "BPFISelLowering38", "Func": "NegateCC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1819, "Length": 41, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "case", "", ":", "NewCC", "=", "isSelectOp", "?", "", ":", "", ";", "break", ";", "default", ":", "report_fatal_error", "(", "", "+", "Twine", "(", "CC", ")", ")", ";", "}", "if", "(", "isSelectOp", ")", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "else", "BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addImm", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";", "BB", "=", "Copy0MBB", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "BB", "=", "Copy1MBB", ";"], "ground_truth": ["BuildMI", "(", "*", "BB", ",", "BB", "->", "begin", "(", ")", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "Copy0MBB", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "ThisMBB", ")", ";"], "File": "BPFISelLowering40", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1820, "Length": 192, "Cover_Rate": 0.34972677595628415} {"Template_token": ["", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "for", "(", "auto", "VT", ":", "{", "", ",", "", "}", ")", "{", "if", "(", "VT", "==", "", "&&", "!", "STI", ".", "getHasAlu32", "(", ")", ")", "continue", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Custom", ")", ";", "}", "if", "(", "STI", ".", "getHasAlu32", "(", ")", ")", "{", "setOperationAction", "(", "", ",", "", ",", "Promote", ")", ";", "setOperationAction", "(", "", ",", "", ",", "STI", ".", "getHasJmp32", "(", ")", "?", "Custom", ":", "Promote", ")", ";", "}", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";"], "ground_truth": ["setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";"], "File": "BPFISelLowering42", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1821, "Length": 307, "Cover_Rate": 0.4137466307277628} {"Template_token": ["", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "if", "(", "Ins", ".", "size", "(", ")", ">=", "", ")", "{"], "ground_truth": ["fail", "(", "DL", ",", "DAG", ",", "", ")", ";"], "File": "BPFISelLowering6", "Func": "LowerCallResult", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1823, "Length": 57, "Cover_Rate": 0.3220338983050847} {"Template_token": ["", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "Val", ".", "getLocReg", "(", ")", ",", "Val", ".", "getValVT", "(", ")", ",", "InFlag", ")", ".", "getValue", "(", "", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "InVals", ".", "push_back", "(", "Chain", ".", "getValue", "(", "", ")", ")", ";", "}", "return", "Chain", ";"], "ground_truth": ["}"], "File": "BPFISelLowering6", "Func": "LowerCallResult", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1824, "Length": 56, "Cover_Rate": 0.3163841807909605} {"Template_token": ["", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "{", "EVT", "RegVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "switch", "(", "RegVT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ")", "{", "default", ":", "{", "errs", "(", ")", "<<", "", "<<", "RegVT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", "<<", "'\\n'", ";", "llvm_unreachable", "(", "", ")", ";", "}", "case", "", ":", "unsigned", "VReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "&", "", ")", ";", "RegInfo", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "VReg", ")", ";", "SDValue", "ArgValue", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "VReg", ",", "RegVT", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "!=", "CCValAssign", "::", "Full", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "ArgValue", ")", ";", "InVals", ".", "push_back", "(", "ArgValue", ")", ";", "}", "}", "else", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "}", "}", "if", "(", "IsVarArg", "||", "MF", ".", "getFunction", "(", ")", "->", "hasStructRetAttr", "(", ")", ")", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "}", "return", "Chain", ";"], "ground_truth": ["}"], "File": "BPFISelLowering6", "Func": "LowerFormalArguments", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1825, "Length": 256, "Cover_Rate": 0.6432160804020101} {"Template_token": ["", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "}", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "RetCC_64", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "", ">", "RetOps", "(", "", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "assert", "(", "VA", ".", "isRegLoc", "(", ")", "&&", "", ")", ";", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "OutVals", "[", "i", "]", ",", "Flag", ")", ";"], "ground_truth": ["Flag", "=", "Chain", ".", "getValue", "(", "", ")", ";"], "File": "BPFISelLowering6", "Func": "LowerReturn", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1826, "Length": 107, "Cover_Rate": 0.39194139194139194} {"Template_token": ["", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "VT", ",", "Custom", ")", ";", "}", "if", "(", "STI", ".", "getHasAlu32", "(", ")", ")", "{", "setOperationAction", "(", "", ",", "", ",", "Promote", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Promote", ")", ";", "}", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Custom", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "setOperationAction", "(", "", ",", "", ",", "Expand", ")", ";", "for", "(", "MVT", "VT", ":", "", "(", ")", ")", "{", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Promote", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "setLoadExtAction", "(", "", ",", "VT", ",", "", ",", "Expand", ")", ";", "}", "setBooleanContents", "(", "ZeroOrOneBooleanContent", ")", ";", "setMinFunctionAlignment", "(", "", ")", ";", "setPrefFunctionAlignment", "(", "", ")", ";", "if", "(", "ExpandMemcpyInOrder", ")", "{", "MaxStoresPerMemset", "=", "MaxStoresPerMemsetOptSize", "=", "", ";", "MaxStoresPerMemcpy", "=", "MaxStoresPerMemcpyOptSize", "=", "", ";", "MaxStoresPerMemmove", "=", "MaxStoresPerMemmoveOptSize", "=", "", ";", "}", "else", "{", "unsigned", "CommonMaxStores", "=", "STI", ".", "getSelectionDAGInfo", "(", ")", "->", "getCommonMaxStoresPerMemFunc", "(", ")", ";", "MaxStoresPerMemset", "=", "MaxStoresPerMemsetOptSize", "=", "CommonMaxStores", ";", "MaxStoresPerMemcpy", "=", "MaxStoresPerMemcpyOptSize", "=", "CommonMaxStores", ";", "MaxStoresPerMemmove", "=", "MaxStoresPerMemmoveOptSize", "=", "CommonMaxStores", ";"], "ground_truth": ["}"], "File": "BPFISelLowering", "Func": "BPFTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1827, "Length": 278, "Cover_Rate": 0.38292011019283745} {"Template_token": ["", "Copy1MBB", "->", "splice", "(", "Copy1MBB", "->", "begin", "(", ")", ",", "BB", ",", "std", "::", "next", "(", "MachineBasicBlock", "::", "iterator", "(", "MI", ")", ")", ",", "BB", "->", "end", "(", ")", ")", ";", "Copy1MBB", "->", "transferSuccessorsAndUpdatePHIs", "(", "BB", ")", ";", "BB", "->", "addSuccessor", "(", "Copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "int", "CC", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "int", "NewCC", ";", "switch", "(", "CC", ")", "{", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "default", ":", "report_fatal_error", "(", "", "+", "Twine", "(", "CC", ")", ")", ";", "}", "unsigned", "LHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "bool", "isSignedCmp", "=", "(", "CC", "==", "", "||", "CC", "==", "", "||", "CC", "==", "", "||", "CC", "==", "", ")", ";", "if", "(", "is32BitCmp", ")", "LHS", "=", "EmitSubregExt", "(", "MI", ",", "BB", ",", "LHS", ",", "isSignedCmp", ")", ";", "if", "(", "isSelectRROp", ")", "{", "unsigned", "RHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "is32BitCmp", ")", "RHS", "=", "EmitSubregExt", "(", "MI", ",", "BB", ",", "RHS", ",", "isSignedCmp", ")", ";"], "ground_truth": ["BuildMI", "(", "BB", ",", "DL", ",", "TII", ".", "get", "(", "NewCC", ")", ")", ".", "addReg", "(", "LHS", ")", ".", "addReg", "(", "RHS", ")", ".", "addMBB", "(", "Copy1MBB", ")", ";"], "File": "BPFISelLowering", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1828, "Length": 334, "Cover_Rate": 0.4118372379778052} {"Template_token": ["", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "bool", "isSelectRROp", "=", "(", "Opc", "==", "", "||", "Opc", "==", "", "||", "Opc", "==", "", "||", "Opc", "==", "", ")", ";", "bool", "isMemcpyOp", "=", "Opc", "==", "", ";", "bool", "isSelectRIOp", "=", "(", "Opc", "==", "", "||", "Opc", "==", "", "||", "Opc", "==", "", "||", "Opc", "==", "", ")", ";", "assert", "(", "(", "isSelectRROp", "||", "isSelectRIOp", "||", "isMemcpyOp", ")", "&&", "", ")", ";", "if", "(", "isMemcpyOp", ")", "return", "EmitInstrWithCustomInserterMemcpy", "(", "MI", ",", "BB", ")", ";", "bool", "is32BitCmp", "=", "(", "Opc", "==", "", "||", "Opc", "==", "", "||", "Opc", "==", "", "||", "Opc", "==", "", ")", ";", "const", "BasicBlock", "*", "LLVM_BB", "=", "BB", "->", "getBasicBlock", "(", ")", ";", "MachineFunction", "::", "iterator", "I", "=", "++", "BB", "->", "getIterator", "(", ")", ";", "MachineBasicBlock", "*", "ThisMBB", "=", "BB", ";", "MachineFunction", "*", "F", "=", "BB", "->", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "Copy0MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "MachineBasicBlock", "*", "Copy1MBB", "=", "F", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "F", "->", "insert", "(", "I", ",", "Copy0MBB", ")", ";", "F", "->", "insert", "(", "I", ",", "Copy1MBB", ")", ";", "Copy1MBB", "->", "splice", "(", "Copy1MBB", "->", "begin", "(", ")", ",", "BB", ",", "std", "::", "next", "(", "MachineBasicBlock", "::", "iterator", "(", "MI", ")", ")", ",", "BB", "->", "end", "(", ")", ")", ";", "Copy1MBB", "->", "transferSuccessorsAndUpdatePHIs", "(", "BB", ")", ";", "BB", "->", "addSuccessor", "(", "Copy0MBB", ")", ";", "BB", "->", "addSuccessor", "(", "Copy1MBB", ")", ";", "int", "CC", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "int", "NewCC", ";", "switch", "(", "CC", ")", "{", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "case", "", ":", "NewCC", "=", "isSelectRROp", "?", "", ":", "", ";", "break", ";", "default", ":", "report_fatal_error", "(", "", "+", "Twine", "(", "CC", ")", ")", ";", "}", "unsigned", "LHS", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";"], "ground_truth": ["bool", "isSignedCmp", "=", "(", "CC", "==", "", "||", "CC", "==", "", "||", "CC", "==", "", "||", "CC", "==", "", ")", ";"], "File": "BPFISelLowering", "Func": "EmitInstrWithCustomInserter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1829, "Length": 444, "Cover_Rate": 0.5474722564734895} {"Template_token": ["", "unsigned", "ScratchReg", ";", "ScratchReg", "=", "MRI", ".", "createVirtualRegister", "(", "&", "", ")", ";"], "ground_truth": ["MIB", ".", "addReg", "(", "ScratchReg", ",", "RegState", "::", "Define", "|", "RegState", "::", "Dead", "|", "RegState", "::", "EarlyClobber", ")", ";"], "File": "BPFISelLowering", "Func": "EmitInstrWithCustomInserterMemcpy", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1830, "Length": 32, "Cover_Rate": 0.367816091954023} {"Template_token": ["", "const", "TargetRegisterClass", "*", "RC", "=", "getRegClassFor", "(", "", ")", ";", "int", "RShiftOp", "=", "isSigned", "?", "", ":", "", ";", "MachineFunction", "*", "F", "=", "BB", "->", "getParent", "(", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "MachineRegisterInfo", "&", "RegInfo", "=", "F", "->", "getRegInfo", "(", ")", ";", "unsigned", "PromotedReg0", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";", "unsigned", "PromotedReg1", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";"], "ground_truth": ["unsigned", "PromotedReg2", "=", "RegInfo", ".", "createVirtualRegister", "(", "RC", ")", ";"], "File": "BPFISelLowering", "Func": "EmitSubregExt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1831, "Length": 78, "Cover_Rate": 0.3786407766990291} {"Template_token": ["", "std", "::", "string", "Str", ";", "raw_string_ostream", "OS", "(", "Str", ")", ";", "OS", "<<", "Msg", ";", "Val", "->", "print", "(", "OS", ")", ";"], "ground_truth": ["OS", ".", "flush", "(", ")", ";"], "File": "BPFISelLowering", "Func": "fail", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1832, "Length": 28, "Cover_Rate": 0.3218390804597701} {"Template_token": ["", "return", "HasAlu32", ";"], "ground_truth": ["}"], "File": "BPFISelLowering", "Func": "getHasAlu32", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1834, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "bool", "getHasJmpExt", "(", ")", "const", "{"], "ground_truth": ["return", "HasJmpExt", ";"], "File": "BPFISelLowering", "Func": "getHasJmpExt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1835, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "case", "'r'", ":", "return", "std", "::", "make_pair", "(", "", ",", "&", "", ")", ";", "default", ":", "break", ";", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "TRI", ",", "Constraint", ",", "VT", ")", ";"], "ground_truth": ["}"], "File": "BPFISelLowering", "Func": "getRegForInlineAsmConstraint", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1837, "Length": 32, "Cover_Rate": 0.4050632911392405} {"Template_token": ["", "return", "(", "getHasAlu32", "(", ")", "&&", "VT", "==", "", ")", "?", "", ":", "", ";"], "ground_truth": ["}"], "File": "BPFISelLowering", "Func": "getScalarShiftAmountTy", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1838, "Length": 16, "Cover_Rate": 0.43243243243243246} {"Template_token": ["", "MVT", "TargetLowering", "::", "getScalarShiftAmountTy", "(", "const", "DataLayout", "&", "DL", ",", "EVT", "VT", ")", "const", "{"], "ground_truth": ["return", "(", "getHasAlu32", "(", ")", "&&", "VT", "==", "", ")", "?", "", ":", "", ";"], "File": "BPFISelLowering", "Func": "getScalarShiftAmountTy", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1839, "Length": 30, "Cover_Rate": 0.8108108108108109} {"Template_token": ["", "break", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";"], "ground_truth": ["case", "", ":"], "File": "BPFISelLowering", "Func": "getTargetNodeName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1841, "Length": 35, "Cover_Rate": 0.4268292682926829} {"Template_token": ["", "bool", "TargetLowering", "::", "isOffsetFoldingLegal", "(", "const", "GlobalAddressSDNode", "*", "GA", ")", "const", "{"], "ground_truth": ["return", "false", ";"], "File": "BPFISelLowering", "Func": "isOffsetFoldingLegal", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1842, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "SDValue", "Chain", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDValue", "LHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "Dest", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "if", "(", "!", "getHasJmpExt", "(", ")", ")", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "Op", ".", "getValueType", "(", ")", ",", "Chain", ",", "LHS", ",", "RHS", ",", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "", ")", ",", "Dest", ")", ";"], "File": "BPFISelLowering", "Func": "LowerBR_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1843, "Length": 117, "Cover_Rate": 0.8478260869565217} {"Template_token": ["", "SDValue", "TargetLowering", "::", "LowerBR_CC", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SDValue", "Chain", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDValue", "LHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";"], "ground_truth": ["SDValue", "Dest", "=", "Op", ".", "getOperand", "(", "", ")", ";"], "File": "BPFISelLowering", "Func": "LowerBR_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1844, "Length": 74, "Cover_Rate": 0.5362318840579711} {"Template_token": ["", "switch", "(", "CallConv", ")", "{", "default", ":", "report_fatal_error", "(", "", ")", ";", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "C", ":", "break", ";", "}", "SmallVector", "<", "CCValAssign", ",", "", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallOperands", "(", "Outs", ",", "getHasAlu32", "(", ")", "?", "CC_32", ":", "CC_64", ")", ";", "unsigned", "NumBytes", "=", "CCInfo", ".", "getNextStackOffset", "(", ")", ";", "if", "(", "Outs", ".", "size", "(", ")", ">", "MaxArgs", ")", "fail", "(", "CLI", ".", "DL", ",", "DAG", ",", "", ",", "Callee", ")", ";", "for", "(", "auto", "&", "Arg", ":", "Outs", ")", "{", "", "Flags", "=", "Arg", ".", "Flags", ";", "if", "(", "!", "Flags", ".", "isByVal", "(", ")", ")", "continue", ";", "fail", "(", "CLI", ".", "DL", ",", "DAG", ",", "", ",", "Callee", ")", ";", "}", "auto", "PtrVT", "=", "getPointerTy", "(", "MF", ".", "getDataLayout", "(", ")", ")", ";", "Chain", "=", "DAG", ".", "getCALLSEQ_START", "(", "Chain", ",", "NumBytes", ",", "", ",", "CLI", ".", "DL", ")", ";", "SmallVector", "<", "std", "::", "pair", "<", "unsigned", ",", "SDValue", ">", ",", "MaxArgs", ">", "RegsToPass", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "std", "::", "min", "(", "static_cast", "<", "unsigned", ">", "(", "ArgLocs", ".", "size", "(", ")", ")", ",", "MaxArgs", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "ArgLocs", "[", "i", "]", ";", "SDValue", "Arg", "=", "OutVals", "[", "i", "]", ";", "switch", "(", "VA", ".", "getLocInfo", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "case", "CCValAssign", "::", "Full", ":", "break", ";", "case", "CCValAssign", "::", "SExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "ZExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "case", "CCValAssign", "::", "AExt", ":", "Arg", "=", "DAG", ".", "getNode", "(", "", ",", "CLI", ".", "DL", ",", "VA", ".", "getLocVT", "(", ")", ",", "Arg", ")", ";", "break", ";", "}", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "RegsToPass", ".", "push_back", "(", "std", "::", "make_pair", "(", "VA", ".", "getLocReg", "(", ")", ",", "Arg", ")", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";", "}", "SDValue", "InFlag", ";", "for", "(", "auto", "&", "Reg", ":", "RegsToPass", ")", "{", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "CLI", ".", "DL", ",", "Reg", ".", "first", ",", "Reg", ".", "second", ",", "InFlag", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "}"], "ground_truth": ["if", "(", "GlobalAddressSDNode", "*", "G", "=", "dyn_cast", "<", "GlobalAddressSDNode", ">", "(", "Callee", ")", ")", "{"], "File": "BPFISelLowering", "Func": "LowerCall", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1845, "Length": 438, "Cover_Rate": 0.5309090909090909} {"Template_token": ["", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "Ins", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "InVals", ".", "push_back", "(", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "Ins", "[", "i", "]", ".", "VT", ")", ")", ";", "return", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "", ",", "Ins", "[", "", "]", ".", "VT", ",", "InFlag", ")", ".", "getValue", "(", "", ")", ";", "}", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "getHasAlu32", "(", ")", "?", "RetCC_32", ":", "RetCC_64", ")", ";", "for", "(", "auto", "&", "Val", ":", "RVLocs", ")", "{", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "Val", ".", "getLocReg", "(", ")", ",", "Val", ".", "getValVT", "(", ")", ",", "InFlag", ")", ".", "getValue", "(", "", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "InVals", ".", "push_back", "(", "Chain", ".", "getValue", "(", "", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFISelLowering", "Func": "LowerCallResult", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1846, "Length": 146, "Cover_Rate": 0.5748031496062992} {"Template_token": ["", "MachineRegisterInfo", "&", "RegInfo", "=", "MF", ".", "getRegInfo", "(", ")", ";", "SmallVector", "<", "CCValAssign", ",", "", ">", "ArgLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "ArgLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeFormalArguments", "(", "Ins", ",", "getHasAlu32", "(", ")", "?", "CC_32", ":", "CC_64", ")", ";", "for", "(", "auto", "&", "VA", ":", "ArgLocs", ")", "{", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "{", "EVT", "RegVT", "=", "VA", ".", "getLocVT", "(", ")", ";", "", "SimpleTy", "=", "RegVT", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ";", "switch", "(", "SimpleTy", ")", "{", "default", ":", "{", "errs", "(", ")", "<<", "", "<<", "RegVT", ".", "getEVTString", "(", ")", "<<", "'\\n'", ";", "llvm_unreachable", "(", "", ")", ";", "}", "case", "", ":", "case", "", ":", "unsigned", "VReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "SimpleTy", "==", "", "?", "&", "", ":", "&", "", ")", ";", "RegInfo", ".", "addLiveIn", "(", "VA", ".", "getLocReg", "(", ")", ",", "VReg", ")", ";", "SDValue", "ArgValue", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "DL", ",", "VReg", ",", "RegVT", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "RegVT", ",", "ArgValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "!=", "CCValAssign", "::", "Full", ")", "ArgValue", "=", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VA", ".", "getValVT", "(", ")", ",", "ArgValue", ")", ";", "InVals", ".", "push_back", "(", "ArgValue", ")", ";", "break", ";", "}", "}", "else", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "InVals", ".", "push_back", "(", "DAG", ".", "getConstant", "(", "", ",", "DL", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "}", "if", "(", "IsVarArg", "||", "MF", ".", "getFunction", "(", ")", ".", "hasStructRetAttr", "(", ")", ")", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "}", "return", "Chain", ";"], "ground_truth": ["}"], "File": "BPFISelLowering", "Func": "LowerFormalArguments", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1847, "Length": 352, "Cover_Rate": 0.7839643652561247} {"Template_token": ["", "assert", "(", "N", "->", "getOffset", "(", ")", "==", "", "&&", "", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";", "const", "GlobalValue", "*", "GV", "=", "N", "->", "getGlobal", "(", ")", ";", "SDValue", "GA", "=", "DAG", ".", "getTargetGlobalAddress", "(", "GV", ",", "DL", ",", "", ")", ";"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "", ",", "GA", ")", ";"], "File": "BPFISelLowering", "Func": "LowerGlobalAddress", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1848, "Length": 58, "Cover_Rate": 0.6444444444444445} {"Template_token": ["", "auto", "N", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "Op", ")", ";", "assert", "(", "N", "->", "getOffset", "(", ")", "==", "", "&&", "", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";"], "ground_truth": ["const", "GlobalValue", "*", "GV", "=", "N", "->", "getGlobal", "(", ")", ";"], "File": "BPFISelLowering", "Func": "LowerGlobalAddress", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1849, "Length": 41, "Cover_Rate": 0.45555555555555555} {"Template_token": ["", "SDValue", "TargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "unsigned", "Opc", "=", "", ";", "SmallVector", "<", "CCValAssign", ",", "", ">", "RVLocs", ";", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "MF", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "if", "(", "MF", ".", "getFunction", "(", ")", ".", "getReturnType", "(", ")", "->", "isAggregateType", "(", ")", ")", "{", "fail", "(", "DL", ",", "DAG", ",", "", ")", ";", "return", "DAG", ".", "getNode", "(", "Opc", ",", "DL", ",", "", ",", "Chain", ")", ";", "}", "CCInfo", ".", "AnalyzeReturn", "(", "Outs", ",", "getHasAlu32", "(", ")", "?", "RetCC_32", ":", "RetCC_64", ")", ";", "SDValue", "Flag", ";", "SmallVector", "<", "SDValue", ",", "", ">", "RetOps", "(", "", ",", "Chain", ")", ";"], "ground_truth": ["for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{"], "File": "BPFISelLowering", "Func": "LowerReturn", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1850, "Length": 176, "Cover_Rate": 0.5925925925925926} {"Template_token": ["", "SDValue", "TargetCC", "=", "DAG", ".", "getConstant", "(", "CC", ",", "DL", ",", "LHS", ".", "getValueType", "(", ")", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "Op", ".", "getValueType", "(", ")", ",", "", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "LHS", ",", "RHS", ",", "TargetCC", ",", "TrueV", ",", "FalseV", "}", ";", "return", "DAG", ".", "getNode", "(", "", ",", "DL", ",", "VTs", ",", "Ops", ")", ";"], "ground_truth": ["}"], "File": "BPFISelLowering", "Func": "LowerSELECT_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1851, "Length": 66, "Cover_Rate": 0.39285714285714285} {"Template_token": ["", "SDValue", "RHS", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "TrueV", "=", "Op", ".", "getOperand", "(", "", ")", ";", "SDValue", "FalseV", "=", "Op", ".", "getOperand", "(", "", ")", ";", "", "CC", "=", "cast", "<", "CondCodeSDNode", ">", "(", "Op", ".", "getOperand", "(", "", ")", ")", "->", "get", "(", ")", ";", "SDLoc", "DL", "(", "Op", ")", ";"], "ground_truth": ["if", "(", "!", "getHasJmpExt", "(", ")", ")", "NegateCC", "(", "LHS", ",", "RHS", ",", "CC", ")", ";"], "File": "BPFISelLowering", "Func": "LowerSELECT_CC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1852, "Length": 72, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "explicit", "MCAsmInfo", "(", "const", "Triple", "&", "TT", ")", "{", "if", "(", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "bpfeb", ")", "IsLittleEndian", "=", "false", ";", "PrivateGlobalPrefix", "=", "", ";"], "ground_truth": ["WeakRefDirective", "=", "", ";"], "File": "BPFMCAsmInfo (2)", "Func": "BPFMCAsmInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1853, "Length": 33, "Cover_Rate": 0.66} {"Template_token": ["", "WeakRefDirective", "=", "", ";", "UsesELFSectionDirectiveForBSS", "=", "true", ";", "HasSingleParameterDotFile", "=", "false", ";"], "ground_truth": ["HasDotTypeDotSizeDirective", "=", "false", ";"], "File": "BPFMCAsmInfo (2)", "Func": "BPFMCAsmInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1854, "Length": 16, "Cover_Rate": 0.32} {"Template_token": ["", "explicit", "MCAsmInfo", "(", "const", "Triple", "&", "TT", ")", "{", "if", "(", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "bpfeb", ")", "IsLittleEndian", "=", "false", ";", "PrivateGlobalPrefix", "=", "", ";", "WeakRefDirective", "=", "", ";", "UsesELFSectionDirectiveForBSS", "=", "true", ";", "HasSingleParameterDotFile", "=", "false", ";"], "ground_truth": ["HasDotTypeDotSizeDirective", "=", "false", ";"], "File": "BPFMCAsmInfo13", "Func": "BPFMCAsmInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1855, "Length": 45, "Cover_Rate": 0.9782608695652174} {"Template_token": ["", "explicit", "MCAsmInfo", "(", "StringRef", "TT", ")", "{", "PrivateGlobalPrefix", "=", "", ";"], "ground_truth": ["WeakRefDirective", "=", "", ";"], "File": "BPFMCAsmInfo14", "Func": "BPFMCAsmInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1856, "Length": 15, "Cover_Rate": 0.5357142857142857} {"Template_token": ["", "HasSingleParameterDotFile", "=", "false", ";", "HasDotTypeDotSizeDirective", "=", "false", ";"], "ground_truth": ["}"], "File": "BPFMCAsmInfo14", "Func": "BPFMCAsmInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1857, "Length": 9, "Cover_Rate": 0.32142857142857145} {"Template_token": ["", "UsesELFSectionDirectiveForBSS", "=", "true", ";", "HasSingleParameterDotFile", "=", "false", ";"], "ground_truth": ["HasDotTypeDotSizeDirective", "=", "false", ";"], "File": "BPFMCAsmInfo15", "Func": "BPFMCAsmInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1858, "Length": 12, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "WeakRefDirective", "=", "", ";", "UsesELFSectionDirectiveForBSS", "=", "true", ";", "HasSingleParameterDotFile", "=", "true", ";", "HasDotTypeDotSizeDirective", "=", "true", ";", "SupportsDebugInformation", "=", "true", ";", "ExceptionsType", "=", "ExceptionHandling", "::", "DwarfCFI", ";", "MinInstAlignment", "=", "", ";", "CodePointerSize", "=", "", ";", "UseIntegratedAssembler", "=", "false", ";"], "ground_truth": ["}"], "File": "BPFMCAsmInfo5", "Func": "BPFMCAsmInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1859, "Length": 39, "Cover_Rate": 0.5342465753424658} {"Template_token": ["", "explicit", "MCAsmInfo", "(", "const", "Triple", "&", "TT", ",", "const", "MCTargetOptions", "&", "Options", ")", "{", "if", "(", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "bpfeb", ")", "IsLittleEndian", "=", "false", ";", "PrivateGlobalPrefix", "=", "", ";", "WeakRefDirective", "=", "", ";", "UsesELFSectionDirectiveForBSS", "=", "true", ";", "HasSingleParameterDotFile", "=", "true", ";", "HasDotTypeDotSizeDirective", "=", "true", ";"], "ground_truth": ["SupportsDebugInformation", "=", "true", ";"], "File": "BPFMCAsmInfo6", "Func": "BPFMCAsmInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1860, "Length": 54, "Cover_Rate": 0.782608695652174} {"Template_token": ["", "if", "(", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "bpfeb", ")", "IsLittleEndian", "=", "false", ";", "PrivateGlobalPrefix", "=", "", ";", "WeakRefDirective", "=", "", ";", "UsesELFSectionDirectiveForBSS", "=", "true", ";", "HasSingleParameterDotFile", "=", "false", ";", "HasDotTypeDotSizeDirective", "=", "false", ";", "SupportsDebugInformation", "=", "true", ";", "ExceptionsType", "=", "ExceptionHandling", "::", "DwarfCFI", ";", "MinInstAlignment", "=", "", ";", "PointerSize", "=", "", ";"], "ground_truth": ["}"], "File": "BPFMCAsmInfo7", "Func": "BPFMCAsmInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1861, "Length": 55, "Cover_Rate": 0.859375} {"Template_token": ["", "if", "(", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "bpfeb", ")", "IsLittleEndian", "=", "false", ";"], "ground_truth": ["PrivateGlobalPrefix", "=", "", ";"], "File": "BPFMCAsmInfo7", "Func": "BPFMCAsmInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1862, "Length": 20, "Cover_Rate": 0.3125} {"Template_token": ["", "PrivateGlobalPrefix", "=", "", ";", "WeakRefDirective", "=", "", ";", "UsesELFSectionDirectiveForBSS", "=", "true", ";", "HasSingleParameterDotFile", "=", "false", ";", "HasDotTypeDotSizeDirective", "=", "false", ";", "SupportsDebugInformation", "=", "true", ";"], "ground_truth": ["ExceptionsType", "=", "ExceptionHandling", "::", "DwarfCFI", ";"], "File": "BPFMCAsmInfo", "Func": "BPFMCAsmInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1863, "Length": 30, "Cover_Rate": 0.46875} {"Template_token": ["", "void", "setDwarfUsesRelocationsAcrossSections", "(", "bool", "enable", ")", "{", "DwarfUsesRelocationsAcrossSections", "=", "enable", ";"], "ground_truth": ["}"], "File": "BPFMCAsmInfo", "Func": "setDwarfUsesRelocationsAcrossSections", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1864, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "MCCodeEmitter", "(", "const", "MCInstrInfo", "&", "mcii", ",", "const", "MCRegisterInfo", "&", "mri", ",", "bool", "IsLittleEndian", ")", ":", "MCII", "(", "mcii", ")", ",", "MRI", "(", "mri", ")", ",", "IsLittleEndian", "(", "IsLittleEndian", ")", "{"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter (2)1", "Func": "BPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1866, "Length": 32, "Cover_Rate": 1.0} {"Template_token": ["", "MCCodeEmitter", "(", "const", "MCInstrInfo", "&", "mcii", ",", "const", "MCRegisterInfo", "&", "mri", ",", "bool", "IsLittleEndian", ")", ":", "MCII", "(", "mcii", ")", ",", "MRI", "(", "mri", ")", ",", "IsLittleEndian", "(", "IsLittleEndian", ")", "{"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter (2)1", "Func": "BPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1867, "Length": 32, "Cover_Rate": 1.0} {"Template_token": ["", "return", "new", "MCCodeEmitter", "(", "MCII", ",", "MRI", ",", "false", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter (2)1", "Func": "createBPFbeMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1869, "Length": 12, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "MCCodeEmitter", "*", "llvm", "::", "createMCCodeEmitter", "(", "const", "MCInstrInfo", "&", "MCII", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "MCContext", "&", "Ctx", ")", "{", "return", "new", "MCCodeEmitter", "(", "MCII", ",", "MRI", ",", "true", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter (2)1", "Func": "createBPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1871, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "void", "MCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "verifyInstructionPredicates", "(", "MI", ",", "computeAvailableFeatures", "(", "STI", ".", "getFeatureBits", "(", ")", ")", ")", ";", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "", "::", "Writer", "OSE", "(", "OS", ",", "IsLittleEndian", "?", "", ":", "", ")", ";", "if", "(", "Opcode", "==", "", "||", "Opcode", "==", "", ")", "{", "uint64_t", "Value", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "OS", "<<", "char", "(", "Value", ">>", "", ")", ";", "if", "(", "IsLittleEndian", ")", "OS", "<<", "char", "(", "(", "Value", ">>", "", ")", "&", "", ")", ";", "else", "OS", "<<", "char", "(", "SwapBits", "(", "(", "Value", ">>", "", ")", "&", "", ")", ")", ";", "OSE", ".", "write", "<", "uint16_t", ">", "(", "", ")", ";", "OSE", ".", "write", "<", "uint32_t", ">", "(", "Value", "&", "", ")", ";", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "", ")", ";", "uint64_t", "Imm", "=", "MO", ".", "isImm", "(", ")", "?", "MO", ".", "getImm", "(", ")", ":", "", ";", "OSE", ".", "write", "<", "uint8_t", ">", "(", "", ")", ";", "OSE", ".", "write", "<", "uint8_t", ">", "(", "", ")", ";", "OSE", ".", "write", "<", "uint16_t", ">", "(", "", ")", ";", "OSE", ".", "write", "<", "uint32_t", ">", "(", "Imm", ">>", "", ")", ";", "}", "else", "{", "uint64_t", "Value", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "OS", "<<", "char", "(", "Value", ">>", "", ")", ";"], "ground_truth": ["if", "(", "IsLittleEndian", ")", "OS", "<<", "char", "(", "(", "Value", ">>", "", ")", "&", "", ")", ";"], "File": "BPFMCCodeEmitter (2)1", "Func": "encodeInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1872, "Length": 265, "Cover_Rate": 0.8229813664596274} {"Template_token": ["", "OSE", ".", "write", "<", "uint32_t", ">", "(", "Imm", ">>", "", ")", ";", "}", "else", "{", "uint64_t", "Value", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "OS", "<<", "char", "(", "Value", ">>", "", ")", ";", "if", "(", "IsLittleEndian", ")", "OS", "<<", "char", "(", "(", "Value", ">>", "", ")", "&", "", ")", ";", "else", "OS", "<<", "char", "(", "SwapBits", "(", "(", "Value", ">>", "", ")", "&", "", ")", ")", ";", "OSE", ".", "write", "<", "uint16_t", ">", "(", "(", "Value", ">>", "", ")", "&", "", ")", ";", "OSE", ".", "write", "<", "uint32_t", ">", "(", "Value", "&", "", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter (2)1", "Func": "encodeInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1873, "Length": 100, "Cover_Rate": 0.3105590062111801} {"Template_token": ["", "unsigned", "MCCodeEmitter", "::", "getMachineOpValue", "(", "const", "MCInst", "&", "MI", ",", "const", "MCOperand", "&", "MO", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "MRI", ".", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "assert", "(", "Expr", "->", "getKind", "(", ")", "==", "MCExpr", "::", "SymbolRef", ")", ";"], "ground_truth": ["if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "", ",", "Expr", ",", "FK_PCRel_4", ")", ")", ";"], "File": "BPFMCCodeEmitter (2)1", "Func": "getMachineOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1874, "Length": 129, "Cover_Rate": 0.712707182320442} {"Template_token": ["", "const", "MCOperand", "Op1", "=", "MI", ".", "getOperand", "(", "", ")", ";", "assert", "(", "Op1", ".", "isReg", "(", ")", "&&", "", ")", ";", "Encoding", "=", "MRI", ".", "getEncodingValue", "(", "Op1", ".", "getReg", "(", ")", ")", ";", "Encoding", "<<=", "", ";"], "ground_truth": ["MCOperand", "Op2", "=", "MI", ".", "getOperand", "(", "", ")", ";"], "File": "BPFMCCodeEmitter (2)1", "Func": "getMemoryOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1875, "Length": 49, "Cover_Rate": 0.47115384615384615} {"Template_token": ["", "return", "(", "Val", "&", "", ")", "<<", "", "|", "(", "Val", "&", "", ")", ">>", "", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter (2)1", "Func": "SwapBits", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1876, "Length": 18, "Cover_Rate": 0.6923076923076923} {"Template_token": ["", "return", "(", "Val", "&", "", ")", "<<", "", "|", "(", "Val", "&", "", ")", ">>", "", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter (2)1", "Func": "SwapBits", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1877, "Length": 18, "Cover_Rate": 0.6923076923076923} {"Template_token": ["", "LE", ".", "write", "<", "uint8_t", ">", "(", "Value", ">>", "", ")", ";", "if", "(", "IsLittleEndian", ")", "LE", ".", "write", "<", "uint8_t", ">", "(", "(", "Value", ">>", "", ")", "&", "", ")", ";", "else", "LE", ".", "write", "<", "uint8_t", ">", "(", "SwapBits", "(", "(", "Value", ">>", "", ")", "&", "", ")", ")", ";", "LE", ".", "write", "<", "uint16_t", ">", "(", "", ")", ";", "if", "(", "IsLittleEndian", ")", "LE", ".", "write", "<", "uint32_t", ">", "(", "Value", "&", "", ")", ";", "else", "BE", ".", "write", "<", "uint32_t", ">", "(", "Value", "&", "", ")", ";", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "", ")", ";", "uint64_t", "Imm", "=", "MO", ".", "isImm", "(", ")", "?", "MO", ".", "getImm", "(", ")", ":", "", ";", "LE", ".", "write", "<", "uint8_t", ">", "(", "", ")", ";", "LE", ".", "write", "<", "uint8_t", ">", "(", "", ")", ";", "LE", ".", "write", "<", "uint16_t", ">", "(", "", ")", ";", "if", "(", "IsLittleEndian", ")", "LE", ".", "write", "<", "uint32_t", ">", "(", "Imm", ">>", "", ")", ";", "else", "BE", ".", "write", "<", "uint32_t", ">", "(", "Imm", ">>", "", ")", ";", "}", "else", "{", "uint64_t", "Value", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "LE", ".", "write", "<", "uint8_t", ">", "(", "Value", ">>", "", ")", ";", "if", "(", "IsLittleEndian", ")", "{", "LE", ".", "write", "<", "uint8_t", ">", "(", "(", "Value", ">>", "", ")", "&", "", ")", ";"], "ground_truth": ["LE", ".", "write", "<", "uint16_t", ">", "(", "(", "Value", ">>", "", ")", "&", "", ")", ";"], "File": "BPFMCCodeEmitter12", "Func": "encodeInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1878, "Length": 243, "Cover_Rate": 0.5841346153846154} {"Template_token": ["", "MCCodeEmitter", "(", "const", "MCInstrInfo", "&", "mcii", ",", "const", "MCSubtargetInfo", "&", "sti", ",", "MCContext", "&", "ctx", ")", ":", "MCII", "(", "mcii", ")", ",", "STI", "(", "sti", ")", ",", "Ctx", "(", "ctx", ")", "{"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter17", "Func": "BPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1879, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "MCCodeEmitter", "(", "const", "MCInstrInfo", "&", "mcii", ",", "const", "MCSubtargetInfo", "&", "sti", ",", "MCContext", "&", "ctx", ")", ":", "MCII", "(", "mcii", ")", ",", "STI", "(", "sti", ")", ",", "Ctx", "(", "ctx", ")", "{"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter17", "Func": "BPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1880, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "MCCodeEmitter", "*", "llvm", "::", "createMCCodeEmitter", "(", "const", "MCInstrInfo", "&", "MCII", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ")", "{"], "ground_truth": ["return", "new", "MCCodeEmitter", "(", "MCII", ",", "STI", ",", "Ctx", ")", ";"], "File": "BPFMCCodeEmitter17", "Func": "createBPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1882, "Length": 37, "Cover_Rate": 0.9736842105263158} {"Template_token": ["", "for", "(", "int", "i", "=", "(", "Size", "-", "", ")", "*", "", ";", "i", ">=", "", ";", "i", "-=", "", ")", "EmitByte", "(", "(", "Val", ">>", "i", ")", "&", "", ",", "CurByte", ",", "OS", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter17", "Func": "EmitBEConstant", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1883, "Length": 37, "Cover_Rate": 0.578125} {"Template_token": ["", "void", "EmitBEConstant", "(", "uint64_t", "Val", ",", "unsigned", "Size", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "{", "assert", "(", "Size", "<=", "", "&&", "", ")", ";", "for", "(", "int", "i", "=", "(", "Size", "-", "", ")", "*", "", ";", "i", ">=", "", ";", "i", "-=", "", ")", "EmitByte", "(", "(", "Val", ">>", "i", ")", "&", "", ",", "CurByte", ",", "OS", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter17", "Func": "EmitBEConstant", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1884, "Length": 64, "Cover_Rate": 1.0} {"Template_token": ["", "EmitByte", "(", "(", "(", "Value", ">>", "", ")", "&", "", ")", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "Value", "&", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "", ")", ";", "uint64_t", "Imm", "=", "MO", ".", "isImm", "(", ")", "?", "MO", ".", "getImm", "(", ")", ":", "", ";", "EmitByte", "(", "", ",", "CurByte", ",", "OS", ")", ";", "EmitByte", "(", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "Imm", ">>", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "}", "else", "{"], "ground_truth": ["uint64_t", "Value", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ")", ";"], "File": "BPFMCCodeEmitter17", "Func": "EncodeInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1885, "Length": 125, "Cover_Rate": 0.5} {"Template_token": ["", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "MCExpr", "::", "ExprKind", "Kind", "=", "Expr", "->", "getKind", "(", ")", ";", "assert", "(", "Kind", "==", "MCExpr", "::", "SymbolRef", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "Fixups", ".", "push_back", "(", "MCFixup", "::", "Create", "(", "", ",", "Expr", ",", "FK_SecRel_4", ")", ")", ";", "}", "else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "Fixups", ".", "push_back", "(", "MCFixup", "::", "Create", "(", "", ",", "Expr", ",", "FK_SecRel_8", ")", ")", ";"], "ground_truth": ["}", "else", "{"], "File": "BPFMCCodeEmitter17", "Func": "getMachineOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1886, "Length": 120, "Cover_Rate": 0.6417112299465241} {"Template_token": ["", "uint64_t", "encoding", ";", "const", "MCOperand", "op1", "=", "MI", ".", "getOperand", "(", "", ")", ";", "assert", "(", "op1", ".", "isReg", "(", ")", "&&", "", ")", ";", "encoding", "=", "getRegisterNumbering", "(", "op1", ".", "getReg", "(", ")", ")", ";", "encoding", "<<=", "", ";", "MCOperand", "op2", "=", "MI", ".", "getOperand", "(", "", ")", ";", "assert", "(", "op2", ".", "isImm", "(", ")", "&&", "", ")", ";"], "ground_truth": ["encoding", "|=", "op2", ".", "getImm", "(", ")", "&", "", ";"], "File": "BPFMCCodeEmitter17", "Func": "getMemoryOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1887, "Length": 71, "Cover_Rate": 0.7319587628865979} {"Template_token": ["", "encoding", "=", "getRegisterNumbering", "(", "op1", ".", "getReg", "(", ")", ")", ";", "encoding", "<<=", "", ";", "MCOperand", "op2", "=", "MI", ".", "getOperand", "(", "", ")", ";"], "ground_truth": ["assert", "(", "op2", ".", "isImm", "(", ")", "&&", "", ")", ";"], "File": "BPFMCCodeEmitter17", "Func": "getMemoryOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1888, "Length": 36, "Cover_Rate": 0.3711340206185567} {"Template_token": ["", "MCCodeEmitter", "(", "const", "MCRegisterInfo", "&", "mri", ")", ":", "MRI", "(", "mri", ")", "{"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter1", "Func": "BPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1889, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "MCCodeEmitter", "(", "const", "MCRegisterInfo", "&", "mri", ")", ":", "MRI", "(", "mri", ")", "{"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter1", "Func": "BPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1890, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "void", "EmitBEConstant", "(", "uint64_t", "Val", ",", "unsigned", "Size", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "{"], "ground_truth": ["assert", "(", "Size", "<=", "", "&&", "", ")", ";"], "File": "BPFMCCodeEmitter1", "Func": "EmitBEConstant", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1892, "Length": 27, "Cover_Rate": 0.421875} {"Template_token": ["", "assert", "(", "Size", "<=", "", "&&", "", ")", ";", "for", "(", "int", "i", "=", "(", "Size", "-", "", ")", "*", "", ";", "i", ">=", "", ";", "i", "-=", "", ")", "EmitByte", "(", "(", "Val", ">>", "i", ")", "&", "", ",", "CurByte", ",", "OS", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter1", "Func": "EmitBEConstant", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1893, "Length": 46, "Cover_Rate": 0.71875} {"Template_token": ["", "void", "EmitByte", "(", "unsigned", "char", "C", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "{", "OS", "<<", "(", "char", ")", "C", ";", "++", "CurByte", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter1", "Func": "EmitByte", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1894, "Length": 27, "Cover_Rate": 1.0} {"Template_token": ["", "OS", "<<", "(", "char", ")", "C", ";", "++", "CurByte", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter1", "Func": "EmitByte", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1895, "Length": 11, "Cover_Rate": 0.4074074074074074} {"Template_token": ["", "void", "EmitLEConstant", "(", "uint64_t", "Val", ",", "unsigned", "Size", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "{", "assert", "(", "Size", "<=", "", "&&", "", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "!=", "Size", ";", "++", "i", ")", "{", "EmitByte", "(", "Val", "&", "", ",", "CurByte", ",", "OS", ")", ";", "Val", ">>=", "", ";", "}"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter1", "Func": "EmitLEConstant", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1896, "Length": 59, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "CurByte", "=", "", ";", "if", "(", "Opcode", "==", "", "||", "Opcode", "==", "", ")", "{", "uint64_t", "Value", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "EmitByte", "(", "Value", ">>", "", ",", "CurByte", ",", "OS", ")", ";", "EmitByte", "(", "(", "(", "Value", ">>", "", ")", "&", "", ")", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "Value", "&", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "", ")", ";", "uint64_t", "Imm", "=", "MO", ".", "isImm", "(", ")", "?", "MO", ".", "getImm", "(", ")", ":", "", ";", "EmitByte", "(", "", ",", "CurByte", ",", "OS", ")", ";", "EmitByte", "(", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "Imm", ">>", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "}", "else", "{", "uint64_t", "Value", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "EmitByte", "(", "Value", ">>", "", ",", "CurByte", ",", "OS", ")", ";"], "ground_truth": ["EmitByte", "(", "(", "Value", ">>", "", ")", "&", "", ",", "CurByte", ",", "OS", ")", ";"], "File": "BPFMCCodeEmitter1", "Func": "EncodeInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1897, "Length": 192, "Cover_Rate": 0.7245283018867924} {"Template_token": ["", "if", "(", "Opcode", "==", "", "||", "Opcode", "==", "", ")", "{", "uint64_t", "Value", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "EmitByte", "(", "Value", ">>", "", ",", "CurByte", ",", "OS", ")", ";", "EmitByte", "(", "(", "(", "Value", ">>", "", ")", "&", "", ")", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "Value", "&", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "", ")", ";", "uint64_t", "Imm", "=", "MO", ".", "isImm", "(", ")", "?", "MO", ".", "getImm", "(", ")", ":", "", ";", "EmitByte", "(", "", ",", "CurByte", ",", "OS", ")", ";", "EmitByte", "(", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "Imm", ">>", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "}", "else", "{", "uint64_t", "Value", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "EmitByte", "(", "Value", ">>", "", ",", "CurByte", ",", "OS", ")", ";", "EmitByte", "(", "(", "Value", ">>", "", ")", "&", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "(", "Value", ">>", "", ")", "&", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "Value", "&", "", ",", "", ",", "CurByte", ",", "OS", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter1", "Func": "EncodeInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1898, "Length": 218, "Cover_Rate": 0.8226415094339623} {"Template_token": ["", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "Fixups", ".", "push_back", "(", "MCFixup", "::", "Create", "(", "", ",", "Expr", ",", "FK_SecRel_4", ")", ")", ";", "else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "Fixups", ".", "push_back", "(", "MCFixup", "::", "Create", "(", "", ",", "Expr", ",", "FK_SecRel_8", ")", ")", ";"], "ground_truth": ["else", "Fixups", ".", "push_back", "(", "MCFixup", "::", "Create", "(", "", ",", "Expr", ",", "FK_PCRel_2", ")", ")", ";"], "File": "BPFMCCodeEmitter1", "Func": "getMachineOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1899, "Length": 70, "Cover_Rate": 0.3867403314917127} {"Template_token": ["", "MCCodeEmitter", "*", "llvm", "::", "createMCCodeEmitter", "(", "const", "MCInstrInfo", "&", "MCII", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ")", "{", "return", "new", "MCCodeEmitter", "(", "MRI", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter5", "Func": "createBPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1900, "Length": 34, "Cover_Rate": 1.0} {"Template_token": ["", "EmitByte", "(", "(", "(", "Value", ">>", "", ")", "&", "", ")", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "Value", "&", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "const", "MCOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "", ")", ";", "uint64_t", "Imm", "=", "MO", ".", "isImm", "(", ")", "?", "MO", ".", "getImm", "(", ")", ":", "", ";", "EmitByte", "(", "", ",", "CurByte", ",", "OS", ")", ";", "EmitByte", "(", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "EmitLEConstant", "(", "Imm", ">>", "", ",", "", ",", "CurByte", ",", "OS", ")", ";", "}", "else", "{", "uint64_t", "Value", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "EmitByte", "(", "Value", ">>", "", ",", "CurByte", ",", "OS", ")", ";", "EmitByte", "(", "(", "Value", ">>", "", ")", "&", "", ",", "CurByte", ",", "OS", ")", ";"], "ground_truth": ["EmitLEConstant", "(", "(", "Value", ">>", "", ")", "&", "", ",", "", ",", "CurByte", ",", "OS", ")", ";"], "File": "BPFMCCodeEmitter5", "Func": "EncodeInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1902, "Length": 170, "Cover_Rate": 0.6563706563706564} {"Template_token": ["", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "Fixups", ".", "push_back", "(", "MCFixup", "::", "Create", "(", "", ",", "Expr", ",", "FK_SecRel_4", ")", ")", ";", "else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "Fixups", ".", "push_back", "(", "MCFixup", "::", "Create", "(", "", ",", "Expr", ",", "FK_SecRel_8", ")", ")", ";", "else", "Fixups", ".", "push_back", "(", "MCFixup", "::", "Create", "(", "", ",", "Expr", ",", "FK_PCRel_2", ")", ")", ";", "return", "", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter5", "Func": "getMachineOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1903, "Length": 74, "Cover_Rate": 0.39361702127659576} {"Template_token": ["", "MCCodeEmitter", "*", "llvm", "::", "createbeMCCodeEmitter", "(", "const", "MCInstrInfo", "&", "MCII", ",", "MCContext", "&", "Ctx", ")", "{"], "ground_truth": ["return", "new", "MCCodeEmitter", "(", "MCII", ",", "*", "Ctx", ".", "getRegisterInfo", "(", ")", ",", "false", ")", ";"], "File": "BPFMCCodeEmitter6", "Func": "createBPFbeMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1904, "Length": 32, "Cover_Rate": 0.9696969696969697} {"Template_token": ["", "return", "new", "MCCodeEmitter", "(", "MCII", ",", "*", "Ctx", ".", "getRegisterInfo", "(", ")", ",", "false", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter6", "Func": "createBPFbeMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1905, "Length": 17, "Cover_Rate": 0.5151515151515151} {"Template_token": ["", "MCCodeEmitter", "*", "llvm", "::", "createMCCodeEmitter", "(", "const", "MCInstrInfo", "&", "MCII", ",", "MCContext", "&", "Ctx", ")", "{"], "ground_truth": ["return", "new", "MCCodeEmitter", "(", "MCII", ",", "*", "Ctx", ".", "getRegisterInfo", "(", ")", ",", "true", ")", ";"], "File": "BPFMCCodeEmitter6", "Func": "createBPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1907, "Length": 32, "Cover_Rate": 0.9696969696969697} {"Template_token": ["", "Encoding", "=", "MRI", ".", "getEncodingValue", "(", "Op1", ".", "getReg", "(", ")", ")", ";", "Encoding", "<<=", "", ";", "MCOperand", "Op2", "=", "MI", ".", "getOperand", "(", "MemOpStartIndex", "+", "", ")", ";", "assert", "(", "Op2", ".", "isImm", "(", ")", "&&", "", ")", ";", "Encoding", "|=", "Op2", ".", "getImm", "(", ")", "&", "", ";"], "ground_truth": ["return", "Encoding", ";"], "File": "BPFMCCodeEmitter6", "Func": "getMemoryOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1908, "Length": 53, "Cover_Rate": 0.38686131386861317} {"Template_token": ["", "MCCodeEmitter", "(", "const", "MCInstrInfo", "&", "mcii", ",", "const", "MCSubtargetInfo", "&", "sti", ",", "MCContext", "&", "ctx", ")", ":", "MCII", "(", "mcii", ")", ",", "STI", "(", "sti", ")", ",", "Ctx", "(", "ctx", ")", "{", "Strtab", "=", "new", "std", "::", "string", ";"], "ground_truth": ["Strtab", "->", "push_back", "(", "'\\0'", ")", ";"], "File": "BPFMCCodeEmitter", "Func": "BPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1909, "Length": 46, "Cover_Rate": 0.9787234042553191} {"Template_token": ["", "MCCodeEmitter", "*", "llvm", "::", "createbeMCCodeEmitter", "(", "const", "MCInstrInfo", "&", "MCII", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "MCContext", "&", "Ctx", ")", "{", "return", "new", "MCCodeEmitter", "(", "MRI", ",", "false", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter", "Func": "createBPFbeMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1910, "Length": 31, "Cover_Rate": 1.0} {"Template_token": ["", "return", "new", "MCCodeEmitter", "(", "MRI", ",", "false", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter", "Func": "createBPFbeMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1911, "Length": 10, "Cover_Rate": 0.3225806451612903} {"Template_token": ["", "MCCodeEmitter", "*", "llvm", "::", "createMCCodeEmitter", "(", "const", "MCInstrInfo", "&", "MCII", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "MCContext", "&", "Ctx", ")", "{", "return", "new", "MCCodeEmitter", "(", "MRI", ",", "true", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter", "Func": "createBPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1912, "Length": 31, "Cover_Rate": 1.0} {"Template_token": ["", "return", "new", "MCCodeEmitter", "(", "MRI", ",", "true", ")", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter", "Func": "createBPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1913, "Length": 10, "Cover_Rate": 0.3225806451612903} {"Template_token": ["", "LE", ".", "write", "<", "uint8_t", ">", "(", "", ")", ";", "LE", ".", "write", "<", "uint8_t", ">", "(", "", ")", ";", "LE", ".", "write", "<", "uint16_t", ">", "(", "", ")", ";", "if", "(", "IsLittleEndian", ")", "LE", ".", "write", "<", "uint32_t", ">", "(", "Imm", ">>", "", ")", ";", "else", "BE", ".", "write", "<", "uint32_t", ">", "(", "Imm", ">>", "", ")", ";", "}", "else", "{", "uint64_t", "Value", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "LE", ".", "write", "<", "uint8_t", ">", "(", "Value", ">>", "", ")", ";", "if", "(", "IsLittleEndian", ")", "{", "LE", ".", "write", "<", "uint8_t", ">", "(", "(", "Value", ">>", "", ")", "&", "", ")", ";", "LE", ".", "write", "<", "uint16_t", ">", "(", "(", "Value", ">>", "", ")", "&", "", ")", ";", "LE", ".", "write", "<", "uint32_t", ">", "(", "Value", "&", "", ")", ";"], "ground_truth": ["}", "else", "{"], "File": "BPFMCCodeEmitter", "Func": "encodeInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1914, "Length": 138, "Cover_Rate": 0.34328358208955223} {"Template_token": ["", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "MRI", ".", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", ")", ";", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "assert", "(", "Expr", "->", "getKind", "(", ")", "==", "MCExpr", "::", "SymbolRef", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "", ",", "Expr", ",", "FK_SecRel_4", ")", ")", ";"], "ground_truth": ["else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "", ",", "Expr", ",", "FK_SecRel_8", ")", ")", ";"], "File": "BPFMCCodeEmitter", "Func": "getMachineOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1915, "Length": 127, "Cover_Rate": 0.7016574585635359} {"Template_token": ["", "if", "(", "MO", ".", "isReg", "(", ")", ")", "return", "MRI", ".", "getEncodingValue", "(", "MO", ".", "getReg", "(", ")", ")", ";", "if", "(", "MO", ".", "isImm", "(", ")", ")", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "assert", "(", "MO", ".", "isExpr", "(", ")", ")", ";"], "ground_truth": ["const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";"], "File": "BPFMCCodeEmitter", "Func": "getMachineOpValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1916, "Length": 61, "Cover_Rate": 0.3370165745856354} {"Template_token": ["", "Sym", ".", "push_back", "(", "'\\0'", ")", ";", "std", "::", "string", "::", "size_type", "pos", "=", "Strtab", "->", "find", "(", "Sym", ")", ";", "if", "(", "pos", "==", "std", "::", "string", "::", "npos", ")", "{", "Strtab", "->", "append", "(", "Sym", ")", ";", "pos", "=", "Strtab", "->", "find", "(", "Sym", ")", ";"], "ground_truth": ["assert", "(", "pos", "!=", "std", "::", "string", "::", "npos", ")", ";"], "File": "BPFMCCodeEmitter", "Func": "getStrtabIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1917, "Length": 59, "Cover_Rate": 0.7023809523809523} {"Template_token": ["", "~", "MCCodeEmitter", "(", ")", "{", "delete", "Strtab", ";"], "ground_truth": ["}"], "File": "BPFMCCodeEmitter", "Func": "~BPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1918, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "~", "MCCodeEmitter", "(", ")", "{"], "ground_truth": ["delete", "Strtab", ";"], "File": "BPFMCCodeEmitter", "Func": "~BPFMCCodeEmitter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1919, "Length": 8, "Cover_Rate": 0.8888888888888888} {"Template_token": ["", "MCSymbol", "*", "MCInstLower", "::", "GetGlobalAddressSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", "{", "return", "Printer", ".", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ";"], "ground_truth": ["return", "Printer", ".", "Mang", "->", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ";"], "File": "BPFMCInstLower10", "Func": "GetGlobalAddressSymbol", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1920, "Length": 39, "Cover_Rate": 0.975} {"Template_token": ["", "return", "Printer", ".", "Mang", "->", "getSymbol", "(", "MO", ".", "getGlobal", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFMCInstLower10", "Func": "GetGlobalAddressSymbol", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1921, "Length": 15, "Cover_Rate": 0.375} {"Template_token": ["", "break", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "MCOp", "=", "MCOperand", "::", "CreateImm", "(", "MO", ".", "getImm", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "MCOp", "=", "MCOperand", "::", "CreateExpr", "(", "MCSymbolRefExpr", "::", "Create", "(", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ",", "Ctx", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_RegisterMask", ":", "continue", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "MCOp", "=", "LowerSymbolOperand", "(", "MO", ",", "GetGlobalAddressSymbol", "(", "MO", ")", ")", ";", "break", ";", "}"], "ground_truth": ["OutMI", ".", "addOperand", "(", "MCOp", ")", ";"], "File": "BPFMCInstLower10", "Func": "Lower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1922, "Length": 87, "Cover_Rate": 0.4264705882352941} {"Template_token": ["", "const", "MCExpr", "*", "Expr", "=", "MCSymbolRefExpr", "::", "Create", "(", "Sym", ",", "Ctx", ")", ";"], "ground_truth": ["if", "(", "!", "MO", ".", "isJTI", "(", ")", "&&", "MO", ".", "getOffset", "(", ")", ")", "llvm_unreachable", "(", "", ")", ";"], "File": "BPFMCInstLower10", "Func": "LowerSymbolOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1923, "Length": 34, "Cover_Rate": 0.576271186440678} {"Template_token": ["", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "i", ")", ";", "MCOperand", "MCOp", ";", "switch", "(", "MO", ".", "getType", "(", ")", ")", "{", "default", ":", "MI", "->", "dump", "(", ")", ";", "llvm_unreachable", "(", "", ")", ";", "case", "MachineOperand", "::", "MO_Register", ":", "if", "(", "MO", ".", "isImplicit", "(", ")", ")", "continue", ";", "MCOp", "=", "MCOperand", "::", "createReg", "(", "MO", ".", "getReg", "(", ")", ")", ";"], "ground_truth": ["break", ";"], "File": "BPFMCInstLower1", "Func": "Lower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1924, "Length": 67, "Cover_Rate": 0.3284313725490196} {"Template_token": ["", "MCOp", "=", "MCOperand", "::", "CreateReg", "(", "MO", ".", "getReg", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "MCOp", "=", "MCOperand", "::", "CreateImm", "(", "MO", ".", "getImm", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "MCOp", "=", "MCOperand", "::", "CreateExpr", "(", "MCSymbolRefExpr", "::", "Create", "(", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ",", "Ctx", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_RegisterMask", ":", "continue", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "MCOp", "=", "LowerSymbolOperand", "(", "MO", ",", "GetGlobalAddressSymbol", "(", "MO", ")", ")", ";", "break", ";", "}", "OutMI", ".", "addOperand", "(", "MCOp", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFMCInstLower4", "Func": "Lower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1925, "Length": 102, "Cover_Rate": 0.5} {"Template_token": ["", "llvm_unreachable", "(", "", ")", ";", "case", "MachineOperand", "::", "MO_Register", ":", "if", "(", "MO", ".", "isImplicit", "(", ")", ")", "continue", ";", "MCOp", "=", "MCOperand", "::", "CreateReg", "(", "MO", ".", "getReg", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "MCOp", "=", "MCOperand", "::", "CreateImm", "(", "MO", ".", "getImm", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "MCOp", "=", "MCOperand", "::", "CreateExpr", "(", "MCSymbolRefExpr", "::", "Create", "(", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ",", "Ctx", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_RegisterMask", ":", "continue", ";"], "ground_truth": ["case", "MachineOperand", "::", "MO_GlobalAddress", ":"], "File": "BPFMCInstLower4", "Func": "Lower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1926, "Length": 98, "Cover_Rate": 0.4803921568627451} {"Template_token": ["", "MCOperand", "MCInstLower", "::", "LowerSymbolOperand", "(", "const", "MachineOperand", "&", "MO", ",", "MCSymbol", "*", "Sym", ")", "const", "{", "const", "MCExpr", "*", "Expr", "=", "MCSymbolRefExpr", "::", "Create", "(", "Sym", ",", "Ctx", ")", ";", "if", "(", "!", "MO", ".", "isJTI", "(", ")", "&&", "MO", ".", "getOffset", "(", ")", ")", "llvm_unreachable", "(", "", ")", ";", "return", "MCOperand", "::", "CreateExpr", "(", "Expr", ")", ";"], "ground_truth": ["}"], "File": "BPFMCInstLower4", "Func": "LowerSymbolOperand", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1927, "Length": 59, "Cover_Rate": 1.0} {"Template_token": ["", "}", "void", "Lower", "(", "const", "MachineInstr", "*", "MI", ",", "MCInst", "&", "OutMI", ")", "const", ";"], "ground_truth": ["MCOperand", "LowerSymbolOperand", "(", "const", "MachineOperand", "&", "MO", ",", "MCSymbol", "*", "Sym", ")", "const", ";"], "File": "BPFMCInstLower6", "Func": "GetGlobalAddressSymbol", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1928, "Length": 29, "Cover_Rate": 0.3815789473684211} {"Template_token": ["", "AsmPrinter", "&", "Printer", ";", "public", ":", "MCInstLower", "(", "MCContext", "&", "ctx", ",", "AsmPrinter", "&", "printer", ")", ":", "Ctx", "(", "ctx", ")", ",", "Printer", "(", "printer", ")", "{", "}"], "ground_truth": ["void", "Lower", "(", "const", "MachineInstr", "*", "MI", ",", "MCInst", "&", "OutMI", ")", "const", ";"], "File": "BPFMCInstLower6", "Func": "GetGlobalAddressSymbol", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1929, "Length": 42, "Cover_Rate": 0.5526315789473685} {"Template_token": ["", "public", ":", "MCInstLower", "(", "MCContext", "&", "ctx", ",", "Mangler", "&", "mang", ",", "AsmPrinter", "&", "printer", ")", ":", "Ctx", "(", "ctx", ")", ",", "Mang", "(", "mang", ")", ",", "Printer", "(", "printer", ")", "{", "}"], "ground_truth": ["void", "Lower", "(", "const", "MachineInstr", "*", "MI", ",", "MCInst", "&", "OutMI", ")", "const", ";"], "File": "BPFMCInstLower8", "Func": "GetGlobalAddressSymbol", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1930, "Length": 47, "Cover_Rate": 0.5280898876404494} {"Template_token": ["", "MCContext", "&", "Ctx", ";", "Mangler", "&", "Mang", ";", "AsmPrinter", "&", "Printer", ";", "public", ":", "MCInstLower", "(", "MCContext", "&", "ctx", ",", "Mangler", "&", "mang", ",", "AsmPrinter", "&", "printer", ")", ":", "Ctx", "(", "ctx", ")", ",", "Mang", "(", "mang", ")", ",", "Printer", "(", "printer", ")", "{", "}", "void", "Lower", "(", "const", "MachineInstr", "*", "MI", ",", "MCInst", "&", "OutMI", ")", "const", ";", "MCOperand", "LowerSymbolOperand", "(", "const", "MachineOperand", "&", "MO", ",", "MCSymbol", "*", "Sym", ")", "const", ";"], "ground_truth": ["MCSymbol", "*", "GetGlobalAddressSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", ";"], "File": "BPFMCInstLower8", "Func": "GetGlobalAddressSymbol", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1931, "Length": 84, "Cover_Rate": 0.9438202247191011} {"Template_token": ["", "MCSymbol", "*", "MCInstLower", "::", "GetExternalSymbolSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", "{", "return", "Printer", ".", "GetExternalSymbolSymbol", "(", "MO", ".", "getSymbolName", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFMCInstLower", "Func": "GetExternalSymbolSymbol", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1932, "Length": 26, "Cover_Rate": 1.0} {"Template_token": ["", "void", "Lower", "(", "const", "MachineInstr", "*", "MI", ",", "MCInst", "&", "OutMI", ")", "const", ";", "MCOperand", "LowerSymbolOperand", "(", "const", "MachineOperand", "&", "MO", ",", "MCSymbol", "*", "Sym", ")", "const", ";", "MCSymbol", "*", "GetGlobalAddressSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", ";"], "ground_truth": ["MCSymbol", "*", "GetExternalSymbolSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", ";"], "File": "BPFMCInstLower", "Func": "GetGlobalAddressSymbol", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1934, "Length": 50, "Cover_Rate": 0.5747126436781609} {"Template_token": ["", "public", ":", "MCInstLower", "(", "MCContext", "&", "ctx", ",", "AsmPrinter", "&", "printer", ")", ":", "Ctx", "(", "ctx", ")", ",", "Printer", "(", "printer", ")", "{", "}", "void", "Lower", "(", "const", "MachineInstr", "*", "MI", ",", "MCInst", "&", "OutMI", ")", "const", ";", "MCOperand", "LowerSymbolOperand", "(", "const", "MachineOperand", "&", "MO", ",", "MCSymbol", "*", "Sym", ")", "const", ";", "MCSymbol", "*", "GetGlobalAddressSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", ";", "MCSymbol", "*", "GetExternalSymbolSymbol", "(", "const", "MachineOperand", "&", "MO", ")", "const", ";"], "ground_truth": ["}"], "File": "BPFMCInstLower", "Func": "GetGlobalAddressSymbol", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1935, "Length": 75, "Cover_Rate": 0.8620689655172413} {"Template_token": ["", "if", "(", "MO", ".", "isImplicit", "(", ")", ")", "continue", ";", "MCOp", "=", "MCOperand", "::", "createReg", "(", "MO", ".", "getReg", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_Immediate", ":", "MCOp", "=", "MCOperand", "::", "createImm", "(", "MO", ".", "getImm", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "MCOp", "=", "MCOperand", "::", "createExpr", "(", "MCSymbolRefExpr", "::", "create", "(", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ",", "Ctx", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_RegisterMask", ":", "continue", ";", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "MCOp", "=", "LowerSymbolOperand", "(", "MO", ",", "GetExternalSymbolSymbol", "(", "MO", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "MCOp", "=", "LowerSymbolOperand", "(", "MO", ",", "GetGlobalAddressSymbol", "(", "MO", ")", ")", ";", "break", ";", "}", "OutMI", ".", "addOperand", "(", "MCOp", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFMCInstLower", "Func": "Lower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1936, "Length": 131, "Cover_Rate": 0.5796460176991151} {"Template_token": ["", "MCCodeGenInfo", "*", "X", "=", "new", "MCCodeGenInfo", "(", ")", ";"], "ground_truth": ["X", "->", "InitMCCodeGenInfo", "(", "RM", ",", "CM", ",", "OL", ")", ";"], "File": "BPFMCTargetDesc10", "Func": "createBPFMCCodeGenInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1938, "Length": 20, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "if", "(", "SyntaxVariant", "==", "", ")", "return", "new", "InstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", ";", "return", "", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc10", "Func": "createBPFMCInstPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1939, "Length": 21, "Cover_Rate": 0.38181818181818183} {"Template_token": ["", "static", "MCRegisterInfo", "*", "createMCRegisterInfo", "(", "StringRef", "TT", ")", "{"], "ground_truth": ["MCRegisterInfo", "*", "X", "=", "new", "MCRegisterInfo", "(", ")", ";"], "File": "BPFMCTargetDesc10", "Func": "createBPFMCRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1941, "Length": 18, "Cover_Rate": 0.5806451612903226} {"Template_token": ["", "static", "MCStreamer", "*", "createMCStreamer", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "MCContext", "&", "Ctx", ",", "MCAsmBackend", "&", "MAB", ",", "raw_ostream", "&", "_OS", ",", "MCCodeEmitter", "*", "_Emitter", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "bool", "RelaxAll", ")", "{", "return", "createELFStreamer", "(", "Ctx", ",", "MAB", ",", "_OS", ",", "_Emitter", ",", "RelaxAll", ")", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc10", "Func": "createBPFMCStreamer", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1942, "Length": 53, "Cover_Rate": 1.0} {"Template_token": ["", "static", "MCSubtargetInfo", "*", "createMCSubtargetInfo", "(", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "MCSubtargetInfo", "*", "X", "=", "new", "MCSubtargetInfo", "(", ")", ";", "InitMCSubtargetInfo", "(", "X", ",", "TT", ",", "CPU", ",", "FS", ")", ";", "return", "X", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc10", "Func": "createBPFMCSubtargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1943, "Length": 39, "Cover_Rate": 1.0} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCRegInfo", "(", "TheTarget", ",", "createMCRegisterInfo", ")", ";", "TargetRegistry", "::", "RegisterMCSubtargetInfo", "(", "TheTarget", ",", "createMCSubtargetInfo", ")", ";", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "TheTarget", ",", "llvm", "::", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheTarget", ",", "createAsmBackend", ")", ";", "TargetRegistry", "::", "RegisterMCObjectStreamer", "(", "TheTarget", ",", "createMCStreamer", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCInstPrinter", "(", "TheTarget", ",", "createMCInstPrinter", ")", ";"], "File": "BPFMCTargetDesc10", "Func": "LLVMInitializeBPFTargetMC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1944, "Length": 56, "Cover_Rate": 0.6292134831460674} {"Template_token": ["", "RegisterMCAsmInfo", "<", "MCAsmInfo", ">", "X", "(", "TheTarget", ")", ";", "TargetRegistry", "::", "RegisterMCCodeGenInfo", "(", "TheTarget", ",", "createMCCodeGenInfo", ")", ";", "TargetRegistry", "::", "RegisterMCInstrInfo", "(", "TheTarget", ",", "createMCInstrInfo", ")", ";", "TargetRegistry", "::", "RegisterMCRegInfo", "(", "TheTarget", ",", "createMCRegisterInfo", ")", ";", "TargetRegistry", "::", "RegisterMCSubtargetInfo", "(", "TheTarget", ",", "createMCSubtargetInfo", ")", ";", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "TheTarget", ",", "llvm", "::", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheTarget", ",", "createAsmBackend", ")", ";", "TargetRegistry", "::", "RegisterMCObjectStreamer", "(", "TheTarget", ",", "createMCStreamer", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCInstPrinter", "(", "TheTarget", ",", "createMCInstPrinter", ")", ";"], "File": "BPFMCTargetDesc10", "Func": "LLVMInitializeBPFTargetMC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1945, "Length": 83, "Cover_Rate": 0.9325842696629213} {"Template_token": ["", "explicit", "MCInstrAnalysis", "(", "const", "MCInstrInfo", "*", "Info", ")", ":", "MCInstrAnalysis", "(", "Info", ")", "{"], "ground_truth": ["}"], "File": "BPFMCTargetDesc11", "Func": "BPFMCInstrAnalysis", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1946, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "MCInstrAnalysis", "(", "const", "MCInstrInfo", "*", "Info", ")", ":", "MCInstrAnalysis", "(", "Info", ")", "{"], "ground_truth": ["}"], "File": "BPFMCTargetDesc11", "Func": "BPFMCInstrAnalysis", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1947, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "static", "MCInstrAnalysis", "*", "createInstrAnalysis", "(", "const", "MCInstrInfo", "*", "Info", ")", "{"], "ground_truth": ["return", "new", "MCInstrAnalysis", "(", "Info", ")", ";"], "File": "BPFMCTargetDesc11", "Func": "createBPFInstrAnalysis", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1948, "Length": 18, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "return", "createELFStreamer", "(", "Ctx", ",", "std", "::", "move", "(", "MAB", ")", ",", "std", "::", "move", "(", "OW", ")", ",", "std", "::", "move", "(", "Emitter", ")", ",", "RelaxAll", ")", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc11", "Func": "createBPFMCStreamer", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1950, "Length": 30, "Cover_Rate": 0.4} {"Template_token": ["", "static", "MCStreamer", "*", "createMCStreamer", "(", "const", "Triple", "&", "T", ",", "MCContext", "&", "Ctx", ",", "std", "::", "unique_ptr", "<", "MCAsmBackend", ">", "&&", "MAB", ",", "std", "::", "unique_ptr", "<", "MCObjectWriter", ">", "&&", "OW", ",", "std", "::", "unique_ptr", "<", "MCCodeEmitter", ">", "&&", "Emitter", ",", "bool", "RelaxAll", ")", "{"], "ground_truth": ["return", "createELFStreamer", "(", "Ctx", ",", "std", "::", "move", "(", "MAB", ")", ",", "std", "::", "move", "(", "OW", ")", ",", "std", "::", "move", "(", "Emitter", ")", ",", "RelaxAll", ")", ";"], "File": "BPFMCTargetDesc11", "Func": "createBPFMCStreamer", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1951, "Length": 74, "Cover_Rate": 0.9866666666666667} {"Template_token": ["", "if", "(", "isConditionalBranch", "(", "Inst", ")", ")", "{", "Imm", "=", "Inst", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "}", "else", "if", "(", "isUnconditionalBranch", "(", "Inst", ")", ")", "Imm", "=", "Inst", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "else", "return", "false", ";"], "ground_truth": ["Target", "=", "Addr", "+", "Size", "+", "Imm", "*", "Size", ";"], "File": "BPFMCTargetDesc11", "Func": "evaluateBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1952, "Length": 57, "Cover_Rate": 0.6705882352941176} {"Template_token": ["", "bool", "evaluateBranch", "(", "const", "MCInst", "&", "Inst", ",", "uint64_t", "Addr", ",", "uint64_t", "Size", ",", "uint64_t", "&", "Target", ")", "const", "override", "{", "int16_t", "Imm", ";", "if", "(", "isConditionalBranch", "(", "Inst", ")", ")", "{", "Imm", "=", "Inst", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "}", "else", "if", "(", "isUnconditionalBranch", "(", "Inst", ")", ")", "Imm", "=", "Inst", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "else", "return", "false", ";", "Target", "=", "Addr", "+", "Size", "+", "Imm", "*", "Size", ";"], "ground_truth": ["return", "true", ";"], "File": "BPFMCTargetDesc11", "Func": "evaluateBranch", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1953, "Length": 84, "Cover_Rate": 0.9882352941176471} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getThebeTarget", "(", ")", ",", "createbeMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getTheleTarget", "(", ")", ",", "createAsmBackend", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getThebeTarget", "(", ")", ",", "createbeAsmBackend", ")", ";", "if", "(", "sys", "::", "IsLittleEndianHost", ")", "{", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getTheTarget", "(", ")", ",", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getTheTarget", "(", ")", ",", "createAsmBackend", ")", ";"], "ground_truth": ["}", "else", "{"], "File": "BPFMCTargetDesc11", "Func": "LLVMInitializeBPFTargetMC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1954, "Length": 65, "Cover_Rate": 0.325} {"Template_token": ["", "static", "MCRegisterInfo", "*", "createMCRegisterInfo", "(", "const", "Triple", "&", "TT", ",", "const", "MCTargetOptions", "&", "Options", ")", "{", "MCRegisterInfo", "*", "X", "=", "new", "MCRegisterInfo", "(", ")", ";", "InitMCRegisterInfo", "(", "X", ",", "", ")", ";", "return", "X", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc12", "Func": "createBPFMCRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1955, "Length": 36, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "static", "MCSubtargetInfo", "*", "createMCSubtargetInfo", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "return", "createMCSubtargetInfoImpl", "(", "TT", ",", "CPU", ",", "CPU", ",", "FS", ")", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc12", "Func": "createBPFMCSubtargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1957, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getTheleTarget", "(", ")", ",", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getThebeTarget", "(", ")", ",", "createbeMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getTheleTarget", "(", ")", ",", "createAsmBackend", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getThebeTarget", "(", ")", ",", "createbeAsmBackend", ")", ";", "if", "(", "sys", "::", "IsLittleEndianHost", ")", "{", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getTheTarget", "(", ")", ",", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getTheTarget", "(", ")", ",", "createAsmBackend", ")", ";", "}", "else", "{", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getTheTarget", "(", ")", ",", "createbeMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getTheTarget", "(", ")", ",", "createbeAsmBackend", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFMCTargetDesc12", "Func": "LLVMInitializeBPFTargetMC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1958, "Length": 100, "Cover_Rate": 0.4975124378109453} {"Template_token": ["", "static", "MCCodeGenInfo", "*", "createMCCodeGenInfo", "(", "StringRef", "TT", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", "{", "MCCodeGenInfo", "*", "X", "=", "new", "MCCodeGenInfo", "(", ")", ";", "X", "->", "initMCCodeGenInfo", "(", "RM", ",", "CM", ",", "OL", ")", ";", "return", "X", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc17", "Func": "createBPFMCCodeGenInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1959, "Length": 48, "Cover_Rate": 1.0} {"Template_token": ["", "MCCodeGenInfo", "*", "X", "=", "new", "MCCodeGenInfo", "(", ")", ";", "X", "->", "initMCCodeGenInfo", "(", "RM", ",", "CM", ",", "OL", ")", ";", "return", "X", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc17", "Func": "createBPFMCCodeGenInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1960, "Length": 24, "Cover_Rate": 0.5} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCInstrInfo", "(", "*", "T", ",", "createMCInstrInfo", ")", ";", "TargetRegistry", "::", "RegisterMCRegInfo", "(", "*", "T", ",", "createMCRegisterInfo", ")", ";", "TargetRegistry", "::", "RegisterMCSubtargetInfo", "(", "*", "T", ",", "createMCSubtargetInfo", ")", ";", "TargetRegistry", "::", "RegisterELFStreamer", "(", "*", "T", ",", "createMCStreamer", ")", ";", "TargetRegistry", "::", "RegisterMCInstPrinter", "(", "*", "T", ",", "createMCInstPrinter", ")", ";", "}", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "TheleTarget", ",", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "ThebeTarget", ",", "createbeMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheleTarget", ",", "createAsmBackend", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "ThebeTarget", ",", "createbeAsmBackend", ")", ";", "if", "(", "sys", "::", "IsLittleEndianHost", ")", "{", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "TheTarget", ",", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheTarget", ",", "createAsmBackend", ")", ";", "}", "else", "{", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "TheTarget", ",", "createbeMCCodeEmitter", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheTarget", ",", "createbeAsmBackend", ")", ";"], "File": "BPFMCTargetDesc17", "Func": "LLVMInitializeBPFTargetMC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1961, "Length": 133, "Cover_Rate": 0.7471910112359551} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCCodeGenInfo", "(", "*", "T", ",", "createMCCodeGenInfo", ")", ";", "TargetRegistry", "::", "RegisterMCInstrInfo", "(", "*", "T", ",", "createMCInstrInfo", ")", ";", "TargetRegistry", "::", "RegisterMCRegInfo", "(", "*", "T", ",", "createMCRegisterInfo", ")", ";", "TargetRegistry", "::", "RegisterMCSubtargetInfo", "(", "*", "T", ",", "createMCSubtargetInfo", ")", ";", "TargetRegistry", "::", "RegisterELFStreamer", "(", "*", "T", ",", "createMCStreamer", ")", ";", "TargetRegistry", "::", "RegisterMCInstPrinter", "(", "*", "T", ",", "createMCInstPrinter", ")", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc17", "Func": "LLVMInitializeBPFTargetMC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1962, "Length": 61, "Cover_Rate": 0.34269662921348315} {"Template_token": ["", "void", "LLVMInitializeTargetMC", "(", ")", "{", "RegisterMCAsmInfo", "<", "MCAsmInfo", ">", "X", "(", "TheTarget", ")", ";", "TargetRegistry", "::", "RegisterMCCodeGenInfo", "(", "TheTarget", ",", "createMCCodeGenInfo", ")", ";", "TargetRegistry", "::", "RegisterMCInstrInfo", "(", "TheTarget", ",", "createMCInstrInfo", ")", ";", "TargetRegistry", "::", "RegisterMCRegInfo", "(", "TheTarget", ",", "createMCRegisterInfo", ")", ";", "TargetRegistry", "::", "RegisterMCSubtargetInfo", "(", "TheTarget", ",", "createMCSubtargetInfo", ")", ";", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "TheTarget", ",", "llvm", "::", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheTarget", ",", "createAsmBackend", ")", ";", "TargetRegistry", "::", "RegisterELFStreamer", "(", "TheTarget", ",", "createMCStreamer", ")", ";", "TargetRegistry", "::", "RegisterMCInstPrinter", "(", "TheTarget", ",", "createMCInstPrinter", ")", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc18", "Func": "LLVMInitializeBPFTargetMC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1963, "Length": 89, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "SyntaxVariant", "==", "", ")", "return", "new", "InstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", ";"], "ground_truth": ["return", "nullptr", ";"], "File": "BPFMCTargetDesc1", "Func": "createBPFMCInstPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1964, "Length": 20, "Cover_Rate": 0.4} {"Template_token": ["", "if", "(", "SyntaxVariant", "==", "", ")", "return", "new", "InstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", ";", "return", "nullptr", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc1", "Func": "createBPFMCInstPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1965, "Length": 21, "Cover_Rate": 0.42} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getTheleTarget", "(", ")", ",", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getThebeTarget", "(", ")", ",", "createbeMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getTheleTarget", "(", ")", ",", "createAsmBackend", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getThebeTarget", "(", ")", ",", "createbeAsmBackend", ")", ";", "if", "(", "sys", "::", "IsLittleEndianHost", ")", "{", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getTheTarget", "(", ")", ",", "createMCCodeEmitter", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getTheTarget", "(", ")", ",", "createAsmBackend", ")", ";"], "File": "BPFMCTargetDesc1", "Func": "LLVMInitializeBPFTargetMC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1966, "Length": 73, "Cover_Rate": 0.38421052631578945} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCInstPrinter", "(", "*", "T", ",", "createMCInstPrinter", ")", ";", "}", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getTheleTarget", "(", ")", ",", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getThebeTarget", "(", ")", ",", "createbeMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getTheleTarget", "(", ")", ",", "createAsmBackend", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getThebeTarget", "(", ")", ",", "createbeAsmBackend", ")", ";", "if", "(", "sys", "::", "IsLittleEndianHost", ")", "{", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "getTheTarget", "(", ")", ",", "createMCCodeEmitter", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCAsmBackend", "(", "getTheTarget", "(", ")", ",", "createAsmBackend", ")", ";"], "File": "BPFMCTargetDesc1", "Func": "LLVMInitializeBPFTargetMC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1967, "Length": 84, "Cover_Rate": 0.4421052631578947} {"Template_token": ["", "static", "MCInstPrinter", "*", "createMCInstPrinter", "(", "const", "Target", "&", "T", ",", "unsigned", "SyntaxVariant", ",", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "if", "(", "SyntaxVariant", "==", "", ")", "return", "new", "InstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", ";"], "ground_truth": ["return", "", ";"], "File": "BPFMCTargetDesc20", "Func": "createBPFMCInstPrinter", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1968, "Length": 54, "Cover_Rate": 0.9818181818181818} {"Template_token": ["", "InitMCRegisterInfo", "(", "X", ",", "", ")", ";", "return", "X", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc20", "Func": "createBPFMCRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1969, "Length": 11, "Cover_Rate": 0.3548387096774194} {"Template_token": ["", "InitMCRegisterInfo", "(", "X", ",", "", ")", ";", "return", "X", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc20", "Func": "createBPFMCRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1970, "Length": 11, "Cover_Rate": 0.3548387096774194} {"Template_token": ["", "return", "createELFStreamer", "(", "Ctx", ",", "", ",", "MAB", ",", "_OS", ",", "_Emitter", ",", "RelaxAll", ",", "NoExecStack", ")", ";", "return", "createELFStreamer", "(", "Ctx", ",", "MAB", ",", "_OS", ",", "_Emitter", ",", "RelaxAll", ",", "NoExecStack", ")", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc20", "Func": "createBPFMCStreamer", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1971, "Length": 35, "Cover_Rate": 0.49295774647887325} {"Template_token": ["", "static", "MCStreamer", "*", "createMCStreamer", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "MCContext", "&", "Ctx", ",", "MCAsmBackend", "&", "MAB", ",", "raw_ostream", "&", "_OS", ",", "MCCodeEmitter", "*", "_Emitter", ",", "bool", "RelaxAll", ",", "bool", "NoExecStack", ")", "{", "return", "createELFStreamer", "(", "Ctx", ",", "", ",", "MAB", ",", "_OS", ",", "_Emitter", ",", "RelaxAll", ",", "NoExecStack", ")", ";"], "ground_truth": ["return", "createELFStreamer", "(", "Ctx", ",", "MAB", ",", "_OS", ",", "_Emitter", ",", "RelaxAll", ",", "NoExecStack", ")", ";"], "File": "BPFMCTargetDesc20", "Func": "createBPFMCStreamer", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1972, "Length": 70, "Cover_Rate": 0.9859154929577465} {"Template_token": ["", "static", "MCCodeGenInfo", "*", "createMCCodeGenInfo", "(", "const", "Triple", "&", "TT", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", "{", "MCCodeGenInfo", "*", "X", "=", "new", "MCCodeGenInfo", "(", ")", ";", "X", "->", "initMCCodeGenInfo", "(", "RM", ",", "CM", ",", "OL", ")", ";"], "ground_truth": ["return", "X", ";"], "File": "BPFMCTargetDesc23", "Func": "createBPFMCCodeGenInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1973, "Length": 49, "Cover_Rate": 0.98} {"Template_token": ["", "static", "MCStreamer", "*", "createMCStreamer", "(", "const", "Triple", "&", "T", ",", "MCContext", "&", "Ctx", ",", "MCAsmBackend", "&", "MAB", ",", "raw_ostream", "&", "OS", ",", "MCCodeEmitter", "*", "Emitter", ",", "bool", "RelaxAll", ")", "{", "return", "createELFStreamer", "(", "Ctx", ",", "MAB", ",", "OS", ",", "Emitter", ",", "RelaxAll", ")", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc3", "Func": "createBPFMCStreamer", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1974, "Length": 45, "Cover_Rate": 1.0} {"Template_token": ["", "return", "createELFStreamer", "(", "Ctx", ",", "std", "::", "move", "(", "MAB", ")", ",", "OS", ",", "std", "::", "move", "(", "Emitter", ")", ",", "RelaxAll", ")", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc4", "Func": "createBPFMCStreamer", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1976, "Length": 25, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "static", "MCStreamer", "*", "createMCStreamer", "(", "const", "Triple", "&", "T", ",", "MCContext", "&", "Ctx", ",", "std", "::", "unique_ptr", "<", "MCAsmBackend", ">", "&&", "MAB", ",", "raw_pwrite_stream", "&", "OS", ",", "std", "::", "unique_ptr", "<", "MCCodeEmitter", ">", "&&", "Emitter", ",", "bool", "RelaxAll", ")", "{"], "ground_truth": ["return", "createELFStreamer", "(", "Ctx", ",", "std", "::", "move", "(", "MAB", ")", ",", "OS", ",", "std", "::", "move", "(", "Emitter", ")", ",", "RelaxAll", ")", ";"], "File": "BPFMCTargetDesc4", "Func": "createBPFMCStreamer", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1977, "Length": 64, "Cover_Rate": 0.9846153846153847} {"Template_token": ["", "MCInstrInfo", "*", "X", "=", "new", "MCInstrInfo", "(", ")", ";"], "ground_truth": ["InitMCInstrInfo", "(", "X", ")", ";"], "File": "BPFMCTargetDesc", "Func": "createBPFMCInstrInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1979, "Length": 14, "Cover_Rate": 0.56} {"Template_token": ["", "InitMCRegisterInfo", "(", "X", ",", "", ")", ";", "return", "X", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc", "Func": "createBPFMCRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1980, "Length": 11, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "createELFStreamer", "(", "Ctx", ",", "MAB", ",", "OS", ",", "Emitter", ",", "RelaxAll", ")", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc", "Func": "createBPFMCStreamer", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1981, "Length": 15, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "static", "MCSubtargetInfo", "*", "createMCSubtargetInfo", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{"], "ground_truth": ["return", "createMCSubtargetInfoImpl", "(", "TT", ",", "CPU", ",", "FS", ")", ";"], "File": "BPFMCTargetDesc", "Func": "createBPFMCSubtargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1984, "Length": 27, "Cover_Rate": 0.9642857142857143} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "ThebeTarget", ",", "createbeMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheleTarget", ",", "createAsmBackend", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "ThebeTarget", ",", "createbeAsmBackend", ")", ";", "if", "(", "sys", "::", "IsLittleEndianHost", ")", "{", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "TheTarget", ",", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheTarget", ",", "createAsmBackend", ")", ";", "}", "else", "{", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "TheTarget", ",", "createbeMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheTarget", ",", "createbeAsmBackend", ")", ";"], "ground_truth": ["}"], "File": "BPFMCTargetDesc", "Func": "LLVMInitializeBPFTargetMC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1985, "Length": 74, "Cover_Rate": 0.44047619047619047} {"Template_token": ["", "TargetRegistry", "::", "RegisterMCInstrInfo", "(", "*", "T", ",", "createMCInstrInfo", ")", ";", "TargetRegistry", "::", "RegisterMCRegInfo", "(", "*", "T", ",", "createMCRegisterInfo", ")", ";", "TargetRegistry", "::", "RegisterMCSubtargetInfo", "(", "*", "T", ",", "createMCSubtargetInfo", ")", ";", "TargetRegistry", "::", "RegisterELFStreamer", "(", "*", "T", ",", "createMCStreamer", ")", ";", "TargetRegistry", "::", "RegisterMCInstPrinter", "(", "*", "T", ",", "createMCInstPrinter", ")", ";", "}", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "TheleTarget", ",", "createMCCodeEmitter", ")", ";", "TargetRegistry", "::", "RegisterMCCodeEmitter", "(", "ThebeTarget", ",", "createbeMCCodeEmitter", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCAsmBackend", "(", "TheleTarget", ",", "createAsmBackend", ")", ";"], "File": "BPFMCTargetDesc", "Func": "LLVMInitializeBPFTargetMC", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1986, "Length": 78, "Cover_Rate": 0.4642857142857143} {"Template_token": ["", "const", "DebugLoc", "&", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "if", "(", "DL", "!=", "Empty", ")", "report_fatal_error", "(", "", "+", "std", "::", "to_string", "(", "DL", ".", "getLine", "(", ")", ")", "+", "", ",", "false", ")", ";", "else", "report_fatal_error", "(", "", ",", "false", ")", ";", "}", "}", "}"], "ground_truth": ["return", ";"], "File": "BPFMIChecking1", "Func": "checkingIllegalXADD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1987, "Length": 50, "Cover_Rate": 0.373134328358209} {"Template_token": ["", "if", "(", "RegIsGPR64", ")", "return", "true", ";", "GPR32LiveDefs", ".", "push_back", "(", "MO", ".", "getReg", "(", ")", ")", ";", "continue", ";", "}", "if", "(", "RegIsGPR64", ")", "GPR64DeadDefs", ".", "push_back", "(", "MO", ".", "getReg", "(", ")", ")", ";", "}", "if", "(", "GPR32LiveDefs", ".", "empty", "(", ")", ")", "return", "false", ";", "if", "(", "GPR64DeadDefs", ".", "empty", "(", ")", ")", "return", "true", ";", "std", "::", "vector", "<", "unsigned", ">", "::", "iterator", "search_begin", "=", "GPR64DeadDefs", ".", "begin", "(", ")", ";", "std", "::", "vector", "<", "unsigned", ">", "::", "iterator", "search_end", "=", "GPR64DeadDefs", ".", "end", "(", ")", ";"], "ground_truth": ["for", "(", "auto", "I", ":", "GPR32LiveDefs", ")", "for", "(", "MCSuperRegIterator", "SR", "(", "I", ",", "TRI", ")", ";", "SR", ".", "isValid", "(", ")", ";", "++", "SR", ")", "if", "(", "std", "::", "find", "(", "search_begin", ",", "search_end", ",", "*", "SR", ")", "==", "search_end", ")", "return", "true", ";"], "File": "BPFMIChecking1", "Func": "hasLiveDefs", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1988, "Length": 136, "Cover_Rate": 0.5643153526970954} {"Template_token": ["", "std", "::", "vector", "<", "unsigned", ">", "::", "iterator", "search_begin", "=", "GPR64DeadDefs", ".", "begin", "(", ")", ";", "std", "::", "vector", "<", "unsigned", ">", "::", "iterator", "search_end", "=", "GPR64DeadDefs", ".", "end", "(", ")", ";", "for", "(", "auto", "I", ":", "GPR32LiveDefs", ")", "for", "(", "MCSuperRegIterator", "SR", "(", "I", ",", "TRI", ")", ";", "SR", ".", "isValid", "(", ")", ";", "++", "SR", ")", "if", "(", "std", "::", "find", "(", "search_begin", ",", "search_end", ",", "*", "SR", ")", "==", "search_end", ")", "return", "true", ";"], "ground_truth": ["return", "false", ";"], "File": "BPFMIChecking1", "Func": "hasLiveDefs", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1989, "Length": 80, "Cover_Rate": 0.33195020746887965} {"Template_token": ["", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "MO", ".", "isUse", "(", ")", ")", "continue", ";", "RegIsGPR64", "=", "GPR64RegClass", "->", "contains", "(", "MO", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "MO", ".", "isDead", "(", ")", ")", "{", "if", "(", "RegIsGPR64", ")", "return", "true", ";", "GPR32LiveDefs", ".", "push_back", "(", "MO", ".", "getReg", "(", ")", ")", ";", "continue", ";", "}", "if", "(", "RegIsGPR64", ")", "GPR64DeadDefs", ".", "push_back", "(", "MO", ".", "getReg", "(", ")", ")", ";", "}", "if", "(", "GPR32LiveDefs", ".", "empty", "(", ")", ")", "return", "false", ";", "if", "(", "GPR64DeadDefs", ".", "empty", "(", ")", ")", "return", "true", ";", "for", "(", "auto", "I", ":", "GPR32LiveDefs", ")", "for", "(", "MCSuperRegIterator", "SR", "(", "I", ",", "TRI", ")", ";", "SR", ".", "isValid", "(", ")", ";", "++", "SR", ")", "if", "(", "!", "llvm", "::", "is_contained", "(", "GPR64DeadDefs", ",", "*", "SR", ")", ")", "return", "true", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFMIChecking3", "Func": "hasLiveDefs", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1990, "Length": 145, "Cover_Rate": 0.7038834951456311} {"Template_token": ["", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "MI", ".", "dump", "(", ")", ")", ";", "if", "(", "hasLiveDefs", "(", "MI", ",", "TRI", ")", ")", "{", "DebugLoc", "Empty", ";", "const", "DebugLoc", "&", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "if", "(", "DL", "!=", "Empty", ")", "report_fatal_error", "(", "Twine", "(", "", ")", "+", "std", "::", "to_string", "(", "DL", ".", "getLine", "(", ")", ")", "+", "", ",", "false", ")", ";", "else", "report_fatal_error", "(", "", ",", "false", ")", ";", "}", "}", "}", "MachineInstr", "*", "ToErase", "=", "nullptr", ";", "bool", "Changed", "=", "false", ";", "const", "InstrInfo", "*", "TII", "=", "MF", "->", "getSubtarget", "<", "Subtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "*", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "if", "(", "ToErase", ")", "{", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "if", "(", "hasLiveDefs", "(", "MI", ",", "TRI", ")", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "MI", ".", "dump", "(", ")", ")", ";", "unsigned", "newOpcode", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "", ":", "newOpcode", "=", "", ";", "break", ";"], "ground_truth": ["case", "", ":"], "File": "BPFMIChecking3", "Func": "processAtomicInsts", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1991, "Length": 283, "Cover_Rate": 0.5581854043392505} {"Template_token": ["", "if", "(", "!", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "{", "initialize", "(", "MF", ")", ";", "return", "processAtomicInsts", "(", ")", ";", "}"], "ground_truth": ["return", "false", ";"], "File": "BPFMIChecking3", "Func": "runOnMachineFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1992, "Length": 27, "Cover_Rate": 0.7297297297297297} {"Template_token": ["", "initialize", "(", "MF", ")", ";", "return", "processAtomicInsts", "(", ")", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFMIChecking3", "Func": "runOnMachineFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1993, "Length": 15, "Cover_Rate": 0.40540540540540543} {"Template_token": ["", "const", "InstrInfo", "*", "TII", "=", "MF", "->", "getSubtarget", "<", "Subtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "*", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "if", "(", "ToErase", ")", "{", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "if", "(", "hasLiveDefs", "(", "MI", ",", "TRI", ")", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ";", "MI", ".", "dump", "(", ")", ")", ";", "unsigned", "newOpcode", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "case", "", ":", "newOpcode", "=", "", ";", "break", ";"], "ground_truth": ["case", "", ":"], "File": "BPFMIChecking4", "Func": "processAtomicInsts", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1994, "Length": 171, "Cover_Rate": 0.33794466403162055} {"Template_token": ["", "MIPreEmitChecking", "(", ")", ":", "MachineFunctionPass", "(", "ID", ")", "{", "initializeMIPreEmitCheckingPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFMIChecking", "Func": "BPFMIPreEmitChecking", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1996, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "!", "MI", ".", "allDefsAreDead", "(", ")", ")", "{", "DebugLoc", "Empty", ";", "const", "DebugLoc", "&", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "if", "(", "DL", "!=", "Empty", ")", "report_fatal_error", "(", "", "+", "std", "::", "to_string", "(", "DL", ".", "getLine", "(", ")", ")", "+", "", ",", "false", ")", ";", "else", "report_fatal_error", "(", "", ",", "false", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFMIChecking", "Func": "checkingIllegalXADD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1997, "Length": 60, "Cover_Rate": 0.4838709677419355} {"Template_token": ["", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "*", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "MI", ".", "dump", "(", ")", ")", ";", "if", "(", "!", "MI", ".", "allDefsAreDead", "(", ")", ")", "{", "DebugLoc", "Empty", ";", "const", "DebugLoc", "&", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "if", "(", "DL", "!=", "Empty", ")", "report_fatal_error", "(", "", "+", "std", "::", "to_string", "(", "DL", ".", "getLine", "(", ")", ")", "+", "", ",", "false", ")", ";"], "ground_truth": ["else", "report_fatal_error", "(", "", ",", "false", ")", ";"], "File": "BPFMIChecking", "Func": "checkingIllegalXADD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 1998, "Length": 106, "Cover_Rate": 0.8548387096774194} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createMIPreEmitCheckingPass", "(", ")", "{"], "ground_truth": ["return", "new", "MIPreEmitChecking", "(", ")", ";"], "File": "BPFMIChecking", "Func": "createBPFMIPreEmitCheckingPass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2000, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "MF", "=", "&", "MFParm", ";", "TRI", "=", "MF", "->", "getSubtarget", "<", "Subtarget", ">", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["}"], "File": "BPFMIChecking", "Func": "initialize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2001, "Length": 30, "Cover_Rate": 0.75} {"Template_token": ["", "void", "MIPreEmitChecking", "::", "initialize", "(", "MachineFunction", "&", "MFParm", ")", "{"], "ground_truth": ["MF", "=", "&", "MFParm", ";"], "File": "BPFMIChecking", "Func": "initialize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2002, "Length": 15, "Cover_Rate": 0.375} {"Template_token": ["", "bool", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "override", "{", "if", "(", "!", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "{", "initialize", "(", "MF", ")", ";", "checkingIllegalXADD", "(", ")", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "BPFMIChecking", "Func": "runOnMachineFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2003, "Length": 36, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "unsigned", "dst_sub", "=", "TRI", "->", "getSubReg", "(", "dst", ",", "", ")", ";", "unsigned", "src", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";"], "ground_truth": ["if", "(", "dst_sub", "!=", "src", ")", "continue", ";"], "File": "BPFMIPeephole10", "Func": "eliminateRedundantMov", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2004, "Length": 48, "Cover_Rate": 0.3116883116883117} {"Template_token": ["", "ToErase", "=", "nullptr", ";", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", "&&", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "==", "", ")", "{", "unsigned", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "unsigned", "ShfReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "MachineInstr", "*", "SllMI", "=", "MRI", "->", "getVRegDef", "(", "ShfReg", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "DEBUG", "(", "MI", ".", "dump", "(", ")", ")", ";", "if", "(", "!", "SllMI", "||", "SllMI", "->", "isPHI", "(", ")", "||", "SllMI", "->", "getOpcode", "(", ")", "!=", "", "||", "SllMI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "!=", "", ")", "continue", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "DEBUG", "(", "SllMI", "->", "dump", "(", ")", ")", ";", "MachineInstr", "*", "MovMI", "=", "MRI", "->", "getVRegDef", "(", "SllMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "MovMI", "||", "MovMI", "->", "isPHI", "(", ")", "||", "MovMI", "->", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "DEBUG", "(", "MovMI", "->", "dump", "(", ")", ")", ";", "unsigned", "SubReg", "=", "MovMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "isMovFrom32Def", "(", "MovMI", ")", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "continue", ";", "}", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", ")", ",", "DstReg", ")", ".", "addImm", "(", "", ")", ".", "addReg", "(", "SubReg", ")", ".", "addImm", "(", "", ")", ";", "SllMI", "->", "eraseFromParent", "(", ")", ";", "MovMI", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "&", "MI", ";", "ZExtElemNum", "++", ";", "Eliminated", "=", "true", ";", "}", "}", "}", "return", "Eliminated", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole10", "Func": "eliminateZExtSeq", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2005, "Length": 300, "Cover_Rate": 0.8356545961002786} {"Template_token": ["", "if", "(", "ToErase", ")", "{", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", "&&", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "==", "", ")", "{", "unsigned", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "unsigned", "ShfReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "MachineInstr", "*", "SllMI", "=", "MRI", "->", "getVRegDef", "(", "ShfReg", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "DEBUG", "(", "MI", ".", "dump", "(", ")", ")", ";", "if", "(", "!", "SllMI", "||", "SllMI", "->", "isPHI", "(", ")", "||", "SllMI", "->", "getOpcode", "(", ")", "!=", "", "||", "SllMI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "!=", "", ")", "continue", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "DEBUG", "(", "SllMI", "->", "dump", "(", ")", ")", ";", "MachineInstr", "*", "MovMI", "=", "MRI", "->", "getVRegDef", "(", "SllMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "MovMI", "||", "MovMI", "->", "isPHI", "(", ")", "||", "MovMI", "->", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "DEBUG", "(", "MovMI", "->", "dump", "(", ")", ")", ";", "unsigned", "SubReg", "=", "MovMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";"], "ground_truth": ["if", "(", "!", "isMovFrom32Def", "(", "MovMI", ")", ")", "{"], "File": "BPFMIPeephole10", "Func": "eliminateZExtSeq", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2006, "Length": 231, "Cover_Rate": 0.6434540389972145} {"Template_token": ["", "MF", "=", "&", "MFParm", ";", "TRI", "=", "MF", "->", "getSubtarget", "<", "Subtarget", ">", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole10", "Func": "initialize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2007, "Length": 30, "Cover_Rate": 0.75} {"Template_token": ["", "ToErase", "=", "nullptr", ";", "}", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "{", "Register", "dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "Register", "src", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "dst", "!=", "src", ")", "continue", ";", "ToErase", "=", "&", "MI", ";", "RedundantMovElemNum", "++", ";", "Eliminated", "=", "true", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole11", "Func": "eliminateRedundantMov", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2009, "Length": 70, "Cover_Rate": 0.4861111111111111} {"Template_token": ["", "if", "(", "ToErase", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "ToErase", "->", "dump", "(", ")", ")", ";", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "{", "Register", "dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "Register", "src", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "dst", "!=", "src", ")", "continue", ";", "ToErase", "=", "&", "MI", ";", "RedundantMovElemNum", "++", ";", "Eliminated", "=", "true", ";", "}"], "ground_truth": ["}"], "File": "BPFMIPeephole11", "Func": "eliminateRedundantMov", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2010, "Length": 100, "Cover_Rate": 0.6944444444444444} {"Template_token": ["", "bool", "MIPeepholeTruncElim", "::", "eliminateTruncSeq", "(", ")", "{", "MachineInstr", "*", "ToErase", "=", "nullptr", ";", "bool", "Eliminated", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "*", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "MachineInstr", "*", "MI2", "=", "nullptr", ";", "Register", "DstReg", ",", "SrcReg", ";", "MachineInstr", "*", "DefMI", ";", "int", "TruncSize", "=", "-", "", ";", "if", "(", "ToErase", ")", "{", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", "&&", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "==", "", ")", "{", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "MRI", "->", "hasOneNonDBGUse", "(", "SrcReg", ")", ")", "continue", ";", "MI2", "=", "MRI", "->", "getVRegDef", "(", "SrcReg", ")", ";", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "MI2", "||", "MI2", "->", "getOpcode", "(", ")", "!=", "", "||", "MI2", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "!=", "", ")", "continue", ";", "SrcReg", "=", "MI2", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "DefMI", "=", "MRI", "->", "getVRegDef", "(", "SrcReg", ")", ";", "if", "(", "DefMI", ")", "TruncSize", "=", "", ";", "}", "else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", "||", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "DefMI", "=", "MRI", "->", "getVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "DefMI", ")", "continue", ";", "int64_t", "imm", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "imm", "==", "", ")", "TruncSize", "=", "", ";", "else", "if", "(", "imm", "==", "", ")", "TruncSize", "=", "", ";", "}", "if", "(", "TruncSize", "==", "-", "", ")", "continue", ";"], "ground_truth": ["if", "(", "DefMI", "->", "isPHI", "(", ")", ")", "{"], "File": "BPFMIPeephole11", "Func": "eliminateTruncSeq", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2011, "Length": 320, "Cover_Rate": 0.6213592233009708} {"Template_token": ["", "bool", "Eliminated", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "*", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "if", "(", "ToErase", ")", "{", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "MI", ".", "dump", "(", ")", ")", ";", "if", "(", "!", "isMovFrom32Def", "(", "&", "MI", ")", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "Register", "dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";"], "ground_truth": ["Register", "src", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";"], "File": "BPFMIPeephole11", "Func": "eliminateZExt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2012, "Length": 118, "Cover_Rate": 0.6243386243386243} {"Template_token": ["", "Register", "src", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", ")", ",", "dst", ")", ".", "addImm", "(", "", ")", ".", "addReg", "(", "src", ")", ".", "addImm", "(", "", ")", ";", "ToErase", "=", "&", "MI", ";", "Eliminated", "=", "true", ";", "}", "}"], "ground_truth": ["return", "Eliminated", ";"], "File": "BPFMIPeephole11", "Func": "eliminateZExt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2013, "Length": 65, "Cover_Rate": 0.3439153439153439} {"Template_token": ["", "if", "(", "!", "MovMI", "||", "MovMI", "->", "isPHI", "(", ")", "||", "MovMI", "->", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "MovMI", "->", "dump", "(", ")", ")", ";", "Register", "SubReg", "=", "MovMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "isMovFrom32Def", "(", "MovMI", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "continue", ";", "}", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", ")", ",", "DstReg", ")", ".", "addImm", "(", "", ")", ".", "addReg", "(", "SubReg", ")", ".", "addImm", "(", "", ")", ";", "SllMI", "->", "eraseFromParent", "(", ")", ";", "MovMI", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "&", "MI", ";", "ZExtElemNum", "++", ";", "Eliminated", "=", "true", ";", "}", "}", "}"], "ground_truth": ["return", "Eliminated", ";"], "File": "BPFMIPeephole11", "Func": "eliminateZExtSeq", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2014, "Length": 141, "Cover_Rate": 0.39385474860335196} {"Template_token": ["", "LLVM_DEBUG", "(", "MI", ".", "dump", "(", ")", ")", ";", "if", "(", "!", "SllMI", "||", "SllMI", "->", "isPHI", "(", ")", "||", "SllMI", "->", "getOpcode", "(", ")", "!=", "", "||", "SllMI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "SllMI", "->", "dump", "(", ")", ")", ";", "MachineInstr", "*", "MovMI", "=", "MRI", "->", "getVRegDef", "(", "SllMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "MovMI", "||", "MovMI", "->", "isPHI", "(", ")", "||", "MovMI", "->", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "MovMI", "->", "dump", "(", ")", ")", ";", "Register", "SubReg", "=", "MovMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "isMovFrom32Def", "(", "MovMI", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "continue", ";", "}", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", ")", ",", "DstReg", ")", ".", "addImm", "(", "", ")", ".", "addReg", "(", "SubReg", ")", ".", "addImm", "(", "", ")", ";", "SllMI", "->", "eraseFromParent", "(", ")", ";"], "ground_truth": ["MovMI", "->", "eraseFromParent", "(", ")", ";"], "File": "BPFMIPeephole11", "Func": "eliminateZExtSeq", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2015, "Length": 204, "Cover_Rate": 0.5698324022346368} {"Template_token": ["", "initialize", "(", "MF", ")", ";", "bool", "ZExtSeqExist", ",", "ZExtExist", ";"], "ground_truth": ["ZExtSeqExist", "=", "eliminateZExtSeq", "(", ")", ";"], "File": "BPFMIPeephole11", "Func": "runOnMachineFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2016, "Length": 16, "Cover_Rate": 0.3137254901960784} {"Template_token": ["", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "initialize", "(", "MF", ")", ";", "bool", "ZExtSeqExist", ",", "ZExtExist", ";"], "ground_truth": ["ZExtSeqExist", "=", "eliminateZExtSeq", "(", ")", ";"], "File": "BPFMIPeephole11", "Func": "runOnMachineFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2017, "Length": 30, "Cover_Rate": 0.5882352941176471} {"Template_token": ["", "bool", "MIPeephole", "::", "isMovFrom32Def", "(", "MachineInstr", "*", "MovMI", ")", "{", "MachineInstr", "*", "DefInsn", "=", "MRI", "->", "getVRegDef", "(", "MovMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "DefInsn", "->", "dump", "(", ")", ")", ";", "if", "(", "!", "DefInsn", ")", "return", "false", ";", "if", "(", "DefInsn", "->", "isPHI", "(", ")", ")", "{", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "DefInsn", "->", "getNumOperands", "(", ")", ";", "i", "<", "e", ";", "i", "+=", "", ")", "{", "MachineOperand", "&", "opnd", "=", "DefInsn", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "opnd", ".", "isReg", "(", ")", ")", "return", "false", ";", "MachineInstr", "*", "PhiDef", "=", "MRI", "->", "getVRegDef", "(", "opnd", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "PhiDef", "||", "PhiDef", "->", "isPHI", "(", ")", "||", "PhiDef", "->", "getOpcode", "(", ")", "==", "", ")", "return", "false", ";", "}", "}", "if", "(", "DefInsn", "->", "getOpcode", "(", ")", "==", "", ")", "{"], "ground_truth": ["MachineOperand", "&", "opnd", "=", "DefInsn", "->", "getOperand", "(", "", ")", ";"], "File": "BPFMIPeephole13", "Func": "isMovFrom32Def", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2018, "Length": 173, "Cover_Rate": 0.726890756302521} {"Template_token": ["", "if", "(", "!", "opnd", ".", "isReg", "(", ")", ")", "return", "false", ";", "MachineInstr", "*", "PhiDef", "=", "MRI", "->", "getVRegDef", "(", "opnd", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "PhiDef", "||", "PhiDef", "->", "isPHI", "(", ")", "||", "PhiDef", "->", "getOpcode", "(", ")", "==", "", ")", "return", "false", ";", "}", "}", "if", "(", "DefInsn", "->", "getOpcode", "(", ")", "==", "", ")", "{"], "ground_truth": ["MachineOperand", "&", "opnd", "=", "DefInsn", "->", "getOperand", "(", "", ")", ";"], "File": "BPFMIPeephole13", "Func": "isMovFrom32Def", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2019, "Length": 73, "Cover_Rate": 0.3067226890756303} {"Template_token": ["", "LLVM_DEBUG", "(", "ToErase", "->", "dump", "(", ")", ")", ";", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "{"], "ground_truth": ["Register", "dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";"], "File": "BPFMIPeephole14", "Func": "eliminateRedundantMov", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2020, "Length": 50, "Cover_Rate": 0.3448275862068966} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "ToErase", "->", "dump", "(", ")", ")", ";", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "{", "Register", "dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "Register", "src", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "dst", "!=", "src", ")", "continue", ";", "ToErase", "=", "&", "MI", ";", "RedundantMovElemNum", "++", ";"], "ground_truth": ["Eliminated", "=", "true", ";"], "File": "BPFMIPeephole14", "Func": "eliminateRedundantMov", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2021, "Length": 93, "Cover_Rate": 0.6413793103448275} {"Template_token": ["", "bool", "MIPeephole", "::", "eliminateZExt", "(", "void", ")", "{", "MachineInstr", "*", "ToErase", "=", "nullptr", ";", "bool", "Eliminated", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "*", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "if", "(", "ToErase", ")", "{", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "MI", ".", "dump", "(", ")", ")", ";", "if", "(", "!", "isMovFrom32Def", "(", "&", "MI", ")", ")", "continue", ";"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "File": "BPFMIPeephole14", "Func": "eliminateZExt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2022, "Length": 104, "Cover_Rate": 0.5473684210526316} {"Template_token": ["", "Register", "dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "Register", "dst_sub", "=", "TRI", "->", "getSubReg", "(", "dst", ",", "", ")", ";", "Register", "src", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "dst_sub", "!=", "src", ")", "continue", ";", "ToErase", "=", "&", "MI", ";", "RedundantMovElemNum", "++", ";", "Eliminated", "=", "true", ";", "}", "}"], "ground_truth": ["}"], "File": "BPFMIPeephole16", "Func": "eliminateRedundantMov", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2023, "Length": 63, "Cover_Rate": 0.4090909090909091} {"Template_token": ["", "unsigned", "dst_sub", "=", "TRI", "->", "getSubReg", "(", "dst", ",", "", ")", ";", "unsigned", "src", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "dst_sub", "!=", "src", ")", "continue", ";", "ToErase", "=", "&", "MI", ";", "RedundantMovElemNum", "++", ";", "Eliminated", "=", "true", ";", "}"], "ground_truth": ["}"], "File": "BPFMIPeephole1", "Func": "eliminateRedundantMov", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2024, "Length": 48, "Cover_Rate": 0.3116883116883117} {"Template_token": ["", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", "&&", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "==", "", ")", "{", "unsigned", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "unsigned", "ShfReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "MachineInstr", "*", "SllMI", "=", "MRI", "->", "getVRegDef", "(", "ShfReg", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "MI", ".", "dump", "(", ")", ")", ";", "if", "(", "!", "SllMI", "||", "SllMI", "->", "isPHI", "(", ")", "||", "SllMI", "->", "getOpcode", "(", ")", "!=", "", "||", "SllMI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "SllMI", "->", "dump", "(", ")", ")", ";", "MachineInstr", "*", "MovMI", "=", "MRI", "->", "getVRegDef", "(", "SllMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "MovMI", "||", "MovMI", "->", "isPHI", "(", ")", "||", "MovMI", "->", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "MovMI", "->", "dump", "(", ")", ")", ";", "unsigned", "SubReg", "=", "MovMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "isMovFrom32Def", "(", "MovMI", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "continue", ";", "}", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", ")", ",", "DstReg", ")", ".", "addImm", "(", "", ")", ".", "addReg", "(", "SubReg", ")", ".", "addImm", "(", "", ")", ";", "SllMI", "->", "eraseFromParent", "(", ")", ";", "MovMI", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "&", "MI", ";", "ZExtElemNum", "++", ";", "Eliminated", "=", "true", ";", "}"], "ground_truth": ["}"], "File": "BPFMIPeephole1", "Func": "eliminateZExtSeq", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2025, "Length": 290, "Cover_Rate": 0.807799442896936} {"Template_token": ["", "if", "(", "!", "SllMI", "||", "SllMI", "->", "isPHI", "(", ")", "||", "SllMI", "->", "getOpcode", "(", ")", "!=", "", "||", "SllMI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "SllMI", "->", "dump", "(", ")", ")", ";", "MachineInstr", "*", "MovMI", "=", "MRI", "->", "getVRegDef", "(", "SllMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "MovMI", "||", "MovMI", "->", "isPHI", "(", ")", "||", "MovMI", "->", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "MovMI", "->", "dump", "(", ")", ")", ";", "unsigned", "SubReg", "=", "MovMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "isMovFrom32Def", "(", "MovMI", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "continue", ";", "}", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", ")", ",", "DstReg", ")", ".", "addImm", "(", "", ")", ".", "addReg", "(", "SubReg", ")", ".", "addImm", "(", "", ")", ";", "SllMI", "->", "eraseFromParent", "(", ")", ";"], "ground_truth": ["MovMI", "->", "eraseFromParent", "(", ")", ";"], "File": "BPFMIPeephole1", "Func": "eliminateZExtSeq", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2026, "Length": 195, "Cover_Rate": 0.5431754874651811} {"Template_token": ["", "MF", "=", "&", "MFParm", ";", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";"], "ground_truth": ["TII", "=", "MF", "->", "getSubtarget", "<", "Subtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";"], "File": "BPFMIPeephole1", "Func": "initialize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2027, "Length": 29, "Cover_Rate": 0.5918367346938775} {"Template_token": ["", "LLVM_DEBUG", "(", "DefInsn", "->", "dump", "(", ")", ")", ";", "if", "(", "!", "DefInsn", ")", "return", "false", ";", "if", "(", "DefInsn", "->", "isPHI", "(", ")", ")", "{", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "DefInsn", "->", "getNumOperands", "(", ")", ";", "i", "<", "e", ";", "i", "+=", "", ")", "{", "MachineOperand", "&", "opnd", "=", "DefInsn", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "opnd", ".", "isReg", "(", ")", ")", "return", "false", ";", "MachineInstr", "*", "PhiDef", "=", "MRI", "->", "getVRegDef", "(", "opnd", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "PhiDef", "||", "PhiDef", "->", "isPHI", "(", ")", "||", "PhiDef", "->", "getOpcode", "(", ")", "==", "", ")", "return", "false", ";", "}"], "ground_truth": ["}"], "File": "BPFMIPeephole1", "Func": "isMovFrom32Def", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2028, "Length": 112, "Cover_Rate": 0.47058823529411764} {"Template_token": ["", "DefMI", "=", "MRI", "->", "getVRegDef", "(", "SrcReg", ")", ";", "if", "(", "DefMI", ")", "TruncSize", "=", "", ";", "}", "else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", "||", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "DefMI", "=", "MRI", "->", "getVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "DefMI", ")", "continue", ";", "int64_t", "imm", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "imm", "==", "", ")", "TruncSize", "=", "", ";", "else", "if", "(", "imm", "==", "", ")", "TruncSize", "=", "", ";", "}", "if", "(", "TruncSize", "==", "-", "", ")", "continue", ";", "if", "(", "DefMI", "->", "isPHI", "(", ")", ")", "{", "bool", "CheckFail", "=", "false", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "DefMI", "->", "getNumOperands", "(", ")", ";", "i", "<", "e", ";", "i", "+=", "", ")", "{", "MachineOperand", "&", "opnd", "=", "DefMI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "opnd", ".", "isReg", "(", ")", ")", "{", "CheckFail", "=", "true", ";", "break", ";", "}", "MachineInstr", "*", "PhiDef", "=", "MRI", "->", "getVRegDef", "(", "opnd", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "PhiDef", "||", "PhiDef", "->", "isPHI", "(", ")", "||", "!", "TruncSizeCompatible", "(", "TruncSize", ",", "PhiDef", "->", "getOpcode", "(", ")", ")", ")", "{", "CheckFail", "=", "true", ";", "break", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole5", "Func": "eliminateTruncSeq", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2029, "Length": 237, "Cover_Rate": 0.45930232558139533} {"Template_token": ["", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", "&&", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "==", "", ")", "{", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "MRI", "->", "hasOneNonDBGUse", "(", "SrcReg", ")", ")", "continue", ";", "MI2", "=", "MRI", "->", "getVRegDef", "(", "SrcReg", ")", ";", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "MI2", "||", "MI2", "->", "getOpcode", "(", ")", "!=", "", "||", "MI2", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "!=", "", ")", "continue", ";", "SrcReg", "=", "MI2", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "DefMI", "=", "MRI", "->", "getVRegDef", "(", "SrcReg", ")", ";", "if", "(", "DefMI", ")", "TruncSize", "=", "", ";", "}", "else", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", "||", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "DefMI", "=", "MRI", "->", "getVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "DefMI", ")", "continue", ";", "int64_t", "imm", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "imm", "==", "", ")", "TruncSize", "=", "", ";", "else", "if", "(", "imm", "==", "", ")", "TruncSize", "=", "", ";", "}", "if", "(", "TruncSize", "==", "-", "", ")", "continue", ";"], "ground_truth": ["if", "(", "DefMI", "->", "isPHI", "(", ")", ")", "{"], "File": "BPFMIPeephole5", "Func": "eliminateTruncSeq", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2030, "Length": 247, "Cover_Rate": 0.4786821705426357} {"Template_token": ["", "initializeMIPeepholeTruncElimPass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole", "Func": "BPFMIPeepholeTruncElim", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2033, "Length": 11, "Cover_Rate": 0.55} {"Template_token": ["", "MIPreEmitPeephole", "(", ")", ":", "MachineFunctionPass", "(", "ID", ")", "{", "initializeMIPreEmitPeepholePass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole", "Func": "BPFMIPreEmitPeephole", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2036, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "return", "new", "MIPeephole", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole", "Func": "createBPFMIPeepholePass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2037, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createMIPeepholeTruncElimPass", "(", ")", "{"], "ground_truth": ["return", "new", "MIPeepholeTruncElim", "(", ")", ";"], "File": "BPFMIPeephole", "Func": "createBPFMIPeepholeTruncElimPass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2039, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createMIPreEmitPeepholePass", "(", ")", "{"], "ground_truth": ["return", "new", "MIPreEmitPeephole", "(", ")", ";"], "File": "BPFMIPeephole", "Func": "createBPFMIPreEmitPeepholePass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2042, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "*", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "if", "(", "ToErase", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "ToErase", "->", "dump", "(", ")", ")", ";", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", ")", "{", "Register", "dst", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "Register", "src", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "dst", "=", "TRI", "->", "getSubReg", "(", "dst", ",", "", ")", ";", "if", "(", "dst", "!=", "src", ")", "continue", ";", "ToErase", "=", "&", "MI", ";", "RedundantMovElemNum", "++", ";", "Eliminated", "=", "true", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole", "Func": "eliminateRedundantMov", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2043, "Length": 143, "Cover_Rate": 0.8033707865168539} {"Template_token": ["", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "DefMI", "=", "MRI", "->", "getVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "DefMI", ")", "continue", ";", "int64_t", "imm", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "imm", "==", "", ")", "TruncSize", "=", "", ";", "else", "if", "(", "imm", "==", "", ")", "TruncSize", "=", "", ";", "}", "if", "(", "TruncSize", "==", "-", "", ")", "continue", ";", "if", "(", "DefMI", "->", "isPHI", "(", ")", ")", "{", "bool", "CheckFail", "=", "false", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "DefMI", "->", "getNumOperands", "(", ")", ";", "i", "<", "e", ";", "i", "+=", "", ")", "{", "MachineOperand", "&", "opnd", "=", "DefMI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "opnd", ".", "isReg", "(", ")", ")", "{", "CheckFail", "=", "true", ";", "break", ";", "}", "MachineInstr", "*", "PhiDef", "=", "MRI", "->", "getVRegDef", "(", "opnd", ".", "getReg", "(", ")", ")", ";"], "ground_truth": ["if", "(", "!", "PhiDef", "||", "PhiDef", "->", "isPHI", "(", ")", "||", "!", "TruncSizeCompatible", "(", "TruncSize", ",", "PhiDef", "->", "getOpcode", "(", ")", ")", ")", "{"], "File": "BPFMIPeephole", "Func": "eliminateTruncSeq", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2044, "Length": 192, "Cover_Rate": 0.38095238095238093} {"Template_token": ["", "LLVM_DEBUG", "(", "SllMI", "->", "dump", "(", ")", ")", ";", "MachineInstr", "*", "MovMI", "=", "MRI", "->", "getVRegDef", "(", "SllMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "MovMI", "||", "MovMI", "->", "isPHI", "(", ")", "||", "MovMI", "->", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "MovMI", "->", "dump", "(", ")", ")", ";", "Register", "SubReg", "=", "MovMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "isMovFrom32Def", "(", "MovMI", ")", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "continue", ";", "}", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", ")", ",", "DstReg", ")", ".", "addImm", "(", "", ")", ".", "addReg", "(", "SubReg", ")", ".", "addImm", "(", "", ")", ";", "SllMI", "->", "eraseFromParent", "(", ")", ";", "MovMI", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "&", "MI", ";", "ZExtElemNum", "++", ";"], "ground_truth": ["Eliminated", "=", "true", ";"], "File": "BPFMIPeephole", "Func": "eliminateZExtSeq", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2045, "Length": 164, "Cover_Rate": 0.4568245125348189} {"Template_token": ["", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "TII", "=", "MF", "->", "getSubtarget", "<", "Subtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole", "Func": "initialize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2046, "Length": 34, "Cover_Rate": 0.6938775510204082} {"Template_token": ["", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "TII", "=", "MF", "->", "getSubtarget", "<", "Subtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "File": "BPFMIPeephole", "Func": "initialize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2047, "Length": 33, "Cover_Rate": 0.673469387755102} {"Template_token": ["", "if", "(", "!", "Register", "::", "isVirtualRegister", "(", "Reg", ")", ")", "return", "false", ";", "if", "(", "MRI", "->", "getRegClass", "(", "Reg", ")", "==", "&", "", ")", "return", "false", ";", "MachineInstr", "*", "DefInsn", "=", "MRI", "->", "getVRegDef", "(", "Reg", ")", ";"], "ground_truth": ["if", "(", "!", "isInsnFrom32Def", "(", "DefInsn", ")", ")", "return", "false", ";"], "File": "BPFMIPeephole", "Func": "isCopyFrom32Def", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2048, "Length": 50, "Cover_Rate": 0.5102040816326531} {"Template_token": ["", "MachineOperand", "&", "opnd", "=", "CopyMI", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "opnd", ".", "isReg", "(", ")", ")", "return", "false", ";", "Register", "Reg", "=", "opnd", ".", "getReg", "(", ")", ";", "if", "(", "!", "Register", "::", "isVirtualRegister", "(", "Reg", ")", ")", "return", "false", ";", "if", "(", "MRI", "->", "getRegClass", "(", "Reg", ")", "==", "&", "", ")", "return", "false", ";", "MachineInstr", "*", "DefInsn", "=", "MRI", "->", "getVRegDef", "(", "Reg", ")", ";"], "ground_truth": ["if", "(", "!", "isInsnFrom32Def", "(", "DefInsn", ")", ")", "return", "false", ";"], "File": "BPFMIPeephole", "Func": "isCopyFrom32Def", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2049, "Length": 82, "Cover_Rate": 0.8367346938775511} {"Template_token": ["", "PhiInsns", ".", "insert", "(", "DefInsn", ")", ";", "if", "(", "!", "isPhiFrom32Def", "(", "DefInsn", ")", ")", "return", "false", ";", "}", "else", "if", "(", "DefInsn", "->", "getOpcode", "(", ")", "==", "", ")", "{", "if", "(", "!", "isCopyFrom32Def", "(", "DefInsn", ")", ")", "return", "false", ";", "}", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole", "Func": "isInsnFrom32Def", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2050, "Length": 47, "Cover_Rate": 0.5} {"Template_token": ["", "if", "(", "!", "isPhiFrom32Def", "(", "DefInsn", ")", ")", "return", "false", ";", "}", "else", "if", "(", "DefInsn", "->", "getOpcode", "(", ")", "==", "", ")", "{", "if", "(", "!", "isCopyFrom32Def", "(", "DefInsn", ")", ")", "return", "false", ";", "}"], "ground_truth": ["return", "true", ";"], "File": "BPFMIPeephole", "Func": "isInsnFrom32Def", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2051, "Length": 39, "Cover_Rate": 0.4148936170212766} {"Template_token": ["", "MachineInstr", "*", "DefInsn", "=", "MRI", "->", "getVRegDef", "(", "MovMI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "LLVM_DEBUG", "(", "DefInsn", "->", "dump", "(", ")", ")", ";", "PhiInsns", ".", "clear", "(", ")", ";", "if", "(", "!", "isInsnFrom32Def", "(", "DefInsn", ")", ")", "return", "false", ";"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "File": "BPFMIPeephole", "Func": "isMovFrom32Def", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2052, "Length": 64, "Cover_Rate": 0.8205128205128205} {"Template_token": ["", "if", "(", "!", "isInsnFrom32Def", "(", "DefInsn", ")", ")", "return", "false", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole", "Func": "isMovFrom32Def", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2053, "Length": 24, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "if", "(", "!", "PhiDef", ")", "return", "false", ";", "if", "(", "PhiDef", "->", "isPHI", "(", ")", ")", "{", "if", "(", "PhiInsns", ".", "find", "(", "PhiDef", ")", "!=", "PhiInsns", ".", "end", "(", ")", ")", "return", "false", ";", "PhiInsns", ".", "insert", "(", "PhiDef", ")", ";", "if", "(", "!", "isPhiFrom32Def", "(", "PhiDef", ")", ")", "return", "false", ";", "}"], "ground_truth": ["if", "(", "PhiDef", "->", "getOpcode", "(", ")", "==", "", "&&", "!", "isCopyFrom32Def", "(", "PhiDef", ")", ")", "return", "false", ";"], "File": "BPFMIPeephole", "Func": "isPhiFrom32Def", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2054, "Length": 73, "Cover_Rate": 0.48026315789473684} {"Template_token": ["", "if", "(", "!", "opnd", ".", "isReg", "(", ")", ")", "return", "false", ";", "MachineInstr", "*", "PhiDef", "=", "MRI", "->", "getVRegDef", "(", "opnd", ".", "getReg", "(", ")", ")", ";", "if", "(", "!", "PhiDef", ")", "return", "false", ";", "if", "(", "PhiDef", "->", "isPHI", "(", ")", ")", "{"], "ground_truth": ["if", "(", "PhiInsns", ".", "find", "(", "PhiDef", ")", "!=", "PhiInsns", ".", "end", "(", ")", ")", "return", "false", ";"], "File": "BPFMIPeephole", "Func": "isPhiFrom32Def", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2055, "Length": 62, "Cover_Rate": 0.40789473684210525} {"Template_token": ["", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "initialize", "(", "MF", ")", ";", "return", "eliminateTruncSeq", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFMIPeephole", "Func": "runOnMachineFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2056, "Length": 25, "Cover_Rate": 0.7352941176470589} {"Template_token": ["", "if", "(", "TruncSize", "==", "", ")", "return", "opcode", "==", "", "||", "opcode", "==", "", ";"], "ground_truth": ["if", "(", "TruncSize", "==", "", ")", "return", "opcode", "==", "", "||", "opcode", "==", "", ";"], "File": "BPFMIPeephole", "Func": "TruncSizeCompatible", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2057, "Length": 30, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "const", "MachineInstr", "*", "Inst", "=", "RelocOp", "->", "getParent", "(", ")", ";", "const", "MachineOperand", "*", "Op1", "=", "&", "Inst", "->", "getOperand", "(", "", ")", ";", "const", "MachineOperand", "*", "Op2", "=", "&", "Inst", "->", "getOperand", "(", "", ")", ";", "const", "MachineOperand", "*", "BaseOp", "=", "(", "RelocOp", "==", "Op1", ")", "?", "Op2", ":", "Op1", ";", "const", "MachineOperand", "Op0", "=", "Inst", "->", "getOperand", "(", "", ")", ";", "auto", "Begin", "=", "MRI", "->", "use_begin", "(", "Op0", ".", "getReg", "(", ")", ")", ",", "End", "=", "MRI", "->", "use_end", "(", ")", ";", "decltype", "(", "End", ")", "NextI", ";", "for", "(", "auto", "I", "=", "Begin", ";", "I", "!=", "End", ";", "I", "=", "NextI", ")", "{", "NextI", "=", "std", "::", "next", "(", "I", ")", ";", "if", "(", "!", "MRI", "->", "getUniqueVRegDef", "(", "I", "->", "getReg", "(", ")", ")", ")", "continue", ";", "MachineInstr", "*", "DefInst", "=", "I", "->", "getParent", "(", ")", ";", "unsigned", "Opcode", "=", "DefInst", "->", "getOpcode", "(", ")", ";", "unsigned", "COREOp", ";", "if", "(", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", ")", "COREOp", "=", "", ";", "else", "if", "(", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", ")", "COREOp", "=", "", ";", "else", "continue", ";", "const", "MachineOperand", "&", "ImmOp", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "ImmOp", ".", "isImm", "(", ")", "||", "ImmOp", ".", "getImm", "(", ")", "!=", "", ")", "continue", ";", "if", "(", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", ")", "{", "const", "MachineOperand", "&", "Opnd", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "Opnd", ".", "isReg", "(", ")", "&&", "Opnd", ".", "getReg", "(", ")", "==", "I", "->", "getReg", "(", ")", ")", "continue", ";", "}", "BuildMI", "(", "*", "DefInst", "->", "getParent", "(", ")", ",", "*", "DefInst", ",", "DefInst", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "COREOp", ")", ")", ".", "add", "(", "DefInst", "->", "getOperand", "(", "", ")", ")", ".", "addImm", "(", "Opcode", ")", ".", "add", "(", "*", "BaseOp", ")", ".", "addGlobalAddress", "(", "GVal", ")", ";"], "ground_truth": ["DefInst", "->", "eraseFromParent", "(", ")", ";"], "File": "BPFMISimplifyPatchable10", "Func": "checkADDrr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2058, "Length": 381, "Cover_Rate": 0.8504464285714286} {"Template_token": ["", "const", "MachineOperand", "*", "Op1", "=", "&", "Inst", "->", "getOperand", "(", "", ")", ";", "const", "MachineOperand", "*", "Op2", "=", "&", "Inst", "->", "getOperand", "(", "", ")", ";", "const", "MachineOperand", "*", "BaseOp", "=", "(", "RelocOp", "==", "Op1", ")", "?", "Op2", ":", "Op1", ";", "const", "MachineOperand", "Op0", "=", "Inst", "->", "getOperand", "(", "", ")", ";", "auto", "Begin", "=", "MRI", "->", "use_begin", "(", "Op0", ".", "getReg", "(", ")", ")", ",", "End", "=", "MRI", "->", "use_end", "(", ")", ";", "decltype", "(", "End", ")", "NextI", ";", "for", "(", "auto", "I", "=", "Begin", ";", "I", "!=", "End", ";", "I", "=", "NextI", ")", "{", "NextI", "=", "std", "::", "next", "(", "I", ")", ";", "if", "(", "!", "MRI", "->", "getUniqueVRegDef", "(", "I", "->", "getReg", "(", ")", ")", ")", "continue", ";", "MachineInstr", "*", "DefInst", "=", "I", "->", "getParent", "(", ")", ";"], "ground_truth": ["unsigned", "Opcode", "=", "DefInst", "->", "getOpcode", "(", ")", ";"], "File": "BPFMISimplifyPatchable10", "Func": "checkADDrr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2059, "Length": 140, "Cover_Rate": 0.3125} {"Template_token": ["", "const", "MachineOperand", "&", "MO", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", ")", "{", "if", "(", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "assert", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "==", "", ")", ";", "IsCandidate", "=", "true", ";", "}", "}", "}", "}", "if", "(", "!", "IsCandidate", ")", "continue", ";", "auto", "Begin", "=", "MRI", "->", "use_begin", "(", "DstReg", ")", ",", "End", "=", "MRI", "->", "use_end", "(", ")", ";", "decltype", "(", "End", ")", "NextI", ";", "for", "(", "auto", "I", "=", "Begin", ";", "I", "!=", "End", ";", "I", "=", "NextI", ")", "{", "NextI", "=", "std", "::", "next", "(", "I", ")", ";", "I", "->", "setReg", "(", "SrcReg", ")", ";", "}"], "ground_truth": ["ToErase", "=", "&", "MI", ";"], "File": "BPFMISimplifyPatchable11", "Func": "removeLD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2060, "Length": 152, "Cover_Rate": 0.36104513064133015} {"Template_token": ["", "MachineInstr", "*", "DefInst", "=", "MRI", "->", "getUniqueVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "DefInst", ")", "continue", ";", "bool", "IsCandidate", "=", "false", ";", "if", "(", "DefInst", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", ")", "{", "if", "(", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "assert", "(", "ImmVal", "==", "", ")", ";", "IsCandidate", "=", "true", ";", "}", "else", "if", "(", "!", "GVar", "->", "hasInitializer", "(", ")", "&&", "GVar", "->", "hasExternalLinkage", "(", ")", "&&", "GVar", "->", "getSection", "(", ")", "==", "", ")", "{", "if", "(", "ImmVal", "==", "", ")", "IsCandidate", "=", "true", ";", "else", "errs", "(", ")", "<<", "", "<<", "GVar", "->", "getName", "(", ")", "<<", "", "<<", "ImmVal", "<<", "", ";", "}", "}", "}", "}", "if", "(", "!", "IsCandidate", ")", "continue", ";", "auto", "Begin", "=", "MRI", "->", "use_begin", "(", "DstReg", ")", ",", "End", "=", "MRI", "->", "use_end", "(", ")", ";", "decltype", "(", "End", ")", "NextI", ";", "for", "(", "auto", "I", "=", "Begin", ";", "I", "!=", "End", ";", "I", "=", "NextI", ")", "{"], "ground_truth": ["NextI", "=", "std", "::", "next", "(", "I", ")", ";"], "File": "BPFMISimplifyPatchable12", "Func": "removeLD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2061, "Length": 219, "Cover_Rate": 0.453416149068323} {"Template_token": ["", "bool", "MISimplifyPatchable", "::", "removeLD", "(", ")", "{", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", "->", "getRegInfo", "(", ")", ";", "MachineInstr", "*", "ToErase", "=", "nullptr", ";", "bool", "Changed", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "*", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "if", "(", "ToErase", ")", "{", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isReg", "(", ")", "||", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isReg", "(", ")", ")", "continue", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isImm", "(", ")", "||", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", "continue", ";", "Register", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "Register", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "MachineInstr", "*", "DefInst", "=", "MRI", "->", "getUniqueVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "DefInst", ")", "continue", ";", "bool", "IsCandidate", "=", "false", ";", "if", "(", "DefInst", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", ")", "{", "if", "(", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "assert", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "==", "", ")", ";", "IsCandidate", "=", "true", ";", "}", "}", "}", "}", "if", "(", "!", "IsCandidate", ")", "continue", ";", "if", "(", "MRI", "->", "getRegClass", "(", "DstReg", ")", "==", "&", "", ")", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", ")", ",", "DstReg", ")", ".", "addReg", "(", "SrcReg", ",", "", ",", "", ")", ";", "}", "else", "{", "auto", "Begin", "=", "MRI", "->", "use_begin", "(", "DstReg", ")", ",", "End", "=", "MRI", "->", "use_end", "(", ")", ";", "decltype", "(", "End", ")", "NextI", ";", "for", "(", "auto", "I", "=", "Begin", ";", "I", "!=", "End", ";", "I", "=", "NextI", ")", "{", "NextI", "=", "std", "::", "next", "(", "I", ")", ";", "I", "->", "setReg", "(", "SrcReg", ")", ";", "}"], "ground_truth": ["}"], "File": "BPFMISimplifyPatchable14", "Func": "removeLD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2062, "Length": 436, "Cover_Rate": 0.9178947368421052} {"Template_token": ["", "const", "MachineOperand", "&", "MO", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", ")", "{", "if", "(", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "assert", "(", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", "==", "", ")", ";", "IsCandidate", "=", "true", ";", "}", "}", "}", "}", "if", "(", "!", "IsCandidate", ")", "continue", ";", "if", "(", "MRI", "->", "getRegClass", "(", "DstReg", ")", "==", "&", "", ")", "{", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", ")", ",", "DstReg", ")", ".", "addReg", "(", "SrcReg", ",", "", ",", "", ")", ";", "}", "else", "{", "auto", "Begin", "=", "MRI", "->", "use_begin", "(", "DstReg", ")", ",", "End", "=", "MRI", "->", "use_end", "(", ")", ";", "decltype", "(", "End", ")", "NextI", ";", "for", "(", "auto", "I", "=", "Begin", ";", "I", "!=", "End", ";", "I", "=", "NextI", ")", "{", "NextI", "=", "std", "::", "next", "(", "I", ")", ";", "I", "->", "setReg", "(", "SrcReg", ")", ";", "}", "}", "ToErase", "=", "&", "MI", ";", "Changed", "=", "true", ";"], "ground_truth": ["}"], "File": "BPFMISimplifyPatchable14", "Func": "removeLD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2063, "Length": 205, "Cover_Rate": 0.43157894736842106} {"Template_token": ["", "else", "if", "(", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", ")", "COREOp", "=", "", ";", "else", "continue", ";", "const", "MachineOperand", "&", "ImmOp", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "ImmOp", ".", "isImm", "(", ")", "||", "ImmOp", ".", "getImm", "(", ")", "!=", "", ")", "continue", ";", "if", "(", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", ")", "{", "const", "MachineOperand", "&", "Opnd", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "Opnd", ".", "isReg", "(", ")", "&&", "Opnd", ".", "getReg", "(", ")", "==", "MO", ".", "getReg", "(", ")", ")", "continue", ";", "}"], "ground_truth": ["BuildMI", "(", "*", "DefInst", "->", "getParent", "(", ")", ",", "*", "DefInst", ",", "DefInst", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "COREOp", ")", ")", ".", "add", "(", "DefInst", "->", "getOperand", "(", "", ")", ")", ".", "addImm", "(", "Opcode", ")", ".", "add", "(", "*", "BaseOp", ")", ".", "addGlobalAddress", "(", "GVal", ")", ";"], "File": "BPFMISimplifyPatchable1", "Func": "checkADDrr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2064, "Length": 183, "Cover_Rate": 0.43779904306220097} {"Template_token": ["", "void", "MISimplifyPatchable", "::", "processDstReg", "(", "MachineRegisterInfo", "*", "MRI", ",", "Register", "&", "DstReg", ",", "Register", "&", "SrcReg", ",", "const", "GlobalValue", "*", "GVal", ",", "bool", "doSrcRegProp", ",", "bool", "IsAma", ")", "{", "auto", "Begin", "=", "MRI", "->", "use_begin", "(", "DstReg", ")", ",", "End", "=", "MRI", "->", "use_end", "(", ")", ";", "decltype", "(", "End", ")", "NextI", ";", "for", "(", "auto", "I", "=", "Begin", ";", "I", "!=", "End", ";", "I", "=", "NextI", ")", "{"], "ground_truth": ["NextI", "=", "std", "::", "next", "(", "I", ")", ";"], "File": "BPFMISimplifyPatchable1", "Func": "processDstReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2065, "Length": 78, "Cover_Rate": 0.6341463414634146} {"Template_token": ["", "if", "(", "ToErase", ")", "{", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isReg", "(", ")", "||", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isReg", "(", ")", ")", "continue", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isImm", "(", ")", "||", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", "continue", ";", "Register", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "Register", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "MachineInstr", "*", "DefInst", "=", "MRI", "->", "getUniqueVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "DefInst", ")", "continue", ";", "if", "(", "DefInst", "->", "getOpcode", "(", ")", "!=", "", ")", "continue", ";"], "ground_truth": ["const", "MachineOperand", "&", "MO", "=", "DefInst", "->", "getOperand", "(", "", ")", ";"], "File": "BPFMISimplifyPatchable1", "Func": "removeLD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2066, "Length": 201, "Cover_Rate": 0.5388739946380697} {"Template_token": ["", "if", "(", "!", "DefInst", ")", "continue", ";", "if", "(", "DefInst", "->", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "const", "MachineOperand", "&", "MO", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "MO", ".", "isGlobal", "(", ")", ")", "continue", ";", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "!", "GVar", ")", "continue", ";", "bool", "IsAma", "=", "false", ";", "if", "(", "GVar", "->", "hasAttribute", "(", "", ")", ")", "IsAma", "=", "true", ";", "else", "if", "(", "!", "GVar", "->", "hasAttribute", "(", "", ")", ")", "continue", ";"], "ground_truth": ["processCandidate", "(", "MRI", ",", "MBB", ",", "MI", ",", "SrcReg", ",", "DstReg", ",", "GVal", ",", "IsAma", ")", ";"], "File": "BPFMISimplifyPatchable1", "Func": "removeLD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2067, "Length": 120, "Cover_Rate": 0.32171581769436997} {"Template_token": ["", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "initialize", "(", "MF", ")", ";"], "ground_truth": ["return", "removeLD", "(", ")", ";"], "File": "BPFMISimplifyPatchable1", "Func": "runOnMachineFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2068, "Length": 24, "Cover_Rate": 0.7058823529411765} {"Template_token": ["", "bool", "MISimplifyPatchable", "::", "isLoadInst", "(", "unsigned", "Opcode", ")", "{", "return", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", ";"], "ground_truth": ["}"], "File": "BPFMISimplifyPatchable5", "Func": "isLoadInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2069, "Length": 39, "Cover_Rate": 0.7358490566037735} {"Template_token": ["", "return", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", ";"], "ground_truth": ["}"], "File": "BPFMISimplifyPatchable5", "Func": "isLoadInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2070, "Length": 30, "Cover_Rate": 0.5660377358490566} {"Template_token": ["", "return", ";", "}", "if", "(", "Opcode", "==", "", ")", "checkADDrr", "(", "MRI", ",", "RelocOp", ",", "GVal", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "checkShift", "(", "MRI", ",", "*", "Inst", "->", "getParent", "(", ")", ",", "RelocOp", ",", "GVal", ",", "", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "checkShift", "(", "MRI", ",", "*", "Inst", "->", "getParent", "(", ")", ",", "RelocOp", ",", "GVal", ",", "", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "checkShift", "(", "MRI", ",", "*", "Inst", "->", "getParent", "(", ")", ",", "RelocOp", ",", "GVal", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BPFMISimplifyPatchable5", "Func": "processInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2071, "Length": 94, "Cover_Rate": 0.6064516129032258} {"Template_token": ["", "else", "if", "(", "Opcode", "==", "", ")", "checkShift", "(", "MRI", ",", "*", "Inst", "->", "getParent", "(", ")", ",", "RelocOp", ",", "GVal", ",", "", ")", ";"], "ground_truth": ["else", "if", "(", "Opcode", "==", "", ")", "checkShift", "(", "MRI", ",", "*", "Inst", "->", "getParent", "(", ")", ",", "RelocOp", ",", "GVal", ",", "", ")", ";"], "File": "BPFMISimplifyPatchable5", "Func": "processInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2072, "Length": 50, "Cover_Rate": 0.3225806451612903} {"Template_token": ["", "MachineInstr", "*", "ToErase", "=", "nullptr", ";", "bool", "Changed", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "*", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "if", "(", "ToErase", ")", "{", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "if", "(", "!", "isLoadInst", "(", "MI", ".", "getOpcode", "(", ")", ")", ")", "continue", ";", "if", "(", "SkipInsts", ".", "find", "(", "&", "MI", ")", "!=", "SkipInsts", ".", "end", "(", ")", ")", "continue", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isReg", "(", ")", "||", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isReg", "(", ")", ")", "continue", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isImm", "(", ")", "||", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", "continue", ";", "Register", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "Register", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";"], "ground_truth": ["MachineInstr", "*", "DefInst", "=", "MRI", "->", "getUniqueVRegDef", "(", "SrcReg", ")", ";"], "File": "BPFMISimplifyPatchable5", "Func": "removeLD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2073, "Length": 172, "Cover_Rate": 0.5196374622356495} {"Template_token": ["", "if", "(", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isImm", "(", ")", "||", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", "continue", ";", "Register", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "Register", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "MachineInstr", "*", "DefInst", "=", "MRI", "->", "getUniqueVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "DefInst", ")", "continue", ";", "if", "(", "DefInst", "->", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "const", "MachineOperand", "&", "MO", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "MO", ".", "isGlobal", "(", ")", ")", "continue", ";", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "!", "GVar", ")", "continue", ";", "bool", "IsAma", "=", "false", ";", "if", "(", "GVar", "->", "hasAttribute", "(", "", ")", ")", "IsAma", "=", "true", ";", "else", "if", "(", "!", "GVar", "->", "hasAttribute", "(", "", ")", ")", "continue", ";", "processCandidate", "(", "MRI", ",", "MBB", ",", "MI", ",", "SrcReg", ",", "DstReg", ",", "GVal", ",", "IsAma", ")", ";", "ToErase", "=", "&", "MI", ";", "Changed", "=", "true", ";"], "ground_truth": ["}"], "File": "BPFMISimplifyPatchable5", "Func": "removeLD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2074, "Length": 196, "Cover_Rate": 0.5921450151057401} {"Template_token": ["", "MachineInstr", "*", "DefInst", "=", "MRI", "->", "getUniqueVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "DefInst", ")", "continue", ";", "bool", "IsCandidate", "=", "false", ";", "if", "(", "DefInst", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", ")", "{", "if", "(", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "assert", "(", "ImmVal", "==", "", ")", ";", "IsCandidate", "=", "true", ";", "}", "else", "if", "(", "!", "GVar", "->", "hasInitializer", "(", ")", "&&", "GVar", "->", "hasExternalLinkage", "(", ")", "&&", "GVar", "->", "getSection", "(", ")", "==", "", ")", "{", "if", "(", "ImmVal", "==", "", ")", "IsCandidate", "=", "true", ";", "else", "errs", "(", ")", "<<", "", "<<", "GVar", "->", "getName", "(", ")", "<<", "", "<<", "ImmVal", "<<", "", ";", "}", "}", "}", "}", "if", "(", "!", "IsCandidate", ")", "continue", ";", "auto", "Begin", "=", "MRI", "->", "use_begin", "(", "DstReg", ")", ",", "End", "=", "MRI", "->", "use_end", "(", ")", ";", "decltype", "(", "End", ")", "NextI", ";", "for", "(", "auto", "I", "=", "Begin", ";", "I", "!=", "End", ";", "I", "=", "NextI", ")", "{", "NextI", "=", "std", "::", "next", "(", "I", ")", ";", "I", "->", "setReg", "(", "SrcReg", ")", ";", "}"], "ground_truth": ["ToErase", "=", "&", "MI", ";"], "File": "BPFMISimplifyPatchable9", "Func": "removeLD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2075, "Length": 232, "Cover_Rate": 0.4803312629399586} {"Template_token": ["", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isReg", "(", ")", "||", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isReg", "(", ")", ")", "continue", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isImm", "(", ")", "||", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", "continue", ";", "Register", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "Register", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "int64_t", "ImmVal", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ";", "MachineInstr", "*", "DefInst", "=", "MRI", "->", "getUniqueVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "DefInst", ")", "continue", ";", "bool", "IsCandidate", "=", "false", ";", "if", "(", "DefInst", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", ")", "{", "if", "(", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "assert", "(", "ImmVal", "==", "", ")", ";", "IsCandidate", "=", "true", ";", "}", "else", "if", "(", "!", "GVar", "->", "hasInitializer", "(", ")", "&&", "GVar", "->", "hasExternalLinkage", "(", ")", "&&", "GVar", "->", "getSection", "(", ")", "==", "", ")", "{", "if", "(", "ImmVal", "==", "", ")", "IsCandidate", "=", "true", ";", "else", "errs", "(", ")", "<<", "", "<<", "GVar", "->", "getName", "(", ")", "<<", "", "<<", "ImmVal", "<<", "", ";", "}", "}", "}", "}", "if", "(", "!", "IsCandidate", ")", "continue", ";", "auto", "Begin", "=", "MRI", "->", "use_begin", "(", "DstReg", ")", ",", "End", "=", "MRI", "->", "use_end", "(", ")", ";"], "ground_truth": ["decltype", "(", "End", ")", "NextI", ";"], "File": "BPFMISimplifyPatchable9", "Func": "removeLD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2076, "Length": 352, "Cover_Rate": 0.7287784679089027} {"Template_token": ["", "MISimplifyPatchable", "(", ")", ":", "MachineFunctionPass", "(", "ID", ")", "{", "initializeMISimplifyPatchablePass", "(", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFMISimplifyPatchable", "Func": "BPFMISimplifyPatchable", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2078, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "else", "if", "(", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", "||", "Opcode", "==", "", ")", "COREOp", "=", "", ";", "else", "continue", ";", "const", "MachineOperand", "&", "ImmOp", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "!", "ImmOp", ".", "isImm", "(", ")", "||", "ImmOp", ".", "getImm", "(", ")", "!=", "", ")", "continue", ";", "BuildMI", "(", "*", "DefInst", "->", "getParent", "(", ")", ",", "*", "DefInst", ",", "DefInst", "->", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "COREOp", ")", ")", ".", "add", "(", "DefInst", "->", "getOperand", "(", "", ")", ")", ".", "addImm", "(", "Opcode", ")", ".", "add", "(", "*", "BaseOp", ")", ".", "addGlobalAddress", "(", "GVal", ")", ";"], "ground_truth": ["DefInst", "->", "eraseFromParent", "(", ")", ";"], "File": "BPFMISimplifyPatchable", "Func": "checkADDrr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2079, "Length": 123, "Cover_Rate": 0.3342391304347826} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createMISimplifyPatchablePass", "(", ")", "{"], "ground_truth": ["return", "new", "MISimplifyPatchable", "(", ")", ";"], "File": "BPFMISimplifyPatchable", "Func": "createBPFMISimplifyPatchablePass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2080, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "MF", "=", "&", "MFParm", ";", "TII", "=", "MF", "->", "getSubtarget", "<", "Subtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";"], "ground_truth": ["LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";"], "File": "BPFMISimplifyPatchable", "Func": "initialize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2082, "Length": 29, "Cover_Rate": 0.725} {"Template_token": ["", "if", "(", "Opcode", "==", "", ")", "{", "Register", "TmpReg", "=", "I", "->", "getParent", "(", ")", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "processDstReg", "(", "MRI", ",", "TmpReg", ",", "DstReg", ",", "GVal", ",", "false", ")", ";", "}", "}", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", ")", ",", "DstReg", ")", ".", "addReg", "(", "SrcReg", ",", "", ",", "", ")", ";", "return", ";", "}"], "ground_truth": ["processDstReg", "(", "MRI", ",", "DstReg", ",", "SrcReg", ",", "GVal", ",", "true", ")", ";"], "File": "BPFMISimplifyPatchable", "Func": "processCandidate", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2083, "Length": 87, "Cover_Rate": 0.39908256880733944} {"Template_token": ["", "for", "(", "auto", "I", "=", "Begin", ";", "I", "!=", "End", ";", "I", "=", "NextI", ")", "{", "NextI", "=", "std", "::", "next", "(", "I", ")", ";", "if", "(", "!", "MRI", "->", "getUniqueVRegDef", "(", "I", "->", "getReg", "(", ")", ")", ")", "continue", ";", "unsigned", "Opcode", "=", "I", "->", "getParent", "(", ")", "->", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "{", "Register", "TmpReg", "=", "I", "->", "getParent", "(", ")", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "processDstReg", "(", "MRI", ",", "TmpReg", ",", "DstReg", ",", "GVal", ",", "false", ")", ";", "}", "}", "BuildMI", "(", "MBB", ",", "MI", ",", "MI", ".", "getDebugLoc", "(", ")", ",", "TII", "->", "get", "(", "", ")", ",", "DstReg", ")", ".", "addReg", "(", "SrcReg", ",", "", ",", "", ")", ";", "return", ";", "}"], "ground_truth": ["processDstReg", "(", "MRI", ",", "DstReg", ",", "SrcReg", ",", "GVal", ",", "true", ")", ";"], "File": "BPFMISimplifyPatchable", "Func": "processCandidate", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2084, "Length": 141, "Cover_Rate": 0.6467889908256881} {"Template_token": ["", "if", "(", "doSrcRegProp", ")", "I", "->", "setReg", "(", "SrcReg", ")", ";"], "ground_truth": ["if", "(", "MRI", "->", "getUniqueVRegDef", "(", "I", "->", "getReg", "(", ")", ")", ")", "processInst", "(", "MRI", ",", "I", "->", "getParent", "(", ")", ",", "&", "*", "I", ",", "GVal", ")", ";"], "File": "BPFMISimplifyPatchable", "Func": "processDstReg", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2085, "Length": 41, "Cover_Rate": 0.3474576271186441} {"Template_token": ["", "unsigned", "Opcode", "=", "Inst", "->", "getOpcode", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "checkADDrr", "(", "MRI", ",", "RelocOp", ",", "GVal", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "checkShift", "(", "MRI", ",", "*", "Inst", "->", "getParent", "(", ")", ",", "RelocOp", ",", "GVal", ",", "", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "checkShift", "(", "MRI", ",", "*", "Inst", "->", "getParent", "(", ")", ",", "RelocOp", ",", "GVal", ",", "", ")", ";"], "ground_truth": ["else", "if", "(", "Opcode", "==", "", ")", "checkShift", "(", "MRI", ",", "*", "Inst", "->", "getParent", "(", ")", ",", "RelocOp", ",", "GVal", ",", "", ")", ";"], "File": "BPFMISimplifyPatchable", "Func": "processInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2086, "Length": 99, "Cover_Rate": 0.7226277372262774} {"Template_token": ["", "if", "(", "Opcode", "==", "", ")", "checkADDrr", "(", "MRI", ",", "RelocOp", ",", "GVal", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "checkShift", "(", "MRI", ",", "*", "Inst", "->", "getParent", "(", ")", ",", "RelocOp", ",", "GVal", ",", "", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "checkShift", "(", "MRI", ",", "*", "Inst", "->", "getParent", "(", ")", ",", "RelocOp", ",", "GVal", ",", "", ")", ";"], "ground_truth": ["else", "if", "(", "Opcode", "==", "", ")", "checkShift", "(", "MRI", ",", "*", "Inst", "->", "getParent", "(", ")", ",", "RelocOp", ",", "GVal", ",", "", ")", ";"], "File": "BPFMISimplifyPatchable", "Func": "processInst", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2087, "Length": 90, "Cover_Rate": 0.656934306569343} {"Template_token": ["", "ToErase", "->", "eraseFromParent", "(", ")", ";", "ToErase", "=", "nullptr", ";", "}", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", "&&", "MI", ".", "getOpcode", "(", ")", "!=", "", ")", "continue", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isReg", "(", ")", "||", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isReg", "(", ")", ")", "continue", ";", "if", "(", "!", "MI", ".", "getOperand", "(", "", ")", ".", "isImm", "(", ")", "||", "MI", ".", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", "continue", ";", "Register", "DstReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "Register", "SrcReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "MachineInstr", "*", "DefInst", "=", "MRI", "->", "getUniqueVRegDef", "(", "SrcReg", ")", ";", "if", "(", "!", "DefInst", ")", "continue", ";", "bool", "IsCandidate", "=", "false", ";", "const", "GlobalValue", "*", "GVal", "=", "nullptr", ";", "if", "(", "DefInst", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "DefInst", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";"], "ground_truth": ["if", "(", "GVar", ")", "{"], "File": "BPFMISimplifyPatchable", "Func": "removeLD", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2088, "Length": 241, "Cover_Rate": 0.6292428198433421} {"Template_token": ["", "if", "(", "!", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "{"], "ground_truth": ["initialize", "(", "MF", ")", ";"], "File": "BPFMISimplifyPatchable", "Func": "runOnMachineFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2089, "Length": 18, "Cover_Rate": 0.5294117647058824} {"Template_token": ["", "if", "(", "!", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ")", "report_fatal_error", "(", "", ")", ";", "PreserveDITypeCalls", ".", "push_back", "(", "Call", ")", ";", "}", "}", "}", "if", "(", "PreserveDITypeCalls", ".", "empty", "(", ")", ")", "return", "false", ";", "std", "::", "string", "BaseName", "=", "", ";", "static", "int", "Count", "=", "", ";", "for", "(", "auto", "Call", ":", "PreserveDITypeCalls", ")", "{", "const", "ConstantInt", "*", "Flag", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "assert", "(", "Flag", ")", ";", "uint64_t", "FlagValue", "=", "Flag", "->", "getValue", "(", ")", ".", "getZExtValue", "(", ")", ";", "if", "(", "FlagValue", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "MDNode", "*", "MD", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "uint32_t", "Reloc", ";", "if", "(", "FlagValue", "==", "", ")", "{", "Reloc", "=", "", ";", "}", "else", "{", "Reloc", "=", "", ";", "DIType", "*", "Ty", "=", "cast", "<", "DIType", ">", "(", "MD", ")", ";", "while", "(", "auto", "*", "DTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "Ty", ")", ")", "{", "unsigned", "Tag", "=", "DTy", "->", "getTag", "(", ")", ";", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_const_type", "&&", "Tag", "!=", "dwarf", "::", "DW_TAG_volatile_type", ")", "break", ";", "Ty", "=", "DTy", "->", "getBaseType", "(", ")", ";", "}"], "ground_truth": ["if", "(", "Ty", "->", "getName", "(", ")", ".", "empty", "(", ")", ")", "{"], "File": "BPFPreserveDIType10", "Func": "BPFPreserveDITypeImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2090, "Length": 214, "Cover_Rate": 0.4030131826741996} {"Template_token": ["", "if", "(", "!", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ")", "report_fatal_error", "(", "", ")", ";", "PreserveDITypeCalls", ".", "push_back", "(", "Call", ")", ";", "}", "}", "}", "if", "(", "PreserveDITypeCalls", ".", "empty", "(", ")", ")", "return", "false", ";", "std", "::", "string", "BaseName", "=", "", ";", "static", "int", "Count", "=", "", ";", "for", "(", "auto", "Call", ":", "PreserveDITypeCalls", ")", "{", "const", "ConstantInt", "*", "Flag", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "assert", "(", "Flag", ")", ";", "uint64_t", "FlagValue", "=", "Flag", "->", "getValue", "(", ")", ".", "getZExtValue", "(", ")", ";", "if", "(", "FlagValue", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "MDNode", "*", "MD", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "uint32_t", "Reloc", ";", "if", "(", "FlagValue", "==", "", ")", "{", "Reloc", "=", "", ";", "}", "else", "{", "Reloc", "=", "", ";", "DIType", "*", "Ty", "=", "cast", "<", "DIType", ">", "(", "MD", ")", ";", "while", "(", "auto", "*", "DTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "Ty", ")", ")", "{", "unsigned", "Tag", "=", "DTy", "->", "getTag", "(", ")", ";", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_const_type", "&&", "Tag", "!=", "dwarf", "::", "DW_TAG_volatile_type", ")", "break", ";", "Ty", "=", "DTy", "->", "getBaseType", "(", ")", ";", "}", "if", "(", "Ty", "->", "getName", "(", ")", ".", "empty", "(", ")", ")", "{", "if", "(", "isa", "<", "DISubroutineType", ">", "(", "Ty", ")", ")", "report_fatal_error", "(", "", ")", ";", "else", "report_fatal_error", "(", "", ")", ";", "}", "MD", "=", "Ty", ";", "}", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "IntegerType", "*", "VarType", "=", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";"], "ground_truth": ["std", "::", "string", "GVName", "=", "BaseName", "+", "std", "::", "to_string", "(", "Count", ")", "+", "", "+", "std", "::", "to_string", "(", "Reloc", ")", ";"], "File": "BPFPreserveDIType1", "Func": "BPFPreserveDITypeImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2091, "Length": 289, "Cover_Rate": 0.544256120527307} {"Template_token": ["", "if", "(", "M", "->", "debug_compile_units", "(", ")", ".", "empty", "(", ")", ")", "return", "false", ";", "std", "::", "vector", "<", "CallInst", "*", ">", "PreserveDITypeCalls", ";", "for", "(", "auto", "&", "BB", ":", "F", ")", "{", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ";", "if", "(", "!", "Call", ")", "continue", ";", "const", "auto", "*", "GV", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "Call", "->", "getCalledOperand", "(", ")", ")", ";", "if", "(", "!", "GV", ")", "continue", ";", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "if", "(", "!", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ")", "report_fatal_error", "(", "", ")", ";", "PreserveDITypeCalls", ".", "push_back", "(", "Call", ")", ";", "}", "}", "}", "if", "(", "PreserveDITypeCalls", ".", "empty", "(", ")", ")", "return", "false", ";", "std", "::", "string", "BaseName", "=", "", ";", "static", "int", "Count", "=", "", ";", "for", "(", "auto", "Call", ":", "PreserveDITypeCalls", ")", "{", "const", "ConstantInt", "*", "Flag", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "assert", "(", "Flag", ")", ";"], "ground_truth": ["uint64_t", "FlagValue", "=", "Flag", "->", "getValue", "(", ")", ".", "getZExtValue", "(", ")", ";"], "File": "BPFPreserveDIType2", "Func": "BPFPreserveDITypeImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2092, "Length": 195, "Cover_Rate": 0.42391304347826086} {"Template_token": ["", "uint64_t", "FlagValue", "=", "Flag", "->", "getValue", "(", ")", ".", "getZExtValue", "(", ")", ";", "if", "(", "FlagValue", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "MDNode", "*", "MD", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "uint32_t", "Reloc", ";", "if", "(", "FlagValue", "==", "", ")", "{", "Reloc", "=", "", ";", "}", "else", "{", "Reloc", "=", "", ";", "DIType", "*", "Ty", "=", "cast", "<", "DIType", ">", "(", "MD", ")", ";", "if", "(", "Ty", "->", "getName", "(", ")", ".", "empty", "(", ")", ")", "report_fatal_error", "(", "", ")", ";", "}", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "IntegerType", "*", "VarType", "=", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "std", "::", "string", "GVName", "=", "BaseName", "+", "std", "::", "to_string", "(", "Count", ")", "+", "", "+", "std", "::", "to_string", "(", "Reloc", ")", ";", "GlobalVariable", "*", "GV", "=", "new", "GlobalVariable", "(", "*", "M", ",", "VarType", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "GVName", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "MD", ")", ";", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";"], "ground_truth": ["Instruction", "*", "PassThroughInst", "=", "", "(", "M", ",", "BB", ",", "LDInst", ",", "Call", ")", ";"], "File": "BPFPreserveDIType2", "Func": "BPFPreserveDITypeImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2093, "Length": 217, "Cover_Rate": 0.4717391304347826} {"Template_token": ["", "PreserveDIType", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFPreserveDIType5", "Func": "BPFPreserveDIType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2094, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "PreserveDIType", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFPreserveDIType5", "Func": "BPFPreserveDIType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2095, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "std", "::", "vector", "<", "CallInst", "*", ">", "PreserveDITypeCalls", ";", "for", "(", "auto", "&", "F", ":", "M", ")", "{", "for", "(", "auto", "&", "BB", ":", "F", ")", "{", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "auto", "*", "Call", "=", "dyn_cast", "<", "CallInst", ">", "(", "&", "I", ")", ";", "if", "(", "!", "Call", ")", "continue", ";", "const", "auto", "*", "GV", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "Call", "->", "getCalledOperand", "(", ")", ")", ";", "if", "(", "!", "GV", ")", "continue", ";", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "if", "(", "!", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ")", "report_fatal_error", "(", "", ")", ";", "PreserveDITypeCalls", ".", "push_back", "(", "Call", ")", ";", "}", "}", "}", "}", "if", "(", "PreserveDITypeCalls", ".", "empty", "(", ")", ")", "return", "false", ";", "std", "::", "string", "BaseName", "=", "", ";", "int", "Count", "=", "", ";", "for", "(", "auto", "Call", ":", "PreserveDITypeCalls", ")", "{", "const", "ConstantInt", "*", "Flag", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "assert", "(", "Flag", ")", ";"], "ground_truth": ["uint64_t", "FlagValue", "=", "Flag", "->", "getValue", "(", ")", ".", "getZExtValue", "(", ")", ";"], "File": "BPFPreserveDIType5", "Func": "doTransformation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2098, "Length": 189, "Cover_Rate": 0.4909090909090909} {"Template_token": ["", "uint32_t", "Reloc", ";", "if", "(", "FlagValue", "==", "", ")", "Reloc", "=", "", ";", "else", "Reloc", "=", "", ";", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "IntegerType", "*", "VarType", "=", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "std", "::", "string", "GVName", "=", "BaseName", "+", "std", "::", "to_string", "(", "Count", ")", "+", "", "+", "std", "::", "to_string", "(", "Reloc", ")", ";", "GlobalVariable", "*", "GV", "=", "new", "GlobalVariable", "(", "M", ",", "VarType", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "GVName", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "MDNode", "*", "MD", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";"], "ground_truth": ["GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "MD", ")", ";"], "File": "BPFPreserveDIType5", "Func": "doTransformation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2099, "Length": 119, "Cover_Rate": 0.3090909090909091} {"Template_token": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{"], "ground_truth": ["return", "", ";"], "File": "BPFPreserveDIType5", "Func": "getPassName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2100, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "if", "(", "M", ".", "debug_compile_units", "(", ")", ".", "empty", "(", ")", ")", "return", "false", ";", "return", "doTransformation", "(", "M", ")", ";"], "ground_truth": ["}"], "File": "BPFPreserveDIType5", "Func": "runOnModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2101, "Length": 31, "Cover_Rate": 0.7560975609756098} {"Template_token": ["", "uint32_t", "Reloc", ";", "if", "(", "FlagValue", "==", "", ")", "{", "Reloc", "=", "", ";", "}", "else", "{", "Reloc", "=", "", ";", "DIType", "*", "Ty", "=", "cast", "<", "DIType", ">", "(", "MD", ")", ";", "if", "(", "Ty", "->", "getName", "(", ")", ".", "empty", "(", ")", ")", "report_fatal_error", "(", "", ")", ";", "}", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "IntegerType", "*", "VarType", "=", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "std", "::", "string", "GVName", "=", "BaseName", "+", "std", "::", "to_string", "(", "Count", ")", "+", "", "+", "std", "::", "to_string", "(", "Reloc", ")", ";", "GlobalVariable", "*", "GV", "=", "new", "GlobalVariable", "(", "M", ",", "VarType", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "GVName", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";"], "ground_truth": ["GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "MD", ")", ";"], "File": "BPFPreserveDIType6", "Func": "doTransformation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2102, "Length": 139, "Cover_Rate": 0.33253588516746413} {"Template_token": ["", "if", "(", "GV", "->", "getName", "(", ")", ".", "startswith", "(", "", ")", ")", "{", "if", "(", "!", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ")", "report_fatal_error", "(", "", ")", ";", "PreserveDITypeCalls", ".", "push_back", "(", "Call", ")", ";", "}", "}", "}", "if", "(", "PreserveDITypeCalls", ".", "empty", "(", ")", ")", "return", "false", ";", "std", "::", "string", "BaseName", "=", "", ";", "static", "int", "Count", "=", "", ";", "for", "(", "auto", "Call", ":", "PreserveDITypeCalls", ")", "{", "const", "ConstantInt", "*", "Flag", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "assert", "(", "Flag", ")", ";", "uint64_t", "FlagValue", "=", "Flag", "->", "getValue", "(", ")", ".", "getZExtValue", "(", ")", ";", "if", "(", "FlagValue", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "MDNode", "*", "MD", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "uint32_t", "Reloc", ";", "if", "(", "FlagValue", "==", "", ")", "{", "Reloc", "=", "", ";", "}", "else", "{", "Reloc", "=", "", ";", "DIType", "*", "Ty", "=", "cast", "<", "DIType", ">", "(", "MD", ")", ";", "while", "(", "auto", "*", "DTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "Ty", ")", ")", "{", "unsigned", "Tag", "=", "DTy", "->", "getTag", "(", ")", ";", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_const_type", "&&", "Tag", "!=", "dwarf", "::", "DW_TAG_volatile_type", ")", "break", ";", "Ty", "=", "DTy", "->", "getBaseType", "(", ")", ";", "}", "if", "(", "Ty", "->", "getName", "(", ")", ".", "empty", "(", ")", ")", "report_fatal_error", "(", "", ")", ";", "MD", "=", "Ty", ";", "}", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "IntegerType", "*", "VarType", "=", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "std", "::", "string", "GVName", "=", "BaseName", "+", "std", "::", "to_string", "(", "Count", ")", "+", "", "+", "std", "::", "to_string", "(", "Reloc", ")", ";", "GlobalVariable", "*", "GV", "=", "new", "GlobalVariable", "(", "*", "M", ",", "VarType", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "GVName", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "MD", ")", ";", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt64Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "Instruction", "*", "PassThroughInst", "=", "", "(", "M", ",", "BB", ",", "LDInst", ",", "Call", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "PassThroughInst", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "Count", "++", ";", "}", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFPreserveDIType7", "Func": "BPFPreserveDITypeImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2103, "Length": 387, "Cover_Rate": 0.7543859649122807} {"Template_token": ["", "if", "(", "PreserveDITypeCalls", ".", "empty", "(", ")", ")", "return", "false", ";", "std", "::", "string", "BaseName", "=", "", ";", "int", "Count", "=", "", ";", "for", "(", "auto", "Call", ":", "PreserveDITypeCalls", ")", "{", "const", "ConstantInt", "*", "Flag", "=", "dyn_cast", "<", "ConstantInt", ">", "(", "Call", "->", "getArgOperand", "(", "", ")", ")", ";", "assert", "(", "Flag", ")", ";", "uint64_t", "FlagValue", "=", "Flag", "->", "getValue", "(", ")", ".", "getZExtValue", "(", ")", ";", "if", "(", "FlagValue", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "MDNode", "*", "MD", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "uint32_t", "Reloc", ";", "if", "(", "FlagValue", "==", "", ")", "{", "Reloc", "=", "", ";", "}", "else", "{", "Reloc", "=", "", ";", "DIType", "*", "Ty", "=", "cast", "<", "DIType", ">", "(", "MD", ")", ";", "if", "(", "Ty", "->", "getName", "(", ")", ".", "empty", "(", ")", ")", "report_fatal_error", "(", "", ")", ";", "}", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "IntegerType", "*", "VarType", "=", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "std", "::", "string", "GVName", "=", "BaseName", "+", "std", "::", "to_string", "(", "Count", ")", "+", "", "+", "std", "::", "to_string", "(", "Reloc", ")", ";", "GlobalVariable", "*", "GV", "=", "new", "GlobalVariable", "(", "*", "M", ",", "VarType", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "GVName", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "MD", ")", ";", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "Instruction", "*", "PassThroughInst", "=", "", "(", "M", ",", "BB", ",", "LDInst", ",", "Call", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "PassThroughInst", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "Count", "++", ";", "}"], "ground_truth": ["return", "true", ";"], "File": "BPFPreserveDIType8", "Func": "doTransformation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2104, "Length": 291, "Cover_Rate": 0.6830985915492958} {"Template_token": ["", "}", "else", "{", "Reloc", "=", "", ";", "DIType", "*", "Ty", "=", "cast", "<", "DIType", ">", "(", "MD", ")", ";", "if", "(", "Ty", "->", "getName", "(", ")", ".", "empty", "(", ")", ")", "report_fatal_error", "(", "", ")", ";", "}", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "IntegerType", "*", "VarType", "=", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "std", "::", "string", "GVName", "=", "BaseName", "+", "std", "::", "to_string", "(", "Count", ")", "+", "", "+", "std", "::", "to_string", "(", "Reloc", ")", ";", "GlobalVariable", "*", "GV", "=", "new", "GlobalVariable", "(", "*", "M", ",", "VarType", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "GVName", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";", "GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "MD", ")", ";", "auto", "*", "LDInst", "=", "new", "LoadInst", "(", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ",", "GV", ",", "", ",", "Call", ")", ";", "Instruction", "*", "PassThroughInst", "=", "", "(", "M", ",", "BB", ",", "LDInst", ",", "Call", ")", ";", "Call", "->", "replaceAllUsesWith", "(", "PassThroughInst", ")", ";", "Call", "->", "eraseFromParent", "(", ")", ";", "Count", "++", ";", "}", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFPreserveDIType8", "Func": "doTransformation", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2105, "Length": 187, "Cover_Rate": 0.43896713615023475} {"Template_token": ["", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "", ")", ";", "M", "=", "F", ".", "getParent", "(", ")", ";", "if", "(", "!", "M", ")", "return", "false", ";", "if", "(", "M", "->", "debug_compile_units", "(", ")", ".", "empty", "(", ")", ")", "return", "false", ";", "return", "doTransformation", "(", "F", ")", ";"], "ground_truth": ["}"], "File": "BPFPreserveDIType8", "Func": "runOnFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2106, "Length": 47, "Cover_Rate": 0.8245614035087719} {"Template_token": ["", "PreserveDIType", "(", ")", ":", "FunctionPass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFPreserveDIType", "Func": "BPFPreserveDIType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2107, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "PreserveDIType", "(", ")", ":", "FunctionPass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "BPFPreserveDIType", "Func": "BPFPreserveDIType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2108, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "uint64_t", "FlagValue", "=", "Flag", "->", "getValue", "(", ")", ".", "getZExtValue", "(", ")", ";", "if", "(", "FlagValue", ">=", "", ")", "report_fatal_error", "(", "", ")", ";", "MDNode", "*", "MD", "=", "Call", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "uint32_t", "Reloc", ";", "if", "(", "FlagValue", "==", "", ")", "{", "Reloc", "=", "", ";", "}", "else", "{", "Reloc", "=", "", ";", "DIType", "*", "Ty", "=", "cast", "<", "DIType", ">", "(", "MD", ")", ";", "if", "(", "Ty", "->", "getName", "(", ")", ".", "empty", "(", ")", ")", "report_fatal_error", "(", "", ")", ";", "}", "BasicBlock", "*", "BB", "=", "Call", "->", "getParent", "(", ")", ";", "IntegerType", "*", "VarType", "=", "Type", "::", "getInt32Ty", "(", "BB", "->", "getContext", "(", ")", ")", ";", "std", "::", "string", "GVName", "=", "BaseName", "+", "std", "::", "to_string", "(", "Count", ")", "+", "", "+", "std", "::", "to_string", "(", "Reloc", ")", ";", "GlobalVariable", "*", "GV", "=", "new", "GlobalVariable", "(", "*", "M", ",", "VarType", ",", "false", ",", "GlobalVariable", "::", "ExternalLinkage", ",", "NULL", ",", "GVName", ")", ";", "GV", "->", "addAttribute", "(", "", ")", ";"], "ground_truth": ["GV", "->", "setMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ",", "MD", ")", ";"], "File": "BPFPreserveDIType", "Func": "BPFPreserveDITypeImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2109, "Length": 177, "Cover_Rate": 0.3847826086956522} {"Template_token": ["", "return", "new", "PreserveDIType", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFPreserveDIType", "Func": "createBPFPreserveDIType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2110, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "FunctionPass", "*", "llvm", "::", "createPreserveDIType", "(", ")", "{", "return", "new", "PreserveDIType", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFPreserveDIType", "Func": "createBPFPreserveDIType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2111, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "return", "PreserveDITypeImpl", "(", "F", ")", "?", "PreservedAnalyses", "::", "none", "(", ")", ":", "PreservedAnalyses", "::", "all", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFPreserveDIType", "Func": "run", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2112, "Length": 19, "Cover_Rate": 0.5757575757575758} {"Template_token": ["", "PreservedAnalyses", "PreserveDITypePass", "::", "run", "(", "Function", "&", "F", ",", "FunctionAnalysisManager", "&", "AM", ")", "{"], "ground_truth": ["return", "PreserveDITypeImpl", "(", "F", ")", "?", "PreservedAnalyses", "::", "none", "(", ")", ":", "PreservedAnalyses", "::", "all", "(", ")", ";"], "File": "BPFPreserveDIType", "Func": "run", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2113, "Length": 32, "Cover_Rate": 0.9696969696969697} {"Template_token": ["", "bool", "PreserveDIType", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{"], "ground_truth": ["return", "PreserveDITypeImpl", "(", "F", ")", ";"], "File": "BPFPreserveDIType", "Func": "runOnFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2114, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "return", "PreserveDITypeImpl", "(", "F", ")", ";"], "ground_truth": ["}"], "File": "BPFPreserveDIType", "Func": "runOnFunction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2115, "Length": 7, "Cover_Rate": 0.4117647058823529} {"Template_token": ["", "RegisterInfo", "::", "RegisterInfo", "(", ")", ":", "GenRegisterInfo", "(", "", ")", "{"], "ground_truth": ["}"], "File": "BPFRegisterInfo (2)", "Func": "BPFRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2116, "Length": 12, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "RegisterInfo", "::", "RegisterInfo", "(", ")", ":", "GenRegisterInfo", "(", "", ")", "{"], "ground_truth": ["}"], "File": "BPFRegisterInfo (2)", "Func": "BPFRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2117, "Length": 12, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "}", "unsigned", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectOffset", "(", "FrameIndex", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "unsigned", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "return", ";", "}"], "ground_truth": ["int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectOffset", "(", "FrameIndex", ")", "+", "MI", ".", "getOperand", "(", "i", "+", "", ")", ".", "getImm", "(", ")", ";"], "File": "BPFRegisterInfo (2)", "Func": "eliminateFrameIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2118, "Length": 164, "Cover_Rate": 0.4039408866995074} {"Template_token": ["", "const", "MCPhysReg", "*", "RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "return", "CSR_SaveList", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo (2)", "Func": "getCalleeSavedRegs", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2119, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo (2)", "Func": "getFrameRegister", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2120, "Length": 16, "Cover_Rate": 0.8888888888888888} {"Template_token": ["", "unsigned", "RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo (2)", "Func": "getFrameRegister", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2121, "Length": 16, "Cover_Rate": 0.8888888888888888} {"Template_token": ["", "BitVector", "RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "Reserved", ".", "set", "(", "", ")", ";"], "ground_truth": ["Reserved", ".", "set", "(", "", ")", ";"], "File": "BPFRegisterInfo (2)", "Func": "getReservedRegs", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2122, "Length": 34, "Cover_Rate": 0.8095238095238095} {"Template_token": ["", "BitVector", "RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "markSuperRegs", "(", "Reserved", ",", "", ")", ";"], "ground_truth": ["markSuperRegs", "(", "Reserved", ",", "", ")", ";"], "File": "BPFRegisterInfo11", "Func": "getReservedRegs", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2123, "Length": 34, "Cover_Rate": 0.8095238095238095} {"Template_token": ["", "RegisterInfo", "::", "RegisterInfo", "(", "const", "TargetInstrInfo", "&", "tii", ")", ":", "GenRegisterInfo", "(", "", ")", ",", "TII", "(", "tii", ")", "{"], "ground_truth": ["}"], "File": "BPFRegisterInfo12", "Func": "BPFRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2124, "Length": 21, "Cover_Rate": 0.9130434782608695} {"Template_token": ["", "RegisterInfo", "::", "RegisterInfo", "(", "const", "TargetInstrInfo", "&", "tii", ")", ":", "GenRegisterInfo", "(", "", ")", ",", "TII", "(", "tii", ")", "{"], "ground_truth": ["}"], "File": "BPFRegisterInfo12", "Func": "BPFRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2125, "Length": 21, "Cover_Rate": 0.9130434782608695} {"Template_token": ["", "unsigned", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectOffset", "(", "FrameIndex", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "unsigned", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "dl", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "return", ";", "}", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectOffset", "(", "FrameIndex", ")", "+", "MI", ".", "getOperand", "(", "i", "+", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "isInt", "<", "", ">", "(", "Offset", ")", ")", "{", "llvm_unreachable", "(", "", ")", ";", "}", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo12", "Func": "eliminateFrameIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2126, "Length": 194, "Cover_Rate": 0.6621160409556314} {"Template_token": ["", "RegisterInfo", "::", "eliminateFrameIndex", "(", "MachineBasicBlock", "::", "iterator", "II", ",", "int", "SPAdj", ",", "RegScavenger", "*", "RS", ")", "const", "{", "assert", "(", "SPAdj", "==", "", "&&", "", ")", ";", "unsigned", "i", "=", "", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "DebugLoc", "dl", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "", ")", ";", "}", "unsigned", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";"], "ground_truth": ["if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{"], "File": "BPFRegisterInfo12", "Func": "eliminateFrameIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2127, "Length": 128, "Cover_Rate": 0.43686006825938567} {"Template_token": ["", "unsigned", "RegisterInfo", "::", "getBaseRegister", "(", ")", "const", "{", "llvm_unreachable", "(", "", ")", ";", "return", "", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo12", "Func": "getBaseRegister", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2128, "Length": 17, "Cover_Rate": 1.0} {"Template_token": ["", "const", "uint16_t", "*", "RegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "return", "CSR_SaveList", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo12", "Func": "getCalleeSavedRegs", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2129, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["return", "", ";"], "File": "BPFRegisterInfo12", "Func": "getEHExceptionRegister", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2131, "Length": 8, "Cover_Rate": 0.47058823529411764} {"Template_token": ["", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["return", "", ";"], "File": "BPFRegisterInfo12", "Func": "getEHHandlerRegister", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2132, "Length": 8, "Cover_Rate": 0.47058823529411764} {"Template_token": ["", "unsigned", "RegisterInfo", "::", "getEHHandlerRegister", "(", ")", "const", "{", "llvm_unreachable", "(", "", ")", ";", "return", "", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo12", "Func": "getEHHandlerRegister", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2133, "Length": 17, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "RegisterInfo", "::", "hasBasePointer", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{"], "ground_truth": ["return", "false", ";"], "File": "BPFRegisterInfo12", "Func": "hasBasePointer", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2137, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "void", "RegisterInfo", "::"], "ground_truth": ["processFunctionBeforeFrameFinalized", "(", "MachineFunction", "&", "MF", ")", "const", "{"], "File": "BPFRegisterInfo12", "Func": "processFunctionBeforeFrameFinalized", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2140, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "bool", "RegisterInfo", "::", "requiresRegisterScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo12", "Func": "requiresRegisterScavenging", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2142, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "RegisterInfo", "::", "requiresRegisterScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo12", "Func": "requiresRegisterScavenging", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2143, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "Offset", "<=", "-", "", ")", "{", "auto", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "DiagnosticInfoUnsupported", "DiagStackSize", "(", "*", "F", ",", "", "", ",", "DL", ")", ";", "F", "->", "getContext", "(", ")", ".", "diagnose", "(", "DiagStackSize", ")", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo13", "Func": "WarnSize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2144, "Length": 41, "Cover_Rate": 0.7068965517241379} {"Template_token": ["", "static", "void", "WarnSize", "(", "int", "Offset", ",", "MachineFunction", "&", "MF", ",", "DebugLoc", "&", "DL", ")", "{", "if", "(", "Offset", "<=", "-", "", ")", "{", "auto", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "DiagnosticInfoUnsupported", "DiagStackSize", "(", "*", "F", ",", "", "", ",", "DL", ")", ";"], "ground_truth": ["F", "->", "getContext", "(", ")", ".", "diagnose", "(", "DiagStackSize", ")", ";"], "File": "BPFRegisterInfo13", "Func": "WarnSize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2145, "Length": 56, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "Register", "RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{"], "ground_truth": ["return", "", ";"], "File": "BPFRegisterInfo14", "Func": "getFrameRegister", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2146, "Length": 15, "Cover_Rate": 0.8333333333333334} {"Template_token": ["", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "", ")", ";", "}", "unsigned", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "unsigned", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "return", ";", "}", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", "+", "MI", ".", "getOperand", "(", "i", "+", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "isInt", "<", "", ">", "(", "Offset", ")", ")", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{"], "File": "BPFRegisterInfo1", "Func": "eliminateFrameIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2147, "Length": 222, "Cover_Rate": 0.5467980295566502} {"Template_token": ["", "assert", "(", "SPAdj", "==", "", "&&", "", ")", ";", "unsigned", "i", "=", "", ";", "MachineInstr", "&", "MI", "=", "*", "II", ";", "MachineFunction", "&", "MF", "=", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "", ")", ";", "}", "unsigned", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "unsigned", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "return", ";", "}", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", "+", "MI", ".", "getOperand", "(", "i", "+", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "isInt", "<", "", ">", "(", "Offset", ")", ")", "llvm_unreachable", "(", "", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "unsigned", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";"], "ground_truth": ["BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "FrameReg", ")", ";"], "File": "BPFRegisterInfo1", "Func": "eliminateFrameIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2148, "Length": 307, "Cover_Rate": 0.7561576354679803} {"Template_token": ["", "unsigned", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectOffset", "(", "FrameIndex", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", ".", "getParent", "(", ")", ";", "unsigned", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "return", ";", "}", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectOffset", "(", "FrameIndex", ")", "+", "MI", ".", "getOperand", "(", "i", "+", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "isInt", "<", "", ">", "(", "Offset", ")", ")", "llvm_unreachable", "(", "", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo2", "Func": "eliminateFrameIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2149, "Length": 208, "Cover_Rate": 0.6688102893890675} {"Template_token": ["", "bool", "enableMultipleCopyHints", "(", ")", "const", "override", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo3", "Func": "enableMultipleCopyHints", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2150, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "enableMultipleCopyHints", "(", ")", "const", "override", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo3", "Func": "enableMultipleCopyHints", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2151, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "!", "DL", ")", "for", "(", "auto", "&", "I", ":", "MBB", ")", "if", "(", "I", ".", "getDebugLoc", "(", ")", ")", "{", "DL", "=", "I", ".", "getDebugLoc", "(", ")", ";", "break", ";", "}", "while", "(", "!", "MI", ".", "getOperand", "(", "i", ")", ".", "isFI", "(", ")", ")", "{", "++", "i", ";", "assert", "(", "i", "<", "MI", ".", "getNumOperands", "(", ")", "&&", "", ")", ";", "}", "Register", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "WarnSize", "(", "Offset", ",", "MF", ",", "DL", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "Register", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "return", ";", "}", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", "+", "MI", ".", "getOperand", "(", "i", "+", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "isInt", "<", "", ">", "(", "Offset", ")", ")", "llvm_unreachable", "(", "", ")", ";", "WarnSize", "(", "Offset", ",", "MF", ",", "DL", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "Register", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "FrameReg", ")", ";", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "MI", ".", "eraseFromParent", "(", ")", ";"], "ground_truth": ["}", "else", "{"], "File": "BPFRegisterInfo4", "Func": "eliminateFrameIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2152, "Length": 339, "Cover_Rate": 0.7483443708609272} {"Template_token": ["", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "WarnSize", "(", "Offset", ",", "MF", ",", "DL", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "Register", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "return", ";", "}", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", "+", "MI", ".", "getOperand", "(", "i", "+", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "isInt", "<", "", ">", "(", "Offset", ")", ")", "llvm_unreachable", "(", "", ")", ";", "WarnSize", "(", "Offset", ",", "MF", ",", "DL", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "Register", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "FrameReg", ")", ";", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "MI", ".", "eraseFromParent", "(", ")", ";"], "ground_truth": ["}", "else", "{"], "File": "BPFRegisterInfo4", "Func": "eliminateFrameIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2153, "Length": 225, "Cover_Rate": 0.4966887417218543} {"Template_token": ["", "void", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{"], "ground_truth": ["MBB", ".", "erase", "(", "I", ")", ";"], "File": "BPFRegisterInfo9", "Func": "eliminateCallFramePseudoInstr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2154, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "void", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "MBB", ".", "erase", "(", "I", ")", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo9", "Func": "eliminateCallFramePseudoInstr", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2155, "Length": 26, "Cover_Rate": 1.0} {"Template_token": ["", "}", "unsigned", "FrameReg", "=", "getFrameRegister", "(", "MF", ")", ";", "int", "FrameIndex", "=", "MI", ".", "getOperand", "(", "i", ")", ".", "getIndex", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", ";", "WarnSize", "(", "Offset", ",", "MF", ",", "DL", ")", ";", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "unsigned", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "return", ";", "}", "int", "Offset", "=", "MF", ".", "getFrameInfo", "(", ")", ".", "getObjectOffset", "(", "FrameIndex", ")", "+", "MI", ".", "getOperand", "(", "i", "+", "", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "isInt", "<", "", ">", "(", "Offset", ")", ")", "llvm_unreachable", "(", "", ")", ";", "WarnSize", "(", "Offset", ",", "MF", ",", "DL", ")", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "==", "", ")", "{", "unsigned", "reg", "=", "MI", ".", "getOperand", "(", "i", "-", "", ")", ".", "getReg", "(", ")", ";", "BuildMI", "(", "MBB", ",", "++", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "FrameReg", ")", ";", "BuildMI", "(", "MBB", ",", "II", ",", "DL", ",", "TII", ".", "get", "(", "", ")", ",", "reg", ")", ".", "addReg", "(", "reg", ")", ".", "addImm", "(", "Offset", ")", ";", "MI", ".", "eraseFromParent", "(", ")", ";", "}", "else", "{", "MI", ".", "getOperand", "(", "i", ")", ".", "ChangeToRegister", "(", "FrameReg", ",", "false", ")", ";", "MI", ".", "getOperand", "(", "i", "+", "", ")", ".", "ChangeToImmediate", "(", "Offset", ")", ";"], "ground_truth": ["}"], "File": "BPFRegisterInfo", "Func": "eliminateFrameIndex", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2156, "Length": 304, "Cover_Rate": 0.6710816777041942} {"Template_token": ["", "if", "(", "Offset", "<=", "-", "", ")", "{", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "DiagnosticInfoUnsupported", "DiagStackSize", "(", "F", ",", "", "", ",", "DL", ")", ";"], "ground_truth": ["F", ".", "getContext", "(", ")", ".", "diagnose", "(", "DiagStackSize", ")", ";"], "File": "BPFRegisterInfo", "Func": "WarnSize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2157, "Length": 41, "Cover_Rate": 0.6949152542372882} {"Template_token": ["", "unsigned", "StoresNumEstimate", "=", "alignTo", "(", "CopyLen", ",", "Alignment", ")", ">>", "Log2", "(", "Alignment", ")", ";", "if", "(", "StoresNumEstimate", ">", "getCommonMaxStoresPerMemFunc", "(", ")", ")", "return", "SDValue", "(", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "", ",", "", ")", ";", "Dst", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "VTs", ",", "Chain", ",", "Dst", ",", "Src", ",", "DAG", ".", "getConstant", "(", "CopyLen", ",", "dl", ",", "", ")", ",", "DAG", ".", "getConstant", "(", "Alignment", ".", "value", "(", ")", ",", "dl", ",", "", ")", ")", ";"], "ground_truth": ["return", "Dst", ".", "getValue", "(", "", ")", ";"], "File": "BPFSelectionDAGInfo1", "Func": "EmitTargetCodeForMemcpy", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2158, "Length": 93, "Cover_Rate": 0.5224719101123596} {"Template_token": ["", "SDValue", "SelectionDAGInfo", "::", "EmitTargetCodeForMemcpy", "(", "SelectionDAG", "&", "DAG", ",", "const", "SDLoc", "&", "dl", ",", "SDValue", "Chain", ",", "SDValue", "Dst", ",", "SDValue", "Src", ",", "SDValue", "Size", ",", "Align", "Alignment", ",", "bool", "isVolatile", ",", "bool", "AlwaysInline", ",", "MachinePointerInfo", "DstPtrInfo", ",", "MachinePointerInfo", "SrcPtrInfo", ")", "const", "{", "ConstantSDNode", "*", "ConstantSize", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Size", ")", ";", "if", "(", "!", "ConstantSize", ")", "return", "SDValue", "(", ")", ";", "unsigned", "CopyLen", "=", "ConstantSize", "->", "getZExtValue", "(", ")", ";", "unsigned", "StoresNumEstimate", "=", "alignTo", "(", "CopyLen", ",", "Alignment", ")", ">>", "Log2", "(", "Alignment", ")", ";"], "ground_truth": ["if", "(", "StoresNumEstimate", ">", "getCommonMaxStoresPerMemFunc", "(", ")", ")", "return", "SDValue", "(", ")", ";"], "File": "BPFSelectionDAGInfo1", "Func": "EmitTargetCodeForMemcpy", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2159, "Length": 102, "Cover_Rate": 0.5730337078651685} {"Template_token": ["", "ConstantSDNode", "*", "ConstantSize", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Size", ")", ";", "if", "(", "!", "ConstantSize", ")", "return", "SDValue", "(", ")", ";", "unsigned", "CopyLen", "=", "ConstantSize", "->", "getZExtValue", "(", ")", ";", "unsigned", "StoresNumEstimate", "=", "alignTo", "(", "CopyLen", ",", "Alignment", ")", ">>", "Log2", "(", "Alignment", ")", ";"], "ground_truth": ["if", "(", "StoresNumEstimate", ">", "getCommonMaxStoresPerMemFunc", "(", ")", ")", "return", "SDValue", "(", ")", ";"], "File": "BPFSelectionDAGInfo4", "Func": "EmitTargetCodeForMemcpy", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2160, "Length": 59, "Cover_Rate": 0.3259668508287293} {"Template_token": ["", "unsigned", "CopyLen", "=", "ConstantSize", "->", "getZExtValue", "(", ")", ";", "unsigned", "StoresNumEstimate", "=", "alignTo", "(", "CopyLen", ",", "Align", ")", ">>", "Log2_32", "(", "Align", ")", ";", "if", "(", "StoresNumEstimate", ">", "getCommonMaxStoresPerMemFunc", "(", ")", ")", "return", "SDValue", "(", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "", ",", "", ")", ";", "Dst", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "VTs", ",", "Chain", ",", "Dst", ",", "Src", ",", "DAG", ".", "getConstant", "(", "CopyLen", ",", "dl", ",", "", ")", ",", "DAG", ".", "getConstant", "(", "Align", ",", "dl", ",", "", ")", ")", ";"], "ground_truth": ["return", "Dst", ".", "getValue", "(", "", ")", ";"], "File": "BPFSelectionDAGInfo", "Func": "EmitTargetCodeForMemcpy", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2161, "Length": 98, "Cover_Rate": 0.5632183908045977} {"Template_token": ["", "return", "&", "TSInfo", ";"], "ground_truth": ["}"], "File": "BPFSubtarget10", "Func": "getSelectionDAGInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2163, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "return", "&", "TSInfo", ";"], "ground_truth": ["}"], "File": "BPFSubtarget10", "Func": "getSelectionDAGInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2164, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "const", "SelectionDAGInfo", "*", "getSelectionDAGInfo", "(", ")", "const", "override", "{"], "ground_truth": ["return", "&", "TSInfo", ";"], "File": "BPFSubtarget11", "Func": "getSelectionDAGInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2165, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "UseDwarfRIS", ";"], "ground_truth": ["}"], "File": "BPFSubtarget11", "Func": "getUseDwarfRIS", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2166, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "InstrInfo", "(", ")", ",", "FrameLowering", "(", "*", "this", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget12", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2167, "Length": 57, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "InstrInfo", "(", ")", ",", "FrameLowering", "(", "*", "this", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget12", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2168, "Length": 57, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "InstrInfo", "(", ")", ",", "FrameLowering", "(", "*", "this", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", ",", "TSInfo", "(", "TM", ".", "getDataLayout", "(", ")", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget16", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2169, "Length": 68, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "InstrInfo", "(", ")", ",", "FrameLowering", "(", "*", "this", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", ",", "TSInfo", "(", "TM", ".", "getDataLayout", "(", ")", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget16", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2170, "Length": 68, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", "{"], "ground_truth": ["std", "::", "string", "CPUName", "=", "CPU", ";"], "File": "BPFSubtarget17", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2171, "Length": 42, "Cover_Rate": 0.6774193548387096} {"Template_token": ["", "std", "::", "string", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "", ";", "ParseSubtargetFeatures", "(", "CPUName", ",", "FS", ")", ";"], "ground_truth": ["}"], "File": "BPFSubtarget17", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2172, "Length": 27, "Cover_Rate": 0.43548387096774194} {"Template_token": ["", "HasJmpExt", "=", "true", ";", "return", ";", "}", "if", "(", "CPU", "==", "", ")", "{", "HasJmpExt", "=", "true", ";", "HasJmp32", "=", "true", ";"], "ground_truth": ["return", ";"], "File": "BPFSubtarget18", "Func": "initSubtargetFeatures", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2173, "Length": 24, "Cover_Rate": 0.3287671232876712} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "CPU", ",", "FS", ")", ",", "FrameLowering", "(", "initializeSubtargetDependencies", "(", "CPU", ",", "FS", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget1", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2174, "Length": 59, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "CPU", ",", "FS", ")", ",", "FrameLowering", "(", "initializeSubtargetDependencies", "(", "CPU", ",", "FS", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget1", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2175, "Length": 59, "Cover_Rate": 1.0} {"Template_token": ["", "HasJmp32", "=", "false", ";", "HasAlu32", "=", "false", ";", "UseDwarfRIS", "=", "false", ";"], "ground_truth": ["}"], "File": "BPFSubtarget1", "Func": "initializeEnvironment", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2176, "Length": 13, "Cover_Rate": 0.5416666666666666} {"Template_token": ["", "Subtarget", "&", "Subtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "initializeEnvironment", "(", ")", ";", "initSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";", "ParseSubtargetFeatures", "(", "CPU", ",", "CPU", ",", "FS", ")", ";"], "ground_truth": ["return", "*", "this", ";"], "File": "BPFSubtarget1", "Func": "initializeSubtargetDependencies", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2177, "Length": 37, "Cover_Rate": 0.9736842105263158} {"Template_token": ["", "initSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";"], "ground_truth": ["ParseSubtargetFeatures", "(", "CPU", ",", "CPU", ",", "FS", ")", ";"], "File": "BPFSubtarget1", "Func": "initializeSubtargetDependencies", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2178, "Length": 16, "Cover_Rate": 0.42105263157894735} {"Template_token": ["", "HasJmpExt", "=", "true", ";", "return", ";", "}", "if", "(", "CPU", "==", "", ")", "{", "HasJmpExt", "=", "true", ";", "HasJmp32", "=", "true", ";", "HasAlu32", "=", "true", ";", "return", ";"], "ground_truth": ["}"], "File": "BPFSubtarget1", "Func": "initSubtargetFeatures", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2179, "Length": 29, "Cover_Rate": 0.37662337662337664} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "CPU", ",", "FS", ")", ",", "InstrInfo", "(", ")", ",", "FrameLowering", "(", "initializeSubtargetDependencies", "(", "CPU", ",", "FS", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget3", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2180, "Length": 63, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "CPU", ",", "FS", ")", ",", "InstrInfo", "(", ")", ",", "FrameLowering", "(", "initializeSubtargetDependencies", "(", "CPU", ",", "FS", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget3", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2181, "Length": 63, "Cover_Rate": 1.0} {"Template_token": ["", "HasJmpExt", "=", "false", ";"], "ground_truth": ["}"], "File": "BPFSubtarget4", "Func": "initializeEnvironment", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2182, "Length": 5, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "void", "Subtarget", "::", "initializeEnvironment", "(", ")", "{", "HasJmpExt", "=", "false", ";"], "ground_truth": ["}"], "File": "BPFSubtarget4", "Func": "initializeEnvironment", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2183, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "&", "Subtarget", "::", "initializeSubtargetDependencies", "(", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "initializeEnvironment", "(", ")", ";"], "ground_truth": ["initSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";"], "File": "BPFSubtarget4", "Func": "initializeSubtargetDependencies", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2184, "Length": 24, "Cover_Rate": 0.8275862068965517} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "InstrInfo", "(", ")", ",", "FrameLowering", "(", "*", "this", ")", ",", "TLInfo", "(", "TM", ")", ",", "TSInfo", "(", "TM", ".", "getDataLayout", "(", ")", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget6", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2186, "Length": 65, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "std", "::", "string", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "InstrInfo", "(", ")", ",", "FrameLowering", "(", "*", "this", ")", ",", "TLInfo", "(", "TM", ")", ",", "TSInfo", "(", "TM", ".", "getDataLayout", "(", ")", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget6", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2187, "Length": 65, "Cover_Rate": 1.0} {"Template_token": ["", "void", "Subtarget", "::", "anchor", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget", "Func": "anchor", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2188, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "void", "Subtarget", "::", "anchor", "(", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget", "Func": "anchor", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2189, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "InstrInfo", "(", ")", ",", "FrameLowering", "(", "initializeSubtargetDependencies", "(", "CPU", ",", "FS", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2190, "Length": 61, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "::", "Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ")", ":", "GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "InstrInfo", "(", ")", ",", "FrameLowering", "(", "initializeSubtargetDependencies", "(", "CPU", ",", "FS", ")", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{"], "ground_truth": ["}"], "File": "BPFSubtarget", "Func": "BPFSubtarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2191, "Length": 61, "Cover_Rate": 1.0} {"Template_token": ["", "return", "&", "FrameLowering", ";"], "ground_truth": ["}"], "File": "BPFSubtarget", "Func": "getFrameLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2193, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "return", "&", "InstrInfo", ";"], "ground_truth": ["}"], "File": "BPFSubtarget", "Func": "getInstrInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2194, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "const", "InstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{"], "ground_truth": ["return", "&", "InstrInfo", ";"], "File": "BPFSubtarget", "Func": "getInstrInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2195, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "&", "InstrInfo", ".", "getRegisterInfo", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFSubtarget", "Func": "getRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2196, "Length": 9, "Cover_Rate": 0.5} {"Template_token": ["", "const", "SelectionDAGTargetInfo", "*", "getSelectionDAGInfo", "(", ")", "const", "override", "{"], "ground_truth": ["return", "&", "TSInfo", ";"], "File": "BPFSubtarget", "Func": "getSelectionDAGInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2198, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "HasAlu32", "=", "false", ";"], "ground_truth": ["UseDwarfRIS", "=", "false", ";"], "File": "BPFSubtarget", "Func": "initializeEnvironment", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2201, "Length": 8, "Cover_Rate": 0.4} {"Template_token": ["", "ParseSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";", "return", "*", "this", ";"], "ground_truth": ["}"], "File": "BPFSubtarget", "Func": "initializeSubtargetDependencies", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2202, "Length": 12, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "initializeEnvironment", "(", ")", ";", "initSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";", "ParseSubtargetFeatures", "(", "CPU", ",", "FS", ")", ";"], "ground_truth": ["return", "*", "this", ";"], "File": "BPFSubtarget", "Func": "initializeSubtargetDependencies", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2203, "Length": 22, "Cover_Rate": 0.6111111111111112} {"Template_token": ["", "void", "Subtarget", "::", "initSubtargetFeatures", "(", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "if", "(", "CPU", "==", "", ")", "CPU", "=", "sys", "::", "detail", "::", "getHostCPUNameFor", "(", ")", ";", "if", "(", "CPU", "==", "", "||", "CPU", "==", "", ")", "return", ";", "if", "(", "CPU", "==", "", ")", "{", "HasJmpExt", "=", "true", ";"], "ground_truth": ["return", ";"], "File": "BPFSubtarget", "Func": "initSubtargetFeatures", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2204, "Length": 53, "Cover_Rate": 0.9636363636363636} {"Template_token": ["", "void", "LLVMInitializeTargetInfo", "(", ")", "{"], "ground_truth": ["RegisterTarget", "<", "Triple", "::", "bpf", ">", "X", "(", "TheTarget", ",", "", ",", "", ")", ";"], "File": "BPFTargetInfo12", "Func": "LLVMInitializeBPFTargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2205, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "RegisterTarget", "<", "Triple", "::", "bpf", ">", "X", "(", "TheTarget", ",", "", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetInfo12", "Func": "LLVMInitializeBPFTargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2206, "Length": 16, "Cover_Rate": 0.7619047619047619} {"Template_token": ["", "TargetRegistry", "::", "RegisterTarget", "(", "getTheTarget", "(", ")", ",", "", ",", "", ",", "[", "]", "(", "Triple", "::", "ArchType", ")", "{", "return", "false", ";", "}", ",", "true", ")", ";"], "ground_truth": ["RegisterTarget", "<", "Triple", "::", "bpfel", ",", "true", ">", "X", "(", "getTheleTarget", "(", ")", ",", "", ",", "", ")", ";"], "File": "BPFTargetInfo14", "Func": "LLVMInitializeBPFTargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2207, "Length": 47, "Cover_Rate": 0.6527777777777778} {"Template_token": ["", "void", "LLVMInitializeTargetInfo", "(", ")", "{", "RegisterTarget", "<", "Triple", "::", "x86_64", ">", "X", "(", "TheTarget", ",", "", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetInfo15", "Func": "LLVMInitializeBPFTargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2208, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "static", "Target", "ThebeTarget", ";", "return", "ThebeTarget", ";"], "ground_truth": ["}"], "File": "BPFTargetInfo16", "Func": "getTheBPFbeTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2210, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "Target", "&", "llvm", "::", "getTheleTarget", "(", ")", "{"], "ground_truth": ["static", "Target", "TheleTarget", ";"], "File": "BPFTargetInfo16", "Func": "getTheBPFleTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2211, "Length": 12, "Cover_Rate": 0.75} {"Template_token": ["", "Target", "&", "llvm", "::", "getTheTarget", "(", ")", "{", "static", "Target", "TheTarget", ";", "return", "TheTarget", ";"], "ground_truth": ["}"], "File": "BPFTargetInfo16", "Func": "getTheBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2212, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "static", "Target", "TheTarget", ";", "return", "TheTarget", ";"], "ground_truth": ["}"], "File": "BPFTargetInfo16", "Func": "getTheBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2213, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "RegisterTarget", "<", "Triple", "::", "bpfel", ",", "true", ">", "X", "(", "getTheleTarget", "(", ")", ",", "", ",", "", ",", "", ")", ";"], "ground_truth": ["RegisterTarget", "<", "Triple", "::", "bpfeb", ",", "true", ">", "Y", "(", "getThebeTarget", "(", ")", ",", "", ",", "", ",", "", ")", ";"], "File": "BPFTargetInfo16", "Func": "LLVMInitializeBPFTargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2214, "Length": 42, "Cover_Rate": 0.5316455696202531} {"Template_token": ["", "void", "LLVMInitializeTargetInfo", "(", ")", "{", "RegisterTarget", "<", "Triple", "::", "bpf", ",", "true", ">", "X", "(", "TheTarget", ",", "", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetInfo2", "Func": "LLVMInitializeBPFTargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2215, "Length": 23, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterTarget", "<", "Triple", "::", "bpf", ",", "true", ">", "X", "(", "TheTarget", ",", "", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetInfo2", "Func": "LLVMInitializeBPFTargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2216, "Length": 18, "Cover_Rate": 0.782608695652174} {"Template_token": ["", "void", "LLVMInitializeTargetInfo", "(", ")", "{", "TargetRegistry", "::", "RegisterTarget", "(", "TheTarget", ",", "", ",", "", ",", "[", "]", "(", "Triple", "::", "ArchType", ")", "{", "return", "false", ";", "}", ",", "true", ")", ";"], "ground_truth": ["RegisterTarget", "<", "Triple", "::", "bpfel", ",", "true", ">", "X", "(", "TheleTarget", ",", "", ",", "", ")", ";"], "File": "BPFTargetInfo4", "Func": "LLVMInitializeBPFTargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2217, "Length": 48, "Cover_Rate": 0.7272727272727273} {"Template_token": ["", "Target", "&", "getThebeTarget", "(", ")", "{", "static", "Target", "ThebeTarget", ";", "return", "ThebeTarget", ";"], "ground_truth": ["}"], "File": "BPFTargetInfo", "Func": "getTheBPFbeTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2218, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "Target", "&", "getTheleTarget", "(", ")", "{"], "ground_truth": ["static", "Target", "TheleTarget", ";"], "File": "BPFTargetInfo", "Func": "getTheBPFleTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2219, "Length": 10, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "Target", "&", "getTheTarget", "(", ")", "{", "static", "Target", "TheTarget", ";"], "ground_truth": ["return", "TheTarget", ";"], "File": "BPFTargetInfo", "Func": "getTheBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2221, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "TargetRegistry", "::", "RegisterTarget", "(", "getTheTarget", "(", ")", ",", "", ",", "", ",", "", ",", "[", "]", "(", "Triple", "::", "ArchType", ")", "{", "return", "false", ";", "}", ",", "true", ")", ";"], "ground_truth": ["RegisterTarget", "<", "Triple", "::", "bpfel", ",", "true", ">", "X", "(", "getTheleTarget", "(", ")", ",", "", ",", "", ",", "", ")", ";"], "File": "BPFTargetInfo", "Func": "LLVMInitializeBPFTargetInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2222, "Length": 51, "Cover_Rate": 0.6538461538461539} {"Template_token": ["", "if", "(", "Subtarget", "->", "getHasAlu32", "(", ")", "&&", "!", "DisableMIPeephole", ")", "addPass", "(", "createMIPeepholePass", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)1", "Func": "addMachineSSAOptimization", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2223, "Length": 19, "Cover_Rate": 0.4222222222222222} {"Template_token": ["", "if", "(", "Subtarget", "->", "getHasAlu32", "(", ")", "&&", "!", "DisableMIPeephole", ")", "addPass", "(", "createMIPeepholePass", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)1", "Func": "addMachineSSAOptimization", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2224, "Length": 19, "Cover_Rate": 0.4222222222222222} {"Template_token": ["", "void", "PassConfig", "::", "addPreEmitPass", "(", ")", "{"], "ground_truth": ["const", "Subtarget", "*", "Subtarget", "=", "getTargetMachine", "(", ")", ".", "getSubtargetImpl", "(", ")", ";"], "File": "BPFTargetMachine (2)1", "Func": "addPreEmitPass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2225, "Length": 20, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "if", "(", "Subtarget", "->", "getHasAlu32", "(", ")", "&&", "!", "DisableMIPeephole", ")", "addPass", "(", "createMIPreEmitPeepholePass", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)1", "Func": "addPreEmitPass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2226, "Length": 29, "Cover_Rate": 0.5178571428571429} {"Template_token": ["", "PassConfig", "(", "TargetMachine", "&", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)1", "Func": "BPFPassConfig", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2227, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "PassConfig", "(", "TargetMachine", "&", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)1", "Func": "BPFPassConfig", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2228, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "return", "new", "PassConfig", "(", "*", "this", ",", "PM", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)1", "Func": "createPassConfig", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2230, "Length": 11, "Cover_Rate": 0.5} {"Template_token": ["", "if", "(", "!", "RM", ".", "hasValue", "(", ")", ")", "return", "Reloc", "::", "PIC_", ";", "return", "*", "RM", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)1", "Func": "getEffectiveRelocModel", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2232, "Length": 19, "Cover_Rate": 0.5588235294117647} {"Template_token": ["", "static", "Reloc", "::", "Model", "getEffectiveRelocModel", "(", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ")", "{"], "ground_truth": ["if", "(", "!", "RM", ".", "hasValue", "(", ")", ")", "return", "Reloc", "::", "PIC_", ";"], "File": "BPFTargetMachine (2)1", "Func": "getEffectiveRelocModel", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2233, "Length": 29, "Cover_Rate": 0.8529411764705882} {"Template_token": ["", "void", "LLVMInitializeTarget", "(", ")", "{", "RegisterTargetMachine", "<", "TargetMachine", ">", "X", "(", "getTheleTarget", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "getThebeTarget", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Z", "(", "getTheTarget", "(", ")", ")", ";", "PassRegistry", "&", "PR", "=", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ";"], "ground_truth": ["initializeMIPeepholePass", "(", "PR", ")", ";"], "File": "BPFTargetMachine (2)1", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2234, "Length": 54, "Cover_Rate": 0.9818181818181818} {"Template_token": ["", "PassConfig", "(", "TargetMachine", "*", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)", "Func": "BPFPassConfig", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2236, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "PassConfig", "(", "TargetMachine", "*", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)", "Func": "BPFPassConfig", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2237, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "LLVMTargetMachine", "(", "T", ",", "computeDataLayout", "(", "TT", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "TLOF", "(", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{"], "ground_truth": ["initAsmInfo", "(", ")", ";"], "File": "BPFTargetMachine (2)", "Func": "BPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2239, "Length": 91, "Cover_Rate": 0.9891304347826086} {"Template_token": ["", "static", "std", "::", "string", "computeDataLayout", "(", "const", "Triple", "&", "TT", ")", "{", "if", "(", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "bpfeb", ")", "return", "", ";"], "ground_truth": ["else", "return", "", ";"], "File": "BPFTargetMachine (2)", "Func": "computeDataLayout", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2240, "Length": 31, "Cover_Rate": 0.96875} {"Template_token": ["", "return", "new", "PassConfig", "(", "this", ",", "PM", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)", "Func": "createPassConfig", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2241, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "return", "new", "PassConfig", "(", "this", ",", "PM", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)", "Func": "createPassConfig", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2242, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "TargetMachine", "&", "getTargetMachine", "(", ")", "const", "{"], "ground_truth": ["return", "getTM", "<", "TargetMachine", ">", "(", ")", ";"], "File": "BPFTargetMachine (2)", "Func": "getBPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2243, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "return", "getTM", "<", "TargetMachine", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)", "Func": "getBPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2244, "Length": 9, "Cover_Rate": 0.5625} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "X", "(", "TheleTarget", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "ThebeTarget", ")", ";"], "ground_truth": ["RegisterTargetMachine", "<", "TargetMachine", ">", "Z", "(", "TheTarget", ")", ";"], "File": "BPFTargetMachine (2)", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2245, "Length": 27, "Cover_Rate": 0.8181818181818182} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "Z", "(", "TheTarget", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine (2)", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2246, "Length": 10, "Cover_Rate": 0.30303030303030304} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "X", "(", "getTheleTarget", "(", ")", ")", ";"], "ground_truth": ["RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "getThebeTarget", "(", ")", ")", ";"], "File": "BPFTargetMachine10", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2248, "Length": 22, "Cover_Rate": 0.5641025641025641} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "Z", "(", "getTheTarget", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine10", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2249, "Length": 12, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "void", "PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAbstractMemberAccess", "(", "&", "getTargetMachine", "(", ")", ")", ")", ";", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine12", "Func": "addIRPasses", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2250, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "void", "PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAbstractMemberAccess", "(", "&", "getTargetMachine", "(", ")", ")", ")", ";"], "ground_truth": ["TargetPassConfig", "::", "addIRPasses", "(", ")", ";"], "File": "BPFTargetMachine12", "Func": "addIRPasses", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2251, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "PassRegistry", "&", "PR", "=", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializeAbstractMemberAccessPass", "(", "PR", ")", ";"], "ground_truth": ["initializeMIPeepholePass", "(", "PR", ")", ";"], "File": "BPFTargetMachine12", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2254, "Length": 21, "Cover_Rate": 0.35} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "X", "(", "getTheleTarget", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "getThebeTarget", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Z", "(", "getTheTarget", "(", ")", ")", ";"], "ground_truth": ["PassRegistry", "&", "PR", "=", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ";"], "File": "BPFTargetMachine12", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2255, "Length": 44, "Cover_Rate": 0.7333333333333333} {"Template_token": ["", "PB", ".", "registerPipelineStartEPCallback", "(", "[", "=", "]", "(", "ModulePassManager", "&", "MPM", ",", "PassBuilder", "::", "OptimizationLevel", ")", "{", "FunctionPassManager", "FPM", "(", "DebugPassManager", ")", ";", "FPM", ".", "addPass", "(", "AbstractMemberAccessPass", "(", "this", ")", ")", ";", "FPM", ".", "addPass", "(", "PreserveDITypePass", "(", ")", ")", ";", "MPM", ".", "addPass", "(", "createModuleToFunctionPassAdaptor", "(", "std", "::", "move", "(", "FPM", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPeepholeEPCallback", "(", "[", "=", "]", "(", "FunctionPassManager", "&", "FPM", ",", "PassBuilder", "::", "OptimizationLevel", "Level", ")", "{"], "ground_truth": ["FPM", ".", "addPass", "(", "SimplifyCFGPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";"], "File": "BPFTargetMachine13", "Func": "registerPassBuilderCallbacks", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2256, "Length": 95, "Cover_Rate": 0.6737588652482269} {"Template_token": ["", "void", "TargetMachine", "::", "registerPassBuilderCallbacks", "(", "PassBuilder", "&", "PB", ",", "bool", "DebugPassManager", ")", "{", "PB", ".", "registerPipelineStartEPCallback", "(", "[", "=", "]", "(", "ModulePassManager", "&", "MPM", ",", "PassBuilder", "::", "OptimizationLevel", ")", "{", "FunctionPassManager", "FPM", "(", "DebugPassManager", ")", ";", "FPM", ".", "addPass", "(", "AbstractMemberAccessPass", "(", "this", ")", ")", ";", "FPM", ".", "addPass", "(", "PreserveDITypePass", "(", ")", ")", ";", "MPM", ".", "addPass", "(", "createModuleToFunctionPassAdaptor", "(", "std", "::", "move", "(", "FPM", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPeepholeEPCallback", "(", "[", "=", "]", "(", "FunctionPassManager", "&", "FPM", ",", "PassBuilder", "::", "OptimizationLevel", "Level", ")", "{", "FPM", ".", "addPass", "(", "SimplifyCFGPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPipelineEarlySimplificationEPCallback", "(", "[", "=", "]", "(", "ModulePassManager", "&", "MPM", ",", "PassBuilder", "::", "OptimizationLevel", ")", "{"], "ground_truth": ["MPM", ".", "addPass", "(", "AdjustOptPass", "(", ")", ")", ";"], "File": "BPFTargetMachine13", "Func": "registerPassBuilderCallbacks", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2257, "Length": 137, "Cover_Rate": 0.9716312056737588} {"Template_token": ["", "void", "TargetMachine", "::", "registerPassBuilderCallbacks", "(", "PassBuilder", "&", "PB", ")", "{", "PB", ".", "registerPipelineStartEPCallback", "(", "[", "=", "]", "(", "ModulePassManager", "&", "MPM", ",", "OptimizationLevel", ")", "{", "FunctionPassManager", "FPM", ";", "FPM", ".", "addPass", "(", "AbstractMemberAccessPass", "(", "this", ")", ")", ";", "FPM", ".", "addPass", "(", "PreserveDITypePass", "(", ")", ")", ";", "MPM", ".", "addPass", "(", "createModuleToFunctionPassAdaptor", "(", "std", "::", "move", "(", "FPM", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPeepholeEPCallback", "(", "[", "=", "]", "(", "FunctionPassManager", "&", "FPM", ",", "OptimizationLevel", "Level", ")", "{", "FPM", ".", "addPass", "(", "SimplifyCFGPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";"], "ground_truth": ["}", ")", ";"], "File": "BPFTargetMachine14", "Func": "registerPassBuilderCallbacks", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2258, "Length": 101, "Cover_Rate": 0.7829457364341085} {"Template_token": ["", "FPM", ".", "addPass", "(", "AbstractMemberAccessPass", "(", "this", ")", ")", ";", "FPM", ".", "addPass", "(", "PreserveDITypePass", "(", ")", ")", ";", "MPM", ".", "addPass", "(", "createModuleToFunctionPassAdaptor", "(", "std", "::", "move", "(", "FPM", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPeepholeEPCallback", "(", "[", "=", "]", "(", "FunctionPassManager", "&", "FPM", ",", "OptimizationLevel", "Level", ")", "{", "FPM", ".", "addPass", "(", "SimplifyCFGPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";"], "ground_truth": ["}", ")", ";"], "File": "BPFTargetMachine14", "Func": "registerPassBuilderCallbacks", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2259, "Length": 73, "Cover_Rate": 0.5658914728682171} {"Template_token": ["", "return", "&", "DL", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine15", "Func": "getDataLayout", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2260, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "virtual", "const", "DataLayout", "*", "getDataLayout", "(", ")", "const", "{", "return", "&", "DL", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine15", "Func": "getDataLayout", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2261, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "virtual", "const", "TargetFrameLowering", "*", "getFrameLowering", "(", ")", "const", "{", "return", "&", "FrameLowering", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine15", "Func": "getFrameLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2262, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "virtual", "const", "TargetFrameLowering", "*", "getFrameLowering", "(", ")", "const", "{", "return", "&", "FrameLowering", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine15", "Func": "getFrameLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2263, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "virtual", "const", "RegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "{"], "ground_truth": ["return", "&", "InstrInfo", ".", "getRegisterInfo", "(", ")", ";"], "File": "BPFTargetMachine15", "Func": "getRegisterInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2266, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "return", "&", "TSInfo", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine15", "Func": "getSelectionDAGInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2267, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "virtual", "const", "Subtarget", "*", "getSubtargetImpl", "(", ")", "const", "{"], "ground_truth": ["return", "&", "Subtarget", ";"], "File": "BPFTargetMachine15", "Func": "getSubtargetImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2268, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "virtual", "const", "Subtarget", "*", "getSubtargetImpl", "(", ")", "const", "{"], "ground_truth": ["return", "&", "Subtarget", ";"], "File": "BPFTargetMachine15", "Func": "getSubtargetImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2269, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "virtual", "const", "TargetLowering", "*", "getTargetLowering", "(", ")", "const", "{", "return", "&", "TLInfo", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine15", "Func": "getTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2270, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "virtual", "const", "TargetLowering", "*", "getTargetLowering", "(", ")", "const", "{", "return", "&", "TLInfo", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine15", "Func": "getTargetLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2271, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "PM", ".", "add", "(", "createAbstractMemberAccess", "(", "this", ")", ")", ";", "PM", ".", "add", "(", "createPreserveDIType", "(", ")", ")", ";", "}", ")", ";", "Builder", ".", "addExtension", "(", "PassManagerBuilder", "::", "EP_Peephole", ",", "[", "&", "]", "(", "const", "PassManagerBuilder", "&", ",", "legacy", "::", "PassManagerBase", "&", "PM", ")", "{"], "ground_truth": ["PM", ".", "add", "(", "createCFGSimplificationPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";"], "File": "BPFTargetMachine1", "Func": "adjustPassManager", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2274, "Length": 62, "Cover_Rate": 0.4626865671641791} {"Template_token": ["", "}", ")", ";", "Builder", ".", "addExtension", "(", "PassManagerBuilder", "::", "EP_Peephole", ",", "[", "&", "]", "(", "const", "PassManagerBuilder", "&", ",", "legacy", "::", "PassManagerBase", "&", "PM", ")", "{", "PM", ".", "add", "(", "createCFGSimplificationPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";", "}", ")", ";", "Builder", ".", "addExtension", "(", "PassManagerBuilder", "::", "EP_ModuleOptimizerEarly", ",", "[", "&", "]", "(", "const", "PassManagerBuilder", "&", ",", "legacy", "::", "PassManagerBase", "&", "PM", ")", "{", "PM", ".", "add", "(", "createAdjustOpt", "(", ")", ")", ";"], "ground_truth": ["}", ")", ";"], "File": "BPFTargetMachine1", "Func": "adjustPassManager", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2275, "Length": 81, "Cover_Rate": 0.6044776119402985} {"Template_token": ["", "LLVM_EXTERNAL_VISIBILITY", "void", "LLVMInitializeTarget", "(", ")", "{", "RegisterTargetMachine", "<", "TargetMachine", ">", "X", "(", "getTheleTarget", "(", ")", ")", ";"], "ground_truth": ["RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "getThebeTarget", "(", ")", ")", ";"], "File": "BPFTargetMachine1", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2276, "Length": 28, "Cover_Rate": 0.345679012345679} {"Template_token": ["", "PB", ".", "registerPipelineStartEPCallback", "(", "[", "=", "]", "(", "ModulePassManager", "&", "MPM", ",", "PassBuilder", "::", "OptimizationLevel", ")", "{", "FunctionPassManager", "FPM", "(", "DebugPassManager", ")", ";", "FPM", ".", "addPass", "(", "AbstractMemberAccessPass", "(", "this", ")", ")", ";", "FPM", ".", "addPass", "(", "PreserveDITypePass", "(", ")", ")", ";", "MPM", ".", "addPass", "(", "createModuleToFunctionPassAdaptor", "(", "std", "::", "move", "(", "FPM", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPeepholeEPCallback", "(", "[", "=", "]", "(", "FunctionPassManager", "&", "FPM", ",", "PassBuilder", "::", "OptimizationLevel", "Level", ")", "{"], "ground_truth": ["FPM", ".", "addPass", "(", "SimplifyCFGPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";"], "File": "BPFTargetMachine1", "Func": "registerPassBuilderCallbacks", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2277, "Length": 95, "Cover_Rate": 0.8482142857142857} {"Template_token": ["", "void", "PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAbstractMemberAccess", "(", "&", "getTargetMachine", "(", ")", ")", ")", ";"], "ground_truth": ["addPass", "(", "createPreserveDIType", "(", ")", ")", ";"], "File": "BPFTargetMachine22", "Func": "addIRPasses", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2278, "Length": 25, "Cover_Rate": 0.78125} {"Template_token": ["", "addPass", "(", "createAbstractMemberAccess", "(", "&", "getTargetMachine", "(", ")", ")", ")", ";"], "ground_truth": ["addPass", "(", "createPreserveDIType", "(", ")", ")", ";"], "File": "BPFTargetMachine22", "Func": "addIRPasses", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2279, "Length": 18, "Cover_Rate": 0.5625} {"Template_token": ["", "PassRegistry", "&", "PR", "=", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializeAbstractMemberAccessPass", "(", "PR", ")", ";", "initializePreserveDITypePass", "(", "PR", ")", ";", "initializeMIPeepholePass", "(", "PR", ")", ";"], "ground_truth": ["initializeMIPeepholeTruncElimPass", "(", "PR", ")", ";"], "File": "BPFTargetMachine22", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2280, "Length": 31, "Cover_Rate": 0.43661971830985913} {"Template_token": ["", "PassRegistry", "&", "PR", "=", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializeAbstractMemberAccessPass", "(", "PR", ")", ";", "initializePreserveDITypePass", "(", "PR", ")", ";", "initializeMIPeepholePass", "(", "PR", ")", ";", "initializeMIPeepholeTruncElimPass", "(", "PR", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine22", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2281, "Length": 32, "Cover_Rate": 0.4507042253521127} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "X", "(", "getTheleTarget", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "getThebeTarget", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Z", "(", "getTheTarget", "(", ")", ")", ";"], "ground_truth": ["PassRegistry", "&", "PR", "=", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ";"], "File": "BPFTargetMachine23", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2282, "Length": 44, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "Builder", ".", "addExtension", "(", "PassManagerBuilder", "::", "EP_Peephole", ",", "[", "&", "]", "(", "const", "PassManagerBuilder", "&", ",", "legacy", "::", "PassManagerBase", "&", "PM", ")", "{", "PM", ".", "add", "(", "createCFGSimplificationPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";"], "ground_truth": ["}", ")", ";"], "File": "BPFTargetMachine24", "Func": "adjustPassManager", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2283, "Length": 43, "Cover_Rate": 0.7962962962962963} {"Template_token": ["", "void", "TargetMachine", "::", "adjustPassManager", "(", "PassManagerBuilder", "&", "Builder", ")", "{", "Builder", ".", "addExtension", "(", "PassManagerBuilder", "::", "EP_Peephole", ",", "[", "&", "]", "(", "const", "PassManagerBuilder", "&", ",", "legacy", "::", "PassManagerBase", "&", "PM", ")", "{"], "ground_truth": ["PM", ".", "add", "(", "createCFGSimplificationPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";"], "File": "BPFTargetMachine24", "Func": "adjustPassManager", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2284, "Length": 50, "Cover_Rate": 0.9259259259259259} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "Z", "(", "getTheTarget", "(", ")", ")", ";", "PassRegistry", "&", "PR", "=", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializeAbstractMemberAccessPass", "(", "PR", ")", ";", "initializeMIPeepholePass", "(", "PR", ")", ";"], "ground_truth": ["initializeMIPeepholeTruncElimPass", "(", "PR", ")", ";"], "File": "BPFTargetMachine26", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2285, "Length": 37, "Cover_Rate": 0.5692307692307692} {"Template_token": ["", "void", "TargetMachine", "::", "registerPassBuilderCallbacks", "(", "PassBuilder", "&", "PB", ")", "{", "PB", ".", "registerPipelineStartEPCallback", "(", "[", "=", "]", "(", "ModulePassManager", "&", "MPM", ",", "PassBuilder", "::", "OptimizationLevel", ")", "{", "FunctionPassManager", "FPM", ";", "FPM", ".", "addPass", "(", "AbstractMemberAccessPass", "(", "this", ")", ")", ";", "FPM", ".", "addPass", "(", "PreserveDITypePass", "(", ")", ")", ";", "MPM", ".", "addPass", "(", "createModuleToFunctionPassAdaptor", "(", "std", "::", "move", "(", "FPM", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPeepholeEPCallback", "(", "[", "=", "]", "(", "FunctionPassManager", "&", "FPM", ",", "PassBuilder", "::", "OptimizationLevel", "Level", ")", "{", "FPM", ".", "addPass", "(", "SimplifyCFGPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";", "}", ")", ";"], "ground_truth": ["PB", ".", "registerPipelineEarlySimplificationEPCallback", "(", "[", "=", "]", "(", "ModulePassManager", "&", "MPM", ",", "PassBuilder", "::", "OptimizationLevel", ")", "{"], "File": "BPFTargetMachine28", "Func": "registerPassBuilderCallbacks", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2286, "Length": 122, "Cover_Rate": 0.9037037037037037} {"Template_token": ["", "void", "PassConfig", "::", "addPreEmitPass", "(", ")", "{"], "ground_truth": ["const", "Subtarget", "*", "Subtarget", "=", "getTargetMachine", "(", ")", ".", "getSubtargetImpl", "(", ")", ";"], "File": "BPFTargetMachine2", "Func": "addPreEmitPass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2288, "Length": 20, "Cover_Rate": 0.40816326530612246} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "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", ",", "computeDataLayout", "(", "TT", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getEffectiveRelocModel", "(", "RM", ")", ",", "getEffectiveCodeModel", "(", "CM", ")", ",", "OL", ")", ",", "TLOF", "(", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{", "initAsmInfo", "(", ")", ";", "MCAsmInfo", "*", "MAI", "=", "static_cast", "<", "MCAsmInfo", "*", ">", "(", "const_cast", "<", "MCAsmInfo", "*", ">", "(", "AsmInfo", ")", ")", ";"], "ground_truth": ["MAI", "->", "setDwarfUsesRelocationsAcrossSections", "(", "!", "Subtarget", ".", "getUseDwarfRIS", "(", ")", ")", ";"], "File": "BPFTargetMachine2", "Func": "BPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2289, "Length": 138, "Cover_Rate": 0.9928057553956835} {"Template_token": ["", "static", "CodeModel", "::", "Model", "getEffectiveCodeModel", "(", "Optional", "<", "CodeModel", "::", "Model", ">", "CM", ")", "{"], "ground_truth": ["if", "(", "CM", ")", "return", "*", "CM", ";"], "File": "BPFTargetMachine2", "Func": "getEffectiveCodeModel", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2290, "Length": 23, "Cover_Rate": 0.7931034482758621} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "LLVMTargetMachine", "(", "T", ",", "computeDataLayout", "(", "TT", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "TLOF", "(", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{"], "ground_truth": ["initAsmInfo", "(", ")", ";"], "File": "BPFTargetMachine30", "Func": "BPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2292, "Length": 89, "Cover_Rate": 0.9888888888888889} {"Template_token": ["", "static", "std", "::", "string", "computeDataLayout", "(", "StringRef", "TT", ")", "{", "if", "(", "Triple", "(", "TT", ")", ".", "getArch", "(", ")", "==", "Triple", "::", "bpfeb", ")", "return", "", ";", "else", "return", "", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine30", "Func": "computeDataLayout", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2293, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "static", "std", "::", "string", "computeDataLayout", "(", "StringRef", "TT", ")", "{", "if", "(", "Triple", "(", "TT", ")", ".", "getArch", "(", ")", "==", "Triple", "::", "bpfeb", ")", "return", "", ";", "else", "return", "", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine30", "Func": "computeDataLayout", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2294, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "Builder", ".", "addExtension", "(", "PassManagerBuilder", "::", "EP_EarlyAsPossible", ",", "[", "&", "]", "(", "const", "PassManagerBuilder", "&", ",", "legacy", "::", "PassManagerBase", "&", "PM", ")", "{", "PM", ".", "add", "(", "createAbstractMemberAccess", "(", "this", ")", ")", ";"], "ground_truth": ["PM", ".", "add", "(", "createPreserveDIType", "(", ")", ")", ";"], "File": "BPFTargetMachine32", "Func": "adjustPassManager", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2295, "Length": 42, "Cover_Rate": 0.42424242424242425} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "getThebeTarget", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Z", "(", "getTheTarget", "(", ")", ")", ";", "PassRegistry", "&", "PR", "=", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializeAbstractMemberAccessPass", "(", "PR", ")", ";", "initializePreserveDITypePass", "(", "PR", ")", ";", "initializeCheckAndAdjustIRPass", "(", "PR", ")", ";", "initializeMIPeepholePass", "(", "PR", ")", ";", "initializeMIPeepholeTruncElimPass", "(", "PR", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine32", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2296, "Length": 59, "Cover_Rate": 0.7763157894736842} {"Template_token": ["", "LLVM_EXTERNAL_VISIBILITY", "void", "LLVMInitializeTarget", "(", ")", "{", "RegisterTargetMachine", "<", "TargetMachine", ">", "X", "(", "getTheleTarget", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "getThebeTarget", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Z", "(", "getTheTarget", "(", ")", ")", ";", "PassRegistry", "&", "PR", "=", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializeAbstractMemberAccessPass", "(", "PR", ")", ";", "initializePreserveDITypePass", "(", "PR", ")", ";", "initializeCheckAndAdjustIRPass", "(", "PR", ")", ";", "initializeMIPeepholePass", "(", "PR", ")", ";", "initializeMIPeepholeTruncElimPass", "(", "PR", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine32", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2297, "Length": 76, "Cover_Rate": 1.0} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "LLVMTargetMachine", "(", "T", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "DL", "(", "", ")", ",", "InstrInfo", "(", ")", ",", "TLInfo", "(", "*", "this", ")", ",", "TSInfo", "(", "*", "this", ")", ",", "FrameLowering", "(", "Subtarget", ")", "{", "initAsmInfo", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine33", "Func": "BPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2298, "Length": 98, "Cover_Rate": 1.0} {"Template_token": ["", "void", "LLVMInitializeTarget", "(", ")", "{"], "ground_truth": ["RegisterTargetMachine", "<", "TargetMachine", ">", "X", "(", "TheTarget", ")", ";"], "File": "BPFTargetMachine33", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2300, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "LLVMTargetMachine", "(", "T", ",", "", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "TLOF", "(", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{"], "ground_truth": ["initAsmInfo", "(", ")", ";"], "File": "BPFTargetMachine35", "Func": "BPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2302, "Length": 86, "Cover_Rate": 0.9885057471264368} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "LLVMTargetMachine", "(", "T", ",", "", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "TLOF", "(", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{"], "ground_truth": ["initAsmInfo", "(", ")", ";"], "File": "BPFTargetMachine35", "Func": "BPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2303, "Length": 86, "Cover_Rate": 0.9885057471264368} {"Template_token": ["", "void", "PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAbstractMemberAccess", "(", ")", ")", ";"], "ground_truth": ["TargetPassConfig", "::", "addIRPasses", "(", ")", ";"], "File": "BPFTargetMachine38", "Func": "addIRPasses", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2304, "Length": 20, "Cover_Rate": 0.9523809523809523} {"Template_token": ["", "const", "DataLayout", "*", "getDataLayout", "(", ")", "const", "override", "{"], "ground_truth": ["return", "&", "DL", ";"], "File": "BPFTargetMachine4", "Func": "getDataLayout", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2305, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "&", "Subtarget", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine4", "Func": "getSubtargetImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2307, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "void", "TargetMachine", "::", "registerPassBuilderCallbacks", "(", "PassBuilder", "&", "PB", ",", "bool", "DebugPassManager", ")", "{", "PB", ".", "registerPipelineStartEPCallback", "(", "[", "=", "]", "(", "ModulePassManager", "&", "MPM", ")", "{", "FunctionPassManager", "FPM", "(", "DebugPassManager", ")", ";", "FPM", ".", "addPass", "(", "AbstractMemberAccessPass", "(", "this", ")", ")", ";", "FPM", ".", "addPass", "(", "PreserveDITypePass", "(", ")", ")", ";", "MPM", ".", "addPass", "(", "createModuleToFunctionPassAdaptor", "(", "std", "::", "move", "(", "FPM", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPeepholeEPCallback", "(", "[", "=", "]", "(", "FunctionPassManager", "&", "FPM", ",", "PassBuilder", "::", "OptimizationLevel", "Level", ")", "{", "FPM", ".", "addPass", "(", "SimplifyCFGPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";"], "ground_truth": ["}", ")", ";"], "File": "BPFTargetMachine4", "Func": "registerPassBuilderCallbacks", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2309, "Length": 107, "Cover_Rate": 0.9907407407407407} {"Template_token": ["", "FPM", ".", "addPass", "(", "PreserveDITypePass", "(", ")", ")", ";", "MPM", ".", "addPass", "(", "createModuleToFunctionPassAdaptor", "(", "std", "::", "move", "(", "FPM", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPeepholeEPCallback", "(", "[", "=", "]", "(", "FunctionPassManager", "&", "FPM", ",", "PassBuilder", "::", "OptimizationLevel", "Level", ")", "{"], "ground_truth": ["FPM", ".", "addPass", "(", "SimplifyCFGPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";"], "File": "BPFTargetMachine4", "Func": "registerPassBuilderCallbacks", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2310, "Length": 62, "Cover_Rate": 0.5740740740740741} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "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", ",", "computeDataLayout", "(", "TT", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getEffectiveRelocModel", "(", "RM", ")", ",", "getEffectiveCodeModel", "(", "CM", ")", ",", "OL", ")", ",", "TLOF", "(", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{"], "ground_truth": ["initAsmInfo", "(", ")", ";"], "File": "BPFTargetMachine8", "Func": "BPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2311, "Length": 106, "Cover_Rate": 0.9906542056074766} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "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", ",", "computeDataLayout", "(", "TT", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getEffectiveRelocModel", "(", "RM", ")", ",", "getEffectiveCodeModel", "(", "CM", ")", ",", "OL", ")", ",", "TLOF", "(", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{", "initAsmInfo", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine8", "Func": "BPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2312, "Length": 107, "Cover_Rate": 1.0} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "LLVMTargetMachine", "(", "T", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "TLOF", "(", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "DL", "(", "", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{", "initAsmInfo", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine9", "Func": "BPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2313, "Length": 90, "Cover_Rate": 1.0} {"Template_token": ["", "addPass", "(", "createCheckAndAdjustIR", "(", ")", ")", ";", "TargetPassConfig", "::", "addIRPasses", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine", "Func": "addIRPasses", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2316, "Length": 14, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "const", "Subtarget", "*", "Subtarget", "=", "getTargetMachine", "(", ")", ".", "getSubtargetImpl", "(", ")", ";", "if", "(", "!", "DisableMIPeephole", ")", "{", "if", "(", "Subtarget", "->", "getHasAlu32", "(", ")", ")", "addPass", "(", "createMIPeepholePass", "(", ")", ")", ";"], "ground_truth": ["addPass", "(", "createMIPeepholeTruncElimPass", "(", ")", ")", ";"], "File": "BPFTargetMachine", "Func": "addMachineSSAOptimization", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2317, "Length": 41, "Cover_Rate": 0.6507936507936508} {"Template_token": ["", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "if", "(", "!", "DisableMIPeephole", ")", "addPass", "(", "createMIPreEmitPeepholePass", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine", "Func": "addPreEmitPass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2318, "Length": 23, "Cover_Rate": 0.6216216216216216} {"Template_token": ["", "if", "(", "getOptLevel", "(", ")", "!=", "CodeGenOpt", "::", "None", ")", "if", "(", "!", "DisableMIPeephole", ")", "addPass", "(", "createMIPreEmitPeepholePass", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine", "Func": "addPreEmitPass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2319, "Length": 23, "Cover_Rate": 0.6216216216216216} {"Template_token": ["", "PM", ".", "add", "(", "createCFGSimplificationPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";", "}", ")", ";", "Builder", ".", "addExtension", "(", "PassManagerBuilder", "::", "EP_ModuleOptimizerEarly", ",", "[", "&", "]", "(", "const", "PassManagerBuilder", "&", ",", "legacy", "::", "PassManagerBase", "&", "PM", ")", "{", "PM", ".", "add", "(", "createAdjustOpt", "(", ")", ")", ";"], "ground_truth": ["}", ")", ";"], "File": "BPFTargetMachine", "Func": "adjustPassManager", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2320, "Length": 55, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "PM", ".", "add", "(", "createAbstractMemberAccess", "(", "this", ")", ")", ";", "PM", ".", "add", "(", "createPreserveDIType", "(", ")", ")", ";", "PM", ".", "add", "(", "createIRPeephole", "(", ")", ")", ";", "}", ")", ";"], "ground_truth": ["Builder", ".", "addExtension", "(", "PassManagerBuilder", "::", "EP_Peephole", ",", "[", "&", "]", "(", "const", "PassManagerBuilder", "&", ",", "legacy", "::", "PassManagerBase", "&", "PM", ")", "{"], "File": "BPFTargetMachine", "Func": "adjustPassManager", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2321, "Length": 54, "Cover_Rate": 0.3776223776223776} {"Template_token": ["", "TargetMachine", "::", "TargetMachine", "(", "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", ",", "computeDataLayout", "(", "TT", ")", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getEffectiveRelocModel", "(", "RM", ")", ",", "getEffectiveCodeModel", "(", "CM", ",", "CodeModel", "::", "Small", ")", ",", "OL", ")", ",", "TLOF", "(", "std", "::", "make_unique", "<", "TargetLoweringObjectFileELF", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "std", "::", "string", "(", "CPU", ")", ",", "std", "::", "string", "(", "FS", ")", ",", "*", "this", ")", "{", "initAsmInfo", "(", ")", ";", "MCAsmInfo", "*", "MAI", "=", "static_cast", "<", "MCAsmInfo", "*", ">", "(", "const_cast", "<", "MCAsmInfo", "*", ">", "(", "AsmInfo", ".", "get", "(", ")", ")", ")", ";", "MAI", "->", "setDwarfUsesRelocationsAcrossSections", "(", "!", "Subtarget", ".", "getUseDwarfRIS", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine", "Func": "BPFTargetMachine", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2322, "Length": 159, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "bpfeb", ")", "return", "", ";"], "ground_truth": ["else", "return", "", ";"], "File": "BPFTargetMachine", "Func": "computeDataLayout", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2323, "Length": 19, "Cover_Rate": 0.59375} {"Template_token": ["", "static", "Reloc", "::", "Model", "getEffectiveRelocModel", "(", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ")", "{", "return", "RM", ".", "getValueOr", "(", "Reloc", "::", "PIC_", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine", "Func": "getEffectiveRelocModel", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2325, "Length": 26, "Cover_Rate": 1.0} {"Template_token": ["", "return", "TLOF", ".", "get", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine", "Func": "getObjFileLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2326, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "return", "TLOF", ".", "get", "(", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine", "Func": "getObjFileLowering", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2327, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "const", "Subtarget", "*", "getSubtargetImpl", "(", "const", "Function", "&", ")", "const", "override", "{"], "ground_truth": ["return", "&", "Subtarget", ";"], "File": "BPFTargetMachine", "Func": "getSubtargetImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2328, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "initializePreserveDITypePass", "(", "PR", ")", ";", "initializeIRPeepholePass", "(", "PR", ")", ";", "initializeAdjustOptPass", "(", "PR", ")", ";", "initializeCheckAndAdjustIRPass", "(", "PR", ")", ";", "initializeMIPeepholePass", "(", "PR", ")", ";"], "ground_truth": ["initializeMIPeepholeTruncElimPass", "(", "PR", ")", ";"], "File": "BPFTargetMachine", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2332, "Length": 30, "Cover_Rate": 0.3488372093023256} {"Template_token": ["", "RegisterTargetMachine", "<", "TargetMachine", ">", "X", "(", "getTheleTarget", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Y", "(", "getThebeTarget", "(", ")", ")", ";", "RegisterTargetMachine", "<", "TargetMachine", ">", "Z", "(", "getTheTarget", "(", ")", ")", ";", "PassRegistry", "&", "PR", "=", "*", "PassRegistry", "::", "getPassRegistry", "(", ")", ";", "initializeAbstractMemberAccessLegacyPassPass", "(", "PR", ")", ";", "initializePreserveDITypePass", "(", "PR", ")", ";", "initializeIRPeepholePass", "(", "PR", ")", ";", "initializeAdjustOptPass", "(", "PR", ")", ";", "initializeCheckAndAdjustIRPass", "(", "PR", ")", ";", "initializeMIPeepholePass", "(", "PR", ")", ";", "initializeMIPeepholeTruncElimPass", "(", "PR", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetMachine", "Func": "LLVMInitializeBPFTarget", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2333, "Length": 80, "Cover_Rate": 0.9302325581395349} {"Template_token": ["", "}", ")", ";", "PB", ".", "registerPeepholeEPCallback", "(", "[", "=", "]", "(", "FunctionPassManager", "&", "FPM", ",", "OptimizationLevel", "Level", ")", "{", "FPM", ".", "addPass", "(", "SimplifyCFGPass", "(", "SimplifyCFGOptions", "(", ")", ".", "hoistCommonInsts", "(", "true", ")", ")", ")", ";", "}", ")", ";", "PB", ".", "registerPipelineEarlySimplificationEPCallback", "(", "[", "=", "]", "(", "ModulePassManager", "&", "MPM", ",", "OptimizationLevel", ")", "{"], "ground_truth": ["MPM", ".", "addPass", "(", "AdjustOptPass", "(", ")", ")", ";"], "File": "BPFTargetMachine", "Func": "registerPassBuilderCallbacks", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2334, "Length": 63, "Cover_Rate": 0.45652173913043476} {"Template_token": ["", "InstructionCost", "getArithmeticInstrCost", "(", "unsigned", "Opcode", ",", "Type", "*", "Ty", ",", "TTI", "::", "TargetCostKind", "CostKind", "=", "TTI", "::", "TCK_RecipThroughput", ",", "TTI", "::", "OperandValueKind", "Opd1Info", "=", "TTI", "::", "OK_AnyValue", ",", "TTI", "::", "OperandValueKind", "Opd2Info", "=", "TTI", "::", "OK_AnyValue", ",", "TTI", "::", "OperandValueProperties", "Opd1PropInfo", "=", "TTI", "::", "OP_None", ",", "TTI", "::", "OperandValueProperties", "Opd2PropInfo", "=", "TTI", "::", "OP_None", ",", "ArrayRef", "<", "const", "Value", "*", ">", "Args", "=", "ArrayRef", "<", "const", "Value", "*", ">", "(", ")", ",", "const", "Instruction", "*", "CxtI", "=", "nullptr", ")", "{", "int", "ISD", "=", "TLI", "->", "InstructionOpcodeToISD", "(", "Opcode", ")", ";", "if", "(", "ISD", "==", "", "&&", "CostKind", "==", "TTI", "::", "TCK_RecipThroughput", ")", "return", "SCEVCheapExpansionBudget", ".", "getValue", "(", ")", "+", "", ";"], "ground_truth": ["return", "BaseT", "::", "getArithmeticInstrCost", "(", "Opcode", ",", "Ty", ",", "CostKind", ",", "Opd1Info", ",", "Opd2Info", ",", "Opd1PropInfo", ",", "Opd2PropInfo", ")", ";"], "File": "BPFTargetTransformInfo2", "Func": "getArithmeticInstrCost", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2335, "Length": 131, "Cover_Rate": 0.9776119402985075} {"Template_token": ["", "int", "ISD", "=", "TLI", "->", "InstructionOpcodeToISD", "(", "Opcode", ")", ";", "if", "(", "ISD", "==", "", "&&", "CostKind", "==", "TTI", "::", "TCK_RecipThroughput", ")", "return", "SCEVCheapExpansionBudget", ".", "getValue", "(", ")", "+", "", ";", "return", "BaseT", "::", "getArithmeticInstrCost", "(", "Opcode", ",", "Ty", ",", "CostKind", ",", "Opd1Info", ",", "Opd2Info", ",", "Opd1PropInfo", ",", "Opd2PropInfo", ")", ";"], "ground_truth": ["}"], "File": "BPFTargetTransformInfo2", "Func": "getArithmeticInstrCost", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2336, "Length": 52, "Cover_Rate": 0.3880597014925373} {"Template_token": ["", "int", "getCmpSelInstrCost", "(", "unsigned", "Opcode", ",", "Type", "*", "ValTy", ",", "Type", "*", "CondTy", ",", "CmpInst", "::", "Predicate", "VecPred", ",", "TTI", "::", "TargetCostKind", "CostKind", ",", "const", "llvm", "::", "Instruction", "*", "I", "=", "nullptr", ")", "{"], "ground_truth": ["if", "(", "Opcode", "==", "Instruction", "::", "Select", ")", "return", "SCEVCheapExpansionBudget", ";"], "File": "BPFTargetTransformInfo5", "Func": "getCmpSelInstrCost", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2337, "Length": 45, "Cover_Rate": 0.703125} {"Template_token": ["", "explicit", "TTIImpl", "(", "const", "TargetMachine", "*", "TM", ",", "const", "Function", "&", "F", ")", ":", "BaseT", "(", "TM", ",", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ")", ",", "ST", "(", "TM", "->", "getSubtargetImpl", "(", "F", ")", ")", ",", "TLI", "(", "ST", "->", "getTargetLowering", "(", ")", ")", "{"], "ground_truth": ["}"], "File": "BPFTargetTransformInfo", "Func": "BPFTTIImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2338, "Length": 49, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "TTIImpl", "(", "const", "TargetMachine", "*", "TM", ",", "const", "Function", "&", "F", ")", ":", "BaseT", "(", "TM", ",", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ")", ",", "ST", "(", "TM", "->", "getSubtargetImpl", "(", "F", ")", ")", ",", "TLI", "(", "ST", "->", "getTargetLowering", "(", ")", ")", "{"], "ground_truth": ["}"], "File": "BPFTargetTransformInfo", "Func": "BPFTTIImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2339, "Length": 49, "Cover_Rate": 1.0} {"Template_token": ["", "TTI", "::", "MemCmpExpansionOptions", "Options", ";", "Options", ".", "LoadSizes", "=", "{", "", ",", "", ",", "", ",", "", "}", ";", "Options", ".", "MaxNumLoads", "=", "TLI", "->", "getMaxExpandSizeMemcmp", "(", "OptSize", ")", ";"], "ground_truth": ["return", "Options", ";"], "File": "BPFTargetTransformInfo", "Func": "enableMemCmpExpansion", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2340, "Length": 33, "Cover_Rate": 0.7021276595744681} {"Template_token": ["", "TTI", "::", "MemCmpExpansionOptions", "enableMemCmpExpansion", "(", "bool", "OptSize", ",", "bool", "IsZeroCmp", ")", "const", "{"], "ground_truth": ["TTI", "::", "MemCmpExpansionOptions", "Options", ";"], "File": "BPFTargetTransformInfo", "Func": "enableMemCmpExpansion", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2341, "Length": 18, "Cover_Rate": 0.3829787234042553} {"Template_token": ["", "int", "ISD", "=", "TLI", "->", "InstructionOpcodeToISD", "(", "Opcode", ")", ";", "if", "(", "ISD", "==", "", "&&", "CostKind", "==", "TTI", "::", "TCK_RecipThroughput", ")", "return", "SCEVCheapExpansionBudget", ".", "getValue", "(", ")", "+", "", ";"], "ground_truth": ["return", "BaseT", "::", "getArithmeticInstrCost", "(", "Opcode", ",", "Ty", ",", "CostKind", ",", "Opd1Info", ",", "Opd2Info", ",", "Opd1PropInfo", ",", "Opd2PropInfo", ")", ";"], "File": "BPFTargetTransformInfo", "Func": "getArithmeticInstrCost", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2342, "Length": 51, "Cover_Rate": 0.3923076923076923} {"Template_token": ["", "InstructionCost", "getArithmeticInstrCost", "(", "unsigned", "Opcode", ",", "Type", "*", "Ty", ",", "TTI", "::", "TargetCostKind", "CostKind", ",", "TTI", "::", "OperandValueKind", "Opd1Info", "=", "TTI", "::", "OK_AnyValue", ",", "TTI", "::", "OperandValueKind", "Opd2Info", "=", "TTI", "::", "OK_AnyValue", ",", "TTI", "::", "OperandValueProperties", "Opd1PropInfo", "=", "TTI", "::", "OP_None", ",", "TTI", "::", "OperandValueProperties", "Opd2PropInfo", "=", "TTI", "::", "OP_None", ",", "ArrayRef", "<", "const", "Value", "*", ">", "Args", "=", "ArrayRef", "<", "const", "Value", "*", ">", "(", ")", ",", "const", "Instruction", "*", "CxtI", "=", "nullptr", ")", "{"], "ground_truth": ["int", "ISD", "=", "TLI", "->", "InstructionOpcodeToISD", "(", "Opcode", ")", ";"], "File": "BPFTargetTransformInfo", "Func": "getArithmeticInstrCost", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2343, "Length": 86, "Cover_Rate": 0.6615384615384615} {"Template_token": ["", "if", "(", "Opcode", "==", "Instruction", "::", "Select", ")", "return", "SCEVCheapExpansionBudget", ".", "getValue", "(", ")", ";"], "ground_truth": ["return", "BaseT", "::", "getCmpSelInstrCost", "(", "Opcode", ",", "ValTy", ",", "CondTy", ",", "VecPred", ",", "CostKind", ",", "I", ")", ";"], "File": "BPFTargetTransformInfo", "Func": "getCmpSelInstrCost", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2344, "Length": 33, "Cover_Rate": 0.4852941176470588} {"Template_token": ["", "int", "getIntImmCost", "(", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ",", "TTI", "::", "TargetCostKind", "CostKind", ")", "{"], "ground_truth": ["if", "(", "Imm", ".", "getBitWidth", "(", ")", "<=", "", "&&", "isInt", "<", "", ">", "(", "Imm", ".", "getSExtValue", "(", ")", ")", ")", "return", "TTI", "::", "TCC_Free", ";"], "File": "BPFTargetTransformInfo", "Func": "getIntImmCost", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2345, "Length": 45, "Cover_Rate": 0.8823529411764706} {"Template_token": ["", "const", "Subtarget", "*", "getST", "(", ")", "const", "{", "return", "ST", ";"], "ground_truth": ["}"], "File": "BPFTargetTransformInfo", "Func": "getST", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2348, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "const", "TargetLowering", "*", "getTLI", "(", ")", "const", "{"], "ground_truth": ["return", "TLI", ";"], "File": "BPFTargetTransformInfo", "Func": "getTLI", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2349, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "AbstractMemberAccessPass", "(", "TargetMachine", "*", "TM", ")", ":", "TM", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPF", "Func": "BPFAbstractMemberAccessPass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2350, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "AbstractMemberAccessPass", "(", "TargetMachine", "*", "TM", ")", ":", "TM", "(", "TM", ")", "{"], "ground_truth": ["}"], "File": "BPF", "Func": "BPFAbstractMemberAccessPass", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2351, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "return", "true", ";"], "ground_truth": ["}"], "File": "BPF", "Func": "isRequired", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2352, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "uint32_t", "", "(", "StringRef", "S", ")", "{", "for", "(", "auto", "&", "OffsetM", ":", "OffsetToIdMap", ")", "{", "if", "(", "Table", "[", "OffsetM", ".", "second", "]", "==", "S", ")", "return", "OffsetM", ".", "first", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "addString", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2353, "Length": 33, "Cover_Rate": 0.4583333333333333} {"Template_token": ["", "uint32_t", "Id", "=", "TypeEntry", "->", "getId", "(", ")", ";", "TypeEntries", ".", "push_back", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "return", "Id", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "addType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2354, "Length": 25, "Cover_Rate": 0.4807692307692308} {"Template_token": ["", "uint32_t", "BTFDebug", "::", "addType", "(", "std", "::", "unique_ptr", "<", "BTFTypeBase", ">", "TypeEntry", ")", "{"], "ground_truth": ["TypeEntry", "->", "setId", "(", "TypeEntries", ".", "size", "(", ")", "+", "", ")", ";"], "File": "BTFDebug (2)", "Func": "addType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2355, "Length": 27, "Cover_Rate": 0.5192307692307693} {"Template_token": ["", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "FuncArgNames", "[", "Arg", "]", "=", "DV", "->", "getName", "(", ")", ";", "}", "}", "uint32_t", "ProtoTypeId", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "auto", "FuncTypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "BTFFuncInfo", "FuncInfo", ";", "FuncInfo", ".", "Label", "=", "FuncLabel", ";", "FuncInfo", ".", "TypeId", "=", "FuncTypeId", ";"], "ground_truth": ["if", "(", "FuncLabel", "->", "isInSection", "(", ")", ")", "{"], "File": "BTFDebug (2)", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2356, "Length": 110, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "for", "(", ";", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "isDef", "(", ")", ";", "++", "NumDefs", ")", ";", "const", "char", "*", "AsmStr", "=", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "getSymbolName", "(", ")", ";", "if", "(", "AsmStr", "[", "", "]", "==", "", ")", "return", ";", "}", "const", "DebugLoc", "&", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "if", "(", "!", "DL", "||", "PrevInstLoc", "==", "DL", ")", "{", "if", "(", "LineInfoGenerated", "==", "false", ")", "{", "auto", "*", "S", "=", "MI", "->", "getMF", "(", ")", "->", "getFunction", "(", ")", ".", "getSubprogram", "(", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "constructLineInfo", "(", "S", ",", "FuncLabel", ",", "S", "->", "getLine", "(", ")", ",", "", ")", ";", "LineInfoGenerated", "=", "true", ";", "}"], "ground_truth": ["return", ";"], "File": "BTFDebug (2)", "Func": "beginInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2357, "Length": 135, "Cover_Rate": 0.5294117647058824} {"Template_token": ["", "BTFDebug", "::", "BTFDebug", "(", "AsmPrinter", "*", "AP", ")", ":", "DebugHandlerBase", "(", "AP", ")", ",", "OS", "(", "*", "Asm", "->", "OutStreamer", ")", ",", "SkipInstruction", "(", "false", ")", ",", "LineInfoGenerated", "(", "false", ")", ",", "SecNameOff", "(", "", ")", ",", "ArrayIndexTypeId", "(", "", ")", "{", "addString", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "BTFDebug", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2358, "Length": 48, "Cover_Rate": 1.0} {"Template_token": ["", "BTFDebug", "::", "BTFDebug", "(", "AsmPrinter", "*", "AP", ")", ":", "DebugHandlerBase", "(", "AP", ")", ",", "OS", "(", "*", "Asm", "->", "OutStreamer", ")", ",", "SkipInstruction", "(", "false", ")", ",", "LineInfoGenerated", "(", "false", ")", ",", "SecNameOff", "(", "", ")", ",", "ArrayIndexTypeId", "(", "", ")", "{", "addString", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "BTFDebug", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2359, "Length": 48, "Cover_Rate": 1.0} {"Template_token": ["", "Kind", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "BTFTypeArray", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2360, "Length": 13, "Cover_Rate": 0.43333333333333335} {"Template_token": ["", "BTFTypeDerived", "::", "BTFTypeDerived", "(", "const", "DIDerivedType", "*", "DTy", ",", "unsigned", "Tag", ")", ":", "DTy", "(", "DTy", ")", "{", "switch", "(", "Tag", ")", "{", "case", "dwarf", "::", "DW_TAG_pointer_type", ":", "Kind", "=", "", ";", "break", ";", "case", "dwarf", "::", "DW_TAG_const_type", ":", "Kind", "=", "", ";", "break", ";", "case", "dwarf", "::", "DW_TAG_volatile_type", ":", "Kind", "=", "", ";"], "ground_truth": ["break", ";"], "File": "BTFDebug (2)", "Func": "BTFTypeDerived", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2361, "Length": 56, "Cover_Rate": 0.5333333333333333} {"Template_token": ["", "BTFType", ".", "Info", "=", "Kind", "<<", "", "|", "VLen", ";"], "ground_truth": ["BTFType", ".", "Size", "=", "roundupToBytes", "(", "ETy", "->", "getSizeInBits", "(", ")", ")", ";"], "File": "BTFDebug (2)", "Func": "BTFTypeEnum", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2362, "Length": 23, "Cover_Rate": 0.4791666666666667} {"Template_token": ["", "Kind", "=", "", ";"], "ground_truth": ["BTFType", ".", "Info", "=", "Kind", "<<", "", ";"], "File": "BTFDebug (2)", "Func": "BTFTypeFunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2363, "Length": 12, "Cover_Rate": 0.32432432432432434} {"Template_token": ["", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";"], "ground_truth": ["BTFType", ".", "Type", "=", "ProtoTypeId", ";"], "File": "BTFDebug (2)", "Func": "BTFTypeFunc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2364, "Length": 14, "Cover_Rate": 0.3783783783783784} {"Template_token": ["", "Kind", "=", "", ";"], "ground_truth": ["BTFType", ".", "Info", "=", "IsUnion", "<<", "", "|", "Kind", "<<", "", ";"], "File": "BTFDebug (2)", "Func": "BTFTypeFwd", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2365, "Length": 16, "Cover_Rate": 0.3902439024390244} {"Template_token": ["", "", "(", "uint32_t", "Encoding", ",", "uint32_t", "SizeInBits", ",", "uint32_t", "OffsetInBits", ",", "StringRef", "TypeName", ")", ":", "Name", "(", "TypeName", ")", "{", "uint8_t", "BTFEncoding", ";", "switch", "(", "Encoding", ")", "{", "case", "dwarf", "::", "DW_ATE_boolean", ":", "BTFEncoding", "=", "", ";", "break", ";", "case", "dwarf", "::", "DW_ATE_signed", ":", "case", "dwarf", "::", "DW_ATE_signed_char", ":", "BTFEncoding", "=", "", ";", "break", ";", "case", "dwarf", "::", "DW_ATE_unsigned", ":", "case", "dwarf", "::", "DW_ATE_unsigned_char", ":", "BTFEncoding", "=", "", ";", "break", ";", "default", ":", "llvm_unreachable", "(", "", ")", ";", "}", "Kind", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";"], "ground_truth": ["BTFType", ".", "Size", "=", "roundupToBytes", "(", "SizeInBits", ")", ";"], "File": "BTFDebug (2)", "Func": "BTFTypeInt", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2366, "Length": 100, "Cover_Rate": 0.8130081300813008} {"Template_token": ["", "BTFTypeStruct", "::", "BTFTypeStruct", "(", "const", "DICompositeType", "*", "STy", ",", "bool", "IsStruct", ",", "bool", "HasBitField", ",", "uint32_t", "Vlen", ")", ":", "STy", "(", "STy", ")", ",", "HasBitField", "(", "HasBitField", ")", "{", "Kind", "=", "IsStruct", "?", "", ":", "", ";", "BTFType", ".", "Size", "=", "roundupToBytes", "(", "STy", "->", "getSizeInBits", "(", ")", ")", ";"], "ground_truth": ["BTFType", ".", "Info", "=", "(", "HasBitField", "<<", "", ")", "|", "(", "Kind", "<<", "", ")", "|", "Vlen", ";"], "File": "BTFDebug (2)", "Func": "BTFTypeStruct", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2367, "Length": 68, "Cover_Rate": 0.9315068493150684} {"Template_token": ["", "BTFType", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "Name", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2368, "Length": 12, "Cover_Rate": 0.5454545454545454} {"Template_token": ["", "void", "BTFTypeFunc", "::", "completeType", "(", "BTFDebug", "&", "BDebug", ")", "{", "BTFType", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "Name", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2369, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "LineInfo", ".", "Label", "=", "Label", ";", "LineInfo", ".", "FileNameOff", "=", "addString", "(", "FileName", ")", ";", "if", "(", "Line", "<", "FileContent", "[", "FileName", "]", ".", "size", "(", ")", ")", "LineInfo", ".", "LineOff", "=", "addString", "(", "FileContent", "[", "FileName", "]", "[", "Line", "]", ")", ";"], "ground_truth": ["else", "LineInfo", ".", "LineOff", "=", "", ";"], "File": "BTFDebug (2)", "Func": "constructLineInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2370, "Length": 50, "Cover_Rate": 0.4672897196261682} {"Template_token": ["", "void", "BTFDebug", "::", "constructLineInfo", "(", "const", "DISubprogram", "*", "SP", ",", "MCSymbol", "*", "Label", ",", "uint32_t", "Line", ",", "uint32_t", "Column", ")", "{", "std", "::", "string", "FileName", "=", "populateFileContent", "(", "SP", ")", ";"], "ground_truth": ["BTFLineInfo", "LineInfo", ";"], "File": "BTFDebug (2)", "Func": "constructLineInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2371, "Length": 34, "Cover_Rate": 0.3177570093457944} {"Template_token": ["", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "for", "(", "const", "auto", "&", "LineSec", ":", "LineInfoTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "LineSec", ".", "first", ")", ")", ";", "OS", ".", "EmitIntValue", "(", "LineSec", ".", "first", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "LineSec", ".", "second", ".", "size", "(", ")", ",", "", ")", ";", "for", "(", "const", "auto", "&", "LineInfo", ":", "LineSec", ".", "second", ")", "{", "Asm", "->", "EmitLabelReference", "(", "LineInfo", ".", "Label", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "LineInfo", ".", "FileNameOff", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "LineInfo", ".", "LineOff", ",", "", ")", ";"], "ground_truth": ["OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "LineInfo", ".", "LineNum", ")", "+", "", "+", "std", "::", "to_string", "(", "LineInfo", ".", "ColumnNum", ")", ")", ";"], "File": "BTFDebug (2)", "Func": "emitBTFExtSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2372, "Length": 140, "Cover_Rate": 0.32941176470588235} {"Template_token": ["", "MCContext", "&", "Ctx", "=", "OS", ".", "getContext", "(", ")", ";", "OS", ".", "SwitchSection", "(", "Ctx", ".", "getELFSection", "(", "", ",", "ELF", "::", "SHT_PROGBITS", ",", "", ")", ")", ";", "emitCommonHeader", "(", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "uint32_t", "TypeLen", "=", "", ",", "StrLen", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeLen", "+=", "TypeEntry", "->", "getSize", "(", ")", ";", "StrLen", "=", "StringTable", ".", "getSize", "(", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "TypeLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "TypeLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "StrLen", ",", "", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "emitType", "(", "OS", ")", ";", "uint32_t", "StringOffset", "=", "", ";", "for", "(", "const", "auto", "&", "S", ":", "StringTable", ".", "getTable", "(", ")", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "StringOffset", ")", ")", ";", "OS", ".", "EmitBytes", "(", "S", ")", ";"], "ground_truth": ["OS", ".", "EmitBytes", "(", "StringRef", "(", "", ",", "", ")", ")", ";"], "File": "BTFDebug (2)", "Func": "emitBTFSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2373, "Length": 177, "Cover_Rate": 0.8939393939393939} {"Template_token": ["", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";"], "ground_truth": ["OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";"], "File": "BTFDebug (2)", "Func": "emitCommonHeader", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2374, "Length": 18, "Cover_Rate": 0.32727272727272727} {"Template_token": ["", "void", "BTFDebug", "::", "emitCommonHeader", "(", ")", "{", "OS", ".", "AddComment", "(", "", "+", "Twine", "::", "utohexstr", "(", "", ")", ")", ";"], "ground_truth": ["OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";"], "File": "BTFDebug (2)", "Func": "emitCommonHeader", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2375, "Length": 30, "Cover_Rate": 0.5454545454545454} {"Template_token": ["", "void", "BTFTypeFunc", "::", "emitType", "(", "MCStreamer", "&", "OS", ")", "{"], "ground_truth": ["", "(", "OS", ")", ";"], "File": "BTFDebug (2)", "Func": "emitType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2376, "Length": 15, "Cover_Rate": 0.8333333333333334} {"Template_token": ["", "void", "BTFTypeFunc", "::", "emitType", "(", "MCStreamer", "&", "OS", ")", "{"], "ground_truth": ["", "(", "OS", ")", ";"], "File": "BTFDebug (2)", "Func": "emitType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2377, "Length": 15, "Cover_Rate": 0.8333333333333334} {"Template_token": ["", "DIGlobalVariable", "*", "GV", "=", "GVE", "->", "getVariable", "(", ")", ";", "visitTypeEntry", "(", "GV", "->", "getType", "(", ")", ".", "resolve", "(", ")", ")", ";", "}", "}", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "emitBTFSection", "(", ")", ";"], "ground_truth": ["emitBTFExtSection", "(", ")", ";"], "File": "BTFDebug (2)", "Func": "endModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2379, "Length": 50, "Cover_Rate": 0.5154639175257731} {"Template_token": ["", "if", "(", "File", "->", "getDirectory", "(", ")", ".", "size", "(", ")", ")", "FileName", "=", "File", "->", "getDirectory", "(", ")", ".", "str", "(", ")", "+", "", "+", "File", "->", "getFilename", "(", ")", ".", "str", "(", ")", ";", "else", "FileName", "=", "File", "->", "getFilename", "(", ")", ";", "if", "(", "FileContent", ".", "find", "(", "FileName", ")", "!=", "FileContent", ".", "end", "(", ")", ")", "return", "FileName", ";", "std", "::", "vector", "<", "std", "::", "string", ">", "Content", ";", "std", "::", "string", "Line", ";", "Content", ".", "push_back", "(", "Line", ")", ";", "auto", "Source", "=", "File", "->", "getSource", "(", ")", ";", "if", "(", "Source", ")", "{", "std", "::", "istringstream", "InputString", "(", "Source", ".", "getValue", "(", ")", ")", ";", "while", "(", "std", "::", "getline", "(", "InputString", ",", "Line", ")", ")", "Content", ".", "push_back", "(", "Line", ")", ";", "}", "else", "{", "std", "::", "ifstream", "InputFile", "(", "FileName", ")", ";", "while", "(", "std", "::", "getline", "(", "InputFile", ",", "Line", ")", ")", "Content", ".", "push_back", "(", "Line", ")", ";", "}", "FileContent", "[", "FileName", "]", "=", "Content", ";", "return", "FileName", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "populateFileContent", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2380, "Length": 170, "Cover_Rate": 0.8629441624365483} {"Template_token": ["", "Content", ".", "push_back", "(", "Line", ")", ";", "auto", "Source", "=", "File", "->", "getSource", "(", ")", ";", "if", "(", "Source", ")", "{", "std", "::", "istringstream", "InputString", "(", "Source", ".", "getValue", "(", ")", ")", ";", "while", "(", "std", "::", "getline", "(", "InputString", ",", "Line", ")", ")", "Content", ".", "push_back", "(", "Line", ")", ";", "}", "else", "{", "std", "::", "ifstream", "InputFile", "(", "FileName", ")", ";", "while", "(", "std", "::", "getline", "(", "InputFile", ",", "Line", ")", ")", "Content", ".", "push_back", "(", "Line", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "populateFileContent", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2381, "Length": 81, "Cover_Rate": 0.41116751269035534} {"Template_token": ["", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "if", "(", "!", "ArrayIndexTypeId", ")", "{", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeInt", ">", "(", "dwarf", "::", "DW_ATE_unsigned", ",", "", ",", "", ",", "", ")", ";", "ArrayIndexTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "visitArrayType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2382, "Length": 52, "Cover_Rate": 0.5777777777777777} {"Template_token": ["", "if", "(", "Encoding", "!=", "dwarf", "::", "DW_ATE_boolean", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_signed", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_signed_char", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_unsigned", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_unsigned_char", ")", "return", ";"], "ground_truth": ["auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeInt", ">", "(", "Encoding", ",", "BTy", "->", "getSizeInBits", "(", ")", ",", "BTy", "->", "getOffsetInBits", "(", ")", ",", "BTy", "->", "getName", "(", ")", ")", ";"], "File": "BTFDebug (2)", "Func": "visitBasicType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2383, "Length": 65, "Cover_Rate": 0.6632653061224489} {"Template_token": ["", "void", "BTFDebug", "::", "visitCompositeType", "(", "const", "DICompositeType", "*", "CTy", ")", "{", "auto", "Tag", "=", "CTy", "->", "getTag", "(", ")", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_union_type", ")", "{"], "ground_truth": ["if", "(", "CTy", "->", "isForwardDecl", "(", ")", ")", "visitFwdDeclType", "(", "CTy", ",", "Tag", "==", "dwarf", "::", "DW_TAG_union_type", ")", ";"], "File": "BTFDebug (2)", "Func": "visitCompositeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2384, "Length": 54, "Cover_Rate": 0.5625} {"Template_token": ["", "}", "else", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "visitArrayType", "(", "CTy", ")", ";", "else", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_enumeration_type", ")", "visitEnumType", "(", "CTy", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "visitCompositeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2385, "Length": 30, "Cover_Rate": 0.3125} {"Template_token": ["", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_pointer_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_typedef", "||", "Tag", "==", "dwarf", "::", "DW_TAG_const_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_volatile_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_restrict_type", ")", "{", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ")", ";"], "ground_truth": ["addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";"], "File": "BTFDebug (2)", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2386, "Length": 60, "Cover_Rate": 0.5555555555555556} {"Template_token": ["", "void", "BTFDebug", "::", "visitDerivedType", "(", "const", "DIDerivedType", "*", "DTy", ")", "{", "unsigned", "Tag", "=", "DTy", "->", "getTag", "(", ")", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_pointer_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_typedef", "||", "Tag", "==", "dwarf", "::", "DW_TAG_const_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_volatile_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_restrict_type", ")", "{", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ")", ";", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "}", "else", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_member", ")", "{", "return", ";", "}"], "ground_truth": ["visitTypeEntry", "(", "DTy", "->", "getBaseType", "(", ")", ".", "resolve", "(", ")", ")", ";"], "File": "BTFDebug (2)", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2387, "Length": 107, "Cover_Rate": 0.9907407407407407} {"Template_token": ["", "DINodeArray", "Elements", "=", "CTy", "->", "getElements", "(", ")", ";", "uint32_t", "VLen", "=", "Elements", ".", "size", "(", ")", ";", "if", "(", "VLen", ">", "", ")", "return", ";", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeEnum", ">", "(", "CTy", ",", "VLen", ")", ";"], "ground_truth": ["addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";"], "File": "BTFDebug (2)", "Func": "visitEnumType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2388, "Length": 53, "Cover_Rate": 0.7910447761194029} {"Template_token": ["", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeFwd", ">", "(", "CTy", "->", "getName", "(", ")", ",", "IsUnion", ")", ";"], "ground_truth": ["addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";"], "File": "BTFDebug (2)", "Func": "visitFwdDeclType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2389, "Length": 31, "Cover_Rate": 0.6739130434782609} {"Template_token": ["", "uint32_t", "VLen", "=", "Elements", ".", "size", "(", ")", ";", "if", "(", "VLen", ">", "", ")", "return", ";", "bool", "HasBitField", "=", "false", ";", "for", "(", "const", "auto", "*", "Element", ":", "Elements", ")", "{", "auto", "E", "=", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ";", "if", "(", "E", "->", "isBitField", "(", ")", ")", "{", "HasBitField", "=", "true", ";", "break", ";", "}", "}", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeStruct", ">", "(", "CTy", ",", "IsStruct", ",", "HasBitField", ",", "VLen", ")", ";", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";"], "ground_truth": ["for", "(", "const", "auto", "*", "Element", ":", "Elements", ")", "visitTypeEntry", "(", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ")", ";"], "File": "BTFDebug (2)", "Func": "visitStructType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2391, "Length": 111, "Cover_Rate": 0.8043478260869565} {"Template_token": ["", "}", "}", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeStruct", ">", "(", "CTy", ",", "IsStruct", ",", "HasBitField", ",", "VLen", ")", ";", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";"], "ground_truth": ["for", "(", "const", "auto", "*", "Element", ":", "Elements", ")", "visitTypeEntry", "(", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ")", ";"], "File": "BTFDebug (2)", "Func": "visitStructType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2392, "Length": 53, "Cover_Rate": 0.38405797101449274} {"Template_token": ["", "if", "(", "ForSubprog", ")", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "else", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "STy", ")", ";", "for", "(", "const", "auto", "Element", ":", "Elements", ")", "{"], "ground_truth": ["visitTypeEntry", "(", "Element", ".", "resolve", "(", ")", ")", ";"], "File": "BTFDebug (2)", "Func": "visitSubroutineType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2393, "Length": 47, "Cover_Rate": 0.373015873015873} {"Template_token": ["", "else", "if", "(", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "Ty", ")", ")", "visitCompositeType", "(", "CTy", ")", ";", "else", "if", "(", "const", "auto", "*", "DTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "Ty", ")", ")", "visitDerivedType", "(", "DTy", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug (2)", "Func": "visitTypeEntry", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2394, "Length": 49, "Cover_Rate": 0.35251798561151076} {"Template_token": ["", "void", "BTFDebug", "::", "visitTypeEntry", "(", "const", "DIType", "*", "Ty", ")", "{", "if", "(", "!", "Ty", "||", "DIToIdMap", ".", "find", "(", "Ty", ")", "!=", "DIToIdMap", ".", "end", "(", ")", ")", "return", ";", "uint32_t", "TypeId", ";", "if", "(", "const", "auto", "*", "BTy", "=", "dyn_cast", "<", "DIBasicType", ">", "(", "Ty", ")", ")", "visitBasicType", "(", "BTy", ")", ";"], "ground_truth": ["else", "if", "(", "const", "auto", "*", "STy", "=", "dyn_cast", "<", "DISubroutineType", ">", "(", "Ty", ")", ")", "visitSubroutineType", "(", "STy", ",", "false", ",", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "(", ")", ",", "TypeId", ")", ";"], "File": "BTFDebug (2)", "Func": "visitTypeEntry", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2395, "Length": 90, "Cover_Rate": 0.6474820143884892} {"Template_token": ["", "if", "(", "MapDefNotCollected", ")", "{", "processGlobals", "(", "true", ")", ";", "MapDefNotCollected", "=", "false", ";", "}", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "FuncArgNames", ";", "for", "(", "const", "DINode", "*", "DN", ":", "SP", "->", "getRetainedNodes", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "DV", "=", "dyn_cast", "<", "DILocalVariable", ">", "(", "DN", ")", ")", "{", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "{", "visitTypeEntry", "(", "DV", "->", "getType", "(", ")", ")", ";", "FuncArgNames", "[", "Arg", "]", "=", "DV", "->", "getName", "(", ")", ";", "}", "}", "}", "uint32_t", "ProtoTypeId", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "uint8_t", "Scope", "=", "SP", "->", "isLocalToUnit", "(", ")", "?", "", ":", "", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "Scope", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "BTFFuncInfo", "FuncInfo", ";", "FuncInfo", ".", "Label", "=", "FuncLabel", ";", "FuncInfo", ".", "TypeId", "=", "FuncTypeId", ";", "if", "(", "FuncLabel", "->", "isInSection", "(", ")", ")", "{", "MCSection", "&", "Section", "=", "FuncLabel", "->", "getSection", "(", ")", ";", "const", "MCSectionELF", "*", "SectionELF", "=", "dyn_cast", "<", "MCSectionELF", ">", "(", "&", "Section", ")", ";", "assert", "(", "SectionELF", "&&", "", ")", ";"], "ground_truth": ["SecNameOff", "=", "addString", "(", "SectionELF", "->", "getName", "(", ")", ")", ";"], "File": "BTFDebug10", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2396, "Length": 250, "Cover_Rate": 0.746268656716418} {"Template_token": ["", "}", "SkipInstruction", "=", "false", ";", "if", "(", "MapDefNotCollected", ")", "{", "processGlobals", "(", "true", ")", ";", "MapDefNotCollected", "=", "false", ";", "}", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "FuncArgNames", ";", "for", "(", "const", "DINode", "*", "DN", ":", "SP", "->", "getRetainedNodes", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "DV", "=", "dyn_cast", "<", "DILocalVariable", ">", "(", "DN", ")", ")", "{", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "{", "visitTypeEntry", "(", "DV", "->", "getType", "(", ")", ")", ";", "FuncArgNames", "[", "Arg", "]", "=", "DV", "->", "getName", "(", ")", ";", "}", "}", "}", "uint32_t", "ProtoTypeId", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "uint8_t", "Scope", "=", "SP", "->", "isLocalToUnit", "(", ")", "?", "", ":", "", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "Scope", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "BTFFuncInfo", "FuncInfo", ";", "FuncInfo", ".", "Label", "=", "FuncLabel", ";", "FuncInfo", ".", "TypeId", "=", "FuncTypeId", ";"], "ground_truth": ["if", "(", "FuncLabel", "->", "isInSection", "(", ")", ")", "{"], "File": "BTFDebug10", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2397, "Length": 213, "Cover_Rate": 0.6358208955223881} {"Template_token": ["", "const", "char", "*", "AsmStr", "=", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "getSymbolName", "(", ")", ";", "if", "(", "AsmStr", "[", "", "]", "==", "", ")", "return", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "processReloc", "(", "MI", "->", "getOperand", "(", "", ")", ")", ";", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "processReloc", "(", "MI", "->", "getOperand", "(", "", ")", ")", ";", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "processFuncPrototypes", "(", "dyn_cast", "<", "Function", ">", "(", "MO", ".", "getGlobal", "(", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug10", "Func": "beginInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2398, "Length": 138, "Cover_Rate": 0.3670212765957447} {"Template_token": ["", "OS", ".", "SwitchSection", "(", "Ctx", ".", "getELFSection", "(", "", ",", "ELF", "::", "SHT_PROGBITS", ",", "", ")", ")", ";", "emitCommonHeader", "(", ")", ";", "OS", ".", "emitInt32", "(", "", ")", ";", "uint32_t", "FuncLen", "=", "", ",", "LineLen", "=", "", ";", "uint32_t", "FieldRelocLen", "=", "", ";", "for", "(", "const", "auto", "&", "FuncSec", ":", "FuncInfoTable", ")", "{", "FuncLen", "+=", "", ";", "FuncLen", "+=", "FuncSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "for", "(", "const", "auto", "&", "LineSec", ":", "LineInfoTable", ")", "{", "LineLen", "+=", "", ";", "LineLen", "+=", "LineSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "for", "(", "const", "auto", "&", "FieldRelocSec", ":", "FieldRelocTable", ")", "{", "FieldRelocLen", "+=", "", ";", "FieldRelocLen", "+=", "FieldRelocSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "if", "(", "FieldRelocLen", ")", "FieldRelocLen", "+=", "", ";", "OS", ".", "emitInt32", "(", "", ")", ";", "OS", ".", "emitInt32", "(", "FuncLen", ")", ";", "OS", ".", "emitInt32", "(", "FuncLen", ")", ";", "OS", ".", "emitInt32", "(", "LineLen", ")", ";", "OS", ".", "emitInt32", "(", "FuncLen", "+", "LineLen", ")", ";", "OS", ".", "emitInt32", "(", "FieldRelocLen", ")", ";", "OS", ".", "AddComment", "(", "", ")", ";"], "ground_truth": ["OS", ".", "emitInt32", "(", "", ")", ";"], "File": "BTFDebug10", "Func": "emitBTFExtSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2399, "Length": 190, "Cover_Rate": 0.31561461794019935} {"Template_token": ["", "OS", ".", "emitInt32", "(", "", ")", ";", "uint32_t", "TypeLen", "=", "", ",", "StrLen", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeLen", "+=", "TypeEntry", "->", "getSize", "(", ")", ";", "StrLen", "=", "StringTable", ".", "getSize", "(", ")", ";", "OS", ".", "emitInt32", "(", "", ")", ";", "OS", ".", "emitInt32", "(", "TypeLen", ")", ";", "OS", ".", "emitInt32", "(", "TypeLen", ")", ";", "OS", ".", "emitInt32", "(", "StrLen", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "emitType", "(", "OS", ")", ";", "uint32_t", "StringOffset", "=", "", ";", "for", "(", "const", "auto", "&", "S", ":", "StringTable", ".", "getTable", "(", ")", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "StringOffset", ")", ")", ";"], "ground_truth": ["OS", ".", "emitBytes", "(", "S", ")", ";"], "File": "BTFDebug10", "Func": "emitBTFSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2400, "Length": 123, "Cover_Rate": 0.5942028985507246} {"Template_token": ["", "OS", ".", "emitInt32", "(", "TypeLen", ")", ";", "OS", ".", "emitInt32", "(", "StrLen", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "emitType", "(", "OS", ")", ";", "uint32_t", "StringOffset", "=", "", ";", "for", "(", "const", "auto", "&", "S", ":", "StringTable", ".", "getTable", "(", ")", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "StringOffset", ")", ")", ";", "OS", ".", "emitBytes", "(", "S", ")", ";", "OS", ".", "emitBytes", "(", "StringRef", "(", "", ",", "", ")", ")", ";", "StringOffset", "+=", "S", ".", "size", "(", ")", "+", "", ";"], "ground_truth": ["}"], "File": "BTFDebug10", "Func": "emitBTFSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2401, "Length": 93, "Cover_Rate": 0.4492753623188406} {"Template_token": ["", "size_t", "SecondColon", "=", "AccessPattern", ".", "find_first_of", "(", "':'", ",", "FirstColon", "+", "", ")", ";", "StringRef", "IndexPattern", "=", "AccessPattern", ".", "substr", "(", "FirstDollar", "+", "", ")", ";", "StringRef", "RelocKindStr", "=", "AccessPattern", ".", "substr", "(", "FirstColon", "+", "", ",", "SecondColon", "-", "FirstColon", ")", ";", "StringRef", "PatchImmStr", "=", "AccessPattern", ".", "substr", "(", "SecondColon", "+", "", ",", "FirstDollar", "-", "SecondColon", ")", ";", "FieldReloc", ".", "OffsetNameOff", "=", "addString", "(", "IndexPattern", ")", ";", "FieldReloc", ".", "RelocKind", "=", "std", "::", "stoull", "(", "std", "::", "string", "(", "RelocKindStr", ")", ")", ";", "PatchImms", "[", "GVar", "]", "=", "std", "::", "stoul", "(", "std", "::", "string", "(", "PatchImmStr", ")", ")", ";", "}", "else", "{", "StringRef", "RelocStr", "=", "AccessPattern", ".", "substr", "(", "FirstDollar", "+", "", ")", ";"], "ground_truth": ["FieldReloc", ".", "OffsetNameOff", "=", "addString", "(", "", ")", ";"], "File": "BTFDebug10", "Func": "generatePatchImmReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2402, "Length": 124, "Cover_Rate": 0.5391304347826087} {"Template_token": ["", "StringRef", "PatchImmStr", "=", "AccessPattern", ".", "substr", "(", "SecondColon", "+", "", ",", "FirstDollar", "-", "SecondColon", ")", ";", "FieldReloc", ".", "OffsetNameOff", "=", "addString", "(", "IndexPattern", ")", ";", "FieldReloc", ".", "RelocKind", "=", "std", "::", "stoull", "(", "std", "::", "string", "(", "RelocKindStr", ")", ")", ";", "PatchImms", "[", "GVar", "]", "=", "std", "::", "stoul", "(", "std", "::", "string", "(", "PatchImmStr", ")", ")", ";", "}", "else", "{", "StringRef", "RelocStr", "=", "AccessPattern", ".", "substr", "(", "FirstDollar", "+", "", ")", ";", "FieldReloc", ".", "OffsetNameOff", "=", "addString", "(", "", ")", ";", "FieldReloc", ".", "RelocKind", "=", "std", "::", "stoull", "(", "std", "::", "string", "(", "RelocStr", ")", ")", ";", "PatchImms", "[", "GVar", "]", "=", "RootId", ";", "}", "FieldRelocTable", "[", "SecNameOff", "]", ".", "push_back", "(", "FieldReloc", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug10", "Func": "generatePatchImmReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2403, "Length": 117, "Cover_Rate": 0.508695652173913} {"Template_token": ["", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", "&&", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "uint32_t", "Imm", "=", "PatchImms", "[", "GVar", "]", ";", "OutMI", ".", "setOpcode", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ";", "if", "(", "MI", "->", "getOperand", "(", "", ")", ".", "isImm", "(", ")", ")", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ")", ";", "else", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", ")", ")", ";", "return", "true", ";", "}", "}"], "ground_truth": ["}"], "File": "BTFDebug10", "Func": "InstLower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2404, "Length": 143, "Cover_Rate": 0.38235294117647056} {"Template_token": ["", "const", "DISubprogram", "*", "SP", "=", "F", "->", "getSubprogram", "(", ")", ";", "if", "(", "!", "SP", "||", "SP", "->", "isDefinition", "(", ")", ")", "return", ";"], "ground_truth": ["if", "(", "ProtoFunctions", ".", "find", "(", "F", ")", "!=", "ProtoFunctions", ".", "end", "(", ")", ")", "return", ";"], "File": "BTFDebug10", "Func": "processFuncPrototypes", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2405, "Length": 41, "Cover_Rate": 0.30597014925373134} {"Template_token": ["", "if", "(", "GVs", ".", "size", "(", ")", "==", "", ")", "continue", ";", "uint32_t", "GVTypeId", "=", "", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakAnyLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalWeakLinkage", ")", "continue", ";", "uint32_t", "GVarInfo", ";", "if", "(", "Linkage", "==", "GlobalValue", "::", "InternalLinkage", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "if", "(", "Global", ".", "hasInitializer", "(", ")", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "{", "GVarInfo", "=", "", ";", "}", "auto", "VarEntry", "=", "std", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "assert", "(", "!", "SecName", ".", "empty", "(", ")", ")", ";", "if", "(", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{"], "ground_truth": ["DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";"], "File": "BTFDebug10", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2406, "Length": 241, "Cover_Rate": 0.5489749430523918} {"Template_token": ["", "}", "auto", "VarEntry", "=", "std", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "assert", "(", "!", "SecName", ".", "empty", "(", ")", ")", ";", "if", "(", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}", "const", "DataLayout", "&", "DL", "=", "Global", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "uint32_t", "Size", "=", "DL", ".", "getTypeAllocSize", "(", "Global", ".", "getType", "(", ")", "->", "getElementType", "(", ")", ")", ";", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "->", "addVar", "(", "VarId", ",", "Asm", "->", "getSymbol", "(", "&", "Global", ")", ",", "Size", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug10", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2407, "Length": 154, "Cover_Rate": 0.35079726651480636} {"Template_token": ["", "if", "(", "!", "GVar", ")", "return", ";", "if", "(", "!", "GVar", "->", "hasAttribute", "(", "", ")", "&&", "!", "GVar", "->", "hasAttribute", "(", "", ")", ")", "return", ";", "MCSymbol", "*", "ORSym", "=", "OS", ".", "getContext", "(", ")", ".", "createTempSymbol", "(", ")", ";"], "ground_truth": ["OS", ".", "emitLabel", "(", "ORSym", ")", ";"], "File": "BTFDebug10", "Func": "processReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2408, "Length": 48, "Cover_Rate": 0.3380281690140845} {"Template_token": ["", "void", "BTFDebug", "::", "visitBasicType", "(", "const", "DIBasicType", "*", "BTy", ",", "uint32_t", "&", "TypeId", ")", "{", "uint32_t", "Encoding", "=", "BTy", "->", "getEncoding", "(", ")", ";"], "ground_truth": ["if", "(", "Encoding", "!=", "dwarf", "::", "DW_ATE_boolean", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_signed", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_signed_char", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_unsigned", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_unsigned_char", ")", "return", ";"], "File": "BTFDebug10", "Func": "visitBasicType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2409, "Length": 58, "Cover_Rate": 0.5576923076923077} {"Template_token": ["", "SeenPointer", "=", "Tag", "==", "dwarf", "::", "DW_TAG_pointer_type", ";", "}", "if", "(", "CheckPointer", "&&", "SeenPointer", ")", "{", "const", "DIType", "*", "Base", "=", "DTy", "->", "getBaseType", "(", ")", ";", "if", "(", "Base", ")", "{", "if", "(", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "Base", ")", ")", "{", "auto", "CTag", "=", "CTy", "->", "getTag", "(", ")", ";", "if", "(", "(", "CTag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "CTag", "==", "dwarf", "::", "DW_TAG_union_type", ")", "&&", "!", "CTy", "->", "isForwardDecl", "(", ")", ")", "{", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "true", ")", ";", "auto", "&", "Fixup", "=", "FixupDerivedTypes", "[", "CTy", "->", "getName", "(", ")", "]", ";"], "ground_truth": ["Fixup", ".", "first", "=", "CTag", "==", "dwarf", "::", "DW_TAG_union_type", ";"], "File": "BTFDebug10", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2410, "Length": 121, "Cover_Rate": 0.38412698412698415} {"Template_token": ["", "break", ";", "}", "}", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeStruct", ">", "(", "CTy", ",", "true", ",", "HasBitField", ",", "Elements", ".", "size", "(", ")", ")", ";", "StructTypes", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "for", "(", "const", "auto", "*", "Element", ":", "Elements", ")", "{", "const", "auto", "*", "MemberType", "=", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ";", "visitTypeEntry", "(", "MemberType", "->", "getBaseType", "(", ")", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug10", "Func": "visitMapDefType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2411, "Length": 86, "Cover_Rate": 0.38392857142857145} {"Template_token": ["", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeStruct", ">", "(", "CTy", ",", "IsStruct", ",", "HasBitField", ",", "VLen", ")", ";", "StructTypes", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "for", "(", "const", "auto", "*", "Element", ":", "Elements", ")", "visitTypeEntry", "(", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug10", "Func": "visitStructType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2412, "Length": 65, "Cover_Rate": 0.41935483870967744} {"Template_token": ["", "else", "if", "(", "const", "auto", "*", "STy", "=", "dyn_cast", "<", "DISubroutineType", ">", "(", "Ty", ")", ")", "visitSubroutineType", "(", "STy", ",", "false", ",", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "(", ")", ",", "TypeId", ")", ";"], "ground_truth": ["else", "if", "(", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "Ty", ")", ")", "visitCompositeType", "(", "CTy", ",", "TypeId", ")", ";"], "File": "BTFDebug10", "Func": "visitTypeEntry", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2413, "Length": 59, "Cover_Rate": 0.3575757575757576} {"Template_token": ["", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "{", "visitTypeEntry", "(", "DV", "->", "getType", "(", ")", ")", ";", "FuncArgNames", "[", "Arg", "]", "=", "DV", "->", "getName", "(", ")", ";", "}", "}", "}", "uint32_t", "ProtoTypeId", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "BTFFuncInfo", "FuncInfo", ";", "FuncInfo", ".", "Label", "=", "FuncLabel", ";", "FuncInfo", ".", "TypeId", "=", "FuncTypeId", ";", "if", "(", "FuncLabel", "->", "isInSection", "(", ")", ")", "{", "MCSection", "&", "Section", "=", "FuncLabel", "->", "getSection", "(", ")", ";", "const", "MCSectionELF", "*", "SectionELF", "=", "dyn_cast", "<", "MCSectionELF", ">", "(", "&", "Section", ")", ";", "assert", "(", "SectionELF", "&&", "", ")", ";"], "ground_truth": ["SecNameOff", "=", "addString", "(", "SectionELF", "->", "getSectionName", "(", ")", ")", ";"], "File": "BTFDebug11", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2414, "Length": 180, "Cover_Rate": 0.569620253164557} {"Template_token": ["", "for", "(", "const", "DINode", "*", "DN", ":", "SP", "->", "getRetainedNodes", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "DV", "=", "dyn_cast", "<", "DILocalVariable", ">", "(", "DN", ")", ")", "{", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "{", "visitTypeEntry", "(", "DV", "->", "getType", "(", ")", ")", ";", "FuncArgNames", "[", "Arg", "]", "=", "DV", "->", "getName", "(", ")", ";", "}", "}", "}", "uint32_t", "ProtoTypeId", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "BTFFuncInfo", "FuncInfo", ";", "FuncInfo", ".", "Label", "=", "FuncLabel", ";", "FuncInfo", ".", "TypeId", "=", "FuncTypeId", ";", "if", "(", "FuncLabel", "->", "isInSection", "(", ")", ")", "{", "MCSection", "&", "Section", "=", "FuncLabel", "->", "getSection", "(", ")", ";", "const", "MCSectionELF", "*", "SectionELF", "=", "dyn_cast", "<", "MCSectionELF", ">", "(", "&", "Section", ")", ";", "assert", "(", "SectionELF", "&&", "", ")", ";", "SecNameOff", "=", "addString", "(", "SectionELF", "->", "getSectionName", "(", ")", ")", ";", "}", "else", "{", "SecNameOff", "=", "addString", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug11", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2415, "Length": 221, "Cover_Rate": 0.6993670886075949} {"Template_token": ["", "for", "(", ";", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "isDef", "(", ")", ";", "++", "NumDefs", ")", ";", "const", "char", "*", "AsmStr", "=", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "getSymbolName", "(", ")", ";", "if", "(", "AsmStr", "[", "", "]", "==", "", ")", "return", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "processLDimm64", "(", "MI", ")", ";", "const", "DebugLoc", "&", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "if", "(", "!", "DL", "||", "PrevInstLoc", "==", "DL", ")", "{", "if", "(", "LineInfoGenerated", "==", "false", ")", "{"], "ground_truth": ["auto", "*", "S", "=", "MI", "->", "getMF", "(", ")", "->", "getFunction", "(", ")", ".", "getSubprogram", "(", ")", ";"], "File": "BTFDebug11", "Func": "beginInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2416, "Length": 118, "Cover_Rate": 0.4338235294117647} {"Template_token": ["", "if", "(", "IsCompleted", ")", "return", ";", "IsCompleted", "=", "true", ";", "BTFType", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "ETy", "->", "getName", "(", ")", ")", ";"], "ground_truth": ["DINodeArray", "Elements", "=", "ETy", "->", "getElements", "(", ")", ";"], "File": "BTFDebug11", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2417, "Length": 34, "Cover_Rate": 0.30357142857142855} {"Template_token": ["", "BTFType", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "ETy", "->", "getName", "(", ")", ")", ";", "DINodeArray", "Elements", "=", "ETy", "->", "getElements", "(", ")", ";", "for", "(", "const", "auto", "Element", ":", "Elements", ")", "{", "const", "auto", "*", "Enum", "=", "cast", "<", "DIEnumerator", ">", "(", "Element", ")", ";", "struct", "", "BTFEnum", ";", "BTFEnum", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "Enum", "->", "getName", "(", ")", ")", ";", "BTFEnum", ".", "Val", "=", "static_cast", "<", "uint32_t", ">", "(", "Enum", "->", "getValue", "(", ")", ")", ";", "EnumValues", ".", "push_back", "(", "BTFEnum", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug11", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2418, "Length": 90, "Cover_Rate": 0.8035714285714286} {"Template_token": ["", "FuncLen", "+=", "", ";", "FuncLen", "+=", "FuncSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "for", "(", "const", "auto", "&", "LineSec", ":", "LineInfoTable", ")", "{", "LineLen", "+=", "", ";", "LineLen", "+=", "LineSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "for", "(", "const", "auto", "&", "FieldRelocSec", ":", "FieldRelocTable", ")", "{", "FieldRelocLen", "+=", "", ";", "FieldRelocLen", "+=", "FieldRelocSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "for", "(", "const", "auto", "&", "ExternRelocSec", ":", "ExternRelocTable", ")", "{", "ExternRelocLen", "+=", "", ";", "ExternRelocLen", "+=", "ExternRelocSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "if", "(", "FieldRelocLen", ")", "FieldRelocLen", "+=", "", ";", "if", "(", "ExternRelocLen", ")", "ExternRelocLen", "+=", "", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "LineLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncLen", "+", "LineLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FieldRelocLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncLen", "+", "LineLen", "+", "FieldRelocLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "ExternRelocLen", ",", "", ")", ";", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "for", "(", "const", "auto", "&", "FuncSec", ":", "FuncInfoTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "FuncSec", ".", "first", ")", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncSec", ".", "first", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncSec", ".", "second", ".", "size", "(", ")", ",", "", ")", ";", "for", "(", "const", "auto", "&", "FuncInfo", ":", "FuncSec", ".", "second", ")", "{", "Asm", "->", "EmitLabelReference", "(", "FuncInfo", ".", "Label", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncInfo", ".", "TypeId", ",", "", ")", ";", "}", "}", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "for", "(", "const", "auto", "&", "LineSec", ":", "LineInfoTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "LineSec", ".", "first", ")", ")", ";", "OS", ".", "EmitIntValue", "(", "LineSec", ".", "first", ",", "", ")", ";"], "ground_truth": ["OS", ".", "EmitIntValue", "(", "LineSec", ".", "second", ".", "size", "(", ")", ",", "", ")", ";"], "File": "BTFDebug11", "Func": "emitBTFExtSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2419, "Length": 364, "Cover_Rate": 0.4375} {"Template_token": ["", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeLen", "+=", "TypeEntry", "->", "getSize", "(", ")", ";", "StrLen", "=", "StringTable", ".", "getSize", "(", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "TypeLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "TypeLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "StrLen", ",", "", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "emitType", "(", "OS", ")", ";", "uint32_t", "StringOffset", "=", "", ";", "for", "(", "const", "auto", "&", "S", ":", "StringTable", ".", "getTable", "(", ")", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "StringOffset", ")", ")", ";", "OS", ".", "EmitBytes", "(", "S", ")", ";"], "ground_truth": ["OS", ".", "EmitBytes", "(", "StringRef", "(", "", ",", "", ")", ")", ";"], "File": "BTFDebug11", "Func": "emitBTFSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2420, "Length": 129, "Cover_Rate": 0.5944700460829493} {"Template_token": ["", "void", "BTFDebug", "::", "emitBTFSection", "(", ")", "{", "if", "(", "!", "TypeEntries", ".", "size", "(", ")", "&&", "StringTable", ".", "getSize", "(", ")", "==", "", ")", "return", ";", "MCContext", "&", "Ctx", "=", "OS", ".", "getContext", "(", ")", ";", "OS", ".", "SwitchSection", "(", "Ctx", ".", "getELFSection", "(", "", ",", "ELF", "::", "SHT_PROGBITS", ",", "", ")", ")", ";", "emitCommonHeader", "(", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "uint32_t", "TypeLen", "=", "", ",", "StrLen", ";"], "ground_truth": ["for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeLen", "+=", "TypeEntry", "->", "getSize", "(", ")", ";"], "File": "BTFDebug11", "Func": "emitBTFSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2421, "Length": 91, "Cover_Rate": 0.41935483870967744} {"Template_token": ["", "void", "BTFKindDataSec", "::", "emitType", "(", "MCStreamer", "&", "OS", ")", "{", "", "(", "OS", ")", ";", "for", "(", "const", "auto", "&", "V", ":", "Vars", ")", "{", "OS", ".", "EmitIntValue", "(", "std", "::", "get", "<", "", ">", "(", "V", ")", ",", "", ")", ";"], "ground_truth": ["Asm", "->", "EmitLabelReference", "(", "std", "::", "get", "<", "", ">", "(", "V", ")", ",", "", ")", ";"], "File": "BTFDebug11", "Func": "emitType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2422, "Length": 59, "Cover_Rate": 0.7375} {"Template_token": ["", "OS", ".", "EmitIntValue", "(", "std", "::", "get", "<", "", ">", "(", "V", ")", ",", "", ")", ";", "Asm", "->", "EmitLabelReference", "(", "std", "::", "get", "<", "", ">", "(", "V", ")", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "std", "::", "get", "<", "", ">", "(", "V", ")", ",", "", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug11", "Func": "emitType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2423, "Length": 53, "Cover_Rate": 0.6625} {"Template_token": ["", "StringRef", "RelocKindStr", "=", "AccessPattern", ".", "substr", "(", "FirstColon", "+", "", ",", "SecondColon", "-", "FirstColon", ")", ";", "StringRef", "PatchImmStr", "=", "AccessPattern", ".", "substr", "(", "SecondColon", "+", "", ",", "FirstDollar", "-", "SecondColon", ")", ";", "BTFFieldReloc", "FieldReloc", ";", "FieldReloc", ".", "Label", "=", "ORSym", ";", "FieldReloc", ".", "OffsetNameOff", "=", "addString", "(", "IndexPattern", ")", ";", "FieldReloc", ".", "TypeID", "=", "RootId", ";", "FieldReloc", ".", "RelocKind", "=", "std", "::", "stoull", "(", "RelocKindStr", ")", ";", "PatchImms", "[", "AccessPattern", ".", "str", "(", ")", "]", "=", "std", "::", "stoul", "(", "PatchImmStr", ")", ";"], "ground_truth": ["FieldRelocTable", "[", "SecNameOff", "]", ".", "push_back", "(", "FieldReloc", ")", ";"], "File": "BTFDebug11", "Func": "generateFieldReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2424, "Length": 93, "Cover_Rate": 0.543859649122807} {"Template_token": ["", "std", "::", "string", "BTFTypeStruct", "::", "getName", "(", ")", "{", "return", "STy", "->", "getName", "(", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug11", "Func": "getName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2425, "Length": 17, "Cover_Rate": 1.0} {"Template_token": ["", "return", "STy", "->", "getName", "(", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug11", "Func": "getName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2426, "Length": 8, "Cover_Rate": 0.47058823529411764} {"Template_token": ["", "uint32_t", "getSize", "(", ")", "{"], "ground_truth": ["return", "", "(", ")", "+", "", "*", "Vars", ".", "size", "(", ")", ";"], "File": "BTFDebug11", "Func": "getSize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2428, "Length": 18, "Cover_Rate": 0.782608695652174} {"Template_token": ["", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", ")", ")", ";", "return", "true", ";", "}", "else", "if", "(", "GVar", "&&", "!", "GVar", "->", "hasInitializer", "(", ")", "&&", "GVar", "->", "hasExternalLinkage", "(", ")", "&&", "GVar", "->", "getSection", "(", ")", "==", "", ")", "{", "const", "IntegerType", "*", "IntTy", "=", "dyn_cast", "<", "IntegerType", ">", "(", "GVar", "->", "getValueType", "(", ")", ")", ";", "assert", "(", "IntTy", ")", ";"], "ground_truth": ["if", "(", "IntTy", "->", "getBitWidth", "(", ")", "==", "", ")", "OutMI", ".", "setOpcode", "(", "", ")", ";"], "File": "BTFDebug11", "Func": "InstLower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2429, "Length": 82, "Cover_Rate": 0.3025830258302583} {"Template_token": ["", "}", "else", "if", "(", "GVar", "&&", "!", "GVar", "->", "hasInitializer", "(", ")", "&&", "GVar", "->", "hasExternalLinkage", "(", ")", "&&", "GVar", "->", "getSection", "(", ")", "==", "", ")", "{", "const", "IntegerType", "*", "IntTy", "=", "dyn_cast", "<", "IntegerType", ">", "(", "GVar", "->", "getValueType", "(", ")", ")", ";", "assert", "(", "IntTy", ")", ";", "if", "(", "IntTy", "->", "getBitWidth", "(", ")", "==", "", ")", "OutMI", ".", "setOpcode", "(", "", ")", ";", "else", "OutMI", ".", "setOpcode", "(", "", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "", ")", ")", ";", "return", "true", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug11", "Func": "InstLower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2430, "Length": 113, "Cover_Rate": 0.41697416974169743} {"Template_token": ["", "if", "(", "!", "File", "->", "getFilename", "(", ")", ".", "startswith", "(", "", ")", "&&", "File", "->", "getDirectory", "(", ")", ".", "size", "(", ")", ")", "FileName", "=", "File", "->", "getDirectory", "(", ")", ".", "str", "(", ")", "+", "", "+", "File", "->", "getFilename", "(", ")", ".", "str", "(", ")", ";", "else", "FileName", "=", "File", "->", "getFilename", "(", ")", ";", "if", "(", "FileContent", ".", "find", "(", "FileName", ")", "!=", "FileContent", ".", "end", "(", ")", ")", "return", "FileName", ";", "std", "::", "vector", "<", "std", "::", "string", ">", "Content", ";", "std", "::", "string", "Line", ";", "Content", ".", "push_back", "(", "Line", ")", ";", "std", "::", "unique_ptr", "<", "MemoryBuffer", ">", "Buf", ";", "auto", "Source", "=", "File", "->", "getSource", "(", ")", ";"], "ground_truth": ["if", "(", "Source", ")", "Buf", "=", "MemoryBuffer", "::", "getMemBufferCopy", "(", "*", "Source", ")", ";"], "File": "BTFDebug11", "Func": "populateFileContent", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2431, "Length": 128, "Cover_Rate": 0.5614035087719298} {"Template_token": ["", "visitTypeEntry", "(", "Ty", ",", "Id", ",", "false", ",", "false", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "return", "Id", ";"], "ground_truth": ["}"], "File": "BTFDebug11", "Func": "populateStructType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2433, "Length": 32, "Cover_Rate": 0.6956521739130435} {"Template_token": ["", "if", "(", "Global", ".", "hasSection", "(", ")", ")", "{", "SecName", "=", "Global", ".", "getSection", "(", ")", ";", "}", "else", "{", "if", "(", "Global", ".", "isConstant", "(", ")", ")", "SecName", "=", "", ";", "else", "SecName", "=", "Global", ".", "getInitializer", "(", ")", "->", "isZeroValue", "(", ")", "?", "", ":", "", ";", "}", "if", "(", "ProcessingMapDef", "!=", "SecName", ".", "startswith", "(", "", ")", ")", "continue", ";", "SmallVector", "<", "DIGlobalVariableExpression", "*", ",", "", ">", "GVs", ";", "Global", ".", "getDebugInfo", "(", "GVs", ")", ";", "uint32_t", "GVTypeId", "=", "", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "(", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "||", "!", "Global", ".", "hasSection", "(", ")", ")", ")", "continue", ";", "uint32_t", "GVarInfo", "=", "Linkage", "==", "GlobalValue", "::", "ExternalLinkage", "?", "", ":", "", ";", "auto", "VarEntry", "=", "std", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";"], "ground_truth": ["if", "(", "DataSecEntries", ".", "find", "(", "SecName", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{"], "File": "BTFDebug11", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2434, "Length": 237, "Cover_Rate": 0.6440217391304348} {"Template_token": ["", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "(", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "||", "!", "Global", ".", "hasSection", "(", ")", ")", ")", "continue", ";", "uint32_t", "GVarInfo", "=", "Linkage", "==", "GlobalValue", "::", "ExternalLinkage", "?", "", ":", "", ";", "auto", "VarEntry", "=", "std", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "if", "(", "DataSecEntries", ".", "find", "(", "SecName", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "SecName", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "SecName", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug11", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2435, "Length": 162, "Cover_Rate": 0.44021739130434784} {"Template_token": ["", "generateFieldReloc", "(", "MI", ",", "ORSym", ",", "Ty", ",", "GVar", "->", "getName", "(", ")", ")", ";", "}", "else", "if", "(", "GVar", "&&", "!", "GVar", "->", "hasInitializer", "(", ")", "&&", "GVar", "->", "hasExternalLinkage", "(", ")", "&&", "GVar", "->", "getSection", "(", ")", "==", "", ")", "{", "MCSymbol", "*", "ORSym", "=", "OS", ".", "getContext", "(", ")", ".", "createTempSymbol", "(", ")", ";", "OS", ".", "EmitLabel", "(", "ORSym", ")", ";", "BTFExternReloc", "ExternReloc", ";", "ExternReloc", ".", "Label", "=", "ORSym", ";", "ExternReloc", ".", "ExternNameOff", "=", "addString", "(", "GVar", "->", "getName", "(", ")", ")", ";"], "ground_truth": ["ExternRelocTable", "[", "SecNameOff", "]", ".", "push_back", "(", "ExternReloc", ")", ";"], "File": "BTFDebug11", "Func": "processLDimm64", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2436, "Length": 96, "Cover_Rate": 0.4444444444444444} {"Template_token": ["", "Kind", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";", "BTFType", ".", "Type", "=", "NextTypeId", ";"], "ground_truth": ["}"], "File": "BTFDebug12", "Func": "BTFTypeDerived", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2437, "Length": 19, "Cover_Rate": 0.38} {"Template_token": ["", "BTFTypeDerived", "::", "BTFTypeDerived", "(", "unsigned", "NextTypeId", ",", "unsigned", "Tag", ",", "StringRef", "Name", ")", ":", "DTy", "(", "nullptr", ")", ",", "NeedsFixup", "(", "false", ")", ",", "Name", "(", "Name", ")", "{", "Kind", "=", "", ";"], "ground_truth": ["BTFType", ".", "Info", "=", "Kind", "<<", "", ";"], "File": "BTFDebug12", "Func": "BTFTypeDerived", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2438, "Length": 41, "Cover_Rate": 0.82} {"Template_token": ["", "BTFTypeTypeTag", "::", "BTFTypeTypeTag", "(", "const", "DIDerivedType", "*", "DTy", ",", "StringRef", "Tag", ")", ":", "DTy", "(", "DTy", ")", ",", "Tag", "(", "Tag", ")", "{", "Kind", "=", "", ";"], "ground_truth": ["BTFType", ".", "Info", "=", "Kind", "<<", "", ";"], "File": "BTFDebug12", "Func": "BTFTypeTypeTag", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2439, "Length": 35, "Cover_Rate": 0.9210526315789473} {"Template_token": ["", "Kind", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";"], "ground_truth": ["}"], "File": "BTFDebug12", "Func": "BTFTypeTypeTag", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2440, "Length": 13, "Cover_Rate": 0.34210526315789475} {"Template_token": ["", "if", "(", "DTy", ")", "{", "const", "DIType", "*", "ResolvedType", "=", "DTy", "->", "getBaseType", "(", ")", ";", "if", "(", "!", "ResolvedType", ")", "BTFType", ".", "Type", "=", "", ";", "else", "BTFType", ".", "Type", "=", "BDebug", ".", "getTypeId", "(", "ResolvedType", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug12", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2441, "Length": 40, "Cover_Rate": 0.5555555555555556} {"Template_token": ["", "bool", "IsUnion", "=", "CTy", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_union_type", ";", "uint32_t", "StructTypeId", "=", "", ";", "for", "(", "const", "auto", "&", "StructType", ":", "StructTypes", ")", "{", "if", "(", "StructType", "->", "getName", "(", ")", "==", "TypeName", ")", "{", "StructTypeId", "=", "StructType", "->", "getId", "(", ")", ";", "break", ";", "}", "}", "if", "(", "StructTypeId", "==", "", ")", "{", "auto", "FwdTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFwd", ">", "(", "TypeName", ",", "IsUnion", ")", ";", "StructTypeId", "=", "addType", "(", "std", "::", "move", "(", "FwdTypeEntry", ")", ")", ";", "}", "for", "(", "auto", "&", "TypeInfo", ":", "Fixup", ".", "second", ")", "{", "const", "DIDerivedType", "*", "DTy", "=", "TypeInfo", ".", "first", ";", "BTFTypeDerived", "*", "BDType", "=", "TypeInfo", ".", "second", ";", "int", "TmpTypeId", "=", "genBTFTypeTags", "(", "DTy", ",", "StructTypeId", ")", ";", "if", "(", "TmpTypeId", ">=", "", ")", "BDType", "->", "setPointeeType", "(", "TmpTypeId", ")", ";", "else", "BDType", "->", "setPointeeType", "(", "StructTypeId", ")", ";", "}", "}", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";"], "ground_truth": ["emitBTFSection", "(", ")", ";"], "File": "BTFDebug12", "Func": "endModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2442, "Length": 168, "Cover_Rate": 0.680161943319838} {"Template_token": ["", "}", "if", "(", "MDStrs", ".", "size", "(", ")", "==", "", ")", "return", "-", "", ";", "unsigned", "TmpTypeId", ";", "std", "::", "unique_ptr", "<", "BTFTypeTypeTag", ">", "TypeEntry", ";", "if", "(", "BaseTypeId", ">=", "", ")", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeTypeTag", ">", "(", "BaseTypeId", ",", "MDStrs", "[", "", "]", "->", "getString", "(", ")", ")", ";", "else", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeTypeTag", ">", "(", "DTy", ",", "MDStrs", "[", "", "]", "->", "getString", "(", ")", ")", ";"], "ground_truth": ["TmpTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";"], "File": "BTFDebug12", "Func": "genBTFTypeTags", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2443, "Length": 87, "Cover_Rate": 0.32342007434944237} {"Template_token": ["", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "DIGlobal", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "DIGlobal", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakAnyLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakODRLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalWeakLinkage", ")", "continue", ";", "uint32_t", "GVarInfo", ";", "if", "(", "Linkage", "==", "GlobalValue", "::", "InternalLinkage", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "if", "(", "Global", ".", "hasInitializer", "(", ")", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "{", "GVarInfo", "=", "", ";", "}", "auto", "VarEntry", "=", "std", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "processDeclAnnotations", "(", "DIGlobal", "->", "getAnnotations", "(", ")", ",", "VarId", ",", "-", "", ")", ";", "if", "(", "SecName", ".", "empty", "(", ")", ")", "continue", ";"], "ground_truth": ["if", "(", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{"], "File": "BTFDebug12", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2444, "Length": 200, "Cover_Rate": 0.3663003663003663} {"Template_token": ["", "const", "Module", "*", "M", "=", "MMI", "->", "getModule", "(", ")", ";", "for", "(", "const", "GlobalVariable", "&", "Global", ":", "M", "->", "globals", "(", ")", ")", "{", "StringRef", "SecName", ";", "if", "(", "Global", ".", "hasSection", "(", ")", ")", "{", "SecName", "=", "Global", ".", "getSection", "(", ")", ";", "}", "else", "if", "(", "Global", ".", "hasInitializer", "(", ")", ")", "{", "if", "(", "Global", ".", "isConstant", "(", ")", ")", "SecName", "=", "", ";", "else", "SecName", "=", "Global", ".", "getInitializer", "(", ")", "->", "isZeroValue", "(", ")", "?", "", ":", "", ";", "}", "if", "(", "ProcessingMapDef", "!=", "SecName", ".", "startswith", "(", "", ")", ")", "continue", ";", "if", "(", "SecName", "==", "", "&&", "Global", ".", "hasPrivateLinkage", "(", ")", "&&", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "SectionKind", "GVKind", "=", "TargetLoweringObjectFile", "::", "getKindForGlobal", "(", "&", "Global", ",", "Asm", "->", "TM", ")", ";", "if", "(", "!", "GVKind", ".", "isMergeableCString", "(", ")", "&&", "!", "GVKind", ".", "isMergeableConst", "(", ")", ")", "{", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}", "}", "SmallVector", "<", "DIGlobalVariableExpression", "*", ",", "", ">", "GVs", ";", "Global", ".", "getDebugInfo", "(", "GVs", ")", ";", "if", "(", "GVs", ".", "size", "(", ")", "==", "", ")", "continue", ";", "uint32_t", "GVTypeId", "=", "", ";", "DIGlobalVariable", "*", "DIGlobal", "=", "nullptr", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "DIGlobal", "=", "GVE", "->", "getVariable", "(", ")", ";", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "DIGlobal", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "DIGlobal", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakAnyLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakODRLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalWeakLinkage", ")", "continue", ";", "uint32_t", "GVarInfo", ";"], "ground_truth": ["if", "(", "Linkage", "==", "GlobalValue", "::", "InternalLinkage", ")", "{"], "File": "BTFDebug12", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2445, "Length": 341, "Cover_Rate": 0.6245421245421245} {"Template_token": ["", "if", "(", "(", "CTag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "CTag", "==", "dwarf", "::", "DW_TAG_union_type", ")", "&&", "!", "CTy", "->", "getName", "(", ")", ".", "empty", "(", ")", "&&", "!", "CTy", "->", "isForwardDecl", "(", ")", ")", "{", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "true", ")", ";", "auto", "&", "Fixup", "=", "FixupDerivedTypes", "[", "CTy", "]", ";", "Fixup", ".", "push_back", "(", "std", "::", "make_pair", "(", "DTy", ",", "TypeEntry", ".", "get", "(", ")", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "return", ";", "}", "}", "}", "}", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_pointer_type", ")", "{", "int", "TmpTypeId", "=", "genBTFTypeTags", "(", "DTy", ",", "-", "", ")", ";", "if", "(", "TmpTypeId", ">=", "", ")", "{", "auto", "TypeDEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "TmpTypeId", ",", "Tag", ",", "DTy", "->", "getName", "(", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeDEntry", ")", ",", "DTy", ")", ";", "}", "else", "{", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "false", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "}", "}", "else", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_typedef", "||", "Tag", "==", "dwarf", "::", "DW_TAG_const_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_volatile_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_restrict_type", ")", "{", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "false", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_typedef", ")", "processDeclAnnotations", "(", "DTy", "->", "getAnnotations", "(", ")", ",", "TypeId", ",", "-", "", ")", ";", "}", "else", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_member", ")", "{", "return", ";"], "ground_truth": ["}"], "File": "BTFDebug12", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2446, "Length": 292, "Cover_Rate": 0.6759259259259259} {"Template_token": ["", "auto", "TypeDEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "TmpTypeId", ",", "Tag", ",", "DTy", "->", "getName", "(", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeDEntry", ")", ",", "DTy", ")", ";", "}", "else", "{", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "false", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "}", "}", "else", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_typedef", "||", "Tag", "==", "dwarf", "::", "DW_TAG_const_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_volatile_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_restrict_type", ")", "{", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "false", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_typedef", ")", "processDeclAnnotations", "(", "DTy", "->", "getAnnotations", "(", ")", ",", "TypeId", ",", "-", "", ")", ";", "}", "else", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_member", ")", "{", "return", ";"], "ground_truth": ["}"], "File": "BTFDebug12", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2447, "Length": 166, "Cover_Rate": 0.38425925925925924} {"Template_token": ["", "void", "BTFDebug", "::", "visitTypeEntry", "(", "const", "DIType", "*", "Ty", ",", "uint32_t", "&", "TypeId", ",", "bool", "CheckPointer", ",", "bool", "SeenPointer", ")", "{", "if", "(", "!", "Ty", "||", "DIToIdMap", ".", "find", "(", "Ty", ")", "!=", "DIToIdMap", ".", "end", "(", ")", ")", "{", "TypeId", "=", "DIToIdMap", "[", "Ty", "]", ";", "if", "(", "Ty", "&&", "(", "!", "CheckPointer", "||", "!", "SeenPointer", ")", ")", "{", "if", "(", "const", "auto", "*", "DTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "Ty", ")", ")", "{", "while", "(", "DTy", ")", "{", "const", "DIType", "*", "BaseTy", "=", "DTy", "->", "getBaseType", "(", ")", ";", "if", "(", "!", "BaseTy", ")", "break", ";", "if", "(", "DIToIdMap", ".", "find", "(", "BaseTy", ")", "!=", "DIToIdMap", ".", "end", "(", ")", ")", "{"], "ground_truth": ["DTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "BaseTy", ")", ";"], "File": "BTFDebug12", "Func": "visitTypeEntry", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2448, "Length": 125, "Cover_Rate": 0.4699248120300752} {"Template_token": ["", "TypeId", "=", "DIToIdMap", "[", "Ty", "]", ";", "if", "(", "Ty", "&&", "(", "!", "CheckPointer", "||", "!", "SeenPointer", ")", ")", "{", "if", "(", "const", "auto", "*", "DTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "Ty", ")", ")", "{", "while", "(", "DTy", ")", "{", "const", "DIType", "*", "BaseTy", "=", "DTy", "->", "getBaseType", "(", ")", ";", "if", "(", "!", "BaseTy", ")", "break", ";", "if", "(", "DIToIdMap", ".", "find", "(", "BaseTy", ")", "!=", "DIToIdMap", ".", "end", "(", ")", ")", "{", "DTy", "=", "dyn_cast", "<", "DIDerivedType", ">", "(", "BaseTy", ")", ";", "}", "else", "{"], "ground_truth": ["uint32_t", "TmpTypeId", ";"], "File": "BTFDebug12", "Func": "visitTypeEntry", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2449, "Length": 91, "Cover_Rate": 0.34210526315789475} {"Template_token": ["", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "false", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "uint8_t", "Scope", "=", "", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "Scope", ")", ";", "uint32_t", "FuncId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "if", "(", "F", "->", "hasSection", "(", ")", ")", "{", "StringRef", "SecName", "=", "F", "->", "getSection", "(", ")", ";", "if", "(", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "->", "addDataSecEntry", "(", "FuncId", ",", "Asm", "->", "getSymbol", "(", "F", ")", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug14", "Func": "processFuncPrototypes", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2450, "Length": 146, "Cover_Rate": 0.6375545851528385} {"Template_token": ["", "uint32_t", "ProtoTypeId", ";", "const", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "FuncArgNames", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "false", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "uint8_t", "Scope", "=", "", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "Scope", ")", ";", "uint32_t", "FuncId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "if", "(", "F", "->", "hasSection", "(", ")", ")", "{", "StringRef", "SecName", "=", "F", "->", "getSection", "(", ")", ";", "if", "(", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}"], "ground_truth": ["DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "->", "addDataSecEntry", "(", "FuncId", ",", "Asm", "->", "getSymbol", "(", "F", ")", ",", "", ")", ";"], "File": "BTFDebug14", "Func": "processFuncPrototypes", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2451, "Length": 159, "Cover_Rate": 0.6943231441048034} {"Template_token": ["", "const", "Module", "*", "M", "=", "MMI", "->", "getModule", "(", ")", ";", "for", "(", "const", "GlobalVariable", "&", "Global", ":", "M", "->", "globals", "(", ")", ")", "{", "StringRef", "SecName", ";", "if", "(", "Global", ".", "hasSection", "(", ")", ")", "{", "SecName", "=", "Global", ".", "getSection", "(", ")", ";", "}", "else", "if", "(", "Global", ".", "hasInitializer", "(", ")", ")", "{", "if", "(", "Global", ".", "isConstant", "(", ")", ")", "SecName", "=", "", ";", "else", "SecName", "=", "Global", ".", "getInitializer", "(", ")", "->", "isZeroValue", "(", ")", "?", "", ":", "", ";", "}", "if", "(", "ProcessingMapDef", "!=", "SecName", ".", "startswith", "(", "", ")", ")", "continue", ";", "if", "(", "SecName", "==", "", "&&", "Global", ".", "hasPrivateLinkage", "(", ")", "&&", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "SectionKind", "GVKind", "=", "TargetLoweringObjectFile", "::", "getKindForGlobal", "(", "&", "Global", ",", "Asm", "->", "TM", ")", ";", "if", "(", "!", "GVKind", ".", "isMergeableCString", "(", ")", "&&", "!", "GVKind", ".", "isMergeableConst", "(", ")", ")", "{", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}", "}", "SmallVector", "<", "DIGlobalVariableExpression", "*", ",", "", ">", "GVs", ";", "Global", ".", "getDebugInfo", "(", "GVs", ")", ";", "if", "(", "GVs", ".", "size", "(", ")", "==", "", ")", "continue", ";", "uint32_t", "GVTypeId", "=", "", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakAnyLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakODRLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalWeakLinkage", ")", "continue", ";", "uint32_t", "GVarInfo", ";", "if", "(", "Linkage", "==", "GlobalValue", "::", "InternalLinkage", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "if", "(", "Global", ".", "hasInitializer", "(", ")", ")", "{"], "ground_truth": ["GVarInfo", "=", "", ";"], "File": "BTFDebug14", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2452, "Length": 354, "Cover_Rate": 0.6679245283018868} {"Template_token": ["", "if", "(", "CheckPointer", "&&", "!", "SeenPointer", ")", "{", "SeenPointer", "=", "Tag", "==", "dwarf", "::", "DW_TAG_pointer_type", ";", "}", "if", "(", "CheckPointer", "&&", "SeenPointer", ")", "{", "const", "DIType", "*", "Base", "=", "DTy", "->", "getBaseType", "(", ")", ";", "if", "(", "Base", ")", "{", "if", "(", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "Base", ")", ")", "{", "auto", "CTag", "=", "CTy", "->", "getTag", "(", ")", ";", "if", "(", "(", "CTag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "CTag", "==", "dwarf", "::", "DW_TAG_union_type", ")", "&&", "!", "CTy", "->", "getName", "(", ")", ".", "empty", "(", ")", "&&", "!", "CTy", "->", "isForwardDecl", "(", ")", ")", "{", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "true", ")", ";", "auto", "&", "Fixup", "=", "FixupDerivedTypes", "[", "CTy", "->", "getName", "(", ")", "]", ";", "Fixup", ".", "first", "=", "CTag", "==", "dwarf", "::", "DW_TAG_union_type", ";", "Fixup", ".", "second", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "return", ";", "}", "}", "}"], "ground_truth": ["}"], "File": "BTFDebug14", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2453, "Length": 173, "Cover_Rate": 0.5306748466257669} {"Template_token": ["", "OS", ".", "EmitIntValue", "(", "FuncLen", "+", "LineLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FieldRelocLen", ",", "", ")", ";", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "for", "(", "const", "auto", "&", "FuncSec", ":", "FuncInfoTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "FuncSec", ".", "first", ")", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncSec", ".", "first", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncSec", ".", "second", ".", "size", "(", ")", ",", "", ")", ";", "for", "(", "const", "auto", "&", "FuncInfo", ":", "FuncSec", ".", "second", ")", "{", "Asm", "->", "EmitLabelReference", "(", "FuncInfo", ".", "Label", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncInfo", ".", "TypeId", ",", "", ")", ";", "}", "}", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "for", "(", "const", "auto", "&", "LineSec", ":", "LineInfoTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "LineSec", ".", "first", ")", ")", ";", "OS", ".", "EmitIntValue", "(", "LineSec", ".", "first", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "LineSec", ".", "second", ".", "size", "(", ")", ",", "", ")", ";", "for", "(", "const", "auto", "&", "LineInfo", ":", "LineSec", ".", "second", ")", "{", "Asm", "->", "EmitLabelReference", "(", "LineInfo", ".", "Label", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "LineInfo", ".", "FileNameOff", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "LineInfo", ".", "LineOff", ",", "", ")", ";", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "LineInfo", ".", "LineNum", ")", "+", "", "+", "std", "::", "to_string", "(", "LineInfo", ".", "ColumnNum", ")", ")", ";", "OS", ".", "EmitIntValue", "(", "LineInfo", ".", "LineNum", "<<", "", "|", "LineInfo", ".", "ColumnNum", ",", "", ")", ";", "}", "}", "if", "(", "FieldRelocLen", ")", "{", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "for", "(", "const", "auto", "&", "FieldRelocSec", ":", "FieldRelocTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "FieldRelocSec", ".", "first", ")", ")", ";", "OS", ".", "EmitIntValue", "(", "FieldRelocSec", ".", "first", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FieldRelocSec", ".", "second", ".", "size", "(", ")", ",", "", ")", ";", "for", "(", "const", "auto", "&", "FieldRelocInfo", ":", "FieldRelocSec", ".", "second", ")", "{", "Asm", "->", "EmitLabelReference", "(", "FieldRelocInfo", ".", "Label", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FieldRelocInfo", ".", "TypeID", ",", "", ")", ";"], "ground_truth": ["OS", ".", "EmitIntValue", "(", "FieldRelocInfo", ".", "OffsetNameOff", ",", "", ")", ";"], "File": "BTFDebug15", "Func": "emitBTFExtSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2454, "Length": 401, "Cover_Rate": 0.6188271604938271} {"Template_token": ["", "StructTypeId", "=", "StructType", "->", "getId", "(", ")", ";", "break", ";", "}", "}", "if", "(", "StructTypeId", "==", "", ")", "{", "auto", "FwdTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFwd", ">", "(", "TypeName", ",", "IsUnion", ")", ";", "StructTypeId", "=", "addType", "(", "std", "::", "move", "(", "FwdTypeEntry", ")", ")", ";", "}"], "ground_truth": ["for", "(", "auto", "&", "DType", ":", "Fixup", ".", "second", ".", "second", ")", "{"], "File": "BTFDebug15", "Func": "endModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2455, "Length": 60, "Cover_Rate": 0.30456852791878175} {"Template_token": ["", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", "&&", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "uint32_t", "Imm", "=", "PatchImms", "[", "GVar", "->", "getName", "(", ")", ".", "str", "(", ")", "]", ";", "OutMI", ".", "setOpcode", "(", "", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", ")", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BTFDebug15", "Func": "InstLower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2456, "Length": 84, "Cover_Rate": 0.5454545454545454} {"Template_token": ["", "if", "(", "GVar", "&&", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "uint32_t", "Imm", "=", "PatchImms", "[", "GVar", "->", "getName", "(", ")", ".", "str", "(", ")", "]", ";", "OutMI", ".", "setOpcode", "(", "", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", ")", ")", ";", "return", "true", ";", "}", "}", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "BTFDebug15", "Func": "InstLower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2457, "Length": 78, "Cover_Rate": 0.5064935064935064} {"Template_token": ["", "const", "Module", "*", "M", "=", "MMI", "->", "getModule", "(", ")", ";", "for", "(", "const", "Function", "&", "F", ":", "M", "->", "functions", "(", ")", ")", "{", "const", "DISubprogram", "*", "SP", "=", "F", ".", "getSubprogram", "(", ")", ";", "if", "(", "!", "SP", "||", "SP", "->", "isDefinition", "(", ")", ")", "continue", ";", "uint32_t", "ProtoTypeId", ";"], "ground_truth": ["const", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "FuncArgNames", ";"], "File": "BTFDebug15", "Func": "processFuncPrototypes", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2458, "Length": 63, "Cover_Rate": 0.3181818181818182} {"Template_token": ["", "const", "Module", "*", "M", "=", "MMI", "->", "getModule", "(", ")", ";", "for", "(", "const", "Function", "&", "F", ":", "M", "->", "functions", "(", ")", ")", "{", "const", "DISubprogram", "*", "SP", "=", "F", ".", "getSubprogram", "(", ")", ";", "if", "(", "!", "SP", "||", "SP", "->", "isDefinition", "(", ")", ")", "continue", ";", "uint32_t", "ProtoTypeId", ";", "const", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "FuncArgNames", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "false", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "auto", "VarEntry", "=", "std", "::", "make_unique", "<", "BTFKindVar", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";"], "ground_truth": ["StringRef", "SecName", "=", "F", ".", "getSection", "(", ")", ";"], "File": "BTFDebug15", "Func": "processFuncPrototypes", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2459, "Length": 121, "Cover_Rate": 0.6111111111111112} {"Template_token": ["", "SecName", "=", "Global", ".", "getSection", "(", ")", ";", "}", "else", "if", "(", "Global", ".", "hasInitializer", "(", ")", ")", "{", "if", "(", "Global", ".", "isConstant", "(", ")", ")", "SecName", "=", "", ";", "else", "SecName", "=", "Global", ".", "getInitializer", "(", ")", "->", "isZeroValue", "(", ")", "?", "", ":", "", ";", "}", "else", "{", "SecName", "=", "", ";", "}", "if", "(", "ProcessingMapDef", "!=", "SecName", ".", "startswith", "(", "", ")", ")", "continue", ";", "SmallVector", "<", "DIGlobalVariableExpression", "*", ",", "", ">", "GVs", ";", "Global", ".", "getDebugInfo", "(", "GVs", ")", ";", "if", "(", "GVs", ".", "size", "(", ")", "==", "", ")", "continue", ";", "uint32_t", "GVTypeId", "=", "", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakAnyLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalWeakLinkage", ")", "continue", ";", "uint32_t", "GVarInfo", ";", "if", "(", "Linkage", "==", "GlobalValue", "::", "InternalLinkage", ")", "{"], "ground_truth": ["GVarInfo", "=", "", ";"], "File": "BTFDebug15", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2460, "Length": 211, "Cover_Rate": 0.5035799522673031} {"Template_token": ["", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "processReloc", "(", "MI", "->", "getOperand", "(", "", ")", ")", ";", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "processReloc", "(", "MI", "->", "getOperand", "(", "", ")", ")", ";", "}", "const", "DebugLoc", "&", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "if", "(", "!", "DL", "||", "PrevInstLoc", "==", "DL", ")", "{", "if", "(", "LineInfoGenerated", "==", "false", ")", "{", "auto", "*", "S", "=", "MI", "->", "getMF", "(", ")", "->", "getFunction", "(", ")", ".", "getSubprogram", "(", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "constructLineInfo", "(", "S", ",", "FuncLabel", ",", "S", "->", "getLine", "(", ")", ",", "", ")", ";", "LineInfoGenerated", "=", "true", ";", "}", "return", ";", "}"], "ground_truth": ["MCSymbol", "*", "LineSym", "=", "OS", ".", "getContext", "(", ")", ".", "createTempSymbol", "(", ")", ";"], "File": "BTFDebug16", "Func": "beginInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2461, "Length": 154, "Cover_Rate": 0.47530864197530864} {"Template_token": ["", "FieldReloc", ".", "Label", "=", "ORSym", ";", "FieldReloc", ".", "OffsetNameOff", "=", "addString", "(", "IndexPattern", ")", ";", "FieldReloc", ".", "TypeID", "=", "RootId", ";", "FieldReloc", ".", "RelocKind", "=", "std", "::", "stoull", "(", "RelocKindStr", ")", ";", "PatchImms", "[", "AccessPattern", ".", "str", "(", ")", "]", "=", "std", "::", "stoul", "(", "PatchImmStr", ")", ";"], "ground_truth": ["FieldRelocTable", "[", "SecNameOff", "]", ".", "push_back", "(", "FieldReloc", ")", ";"], "File": "BTFDebug16", "Func": "generateFieldReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2462, "Length": 58, "Cover_Rate": 0.3493975903614458} {"Template_token": ["", "size_t", "SecondColon", "=", "AccessPattern", ".", "find_first_of", "(", "':'", ",", "FirstColon", "+", "", ")", ";", "StringRef", "IndexPattern", "=", "AccessPattern", ".", "substr", "(", "FirstDollar", "+", "", ")", ";", "StringRef", "RelocKindStr", "=", "AccessPattern", ".", "substr", "(", "FirstColon", "+", "", ",", "SecondColon", "-", "FirstColon", ")", ";", "StringRef", "PatchImmStr", "=", "AccessPattern", ".", "substr", "(", "SecondColon", "+", "", ",", "FirstDollar", "-", "SecondColon", ")", ";", "BTFFieldReloc", "FieldReloc", ";", "FieldReloc", ".", "Label", "=", "ORSym", ";", "FieldReloc", ".", "OffsetNameOff", "=", "addString", "(", "IndexPattern", ")", ";"], "ground_truth": ["FieldReloc", ".", "TypeID", "=", "RootId", ";"], "File": "BTFDebug16", "Func": "generateFieldReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2463, "Length": 82, "Cover_Rate": 0.4939759036144578} {"Template_token": ["", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", "&&", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "uint32_t", "Imm", "=", "PatchImms", "[", "GVar", "->", "getName", "(", ")", ".", "str", "(", ")", "]", ";", "OutMI", ".", "setOpcode", "(", "", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", ")", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "BTFDebug16", "Func": "InstLower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2464, "Length": 116, "Cover_Rate": 0.3109919571045576} {"Template_token": ["", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", "&&", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "MCSymbol", "*", "ORSym", "=", "OS", ".", "getContext", "(", ")", ".", "createTempSymbol", "(", ")", ";", "OS", ".", "EmitLabel", "(", "ORSym", ")", ";", "MDNode", "*", "MDN", "=", "GVar", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "DIType", "*", "Ty", "=", "dyn_cast", "<", "DIType", ">", "(", "MDN", ")", ";", "generateFieldReloc", "(", "ORSym", ",", "Ty", ",", "GVar", "->", "getName", "(", ")", ")", ";", "}", "}"], "ground_truth": ["}"], "File": "BTFDebug16", "Func": "processReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2465, "Length": 86, "Cover_Rate": 0.7226890756302521} {"Template_token": ["", "size_t", "FirstDollar", "=", "AccessPattern", ".", "find_first_of", "(", "'$'", ")", ";", "size_t", "FirstColon", "=", "AccessPattern", ".", "find_first_of", "(", "':'", ")", ";", "size_t", "SecondColon", "=", "AccessPattern", ".", "find_first_of", "(", "':'", ",", "FirstColon", "+", "", ")", ";", "StringRef", "IndexPattern", "=", "AccessPattern", ".", "substr", "(", "FirstDollar", "+", "", ")", ";", "StringRef", "RelocKindStr", "=", "AccessPattern", ".", "substr", "(", "FirstColon", "+", "", ",", "SecondColon", "-", "FirstColon", ")", ";"], "ground_truth": ["StringRef", "PatchImmStr", "=", "AccessPattern", ".", "substr", "(", "SecondColon", "+", "", ",", "FirstDollar", "-", "SecondColon", ")", ";"], "File": "BTFDebug17", "Func": "generateFieldReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2466, "Length": 78, "Cover_Rate": 0.4431818181818182} {"Template_token": ["", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", "&&", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{"], "ground_truth": ["MCSymbol", "*", "ORSym", "=", "OS", ".", "getContext", "(", ")", ".", "createTempSymbol", "(", ")", ";"], "File": "BTFDebug17", "Func": "processReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2467, "Length": 49, "Cover_Rate": 0.4117647058823529} {"Template_token": ["", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", "&&", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "MCSymbol", "*", "ORSym", "=", "OS", ".", "getContext", "(", ")", ".", "createTempSymbol", "(", ")", ";", "OS", ".", "emitLabel", "(", "ORSym", ")", ";"], "ground_truth": ["MDNode", "*", "MDN", "=", "GVar", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";"], "File": "BTFDebug17", "Func": "processReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2468, "Length": 69, "Cover_Rate": 0.5798319327731093} {"Template_token": ["", "auto", "*", "SP", "=", "MF", "->", "getFunction", "(", ")", ".", "getSubprogram", "(", ")", ";", "auto", "*", "Unit", "=", "SP", "->", "getUnit", "(", ")", ";", "if", "(", "Unit", "->", "getEmissionKind", "(", ")", "==", "DICompileUnit", "::", "NoDebug", ")", "{", "SkipInstruction", "=", "true", ";", "return", ";", "}", "SkipInstruction", "=", "false", ";", "if", "(", "MapDefNotCollected", ")", "{", "processGlobals", "(", "true", ")", ";", "MapDefNotCollected", "=", "false", ";", "}", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "FuncArgNames", ";", "for", "(", "const", "DINode", "*", "DN", ":", "SP", "->", "getRetainedNodes", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "DV", "=", "dyn_cast", "<", "DILocalVariable", ">", "(", "DN", ")", ")", "{", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "{", "visitTypeEntry", "(", "DV", "->", "getType", "(", ")", ")", ";", "FuncArgNames", "[", "Arg", "]", "=", "DV", "->", "getName", "(", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug18", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2469, "Length": 138, "Cover_Rate": 0.41194029850746267} {"Template_token": ["", "for", "(", ";", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "isDef", "(", ")", ";", "++", "NumDefs", ")", ";", "const", "char", "*", "AsmStr", "=", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "getSymbolName", "(", ")", ";", "if", "(", "AsmStr", "[", "", "]", "==", "", ")", "return", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "processReloc", "(", "MI", "->", "getOperand", "(", "", ")", ")", ";", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "processReloc", "(", "MI", "->", "getOperand", "(", "", ")", ")", ";", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "processFuncPrototypes", "(", "dyn_cast", "<", "Function", ">", "(", "MO", ".", "getGlobal", "(", ")", ")", ")", ";", "}", "}", "const", "DebugLoc", "&", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "if", "(", "!", "DL", "||", "PrevInstLoc", "==", "DL", ")", "{", "if", "(", "LineInfoGenerated", "==", "false", ")", "{", "auto", "*", "S", "=", "MI", "->", "getMF", "(", ")", "->", "getFunction", "(", ")", ".", "getSubprogram", "(", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";"], "ground_truth": ["constructLineInfo", "(", "S", ",", "FuncLabel", ",", "S", "->", "getLine", "(", ")", ",", "", ")", ";"], "File": "BTFDebug18", "Func": "beginInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2470, "Length": 239, "Cover_Rate": 0.6356382978723404} {"Template_token": ["", "if", "(", "Arg", ")", "{", "visitTypeEntry", "(", "DV", "->", "getType", "(", ")", ")", ";", "FuncArgNames", "[", "Arg", "]", "=", "DV", "->", "getName", "(", ")", ";", "}", "}", "}", "uint32_t", "ProtoTypeId", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "uint8_t", "Scope", "=", "SP", "->", "isLocalToUnit", "(", ")", "?", "", ":", "", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "Scope", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "for", "(", "const", "DINode", "*", "DN", ":", "SP", "->", "getRetainedNodes", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "DV", "=", "dyn_cast", "<", "DILocalVariable", ">", "(", "DN", ")", ")", "{", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "processAnnotations", "(", "DV", "->", "getAnnotations", "(", ")", ",", "FuncTypeId", ",", "Arg", "-", "", ")", ";", "}", "}", "processAnnotations", "(", "SP", "->", "getAnnotations", "(", ")", ",", "FuncTypeId", ",", "-", "", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "BTFFuncInfo", "FuncInfo", ";", "FuncInfo", ".", "Label", "=", "FuncLabel", ";", "FuncInfo", ".", "TypeId", "=", "FuncTypeId", ";"], "ground_truth": ["if", "(", "FuncLabel", "->", "isInSection", "(", ")", ")", "{"], "File": "BTFDebug19", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2471, "Length": 218, "Cover_Rate": 0.5330073349633252} {"Template_token": ["", "FuncArgNames", "[", "Arg", "]", "=", "DV", "->", "getName", "(", ")", ";", "}", "}", "}", "uint32_t", "ProtoTypeId", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "uint8_t", "Scope", "=", "SP", "->", "isLocalToUnit", "(", ")", "?", "", ":", "", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "Scope", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "for", "(", "const", "DINode", "*", "DN", ":", "SP", "->", "getRetainedNodes", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "DV", "=", "dyn_cast", "<", "DILocalVariable", ">", "(", "DN", ")", ")", "{", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "processAnnotations", "(", "DV", "->", "getAnnotations", "(", ")", ",", "FuncTypeId", ",", "Arg", "-", "", ")", ";", "}", "}"], "ground_truth": ["processAnnotations", "(", "SP", "->", "getAnnotations", "(", ")", ",", "FuncTypeId", ",", "-", "", ")", ";"], "File": "BTFDebug19", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2472, "Length": 153, "Cover_Rate": 0.3740831295843521} {"Template_token": ["", "BTFType", ".", "Info", "=", "(", "(", "ComponentId", "<", "", ")", "<<", "", ")", "|", "(", "Kind", "<<", "", ")", ";", "BTFType", ".", "Type", "=", "BaseTypeId", ";", "Info", "=", "ComponentId", "<", "", "?", "", ":", "ComponentId", ";"], "ground_truth": ["}"], "File": "BTFDebug19", "Func": "BTFTypeTag", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2473, "Length": 37, "Cover_Rate": 0.5967741935483871} {"Template_token": ["", "Kind", "=", "", ";", "BTFType", ".", "Info", "=", "(", "(", "ComponentId", "<", "", ")", "<<", "", ")", "|", "(", "Kind", "<<", "", ")", ";", "BTFType", ".", "Type", "=", "BaseTypeId", ";"], "ground_truth": ["Info", "=", "ComponentId", "<", "", "?", "", ":", "ComponentId", ";"], "File": "BTFDebug19", "Func": "BTFTypeTag", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2474, "Length": 40, "Cover_Rate": 0.6451612903225806} {"Template_token": ["", "void", "BTFTypeTag", "::", "completeType", "(", "BTFDebug", "&", "BDebug", ")", "{", "if", "(", "IsCompleted", ")", "return", ";", "IsCompleted", "=", "true", ";", "BTFType", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "Tag", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug19", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2475, "Length": 32, "Cover_Rate": 1.0} {"Template_token": ["", "BTFType", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "Tag", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug19", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2476, "Length": 12, "Cover_Rate": 0.375} {"Template_token": ["", "", "(", "OS", ")", ";"], "ground_truth": ["OS", ".", "emitInt32", "(", "Info", ")", ";"], "File": "BTFDebug19", "Func": "emitType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2477, "Length": 12, "Cover_Rate": 0.48} {"Template_token": ["", "const", "MDNode", "*", "MD", "=", "cast", "<", "MDNode", ">", "(", "Annotation", ")", ";", "const", "MDString", "*", "Name", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "Name", "->", "getString", "(", ")", ".", "equals", "(", "", ")", ")", "continue", ";"], "ground_truth": ["const", "MDString", "*", "Value", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";"], "File": "BTFDebug19", "Func": "processAnnotations", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2478, "Length": 65, "Cover_Rate": 0.48507462686567165} {"Template_token": ["", "uint8_t", "Scope", "=", "", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "Scope", ")", ";", "uint32_t", "FuncId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "processAnnotations", "(", "SP", "->", "getAnnotations", "(", ")", ",", "FuncId", ",", "-", "", ")", ";", "if", "(", "F", "->", "hasSection", "(", ")", ")", "{", "StringRef", "SecName", "=", "F", "->", "getSection", "(", ")", ";", "if", "(", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}"], "ground_truth": ["DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "->", "addDataSecEntry", "(", "FuncId", ",", "Asm", "->", "getSymbol", "(", "F", ")", ",", "", ")", ";"], "File": "BTFDebug19", "Func": "processFuncPrototypes", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2479, "Length": 144, "Cover_Rate": 0.5925925925925926} {"Template_token": ["", "if", "(", "!", "SP", "||", "SP", "->", "isDefinition", "(", ")", ")", "return", ";", "if", "(", "ProtoFunctions", ".", "find", "(", "F", ")", "!=", "ProtoFunctions", ".", "end", "(", ")", ")", "return", ";", "ProtoFunctions", ".", "insert", "(", "F", ")", ";", "uint32_t", "ProtoTypeId", ";", "const", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "FuncArgNames", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "false", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "uint8_t", "Scope", "=", "", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "Scope", ")", ";", "uint32_t", "FuncId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "processAnnotations", "(", "SP", "->", "getAnnotations", "(", ")", ",", "FuncId", ",", "-", "", ")", ";", "if", "(", "F", "->", "hasSection", "(", ")", ")", "{", "StringRef", "SecName", "=", "F", "->", "getSection", "(", ")", ";", "if", "(", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug19", "Func": "processFuncPrototypes", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2480, "Length": 186, "Cover_Rate": 0.7654320987654321} {"Template_token": ["", "if", "(", "SecName", "==", "", "&&", "Global", ".", "hasPrivateLinkage", "(", ")", "&&", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "SectionKind", "GVKind", "=", "TargetLoweringObjectFile", "::", "getKindForGlobal", "(", "&", "Global", ",", "Asm", "->", "TM", ")", ";", "if", "(", "!", "GVKind", ".", "isMergeableCString", "(", ")", "&&", "!", "GVKind", ".", "isMergeableConst", "(", ")", ")", "{", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}", "}", "SmallVector", "<", "DIGlobalVariableExpression", "*", ",", "", ">", "GVs", ";", "Global", ".", "getDebugInfo", "(", "GVs", ")", ";", "if", "(", "GVs", ".", "size", "(", ")", "==", "", ")", "continue", ";", "uint32_t", "GVTypeId", "=", "", ";", "DIGlobalVariable", "*", "DIGlobal", "=", "nullptr", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "DIGlobal", "=", "GVE", "->", "getVariable", "(", ")", ";", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "DIGlobal", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "DIGlobal", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakAnyLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakODRLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalWeakLinkage", ")", "continue", ";", "uint32_t", "GVarInfo", ";", "if", "(", "Linkage", "==", "GlobalValue", "::", "InternalLinkage", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "if", "(", "Global", ".", "hasInitializer", "(", ")", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "{", "GVarInfo", "=", "", ";", "}", "auto", "VarEntry", "=", "std", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "processAnnotations", "(", "DIGlobal", "->", "getAnnotations", "(", ")", ",", "VarId", ",", "-", "", ")", ";", "if", "(", "SecName", ".", "empty", "(", ")", ")", "continue", ";", "if", "(", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}", "const", "DataLayout", "&", "DL", "=", "Global", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "uint32_t", "Size", "=", "DL", ".", "getTypeAllocSize", "(", "Global", ".", "getType", "(", ")", "->", "getElementType", "(", ")", ")", ";", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "->", "addDataSecEntry", "(", "VarId", ",", "Asm", "->", "getSymbol", "(", "&", "Global", ")", ",", "Size", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug19", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2481, "Length": 436, "Cover_Rate": 0.7927272727272727} {"Template_token": ["", "uint32_t", "Offset", "=", "Size", ";", "OffsetToIdMap", "[", "Offset", "]", "=", "Table", ".", "size", "(", ")", ";"], "ground_truth": ["Table", ".", "push_back", "(", "std", "::", "string", "(", "S", ")", ")", ";"], "File": "BTFDebug1", "Func": "addString", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2482, "Length": 28, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "OffsetToIdMap", "[", "Offset", "]", "=", "Table", ".", "size", "(", ")", ";", "Table", ".", "push_back", "(", "std", "::", "string", "(", "S", ")", ")", ";", "Size", "+=", "S", ".", "size", "(", ")", "+", "", ";"], "ground_truth": ["return", "Offset", ";"], "File": "BTFDebug1", "Func": "addString", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2483, "Length": 36, "Cover_Rate": 0.4675324675324675} {"Template_token": ["", "TypeEntry", "->", "setId", "(", "TypeEntries", ".", "size", "(", ")", "+", "", ")", ";", "uint32_t", "Id", "=", "TypeEntry", "->", "getId", "(", ")", ";", "DIToIdMap", "[", "Ty", "]", "=", "Id", ";", "TypeEntries", ".", "push_back", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "return", "Id", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "addType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2484, "Length": 45, "Cover_Rate": 0.703125} {"Template_token": ["", "Vars", ".", "push_back", "(", "std", "::", "make_tuple", "(", "Id", ",", "Sym", ",", "Size", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "addVar", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2485, "Length": 17, "Cover_Rate": 0.53125} {"Template_token": ["", "Vars", ".", "push_back", "(", "std", "::", "make_tuple", "(", "Id", ",", "Sym", ",", "Size", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "addVar", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2486, "Length": 17, "Cover_Rate": 0.53125} {"Template_token": ["", "uint32_t", "ProtoTypeId", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "uint8_t", "Scope", "=", "SP", "->", "isLocalToUnit", "(", ")", "?", "", ":", "", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "Scope", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "for", "(", "const", "DINode", "*", "DN", ":", "SP", "->", "getRetainedNodes", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "DV", "=", "dyn_cast", "<", "DILocalVariable", ">", "(", "DN", ")", ")", "{", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "processDeclAnnotations", "(", "DV", "->", "getAnnotations", "(", ")", ",", "FuncTypeId", ",", "Arg", "-", "", ")", ";", "}", "}", "processDeclAnnotations", "(", "SP", "->", "getAnnotations", "(", ")", ",", "FuncTypeId", ",", "-", "", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "BTFFuncInfo", "FuncInfo", ";"], "ground_truth": ["FuncInfo", ".", "Label", "=", "FuncLabel", ";"], "File": "BTFDebug1", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2487, "Length": 175, "Cover_Rate": 0.4278728606356968} {"Template_token": ["", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "{", "visitTypeEntry", "(", "DV", "->", "getType", "(", ")", ")", ";", "FuncArgNames", "[", "Arg", "]", "=", "DV", "->", "getName", "(", ")", ";", "}", "}", "}", "uint32_t", "ProtoTypeId", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "uint8_t", "Scope", "=", "SP", "->", "isLocalToUnit", "(", ")", "?", "", ":", "", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "Scope", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "for", "(", "const", "DINode", "*", "DN", ":", "SP", "->", "getRetainedNodes", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "DV", "=", "dyn_cast", "<", "DILocalVariable", ">", "(", "DN", ")", ")", "{", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "processDeclAnnotations", "(", "DV", "->", "getAnnotations", "(", ")", ",", "FuncTypeId", ",", "Arg", "-", "", ")", ";", "}", "}", "processDeclAnnotations", "(", "SP", "->", "getAnnotations", "(", ")", ",", "FuncTypeId", ",", "-", "", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "BTFFuncInfo", "FuncInfo", ";", "FuncInfo", ".", "Label", "=", "FuncLabel", ";", "FuncInfo", ".", "TypeId", "=", "FuncTypeId", ";", "if", "(", "FuncLabel", "->", "isInSection", "(", ")", ")", "{"], "ground_truth": ["MCSection", "&", "Section", "=", "FuncLabel", "->", "getSection", "(", ")", ";"], "File": "BTFDebug1", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2488, "Length": 237, "Cover_Rate": 0.5794621026894865} {"Template_token": ["", "for", "(", ";", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "isDef", "(", ")", ";", "++", "NumDefs", ")", ";", "const", "char", "*", "AsmStr", "=", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "getSymbolName", "(", ")", ";", "if", "(", "AsmStr", "[", "", "]", "==", "", ")", "return", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "processGlobalValue", "(", "MI", "->", "getOperand", "(", "", ")", ")", ";", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "processGlobalValue", "(", "MI", "->", "getOperand", "(", "", ")", ")", ";", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "processFuncPrototypes", "(", "dyn_cast", "<", "Function", ">", "(", "MO", ".", "getGlobal", "(", ")", ")", ")", ";", "}", "}", "if", "(", "!", "CurMI", ")", "return", ";", "const", "DebugLoc", "&", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "if", "(", "!", "DL", "||", "PrevInstLoc", "==", "DL", ")", "{", "if", "(", "LineInfoGenerated", "==", "false", ")", "{", "auto", "*", "S", "=", "MI", "->", "getMF", "(", ")", "->", "getFunction", "(", ")", ".", "getSubprogram", "(", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "constructLineInfo", "(", "S", ",", "FuncLabel", ",", "S", "->", "getLine", "(", ")", ",", "", ")", ";", "LineInfoGenerated", "=", "true", ";", "}", "return", ";", "}", "MCSymbol", "*", "LineSym", "=", "OS", ".", "getContext", "(", ")", ".", "createTempSymbol", "(", ")", ";", "OS", ".", "emitLabel", "(", "LineSym", ")", ";", "auto", "SP", "=", "DL", ".", "get", "(", ")", "->", "getScope", "(", ")", "->", "getSubprogram", "(", ")", ";"], "ground_truth": ["constructLineInfo", "(", "SP", ",", "LineSym", ",", "DL", ".", "getLine", "(", ")", ",", "DL", ".", "getCol", "(", ")", ")", ";"], "File": "BTFDebug1", "Func": "beginInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2489, "Length": 311, "Cover_Rate": 0.8120104438642297} {"Template_token": ["", "BTFDebug", "::", "BTFDebug", "(", "AsmPrinter", "*", "AP", ")", ":", "DebugHandlerBase", "(", "AP", ")", ",", "OS", "(", "*", "Asm", "->", "OutStreamer", ")", ",", "SkipInstruction", "(", "false", ")", ",", "LineInfoGenerated", "(", "false", ")", ",", "SecNameOff", "(", "", ")", ",", "ArrayIndexTypeId", "(", "", ")", ",", "MapDefNotCollected", "(", "true", ")", "{"], "ground_truth": ["addString", "(", "", ")", ";"], "File": "BTFDebug1", "Func": "BTFDebug", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2490, "Length": 52, "Cover_Rate": 0.9811320754716981} {"Template_token": ["", "BTFKindDataSec", "::", "BTFKindDataSec", "(", "AsmPrinter", "*", "AsmPrt", ",", "std", "::", "string", "SecName", ")", ":", "Asm", "(", "AsmPrt", ")", ",", "Name", "(", "SecName", ")", "{", "Kind", "=", "", ";"], "ground_truth": ["BTFType", ".", "Info", "=", "Kind", "<<", "", ";"], "File": "BTFDebug1", "Func": "BTFKindDataSec", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2491, "Length": 36, "Cover_Rate": 0.8} {"Template_token": ["", "", "(", "StringRef", "VarName", ",", "uint32_t", "TypeId", ",", "uint32_t", "VarInfo", ")", ":", "Name", "(", "VarName", ")", "{", "Kind", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";", "BTFType", ".", "Type", "=", "TypeId", ";"], "ground_truth": ["Info", "=", "VarInfo", ";"], "File": "BTFDebug1", "Func": "BTFKindVar", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2492, "Length": 39, "Cover_Rate": 0.8863636363636364} {"Template_token": ["", "BTFTypeArray", "::", "BTFTypeArray", "(", "uint32_t", "ElemTypeId", ",", "uint32_t", "NumElems", ")", "{", "Kind", "=", "", ";", "BTFType", ".", "NameOff", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";", "BTFType", ".", "Size", "=", "", ";"], "ground_truth": ["ArrayInfo", ".", "ElemType", "=", "ElemTypeId", ";"], "File": "BTFDebug1", "Func": "BTFTypeArray", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2493, "Length": 41, "Cover_Rate": 0.82} {"Template_token": ["", "BTFTypeDeclTag", "::", "BTFTypeDeclTag", "(", "uint32_t", "BaseTypeId", ",", "int", "ComponentIdx", ",", "StringRef", "Tag", ")", ":", "Tag", "(", "Tag", ")", "{", "Kind", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";", "BTFType", ".", "Type", "=", "BaseTypeId", ";"], "ground_truth": ["Info", "=", "ComponentIdx", ";"], "File": "BTFDebug1", "Func": "BTFTypeDeclTag", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2494, "Length": 41, "Cover_Rate": 0.9318181818181818} {"Template_token": ["", "", "(", "uint32_t", "SizeInBits", ",", "StringRef", "TypeName", ")", ":", "Name", "(", "TypeName", ")", "{", "Kind", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";"], "ground_truth": ["BTFType", ".", "Size", "=", "roundupToBytes", "(", "SizeInBits", ")", ";"], "File": "BTFDebug1", "Func": "BTFTypeFloat", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2495, "Length": 35, "Cover_Rate": 0.875} {"Template_token": ["", "void", "BTFTypeDeclTag", "::", "completeType", "(", "BTFDebug", "&", "BDebug", ")", "{", "if", "(", "IsCompleted", ")", "return", ";", "IsCompleted", "=", "true", ";"], "ground_truth": ["BTFType", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "Tag", ")", ";"], "File": "BTFDebug1", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2497, "Length": 31, "Cover_Rate": 0.96875} {"Template_token": ["", "IsCompleted", "=", "true", ";"], "ground_truth": ["BTFType", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "Tag", ")", ";"], "File": "BTFDebug1", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2498, "Length": 15, "Cover_Rate": 0.46875} {"Template_token": ["", "if", "(", "FieldRelocLen", ")", "FieldRelocLen", "+=", "", ";", "OS", ".", "emitInt32", "(", "", ")", ";", "OS", ".", "emitInt32", "(", "FuncLen", ")", ";", "OS", ".", "emitInt32", "(", "FuncLen", ")", ";", "OS", ".", "emitInt32", "(", "LineLen", ")", ";", "OS", ".", "emitInt32", "(", "FuncLen", "+", "LineLen", ")", ";", "OS", ".", "emitInt32", "(", "FieldRelocLen", ")", ";", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "emitInt32", "(", "", ")", ";", "for", "(", "const", "auto", "&", "FuncSec", ":", "FuncInfoTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "FuncSec", ".", "first", ")", ")", ";", "OS", ".", "emitInt32", "(", "FuncSec", ".", "first", ")", ";", "OS", ".", "emitInt32", "(", "FuncSec", ".", "second", ".", "size", "(", ")", ")", ";", "for", "(", "const", "auto", "&", "FuncInfo", ":", "FuncSec", ".", "second", ")", "{", "Asm", "->", "emitLabelReference", "(", "FuncInfo", ".", "Label", ",", "", ")", ";", "OS", ".", "emitInt32", "(", "FuncInfo", ".", "TypeId", ")", ";", "}", "}", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "emitInt32", "(", "", ")", ";", "for", "(", "const", "auto", "&", "LineSec", ":", "LineInfoTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "LineSec", ".", "first", ")", ")", ";", "OS", ".", "emitInt32", "(", "LineSec", ".", "first", ")", ";", "OS", ".", "emitInt32", "(", "LineSec", ".", "second", ".", "size", "(", ")", ")", ";", "for", "(", "const", "auto", "&", "LineInfo", ":", "LineSec", ".", "second", ")", "{", "Asm", "->", "emitLabelReference", "(", "LineInfo", ".", "Label", ",", "", ")", ";", "OS", ".", "emitInt32", "(", "LineInfo", ".", "FileNameOff", ")", ";", "OS", ".", "emitInt32", "(", "LineInfo", ".", "LineOff", ")", ";", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "LineInfo", ".", "LineNum", ")", "+", "", "+", "std", "::", "to_string", "(", "LineInfo", ".", "ColumnNum", ")", ")", ";", "OS", ".", "emitInt32", "(", "LineInfo", ".", "LineNum", "<<", "", "|", "LineInfo", ".", "ColumnNum", ")", ";", "}", "}", "if", "(", "FieldRelocLen", ")", "{", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "emitInt32", "(", "", ")", ";", "for", "(", "const", "auto", "&", "FieldRelocSec", ":", "FieldRelocTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "FieldRelocSec", ".", "first", ")", ")", ";", "OS", ".", "emitInt32", "(", "FieldRelocSec", ".", "first", ")", ";", "OS", ".", "emitInt32", "(", "FieldRelocSec", ".", "second", ".", "size", "(", ")", ")", ";"], "ground_truth": ["for", "(", "const", "auto", "&", "FieldRelocInfo", ":", "FieldRelocSec", ".", "second", ")", "{"], "File": "BTFDebug1", "Func": "emitBTFExtSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2499, "Length": 374, "Cover_Rate": 0.6051779935275081} {"Template_token": ["", "emitCommonHeader", "(", ")", ";", "OS", ".", "emitInt32", "(", "", ")", ";", "uint32_t", "TypeLen", "=", "", ",", "StrLen", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeLen", "+=", "TypeEntry", "->", "getSize", "(", ")", ";", "StrLen", "=", "StringTable", ".", "getSize", "(", ")", ";", "OS", ".", "emitInt32", "(", "", ")", ";", "OS", ".", "emitInt32", "(", "TypeLen", ")", ";", "OS", ".", "emitInt32", "(", "TypeLen", ")", ";", "OS", ".", "emitInt32", "(", "StrLen", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "emitType", "(", "OS", ")", ";", "uint32_t", "StringOffset", "=", "", ";", "for", "(", "const", "auto", "&", "S", ":", "StringTable", ".", "getTable", "(", ")", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "StringOffset", ")", ")", ";", "OS", ".", "emitBytes", "(", "S", ")", ";", "OS", ".", "emitBytes", "(", "StringRef", "(", "", ",", "", ")", ")", ";"], "ground_truth": ["StringOffset", "+=", "S", ".", "size", "(", ")", "+", "", ";"], "File": "BTFDebug1", "Func": "emitBTFSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2500, "Length": 149, "Cover_Rate": 0.6681614349775785} {"Template_token": ["", "void", "BTFDebug", "::", "emitBTFSection", "(", ")", "{", "if", "(", "!", "TypeEntries", ".", "size", "(", ")", "&&", "StringTable", ".", "getSize", "(", ")", "==", "", ")", "return", ";", "MCContext", "&", "Ctx", "=", "OS", ".", "getContext", "(", ")", ";", "MCSectionELF", "*", "Sec", "=", "Ctx", ".", "getELFSection", "(", "", ",", "ELF", "::", "SHT_PROGBITS", ",", "", ")", ";", "Sec", "->", "setAlignment", "(", "Align", "(", "", ")", ")", ";", "OS", ".", "SwitchSection", "(", "Sec", ")", ";", "emitCommonHeader", "(", ")", ";", "OS", ".", "emitInt32", "(", "", ")", ";", "uint32_t", "TypeLen", "=", "", ",", "StrLen", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeLen", "+=", "TypeEntry", "->", "getSize", "(", ")", ";", "StrLen", "=", "StringTable", ".", "getSize", "(", ")", ";"], "ground_truth": ["OS", ".", "emitInt32", "(", "", ")", ";"], "File": "BTFDebug1", "Func": "emitBTFSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2501, "Length": 120, "Cover_Rate": 0.5381165919282511} {"Template_token": ["", "OS", ".", "AddComment", "(", "", "+", "Twine", "::", "utohexstr", "(", "", ")", ")", ";", "OS", ".", "emitIntValue", "(", "", ",", "", ")", ";", "OS", ".", "emitInt8", "(", "", ")", ";", "OS", ".", "emitInt8", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "emitCommonHeader", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2502, "Length": 38, "Cover_Rate": 0.7450980392156863} {"Template_token": ["", "OS", ".", "emitIntValue", "(", "", ",", "", ")", ";", "OS", ".", "emitInt8", "(", "", ")", ";", "OS", ".", "emitInt8", "(", "", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "emitCommonHeader", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2503, "Length": 24, "Cover_Rate": 0.47058823529411764} {"Template_token": ["", "", "(", "OS", ")", ";", "OS", ".", "emitInt32", "(", "Info", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "emitType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2504, "Length": 13, "Cover_Rate": 0.52} {"Template_token": ["", "", "(", "OS", ")", ";"], "ground_truth": ["OS", ".", "emitInt32", "(", "Info", ")", ";"], "File": "BTFDebug1", "Func": "emitType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2505, "Length": 12, "Cover_Rate": 0.48} {"Template_token": ["", "processGlobals", "(", "true", ")", ";", "MapDefNotCollected", "=", "false", ";", "}", "processGlobals", "(", "false", ")", ";", "for", "(", "auto", "&", "DataSec", ":", "DataSecEntries", ")", "addType", "(", "std", "::", "move", "(", "DataSec", ".", "second", ")", ")", ";", "for", "(", "auto", "&", "Fixup", ":", "FixupDerivedTypes", ")", "{", "StringRef", "TypeName", "=", "Fixup", ".", "first", ";", "bool", "IsUnion", "=", "Fixup", ".", "second", ".", "first", ";", "uint32_t", "StructTypeId", "=", "", ";", "for", "(", "const", "auto", "&", "StructType", ":", "StructTypes", ")", "{", "if", "(", "StructType", "->", "getName", "(", ")", "==", "TypeName", ")", "{", "StructTypeId", "=", "StructType", "->", "getId", "(", ")", ";", "break", ";", "}", "}", "if", "(", "StructTypeId", "==", "", ")", "{", "auto", "FwdTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFwd", ">", "(", "TypeName", ",", "IsUnion", ")", ";", "StructTypeId", "=", "addType", "(", "std", "::", "move", "(", "FwdTypeEntry", ")", ")", ";", "}", "for", "(", "auto", "&", "DType", ":", "Fixup", ".", "second", ".", "second", ")", "{", "DType", "->", "setPointeeType", "(", "StructTypeId", ")", ";", "}", "}"], "ground_truth": ["for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";"], "File": "BTFDebug1", "Func": "endModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2506, "Length": 172, "Cover_Rate": 0.8911917098445595} {"Template_token": ["", "processGlobals", "(", "false", ")", ";", "for", "(", "auto", "&", "DataSec", ":", "DataSecEntries", ")", "addType", "(", "std", "::", "move", "(", "DataSec", ".", "second", ")", ")", ";", "for", "(", "auto", "&", "Fixup", ":", "FixupDerivedTypes", ")", "{", "StringRef", "TypeName", "=", "Fixup", ".", "first", ";", "bool", "IsUnion", "=", "Fixup", ".", "second", ".", "first", ";", "uint32_t", "StructTypeId", "=", "", ";", "for", "(", "const", "auto", "&", "StructType", ":", "StructTypes", ")", "{", "if", "(", "StructType", "->", "getName", "(", ")", "==", "TypeName", ")", "{", "StructTypeId", "=", "StructType", "->", "getId", "(", ")", ";", "break", ";", "}", "}", "if", "(", "StructTypeId", "==", "", ")", "{", "auto", "FwdTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFwd", ">", "(", "TypeName", ",", "IsUnion", ")", ";", "StructTypeId", "=", "addType", "(", "std", "::", "move", "(", "FwdTypeEntry", ")", ")", ";", "}", "for", "(", "auto", "&", "DType", ":", "Fixup", ".", "second", ".", "second", ")", "{", "DType", "->", "setPointeeType", "(", "StructTypeId", ")", ";", "}", "}", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";"], "ground_truth": ["emitBTFSection", "(", ")", ";"], "File": "BTFDebug1", "Func": "endModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2507, "Length": 166, "Cover_Rate": 0.8601036269430051} {"Template_token": ["", "FieldReloc", ".", "RelocKind", "=", "std", "::", "stoull", "(", "std", "::", "string", "(", "RelocKindStr", ")", ")", ";", "PatchImms", "[", "GVar", "]", "=", "std", "::", "make_pair", "(", "std", "::", "stoll", "(", "std", "::", "string", "(", "PatchImmStr", ")", ")", ",", "FieldReloc", ".", "RelocKind", ")", ";", "}", "else", "{", "StringRef", "RelocStr", "=", "AccessPattern", ".", "substr", "(", "FirstDollar", "+", "", ")", ";", "FieldReloc", ".", "OffsetNameOff", "=", "addString", "(", "", ")", ";", "FieldReloc", ".", "RelocKind", "=", "std", "::", "stoull", "(", "std", "::", "string", "(", "RelocStr", ")", ")", ";", "PatchImms", "[", "GVar", "]", "=", "std", "::", "make_pair", "(", "RootId", ",", "FieldReloc", ".", "RelocKind", ")", ";", "}"], "ground_truth": ["FieldRelocTable", "[", "SecNameOff", "]", ".", "push_back", "(", "FieldReloc", ")", ";"], "File": "BTFDebug1", "Func": "generatePatchImmReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2508, "Length": 109, "Cover_Rate": 0.43951612903225806} {"Template_token": ["", "std", "::", "string", "BTFTypeStruct", "::", "getName", "(", ")", "{", "return", "std", "::", "string", "(", "STy", "->", "getName", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "getName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2509, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "std", "::", "string", "BTFTypeStruct", "::", "getName", "(", ")", "{", "return", "std", "::", "string", "(", "STy", "->", "getName", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "getName", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2510, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "GVar", "&&", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "uint32_t", "Imm", "=", "PatchImms", "[", "GVar", "]", ".", "first", ";", "OutMI", ".", "setOpcode", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ";", "if", "(", "MI", "->", "getOperand", "(", "", ")", ".", "isImm", "(", ")", ")", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ")", ";", "else", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", ")", ")", ";", "return", "true", ";", "}", "}"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "InstLower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2511, "Length": 133, "Cover_Rate": 0.30930232558139537} {"Template_token": ["", "if", "(", "!", "File", "->", "getFilename", "(", ")", ".", "startswith", "(", "", ")", "&&", "File", "->", "getDirectory", "(", ")", ".", "size", "(", ")", ")", "FileName", "=", "File", "->", "getDirectory", "(", ")", ".", "str", "(", ")", "+", "", "+", "File", "->", "getFilename", "(", ")", ".", "str", "(", ")", ";", "else", "FileName", "=", "std", "::", "string", "(", "File", "->", "getFilename", "(", ")", ")", ";"], "ground_truth": ["if", "(", "FileContent", ".", "find", "(", "FileName", ")", "!=", "FileContent", ".", "end", "(", ")", ")", "return", "FileName", ";"], "File": "BTFDebug1", "Func": "populateFileContent", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2512, "Length": 80, "Cover_Rate": 0.33613445378151263} {"Template_token": ["", "unsigned", "Id", ";", "visitTypeEntry", "(", "Ty", ",", "Id", ",", "false", ",", "false", ")", ";"], "ground_truth": ["for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";"], "File": "BTFDebug1", "Func": "populateType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2513, "Length": 31, "Cover_Rate": 0.6739130434782609} {"Template_token": ["", "unsigned", "Id", ";"], "ground_truth": ["visitTypeEntry", "(", "Ty", ",", "Id", ",", "false", ",", "false", ")", ";"], "File": "BTFDebug1", "Func": "populateType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2514, "Length": 14, "Cover_Rate": 0.30434782608695654} {"Template_token": ["", "for", "(", "const", "Metadata", "*", "Annotation", ":", "Annotations", "->", "operands", "(", ")", ")", "{", "const", "MDNode", "*", "MD", "=", "cast", "<", "MDNode", ">", "(", "Annotation", ")", ";", "const", "MDString", "*", "Name", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "Name", "->", "getString", "(", ")", ".", "equals", "(", "", ")", ")", "continue", ";", "const", "MDString", "*", "Value", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDeclTag", ">", "(", "BaseTypeId", ",", "ComponentIdx", ",", "Value", "->", "getString", "(", ")", ")", ";", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "processDeclAnnotations", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2515, "Length": 111, "Cover_Rate": 0.8283582089552238} {"Template_token": ["", "void", "BTFDebug", "::", "processDeclAnnotations", "(", "DINodeArray", "Annotations", ",", "uint32_t", "BaseTypeId", ",", "int", "ComponentIdx", ")", "{", "if", "(", "!", "Annotations", ")", "return", ";", "for", "(", "const", "Metadata", "*", "Annotation", ":", "Annotations", "->", "operands", "(", ")", ")", "{", "const", "MDNode", "*", "MD", "=", "cast", "<", "MDNode", ">", "(", "Annotation", ")", ";", "const", "MDString", "*", "Name", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "Name", "->", "getString", "(", ")", ".", "equals", "(", "", ")", ")", "continue", ";"], "ground_truth": ["const", "MDString", "*", "Value", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";"], "File": "BTFDebug1", "Func": "processDeclAnnotations", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2516, "Length": 101, "Cover_Rate": 0.753731343283582} {"Template_token": ["", "const", "DISubprogram", "*", "SP", "=", "F", "->", "getSubprogram", "(", ")", ";", "if", "(", "!", "SP", "||", "SP", "->", "isDefinition", "(", ")", ")", "return", ";", "if", "(", "ProtoFunctions", ".", "find", "(", "F", ")", "!=", "ProtoFunctions", ".", "end", "(", ")", ")", "return", ";", "ProtoFunctions", ".", "insert", "(", "F", ")", ";", "uint32_t", "ProtoTypeId", ";", "const", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "FuncArgNames", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "false", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "uint8_t", "Scope", "=", "", ";", "auto", "FuncTypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ",", "Scope", ")", ";", "uint32_t", "FuncId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";"], "ground_truth": ["processDeclAnnotations", "(", "SP", "->", "getAnnotations", "(", ")", ",", "FuncId", ",", "-", "", ")", ";"], "File": "BTFDebug1", "Func": "processFuncPrototypes", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2517, "Length": 130, "Cover_Rate": 0.5349794238683128} {"Template_token": ["", "SectionKind", "GVKind", "=", "TargetLoweringObjectFile", "::", "getKindForGlobal", "(", "&", "Global", ",", "Asm", "->", "TM", ")", ";", "if", "(", "!", "GVKind", ".", "isMergeableCString", "(", ")", "&&", "!", "GVKind", ".", "isMergeableConst", "(", ")", ")", "{", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}", "}", "SmallVector", "<", "DIGlobalVariableExpression", "*", ",", "", ">", "GVs", ";", "Global", ".", "getDebugInfo", "(", "GVs", ")", ";", "if", "(", "GVs", ".", "size", "(", ")", "==", "", ")", "continue", ";", "uint32_t", "GVTypeId", "=", "", ";", "DIGlobalVariable", "*", "DIGlobal", "=", "nullptr", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "DIGlobal", "=", "GVE", "->", "getVariable", "(", ")", ";", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "DIGlobal", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "DIGlobal", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakAnyLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakODRLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalWeakLinkage", ")", "continue", ";", "uint32_t", "GVarInfo", ";", "if", "(", "Linkage", "==", "GlobalValue", "::", "InternalLinkage", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "if", "(", "Global", ".", "hasInitializer", "(", ")", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "{", "GVarInfo", "=", "", ";", "}", "auto", "VarEntry", "=", "std", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "processDeclAnnotations", "(", "DIGlobal", "->", "getAnnotations", "(", ")", ",", "VarId", ",", "-", "", ")", ";", "if", "(", "SecName", ".", "empty", "(", ")", ")", "continue", ";", "if", "(", "DataSecEntries", ".", "find", "(", "std", "::", "string", "(", "SecName", ")", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}", "const", "DataLayout", "&", "DL", "=", "Global", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "uint32_t", "Size", "=", "DL", ".", "getTypeAllocSize", "(", "Global", ".", "getType", "(", ")", "->", "getElementType", "(", ")", ")", ";", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "->", "addDataSecEntry", "(", "VarId", ",", "Asm", "->", "getSymbol", "(", "&", "Global", ")", ",", "Size", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2518, "Length": 404, "Cover_Rate": 0.7345454545454545} {"Template_token": ["", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}", "}", "SmallVector", "<", "DIGlobalVariableExpression", "*", ",", "", ">", "GVs", ";", "Global", ".", "getDebugInfo", "(", "GVs", ")", ";", "if", "(", "GVs", ".", "size", "(", ")", "==", "", ")", "continue", ";", "uint32_t", "GVTypeId", "=", "", ";", "DIGlobalVariable", "*", "DIGlobal", "=", "nullptr", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "DIGlobal", "=", "GVE", "->", "getVariable", "(", ")", ";", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "DIGlobal", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "DIGlobal", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakAnyLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakODRLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalWeakLinkage", ")", "continue", ";", "uint32_t", "GVarInfo", ";", "if", "(", "Linkage", "==", "GlobalValue", "::", "InternalLinkage", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "if", "(", "Global", ".", "hasInitializer", "(", ")", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "{", "GVarInfo", "=", "", ";", "}", "auto", "VarEntry", "=", "std", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "processDeclAnnotations", "(", "DIGlobal", "->", "getAnnotations", "(", ")", ",", "VarId", ",", "-", "", ")", ";"], "ground_truth": ["if", "(", "SecName", ".", "empty", "(", ")", ")", "continue", ";"], "File": "BTFDebug1", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2519, "Length": 264, "Cover_Rate": 0.48} {"Template_token": ["", "void", "BTFDebug", "::", "processGlobalValue", "(", "const", "MachineOperand", "&", "MO", ")", "{", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "!", "GVar", ")", "{"], "ground_truth": ["processFuncPrototypes", "(", "dyn_cast", "<", "Function", ">", "(", "GVal", ")", ")", ";"], "File": "BTFDebug1", "Func": "processGlobalValue", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2520, "Length": 60, "Cover_Rate": 0.3870967741935484} {"Template_token": ["", "void", "BTFTypeDerived", "::", "setPointeeType", "(", "uint32_t", "PointeeType", ")", "{", "BTFType", ".", "Type", "=", "PointeeType", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "setPointeeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2522, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "const", "DISubrange", "*", "SR", "=", "cast", "<", "DISubrange", ">", "(", "Element", ")", ";", "auto", "*", "CI", "=", "SR", "->", "getCount", "(", ")", ".", "dyn_cast", "<", "ConstantInt", "*", ">", "(", ")", ";", "int64_t", "Count", "=", "CI", "->", "getSExtValue", "(", ")", ";", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeArray", ">", "(", "ElemTypeId", ",", "Count", ">=", "", "?", "Count", ":", "", ")", ";", "if", "(", "I", "==", "", ")", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";"], "ground_truth": ["else", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";"], "File": "BTFDebug1", "Func": "visitArrayType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2523, "Length": 94, "Cover_Rate": 0.3900414937759336} {"Template_token": ["", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeInt", ">", "(", "Encoding", ",", "BTy", "->", "getSizeInBits", "(", ")", ",", "BTy", "->", "getOffsetInBits", "(", ")", ",", "BTy", "->", "getName", "(", ")", ")", ";", "break", ";", "case", "dwarf", "::", "DW_ATE_float", ":", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFloat", ">", "(", "BTy", "->", "getSizeInBits", "(", ")", ",", "BTy", "->", "getName", "(", ")", ")", ";", "break", ";", "default", ":"], "ground_truth": ["return", ";"], "File": "BTFDebug1", "Func": "visitBasicType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2524, "Length": 65, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "case", "dwarf", "::", "DW_ATE_float", ":", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFloat", ">", "(", "BTy", "->", "getSizeInBits", "(", ")", ",", "BTy", "->", "getName", "(", ")", ")", ";", "break", ";", "default", ":", "return", ";", "}", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "BTy", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "visitBasicType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2525, "Length": 49, "Cover_Rate": 0.34265734265734266} {"Template_token": ["", "auto", "Tag", "=", "CTy", "->", "getTag", "(", ")", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_union_type", ")", "{", "if", "(", "CTy", "->", "isForwardDecl", "(", ")", ")", "visitFwdDeclType", "(", "CTy", ",", "Tag", "==", "dwarf", "::", "DW_TAG_union_type", ",", "TypeId", ")", ";", "else", "visitStructType", "(", "CTy", ",", "Tag", "==", "dwarf", "::", "DW_TAG_structure_type", ",", "TypeId", ")", ";", "}", "else", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_array_type", ")", "visitArrayType", "(", "CTy", ",", "TypeId", ")", ";"], "ground_truth": ["else", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_enumeration_type", ")", "visitEnumType", "(", "CTy", ",", "TypeId", ")", ";"], "File": "BTFDebug1", "Func": "visitCompositeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2526, "Length": 92, "Cover_Rate": 0.8518518518518519} {"Template_token": ["", "}", "if", "(", "CheckPointer", "&&", "SeenPointer", ")", "{", "const", "DIType", "*", "Base", "=", "DTy", "->", "getBaseType", "(", ")", ";", "if", "(", "Base", ")", "{", "if", "(", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "Base", ")", ")", "{", "auto", "CTag", "=", "CTy", "->", "getTag", "(", ")", ";", "if", "(", "(", "CTag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "CTag", "==", "dwarf", "::", "DW_TAG_union_type", ")", "&&", "!", "CTy", "->", "getName", "(", ")", ".", "empty", "(", ")", "&&", "!", "CTy", "->", "isForwardDecl", "(", ")", ")", "{", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "true", ")", ";", "auto", "&", "Fixup", "=", "FixupDerivedTypes", "[", "CTy", "->", "getName", "(", ")", "]", ";", "Fixup", ".", "first", "=", "CTag", "==", "dwarf", "::", "DW_TAG_union_type", ";", "Fixup", ".", "second", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "return", ";", "}", "}", "}", "}", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_pointer_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_typedef", "||", "Tag", "==", "dwarf", "::", "DW_TAG_const_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_volatile_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_restrict_type", ")", "{", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "false", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_typedef", ")", "processDeclAnnotations", "(", "DTy", "->", "getAnnotations", "(", ")", ",", "TypeId", ",", "-", "", ")", ";", "}", "else", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_member", ")", "{", "return", ";", "}", "uint32_t", "TempTypeId", "=", "", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_member", ")", "visitTypeEntry", "(", "DTy", "->", "getBaseType", "(", ")", ",", "TempTypeId", ",", "true", ",", "false", ")", ";", "else", "visitTypeEntry", "(", "DTy", "->", "getBaseType", "(", ")", ",", "TempTypeId", ",", "CheckPointer", ",", "SeenPointer", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug1", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2527, "Length": 302, "Cover_Rate": 0.867816091954023} {"Template_token": ["", "if", "(", "VLen", ">", "", ")", "return", ";", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeEnum", ">", "(", "CTy", ",", "VLen", ")", ";"], "ground_truth": ["TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";"], "File": "BTFDebug1", "Func": "visitEnumType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2528, "Length": 37, "Cover_Rate": 0.5068493150684932} {"Template_token": ["", "auto", "Tag", "=", "CTy", "->", "getTag", "(", ")", ";", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_structure_type", "||", "CTy", "->", "isForwardDecl", "(", ")", ")", "return", ";", "const", "DINodeArray", "Elements", "=", "CTy", "->", "getElements", "(", ")", ";", "for", "(", "const", "auto", "*", "Element", ":", "Elements", ")", "{", "const", "auto", "*", "MemberType", "=", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ";", "visitTypeEntry", "(", "MemberType", "->", "getBaseType", "(", ")", ")", ";", "}"], "ground_truth": ["visitTypeEntry", "(", "OrigTy", ",", "TypeId", ",", "false", ",", "false", ")", ";"], "File": "BTFDebug1", "Func": "visitMapDefType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2531, "Length": 79, "Cover_Rate": 0.37264150943396224} {"Template_token": ["", "break", ";", "}", "}", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeStruct", ">", "(", "CTy", ",", "IsStruct", ",", "HasBitField", ",", "VLen", ")", ";", "StructTypes", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "processDeclAnnotations", "(", "CTy", "->", "getAnnotations", "(", ")", ",", "TypeId", ",", "-", "", ")", ";"], "ground_truth": ["int", "FieldNo", "=", "", ";"], "File": "BTFDebug1", "Func": "visitStructType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2532, "Length": 67, "Cover_Rate": 0.3383838383838384} {"Template_token": ["", "void", "BTFDebug", "::", "visitSubroutineType", "(", "const", "DISubroutineType", "*", "STy", ",", "bool", "ForSubprog", ",", "const", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "&", "FuncArgNames", ",", "uint32_t", "&", "TypeId", ")", "{", "DITypeRefArray", "Elements", "=", "STy", "->", "getTypeArray", "(", ")", ";", "uint32_t", "VLen", "=", "Elements", ".", "size", "(", ")", "-", "", ";", "if", "(", "VLen", ">", "", ")", "return", ";", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeFuncProto", ">", "(", "STy", ",", "VLen", ",", "FuncArgNames", ")", ";", "if", "(", "ForSubprog", ")", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";"], "ground_truth": ["else", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "STy", ")", ";"], "File": "BTFDebug1", "Func": "visitSubroutineType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2533, "Length": 106, "Cover_Rate": 0.8548387096774194} {"Template_token": ["", "uint32_t", "TypeId", ";"], "ground_truth": ["visitTypeEntry", "(", "Ty", ",", "TypeId", ",", "false", ",", "false", ")", ";"], "File": "BTFDebug1", "Func": "visitTypeEntry", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2534, "Length": 14, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "void", "BTFDebug", "::", "visitTypeEntry", "(", "const", "DIType", "*", "Ty", ")", "{", "uint32_t", "TypeId", ";"], "ground_truth": ["visitTypeEntry", "(", "Ty", ",", "TypeId", ",", "false", ",", "false", ")", ";"], "File": "BTFDebug1", "Func": "visitTypeEntry", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2535, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "std", "::", "string", "BTFDebug", "::", "populateFileContent", "(", "const", "DISubprogram", "*", "SP", ")", "{", "auto", "File", "=", "SP", "->", "getFile", "(", ")", ";", "std", "::", "string", "FileName", ";", "if", "(", "!", "File", "->", "getFilename", "(", ")", ".", "startswith", "(", "", ")", "&&", "File", "->", "getDirectory", "(", ")", ".", "size", "(", ")", ")", "FileName", "=", "File", "->", "getDirectory", "(", ")", ".", "str", "(", ")", "+", "", "+", "File", "->", "getFilename", "(", ")", ".", "str", "(", ")", ";", "else", "FileName", "=", "File", "->", "getFilename", "(", ")", ";", "if", "(", "FileContent", ".", "find", "(", "FileName", ")", "!=", "FileContent", ".", "end", "(", ")", ")", "return", "FileName", ";", "std", "::", "vector", "<", "std", "::", "string", ">", "Content", ";", "std", "::", "string", "Line", ";", "Content", ".", "push_back", "(", "Line", ")", ";", "auto", "Source", "=", "File", "->", "getSource", "(", ")", ";", "if", "(", "Source", ")", "{", "std", "::", "istringstream", "InputString", "(", "Source", ".", "getValue", "(", ")", ")", ";", "while", "(", "std", "::", "getline", "(", "InputString", ",", "Line", ")", ")", "Content", ".", "push_back", "(", "Line", ")", ";"], "ground_truth": ["}", "else", "{"], "File": "BTFDebug20", "Func": "populateFileContent", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2536, "Length": 171, "Cover_Rate": 0.8181818181818182} {"Template_token": ["", "std", "::", "string", "BTFDebug", "::", "populateFileContent", "(", "const", "DISubprogram", "*", "SP", ")", "{", "auto", "File", "=", "SP", "->", "getFile", "(", ")", ";", "std", "::", "string", "FileName", ";", "if", "(", "!", "File", "->", "getFilename", "(", ")", ".", "startswith", "(", "", ")", "&&", "File", "->", "getDirectory", "(", ")", ".", "size", "(", ")", ")", "FileName", "=", "File", "->", "getDirectory", "(", ")", ".", "str", "(", ")", "+", "", "+", "File", "->", "getFilename", "(", ")", ".", "str", "(", ")", ";", "else", "FileName", "=", "File", "->", "getFilename", "(", ")", ";", "if", "(", "FileContent", ".", "find", "(", "FileName", ")", "!=", "FileContent", ".", "end", "(", ")", ")", "return", "FileName", ";", "std", "::", "vector", "<", "std", "::", "string", ">", "Content", ";", "std", "::", "string", "Line", ";"], "ground_truth": ["Content", ".", "push_back", "(", "Line", ")", ";"], "File": "BTFDebug20", "Func": "populateFileContent", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2537, "Length": 124, "Cover_Rate": 0.5933014354066986} {"Template_token": ["", "for", "(", "const", "auto", "&", "FuncSec", ":", "FuncInfoTable", ")", "{", "FuncLen", "+=", "", ";", "FuncLen", "+=", "FuncSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "for", "(", "const", "auto", "&", "LineSec", ":", "LineInfoTable", ")", "{", "LineLen", "+=", "", ";", "LineLen", "+=", "LineSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "for", "(", "const", "auto", "&", "FieldRelocSec", ":", "FieldRelocTable", ")", "{", "FieldRelocLen", "+=", "", ";", "FieldRelocLen", "+=", "FieldRelocSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "if", "(", "FieldRelocLen", ")", "FieldRelocLen", "+=", "", ";", "OS", ".", "emitIntValue", "(", "", ",", "", ")", ";", "OS", ".", "emitIntValue", "(", "FuncLen", ",", "", ")", ";", "OS", ".", "emitIntValue", "(", "FuncLen", ",", "", ")", ";", "OS", ".", "emitIntValue", "(", "LineLen", ",", "", ")", ";", "OS", ".", "emitIntValue", "(", "FuncLen", "+", "LineLen", ",", "", ")", ";", "OS", ".", "emitIntValue", "(", "FieldRelocLen", ",", "", ")", ";", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "emitIntValue", "(", "", ",", "", ")", ";", "for", "(", "const", "auto", "&", "FuncSec", ":", "FuncInfoTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "FuncSec", ".", "first", ")", ")", ";"], "ground_truth": ["OS", ".", "emitIntValue", "(", "FuncSec", ".", "first", ",", "", ")", ";"], "File": "BTFDebug21", "Func": "emitBTFExtSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2538, "Length": 198, "Cover_Rate": 0.3055555555555556} {"Template_token": ["", "MCContext", "&", "Ctx", "=", "OS", ".", "getContext", "(", ")", ";", "OS", ".", "SwitchSection", "(", "Ctx", ".", "getELFSection", "(", "", ",", "ELF", "::", "SHT_PROGBITS", ",", "", ")", ")", ";", "emitCommonHeader", "(", ")", ";", "OS", ".", "emitIntValue", "(", "", ",", "", ")", ";", "uint32_t", "TypeLen", "=", "", ",", "StrLen", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeLen", "+=", "TypeEntry", "->", "getSize", "(", ")", ";", "StrLen", "=", "StringTable", ".", "getSize", "(", ")", ";", "OS", ".", "emitIntValue", "(", "", ",", "", ")", ";"], "ground_truth": ["OS", ".", "emitIntValue", "(", "TypeLen", ",", "", ")", ";"], "File": "BTFDebug21", "Func": "emitBTFSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2539, "Length": 91, "Cover_Rate": 0.41935483870967744} {"Template_token": ["", "OS", ".", "emitIntValue", "(", "TypeLen", ",", "", ")", ";", "OS", ".", "emitIntValue", "(", "TypeLen", ",", "", ")", ";", "OS", ".", "emitIntValue", "(", "StrLen", ",", "", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "emitType", "(", "OS", ")", ";", "uint32_t", "StringOffset", "=", "", ";", "for", "(", "const", "auto", "&", "S", ":", "StringTable", ".", "getTable", "(", ")", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "StringOffset", ")", ")", ";"], "ground_truth": ["OS", ".", "emitBytes", "(", "S", ")", ";"], "File": "BTFDebug21", "Func": "emitBTFSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2540, "Length": 83, "Cover_Rate": 0.3824884792626728} {"Template_token": ["", "OS", ".", "AddComment", "(", "", "+", "Twine", "::", "utohexstr", "(", "", ")", ")", ";", "OS", ".", "emitIntValue", "(", "", ",", "", ")", ";"], "ground_truth": ["OS", ".", "emitIntValue", "(", "", ",", "", ")", ";"], "File": "BTFDebug21", "Func": "emitCommonHeader", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2541, "Length": 32, "Cover_Rate": 0.5818181818181818} {"Template_token": ["", "OS", ".", "emitIntValue", "(", "", ",", "", ")", ";", "OS", ".", "emitIntValue", "(", "", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug21", "Func": "emitCommonHeader", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2542, "Length": 19, "Cover_Rate": 0.34545454545454546} {"Template_token": ["", "Asm", "->", "emitLabelReference", "(", "std", "::", "get", "<", "", ">", "(", "V", ")", ",", "", ")", ";", "OS", ".", "emitIntValue", "(", "std", "::", "get", "<", "", ">", "(", "V", ")", ",", "", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug21", "Func": "emitType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2543, "Length": 35, "Cover_Rate": 0.4375} {"Template_token": ["", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "processReloc", "(", "MI", "->", "getOperand", "(", "", ")", ")", ";", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "processReloc", "(", "MI", "->", "getOperand", "(", "", ")", ")", ";", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "processFuncPrototypes", "(", "dyn_cast", "<", "Function", ">", "(", "MO", ".", "getGlobal", "(", ")", ")", ")", ";", "}", "}", "if", "(", "!", "CurMI", ")", "return", ";", "const", "DebugLoc", "&", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "if", "(", "!", "DL", "||", "PrevInstLoc", "==", "DL", ")", "{", "if", "(", "LineInfoGenerated", "==", "false", ")", "{", "auto", "*", "S", "=", "MI", "->", "getMF", "(", ")", "->", "getFunction", "(", ")", ".", "getSubprogram", "(", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "constructLineInfo", "(", "S", ",", "FuncLabel", ",", "S", "->", "getLine", "(", ")", ",", "", ")", ";", "LineInfoGenerated", "=", "true", ";", "}", "return", ";", "}", "MCSymbol", "*", "LineSym", "=", "OS", ".", "getContext", "(", ")", ".", "createTempSymbol", "(", ")", ";", "OS", ".", "emitLabel", "(", "LineSym", ")", ";"], "ground_truth": ["auto", "SP", "=", "DL", ".", "get", "(", ")", "->", "getScope", "(", ")", "->", "getSubprogram", "(", ")", ";"], "File": "BTFDebug22", "Func": "beginInstruction", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2544, "Length": 236, "Cover_Rate": 0.6161879895561357} {"Template_token": ["", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", ")", "{", "int64_t", "Imm", ";", "uint32_t", "Reloc", ";", "if", "(", "GVar", "->", "hasAttribute", "(", "", ")", "||", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "Imm", "=", "PatchImms", "[", "GVar", "]", ".", "first", ";", "Reloc", "=", "PatchImms", "[", "GVar", "]", ".", "second", ";", "}", "else", "{", "return", "false", ";", "}", "if", "(", "Reloc", "==", "", "||", "Reloc", "==", "", ")", "OutMI", ".", "setOpcode", "(", "", ")", ";", "else", "OutMI", ".", "setOpcode", "(", "", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", ")", ")", ";", "return", "true", ";", "}", "}", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", "&&", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "uint32_t", "Imm", "=", "PatchImms", "[", "GVar", "]", ".", "first", ";", "OutMI", ".", "setOpcode", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ";", "if", "(", "MI", "->", "getOperand", "(", "", ")", ".", "isImm", "(", ")", ")", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ")", ";"], "ground_truth": ["else", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";"], "File": "BTFDebug24", "Func": "InstLower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2546, "Length": 315, "Cover_Rate": 0.7535885167464115} {"Template_token": ["", "Imm", "=", "PatchImms", "[", "GVar", "]", ".", "first", ";", "Reloc", "=", "PatchImms", "[", "GVar", "]", ".", "second", ";", "}", "else", "{", "return", "false", ";", "}", "if", "(", "Reloc", "==", "", "||", "Reloc", "==", "", ")", "OutMI", ".", "setOpcode", "(", "", ")", ";", "else", "OutMI", ".", "setOpcode", "(", "", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", ")", ")", ";", "return", "true", ";", "}", "}", "}", "else", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", "||", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", "&&", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "uint32_t", "Imm", "=", "PatchImms", "[", "GVar", "]", ".", "first", ";", "OutMI", ".", "setOpcode", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ";", "if", "(", "MI", "->", "getOperand", "(", "", ")", ".", "isImm", "(", ")", ")", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getImm", "(", ")", ")", ")", ";", "else", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";"], "ground_truth": ["OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", ")", ")", ";"], "File": "BTFDebug24", "Func": "InstLower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2547, "Length": 288, "Cover_Rate": 0.6889952153110048} {"Template_token": ["", "DataSecEntries", "[", "std", "::", "string", "(", "SecName", ")", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "std", "::", "string", "(", "SecName", ")", ")", ";", "}", "}", "SmallVector", "<", "DIGlobalVariableExpression", "*", ",", "", ">", "GVs", ";", "Global", ".", "getDebugInfo", "(", "GVs", ")", ";", "if", "(", "GVs", ".", "size", "(", ")", "==", "", ")", "continue", ";", "uint32_t", "GVTypeId", "=", "", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "WeakAnyLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalWeakLinkage", ")", "continue", ";", "uint32_t", "GVarInfo", ";", "if", "(", "Linkage", "==", "GlobalValue", "::", "InternalLinkage", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "if", "(", "Global", ".", "hasInitializer", "(", ")", ")", "{", "GVarInfo", "=", "", ";", "}", "else", "{", "GVarInfo", "=", "", ";", "}"], "ground_truth": ["auto", "VarEntry", "=", "std", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";"], "File": "BTFDebug24", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2548, "Length": 215, "Cover_Rate": 0.4048964218455744} {"Template_token": ["", "BTFTypeTag", "::", "BTFTypeTag", "(", "uint32_t", "BaseTypeId", ",", "int", "ComponentIdx", ",", "StringRef", "Tag", ")", ":", "Tag", "(", "Tag", ")", "{", "Kind", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";", "BTFType", ".", "Type", "=", "BaseTypeId", ";"], "ground_truth": ["Info", "=", "ComponentIdx", ";"], "File": "BTFDebug25", "Func": "BTFTypeTag", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2549, "Length": 41, "Cover_Rate": 0.9318181818181818} {"Template_token": ["", "const", "MDNode", "*", "MD", "=", "cast", "<", "MDNode", ">", "(", "Annotation", ")", ";", "const", "MDString", "*", "Name", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "Name", "->", "getString", "(", ")", ".", "equals", "(", "", ")", ")", "continue", ";", "const", "MDString", "*", "Value", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeTag", ">", "(", "BaseTypeId", ",", "ComponentIdx", ",", "Value", "->", "getString", "(", ")", ")", ";"], "ground_truth": ["addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";"], "File": "BTFDebug25", "Func": "processAnnotations", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2550, "Length": 96, "Cover_Rate": 0.7164179104477612} {"Template_token": ["", "StringRef", "SecName", ";", "if", "(", "Global", ".", "hasSection", "(", ")", ")", "{", "SecName", "=", "Global", ".", "getSection", "(", ")", ";", "}", "else", "{", "if", "(", "Global", ".", "isConstant", "(", ")", ")", "SecName", "=", "", ";", "else", "SecName", "=", "Global", ".", "getInitializer", "(", ")", "->", "isZeroValue", "(", ")", "?", "", ":", "", ";", "}", "if", "(", "ProcessingMapDef", "!=", "SecName", ".", "startswith", "(", "", ")", ")", "continue", ";", "SmallVector", "<", "DIGlobalVariableExpression", "*", ",", "", ">", "GVs", ";", "Global", ".", "getDebugInfo", "(", "GVs", ")", ";", "if", "(", "GVs", ".", "size", "(", ")", "==", "", ")", "continue", ";", "uint32_t", "GVTypeId", "=", "", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";"], "ground_truth": ["}"], "File": "BTFDebug26", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2551, "Length": 155, "Cover_Rate": 0.41114058355437666} {"Template_token": ["", "if", "(", "!", "Annotations", ")", "return", ";", "for", "(", "const", "Metadata", "*", "Annotation", ":", "Annotations", "->", "operands", "(", ")", ")", "{", "const", "MDNode", "*", "MD", "=", "cast", "<", "MDNode", ">", "(", "Annotation", ")", ";", "const", "MDString", "*", "Name", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "Name", "->", "getString", "(", ")", ".", "equals", "(", "", ")", ")", "continue", ";", "const", "MDString", "*", "Value", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDeclTag", ">", "(", "BaseTypeId", ",", "ComponentIdx", ",", "Value", "->", "getString", "(", ")", ")", ";", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug27", "Func": "processAnnotations", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2552, "Length": 119, "Cover_Rate": 0.8880597014925373} {"Template_token": ["", "if", "(", "!", "Name", "->", "getString", "(", ")", ".", "equals", "(", "", ")", ")", "continue", ";", "const", "MDString", "*", "Value", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDeclTag", ">", "(", "BaseTypeId", ",", "ComponentIdx", ",", "Value", "->", "getString", "(", ")", ")", ";"], "ground_truth": ["addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";"], "File": "BTFDebug27", "Func": "processAnnotations", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2553, "Length": 65, "Cover_Rate": 0.48507462686567165} {"Template_token": ["", "auto", "FuncTypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "BTFFuncInfo", "FuncInfo", ";", "FuncInfo", ".", "Label", "=", "FuncLabel", ";", "FuncInfo", ".", "TypeId", "=", "FuncTypeId", ";", "if", "(", "FuncLabel", "->", "isInSection", "(", ")", ")", "{", "MCSection", "&", "Section", "=", "FuncLabel", "->", "getSection", "(", ")", ";", "const", "MCSectionELF", "*", "SectionELF", "=", "dyn_cast", "<", "MCSectionELF", ">", "(", "&", "Section", ")", ";", "assert", "(", "SectionELF", "&&", "", ")", ";", "SecNameOff", "=", "addString", "(", "SectionELF", "->", "getSectionName", "(", ")", ")", ";", "}", "else", "{", "SecNameOff", "=", "addString", "(", "", ")", ";", "}", "FuncInfoTable", "[", "SecNameOff", "]", ".", "push_back", "(", "FuncInfo", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug28", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2554, "Length": 130, "Cover_Rate": 0.4513888888888889} {"Template_token": ["", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "uint32_t", "FuncLen", "=", "", ",", "LineLen", "=", "", ";", "for", "(", "const", "auto", "&", "FuncSec", ":", "FuncInfoTable", ")", "{", "FuncLen", "+=", "", ";", "FuncLen", "+=", "FuncSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "for", "(", "const", "auto", "&", "LineSec", ":", "LineInfoTable", ")", "{", "LineLen", "+=", "", ";", "LineLen", "+=", "LineSec", ".", "second", ".", "size", "(", ")", "*", "", ";", "}", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "LineLen", ",", "", ")", ";", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "for", "(", "const", "auto", "&", "FuncSec", ":", "FuncInfoTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "FuncSec", ".", "first", ")", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncSec", ".", "first", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncSec", ".", "second", ".", "size", "(", ")", ",", "", ")", ";", "for", "(", "const", "auto", "&", "FuncInfo", ":", "FuncSec", ".", "second", ")", "{", "Asm", "->", "EmitLabelReference", "(", "FuncInfo", ".", "Label", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncInfo", ".", "TypeId", ",", "", ")", ";", "}", "}", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "for", "(", "const", "auto", "&", "LineSec", ":", "LineInfoTable", ")", "{"], "ground_truth": ["OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "LineSec", ".", "first", ")", ")", ";"], "File": "BTFDebug28", "Func": "emitBTFExtSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2557, "Length": 254, "Cover_Rate": 0.5733634311512416} {"Template_token": ["", "processGlobals", "(", ")", ";"], "ground_truth": ["for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";"], "File": "BTFDebug28", "Func": "endModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2558, "Length": 21, "Cover_Rate": 0.5675675675675675} {"Template_token": ["", "void", "BTFDebug", "::", "endModule", "(", ")", "{", "processGlobals", "(", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";"], "ground_truth": ["emitBTFSection", "(", ")", ";"], "File": "BTFDebug28", "Func": "endModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2559, "Length": 32, "Cover_Rate": 0.8648648648648649} {"Template_token": ["", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "(", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "||", "!", "Global", ".", "hasSection", "(", ")", ")", ")", "continue", ";", "uint32_t", "GVarInfo", "=", "Linkage", "==", "GlobalValue", "::", "ExternalLinkage", "?", "", ":", "", ";", "auto", "VarEntry", "=", "llvm", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "std", "::", "string", "SecName", ";", "if", "(", "Global", ".", "hasSection", "(", ")", ")", "{", "SecName", "=", "Global", ".", "getSection", "(", ")", ".", "str", "(", ")", ";", "}", "else", "{", "if", "(", "Global", ".", "isConstant", "(", ")", ")", "SecName", "+=", "", ";"], "ground_truth": ["else", "SecName", "+=", "Global", ".", "getInitializer", "(", ")", "->", "isZeroValue", "(", ")", "?", "", ":", "", ";"], "File": "BTFDebug28", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2560, "Length": 139, "Cover_Rate": 0.3926553672316384} {"Template_token": ["", "uint32_t", "Encoding", "=", "BTy", "->", "getEncoding", "(", ")", ";", "if", "(", "Encoding", "!=", "dwarf", "::", "DW_ATE_boolean", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_signed", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_signed_char", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_unsigned", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_unsigned_char", ")", "return", ";"], "ground_truth": ["auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeInt", ">", "(", "Encoding", ",", "BTy", "->", "getSizeInBits", "(", ")", ",", "BTy", "->", "getOffsetInBits", "(", ")", ",", "BTy", "->", "getName", "(", ")", ")", ";"], "File": "BTFDebug28", "Func": "visitBasicType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2561, "Length": 74, "Cover_Rate": 0.7115384615384616} {"Template_token": ["", "void", "BTFDebug", "::", "visitBasicType", "(", "const", "DIBasicType", "*", "BTy", ",", "uint32_t", "&", "TypeId", ")", "{", "uint32_t", "Encoding", "=", "BTy", "->", "getEncoding", "(", ")", ";"], "ground_truth": ["if", "(", "Encoding", "!=", "dwarf", "::", "DW_ATE_boolean", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_signed", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_signed_char", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_unsigned", "&&", "Encoding", "!=", "dwarf", "::", "DW_ATE_unsigned_char", ")", "return", ";"], "File": "BTFDebug28", "Func": "visitBasicType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2562, "Length": 58, "Cover_Rate": 0.5576923076923077} {"Template_token": ["", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "}", "else", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_member", ")", "{", "return", ";", "}"], "ground_truth": ["uint32_t", "TempTypeId", "=", "", ";"], "File": "BTFDebug28", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2563, "Length": 48, "Cover_Rate": 0.39669421487603307} {"Template_token": ["", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_pointer_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_typedef", "||", "Tag", "==", "dwarf", "::", "DW_TAG_const_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_volatile_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_restrict_type", ")", "{", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ")", ";"], "ground_truth": ["TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";"], "File": "BTFDebug28", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2564, "Length": 62, "Cover_Rate": 0.512396694214876} {"Template_token": ["", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeEnum", ">", "(", "CTy", ",", "VLen", ")", ";"], "ground_truth": ["TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";"], "File": "BTFDebug28", "Func": "visitEnumType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2565, "Length": 29, "Cover_Rate": 0.3972602739726027} {"Template_token": ["", "DINodeArray", "Elements", "=", "CTy", "->", "getElements", "(", ")", ";", "uint32_t", "VLen", "=", "Elements", ".", "size", "(", ")", ";", "if", "(", "VLen", ">", "", ")", "return", ";"], "ground_truth": ["auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeEnum", ">", "(", "CTy", ",", "VLen", ")", ";"], "File": "BTFDebug28", "Func": "visitEnumType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2566, "Length": 41, "Cover_Rate": 0.5616438356164384} {"Template_token": ["", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeFwd", ">", "(", "CTy", "->", "getName", "(", ")", ",", "IsUnion", ")", ";"], "ground_truth": ["TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";"], "File": "BTFDebug28", "Func": "visitFwdDeclType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2567, "Length": 33, "Cover_Rate": 0.6346153846153846} {"Template_token": ["", "if", "(", "VLen", ">", "", ")", "return", ";", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeFuncProto", ">", "(", "STy", ",", "VLen", ",", "FuncArgNames", ")", ";", "if", "(", "ForSubprog", ")", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";"], "ground_truth": ["else", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "STy", ")", ";"], "File": "BTFDebug28", "Func": "visitSubroutineType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2568, "Length": 56, "Cover_Rate": 0.4375} {"Template_token": ["", "void", "BTFDebug", "::", "visitTypeEntry", "(", "const", "DIType", "*", "Ty", ")", "{", "uint32_t", "TypeId", ";"], "ground_truth": ["visitTypeEntry", "(", "Ty", ",", "TypeId", ")", ";"], "File": "BTFDebug28", "Func": "visitTypeEntry", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2569, "Length": 21, "Cover_Rate": 0.9545454545454546} {"Template_token": ["", "void", "BTFDebug", "::", "visitTypeEntry", "(", "const", "DIType", "*", "Ty", ")", "{", "uint32_t", "TypeId", ";"], "ground_truth": ["visitTypeEntry", "(", "Ty", ",", "TypeId", ")", ";"], "File": "BTFDebug28", "Func": "visitTypeEntry", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2570, "Length": 21, "Cover_Rate": 0.9545454545454546} {"Template_token": ["", "if", "(", "OffsetRelocLen", ")", "OffsetRelocLen", "+=", "", ";", "if", "(", "ExternRelocLen", ")", "ExternRelocLen", "+=", "", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "LineLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncLen", "+", "LineLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "OffsetRelocLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncLen", "+", "LineLen", "+", "OffsetRelocLen", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "ExternRelocLen", ",", "", ")", ";", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "for", "(", "const", "auto", "&", "FuncSec", ":", "FuncInfoTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "FuncSec", ".", "first", ")", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncSec", ".", "first", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncSec", ".", "second", ".", "size", "(", ")", ",", "", ")", ";", "for", "(", "const", "auto", "&", "FuncInfo", ":", "FuncSec", ".", "second", ")", "{", "Asm", "->", "EmitLabelReference", "(", "FuncInfo", ".", "Label", ",", "", ")", ";", "OS", ".", "EmitIntValue", "(", "FuncInfo", ".", "TypeId", ",", "", ")", ";", "}", "}", "OS", ".", "AddComment", "(", "", ")", ";", "OS", ".", "EmitIntValue", "(", "", ",", "", ")", ";", "for", "(", "const", "auto", "&", "LineSec", ":", "LineInfoTable", ")", "{", "OS", ".", "AddComment", "(", "", "+", "std", "::", "to_string", "(", "LineSec", ".", "first", ")", ")", ";", "OS", ".", "EmitIntValue", "(", "LineSec", ".", "first", ",", "", ")", ";"], "ground_truth": ["OS", ".", "EmitIntValue", "(", "LineSec", ".", "second", ".", "size", "(", ")", ",", "", ")", ";"], "File": "BTFDebug29", "Func": "emitBTFExtSection", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2571, "Length": 266, "Cover_Rate": 0.32399512789281365} {"Template_token": ["", "BTFOffsetReloc", "OffsetReloc", ";", "OffsetReloc", ".", "Label", "=", "ORSym", ";", "OffsetReloc", ".", "OffsetNameOff", "=", "addString", "(", "IndexPattern", ")", ";", "OffsetReloc", ".", "TypeID", "=", "RootId", ";", "AccessOffsets", "[", "AccessPattern", ".", "str", "(", ")", "]", "=", "std", "::", "stoi", "(", "OffsetStr", ")", ";"], "ground_truth": ["OffsetRelocTable", "[", "SecNameOff", "]", ".", "push_back", "(", "OffsetReloc", ")", ";"], "File": "BTFDebug29", "Func": "generateOffsetReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2572, "Length": 50, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "bool", "BTFDebug", "::", "InstLower", "(", "const", "MachineInstr", "*", "MI", ",", "MCInst", "&", "OutMI", ")", "{", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "const", "MachineOperand", "&", "MO", "=", "MI", "->", "getOperand", "(", "", ")", ";", "if", "(", "MO", ".", "isGlobal", "(", ")", ")", "{", "const", "GlobalValue", "*", "GVal", "=", "MO", ".", "getGlobal", "(", ")", ";", "auto", "*", "GVar", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "GVal", ")", ";", "if", "(", "GVar", "&&", "GVar", "->", "hasAttribute", "(", "", ")", ")", "{", "MDNode", "*", "MDN", "=", "GVar", "->", "getMetadata", "(", "LLVMContext", "::", "MD_preserve_access_index", ")", ";", "DIType", "*", "Ty", "=", "dyn_cast", "<", "DIType", ">", "(", "MDN", ")", ";", "std", "::", "string", "TypeName", "=", "Ty", "->", "getName", "(", ")", ";"], "ground_truth": ["int64_t", "Imm", "=", "AccessOffsets", "[", "GVar", "->", "getName", "(", ")", ".", "str", "(", ")", "]", ";"], "File": "BTFDebug29", "Func": "InstLower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2573, "Length": 134, "Cover_Rate": 0.4364820846905538} {"Template_token": ["", "DIType", "*", "Ty", "=", "dyn_cast", "<", "DIType", ">", "(", "MDN", ")", ";", "generateOffsetReloc", "(", "MI", ",", "ORSym", ",", "Ty", ",", "GVar", "->", "getName", "(", ")", ")", ";", "}", "else", "if", "(", "GVar", "&&", "!", "GVar", "->", "hasInitializer", "(", ")", "&&", "GVar", "->", "hasExternalLinkage", "(", ")", "&&", "GVar", "->", "getSection", "(", ")", "==", "", ")", "{", "MCSymbol", "*", "ORSym", "=", "OS", ".", "getContext", "(", ")", ".", "createTempSymbol", "(", ")", ";", "OS", ".", "EmitLabel", "(", "ORSym", ")", ";"], "ground_truth": ["BTFExternReloc", "ExternReloc", ";"], "File": "BTFDebug29", "Func": "processLDimm64", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2574, "Length": 79, "Cover_Rate": 0.36574074074074076} {"Template_token": ["", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeArray", ">", "(", "ElemTypeId", ",", "", ")", ";", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "}", "else", "{", "DINodeArray", "Elements", "=", "CTy", "->", "getElements", "(", ")", ";", "for", "(", "int", "I", "=", "Elements", ".", "size", "(", ")", "-", "", ";", "I", ">=", "", ";", "--", "I", ")", "{", "if", "(", "auto", "*", "Element", "=", "dyn_cast_or_null", "<", "DINode", ">", "(", "Elements", "[", "I", "]", ")", ")", "if", "(", "Element", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_subrange_type", ")", "{", "const", "DISubrange", "*", "SR", "=", "cast", "<", "DISubrange", ">", "(", "Element", ")", ";"], "ground_truth": ["auto", "*", "CI", "=", "SR", "->", "getCount", "(", ")", ".", "dyn_cast", "<", "ConstantInt", "*", ">", "(", ")", ";"], "File": "BTFDebug29", "Func": "visitArrayType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2575, "Length": 123, "Cover_Rate": 0.4155405405405405} {"Template_token": ["", "for", "(", "int", "I", "=", "Elements", ".", "size", "(", ")", "-", "", ";", "I", ">=", "", ";", "--", "I", ")", "{", "if", "(", "auto", "*", "Element", "=", "dyn_cast_or_null", "<", "DINode", ">", "(", "Elements", "[", "I", "]", ")", ")", "if", "(", "Element", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_subrange_type", ")", "{", "const", "DISubrange", "*", "SR", "=", "cast", "<", "DISubrange", ">", "(", "Element", ")", ";", "auto", "*", "CI", "=", "SR", "->", "getCount", "(", ")", ".", "dyn_cast", "<", "ConstantInt", "*", ">", "(", ")", ";", "int64_t", "Count", "=", "CI", "->", "getSExtValue", "(", ")", ";", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeArray", ">", "(", "ElemTypeId", ",", "Count", ")", ";", "if", "(", "I", "==", "", ")", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "else", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "ElemSize", "=", "ElemSize", "*", "Count", ";", "}", "}", "}", "TypeId", "=", "ElemTypeId", ";", "if", "(", "!", "ArrayIndexTypeId", ")", "{", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeInt", ">", "(", "dwarf", "::", "DW_ATE_unsigned", ",", "", ",", "", ",", "", ")", ";", "ArrayIndexTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug29", "Func": "visitArrayType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2576, "Length": 193, "Cover_Rate": 0.652027027027027} {"Template_token": ["", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "auto", "FuncTypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "BTFFuncInfo", "FuncInfo", ";", "FuncInfo", ".", "Label", "=", "FuncLabel", ";", "FuncInfo", ".", "TypeId", "=", "FuncTypeId", ";", "if", "(", "FuncLabel", "->", "isInSection", "(", ")", ")", "{"], "ground_truth": ["MCSection", "&", "Section", "=", "FuncLabel", "->", "getSection", "(", ")", ";"], "File": "BTFDebug30", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2577, "Length": 108, "Cover_Rate": 0.34177215189873417} {"Template_token": ["", "}", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "FuncArgNames", ";", "for", "(", "const", "DINode", "*", "DN", ":", "SP", "->", "getRetainedNodes", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "DV", "=", "dyn_cast", "<", "DILocalVariable", ">", "(", "DN", ")", ")", "{", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "{", "visitTypeEntry", "(", "DV", "->", "getType", "(", ")", ")", ";", "FuncArgNames", "[", "Arg", "]", "=", "DV", "->", "getName", "(", ")", ";", "}", "}", "}", "uint32_t", "ProtoTypeId", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "auto", "FuncTypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ")", ";", "uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "MCSymbol", "*", "FuncLabel", "=", "Asm", "->", "getFunctionBegin", "(", ")", ";", "BTFFuncInfo", "FuncInfo", ";", "FuncInfo", ".", "Label", "=", "FuncLabel", ";", "FuncInfo", ".", "TypeId", "=", "FuncTypeId", ";"], "ground_truth": ["if", "(", "FuncLabel", "->", "isInSection", "(", ")", ")", "{"], "File": "BTFDebug30", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2578, "Length": 179, "Cover_Rate": 0.5664556962025317} {"Template_token": ["", "BTFType", ".", "NameOff", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";", "BTFType", ".", "Size", "=", "", ";", "ArrayInfo", ".", "ElemType", "=", "ElemTypeId", ";", "ArrayInfo", ".", "Nelems", "=", "NumElems", ";"], "ground_truth": ["}"], "File": "BTFDebug30", "Func": "BTFTypeArray", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2579, "Length": 33, "Cover_Rate": 0.5689655172413793} {"Template_token": ["", "const", "auto", "*", "DDTy", "=", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ";", "BTFMember", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "DDTy", "->", "getName", "(", ")", ")", ";", "if", "(", "HasBitField", ")", "{", "uint8_t", "BitFieldSize", "=", "DDTy", "->", "isBitField", "(", ")", "?", "DDTy", "->", "getSizeInBits", "(", ")", ":", "", ";", "BTFMember", ".", "Offset", "=", "BitFieldSize", "<<", "", "|", "DDTy", "->", "getOffsetInBits", "(", ")", ";", "}", "else", "{", "BTFMember", ".", "Offset", "=", "DDTy", "->", "getOffsetInBits", "(", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug30", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2580, "Length": 78, "Cover_Rate": 0.4785276073619632} {"Template_token": ["", "struct", "", "BTFMember", ";", "const", "auto", "*", "DDTy", "=", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ";", "BTFMember", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "DDTy", "->", "getName", "(", ")", ")", ";", "if", "(", "HasBitField", ")", "{", "uint8_t", "BitFieldSize", "=", "DDTy", "->", "isBitField", "(", ")", "?", "DDTy", "->", "getSizeInBits", "(", ")", ":", "", ";", "BTFMember", ".", "Offset", "=", "BitFieldSize", "<<", "", "|", "DDTy", "->", "getOffsetInBits", "(", ")", ";", "}", "else", "{", "BTFMember", ".", "Offset", "=", "DDTy", "->", "getOffsetInBits", "(", ")", ";", "}", "BTFMember", ".", "Type", "=", "BDebug", ".", "getTypeId", "(", "DDTy", "->", "getBaseType", "(", ")", ")", ";", "Members", ".", "push_back", "(", "BTFMember", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug30", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2581, "Length": 106, "Cover_Rate": 0.6503067484662577} {"Template_token": ["", "}", "}", "if", "(", "StructTypeId", "==", "", ")", "{", "auto", "FwdTypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeFwd", ">", "(", "TypeName", ",", "IsUnion", ")", ";", "StructTypeId", "=", "addType", "(", "std", "::", "move", "(", "FwdTypeEntry", ")", ")", ";", "}", "for", "(", "auto", "&", "DType", ":", "Fixup", ".", "second", ".", "second", ")", "{", "DType", "->", "setPointeeType", "(", "StructTypeId", ")", ";", "}", "}", "for", "(", "const", "auto", "&", "TypeEntry", ":", "TypeEntries", ")", "TypeEntry", "->", "completeType", "(", "*", "this", ")", ";", "emitBTFSection", "(", ")", ";"], "ground_truth": ["emitBTFExtSection", "(", ")", ";"], "File": "BTFDebug30", "Func": "endModule", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2582, "Length": 84, "Cover_Rate": 0.43523316062176165} {"Template_token": ["", "ElementTypeId", "=", "ArrayInfo", ".", "ElemType", ";", "LocOffset", "=", "Loc", "*", "ElemSize", ";"], "ground_truth": ["}"], "File": "BTFDebug30", "Func": "getLocInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2583, "Length": 13, "Cover_Rate": 0.43333333333333335} {"Template_token": ["", "void", "BTFTypeArray", "::", "getLocInfo", "(", "uint32_t", "Loc", ",", "uint32_t", "&", "LocOffset", ",", "uint32_t", "&", "ElementTypeId", ")", "{"], "ground_truth": ["ElementTypeId", "=", "ArrayInfo", ".", "ElemType", ";"], "File": "BTFDebug30", "Func": "getLocInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2584, "Length": 23, "Cover_Rate": 0.7666666666666667} {"Template_token": ["", "MemberType", "=", "Members", "[", "Loc", "]", ".", "Type", ";", "MemberOffset", "=", "HasBitField", "?", "Members", "[", "Loc", "]", ".", "Offset", "&", "", ":", "Members", "[", "Loc", "]", ".", "Offset", ";"], "ground_truth": ["}"], "File": "BTFDebug30", "Func": "getMemberInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2585, "Length": 30, "Cover_Rate": 0.6382978723404256} {"Template_token": ["", "std", "::", "string", "TypeName", "=", "Ty", "->", "getName", "(", ")", ";", "int64_t", "Imm", "=", "AccessOffsets", "[", "TypeName", "+", "", "+", "GVar", "->", "getName", "(", ")", ".", "str", "(", ")", "]", ";", "OutMI", ".", "setOpcode", "(", "", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Imm", ")", ")", ";", "return", "true", ";", "}", "else", "if", "(", "GVar", "&&", "!", "GVar", "->", "hasInitializer", "(", ")", "&&", "GVar", "->", "hasExternalLinkage", "(", ")", "&&", "GVar", "->", "getSection", "(", ")", "==", "", ")", "{", "const", "IntegerType", "*", "IntTy", "=", "dyn_cast", "<", "IntegerType", ">", "(", "GVar", "->", "getValueType", "(", ")", ")", ";", "assert", "(", "IntTy", ")", ";", "if", "(", "IntTy", "->", "getBitWidth", "(", ")", "==", "", ")", "OutMI", ".", "setOpcode", "(", "", ")", ";", "else", "OutMI", ".", "setOpcode", "(", "", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createReg", "(", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ")", ")", ";", "OutMI", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "", ")", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "BTFDebug30", "Func": "InstLower", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2589, "Length": 185, "Cover_Rate": 0.594855305466238} {"Template_token": ["", "if", "(", "SecName", ".", "startswith", "(", "", ")", ")", "visitMapDefType", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "else", "visitTypeEntry", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ",", "false", ",", "false", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "(", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "||", "!", "Global", ".", "hasSection", "(", ")", ")", ")", "continue", ";", "uint32_t", "GVarInfo", "=", "Linkage", "==", "GlobalValue", "::", "ExternalLinkage", "?", "", ":", "", ";"], "ground_truth": ["auto", "VarEntry", "=", "llvm", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";"], "File": "BTFDebug30", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2590, "Length": 115, "Cover_Rate": 0.3125} {"Template_token": ["", "uint32_t", "GVarInfo", "=", "Linkage", "==", "GlobalValue", "::", "ExternalLinkage", "?", "", ":", "", ";", "auto", "VarEntry", "=", "llvm", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "if", "(", "DataSecEntries", ".", "find", "(", "SecName", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "SecName", "]", "=", "llvm", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "SecName", ")", ";", "}", "const", "DataLayout", "&", "DL", "=", "Global", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "uint32_t", "Size", "=", "DL", ".", "getTypeAllocSize", "(", "Global", ".", "getType", "(", ")", "->", "getElementType", "(", ")", ")", ";", "DataSecEntries", "[", "SecName", "]", "->", "addVar", "(", "VarId", ",", "Asm", "->", "getSymbol", "(", "&", "Global", ")", ",", "Size", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug30", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2591, "Length": 136, "Cover_Rate": 0.3695652173913043} {"Template_token": ["", "}", "for", "(", "const", "auto", "&", "ArrayType", ":", "ArrayTypes", ")", "{", "if", "(", "ArrayType", "->", "getId", "(", ")", "==", "TypeId", ")", "{", "*", "PrevArrayType", "=", "ArrayType", ";"], "ground_truth": ["return", ";"], "File": "BTFDebug30", "Func": "setTypeFromId", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2592, "Length": 29, "Cover_Rate": 0.3625} {"Template_token": ["", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeArray", ">", "(", "ElemTypeId", ",", "", ",", "", ")", ";", "ArrayTypes", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "}", "else", "{", "DINodeArray", "Elements", "=", "CTy", "->", "getElements", "(", ")", ";", "for", "(", "int", "I", "=", "Elements", ".", "size", "(", ")", "-", "", ";", "I", ">=", "", ";", "--", "I", ")", "{", "if", "(", "auto", "*", "Element", "=", "dyn_cast_or_null", "<", "DINode", ">", "(", "Elements", "[", "I", "]", ")", ")", "if", "(", "Element", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_subrange_type", ")", "{", "const", "DISubrange", "*", "SR", "=", "cast", "<", "DISubrange", ">", "(", "Element", ")", ";"], "ground_truth": ["auto", "*", "CI", "=", "SR", "->", "getCount", "(", ")", ".", "dyn_cast", "<", "ConstantInt", "*", ">", "(", ")", ";"], "File": "BTFDebug30", "Func": "visitArrayType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2593, "Length": 136, "Cover_Rate": 0.422360248447205} {"Template_token": ["", "auto", "CTag", "=", "CTy", "->", "getTag", "(", ")", ";", "if", "(", "(", "CTag", "==", "dwarf", "::", "DW_TAG_structure_type", "||", "CTag", "==", "dwarf", "::", "DW_TAG_union_type", ")", "&&", "!", "CTy", "->", "isForwardDecl", "(", ")", ")", "{", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "true", ")", ";", "auto", "&", "Fixup", "=", "FixupDerivedTypes", "[", "CTy", "->", "getName", "(", ")", "]", ";", "Fixup", ".", "first", "=", "CTag", "==", "dwarf", "::", "DW_TAG_union_type", ";", "Fixup", ".", "second", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "return", ";", "}", "}", "}", "}", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_pointer_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_typedef", "||", "Tag", "==", "dwarf", "::", "DW_TAG_const_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_volatile_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_restrict_type", ")", "{", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "false", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "}", "else", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_member", ")", "{", "return", ";", "}", "uint32_t", "TempTypeId", "=", "", ";"], "ground_truth": ["if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_member", ")", "visitTypeEntry", "(", "DTy", "->", "getBaseType", "(", ")", ",", "TempTypeId", ",", "true", ",", "false", ")", ";"], "File": "BTFDebug30", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2594, "Length": 212, "Cover_Rate": 0.6730158730158731} {"Template_token": ["", "HasBitField", "=", "true", ";", "break", ";", "}", "}", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeStruct", ">", "(", "CTy", ",", "true", ",", "HasBitField", ",", "Elements", ".", "size", "(", ")", ")", ";", "StructTypes", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "for", "(", "const", "auto", "*", "Element", ":", "Elements", ")", "{", "const", "auto", "*", "MemberType", "=", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ";", "visitTypeEntry", "(", "MemberType", "->", "getBaseType", "(", ")", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug30", "Func": "visitMapDefType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2595, "Length": 90, "Cover_Rate": 0.4017857142857143} {"Template_token": ["", "void", "BTFDebug", "::", "visitMapDefType", "(", "const", "DIType", "*", "Ty", ",", "uint32_t", "&", "TypeId", ")", "{", "if", "(", "!", "Ty", "||", "DIToIdMap", ".", "find", "(", "Ty", ")", "!=", "DIToIdMap", ".", "end", "(", ")", ")", "{", "TypeId", "=", "DIToIdMap", "[", "Ty", "]", ";", "return", ";", "}", "const", "auto", "*", "CTy", "=", "dyn_cast", "<", "DICompositeType", ">", "(", "Ty", ")", ";", "if", "(", "!", "CTy", ")", "return", ";", "auto", "Tag", "=", "CTy", "->", "getTag", "(", ")", ";", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_structure_type", "||", "CTy", "->", "isForwardDecl", "(", ")", ")", "return", ";", "const", "DINodeArray", "Elements", "=", "CTy", "->", "getElements", "(", ")", ";", "bool", "HasBitField", "=", "false", ";", "for", "(", "const", "auto", "*", "Element", ":", "Elements", ")", "{", "auto", "E", "=", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ";", "if", "(", "E", "->", "isBitField", "(", ")", ")", "{", "HasBitField", "=", "true", ";", "break", ";", "}", "}", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeStruct", ">", "(", "CTy", ",", "true", ",", "HasBitField", ",", "Elements", ".", "size", "(", ")", ")", ";", "StructTypes", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "for", "(", "const", "auto", "*", "Element", ":", "Elements", ")", "{", "const", "auto", "*", "MemberType", "=", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ";", "visitTypeEntry", "(", "MemberType", "->", "getBaseType", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug30", "Func": "visitMapDefType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2596, "Length": 223, "Cover_Rate": 0.9955357142857143} {"Template_token": ["", "const", "DINodeArray", "Elements", "=", "CTy", "->", "getElements", "(", ")", ";", "uint32_t", "VLen", "=", "Elements", ".", "size", "(", ")", ";", "if", "(", "VLen", ">", "", ")", "return", ";", "bool", "HasBitField", "=", "false", ";", "for", "(", "const", "auto", "*", "Element", ":", "Elements", ")", "{", "auto", "E", "=", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ";", "if", "(", "E", "->", "isBitField", "(", ")", ")", "{", "HasBitField", "=", "true", ";", "break", ";", "}", "}", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeStruct", ">", "(", "CTy", ",", "IsStruct", ",", "HasBitField", ",", "VLen", ")", ";", "StructTypes", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";"], "ground_truth": ["TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";"], "File": "BTFDebug30", "Func": "visitStructType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2597, "Length": 114, "Cover_Rate": 0.7354838709677419} {"Template_token": ["", "void", "BTFDebug", "::", "visitSubroutineType", "(", "const", "DISubroutineType", "*", "STy", ",", "bool", "ForSubprog", ",", "const", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "&", "FuncArgNames", ",", "uint32_t", "&", "TypeId", ")", "{", "DITypeRefArray", "Elements", "=", "STy", "->", "getTypeArray", "(", ")", ";", "uint32_t", "VLen", "=", "Elements", ".", "size", "(", ")", "-", "", ";", "if", "(", "VLen", ">", "", ")", "return", ";", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeFuncProto", ">", "(", "STy", ",", "VLen", ",", "FuncArgNames", ")", ";", "if", "(", "ForSubprog", ")", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "else", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "STy", ")", ";"], "ground_truth": ["for", "(", "const", "auto", "Element", ":", "Elements", ")", "{"], "File": "BTFDebug30", "Func": "visitSubroutineType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2598, "Length": 115, "Cover_Rate": 0.9274193548387096} {"Template_token": ["", "if", "(", "ForSubprog", ")", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "else", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "STy", ")", ";", "for", "(", "const", "auto", "Element", ":", "Elements", ")", "{", "visitTypeEntry", "(", "Element", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug30", "Func": "visitSubroutineType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2599, "Length": 46, "Cover_Rate": 0.3709677419354839} {"Template_token": ["", "auto", "*", "Unit", "=", "SP", "->", "getUnit", "(", ")", ";", "if", "(", "Unit", "->", "getEmissionKind", "(", ")", "==", "DICompileUnit", "::", "NoDebug", ")", "{", "SkipInstruction", "=", "true", ";", "return", ";", "}", "SkipInstruction", "=", "false", ";", "std", "::", "unordered_map", "<", "uint32_t", ",", "StringRef", ">", "FuncArgNames", ";", "for", "(", "const", "DINode", "*", "DN", ":", "SP", "->", "getRetainedNodes", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "DV", "=", "dyn_cast", "<", "DILocalVariable", ">", "(", "DN", ")", ")", "{", "uint32_t", "Arg", "=", "DV", "->", "getArg", "(", ")", ";", "if", "(", "Arg", ")", "{", "visitTypeEntry", "(", "DV", "->", "getType", "(", ")", ")", ";", "FuncArgNames", "[", "Arg", "]", "=", "DV", "->", "getName", "(", ")", ";", "}", "}", "}", "uint32_t", "ProtoTypeId", ";", "visitSubroutineType", "(", "SP", "->", "getType", "(", ")", ",", "true", ",", "FuncArgNames", ",", "ProtoTypeId", ")", ";", "auto", "FuncTypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeFunc", ">", "(", "SP", "->", "getName", "(", ")", ",", "ProtoTypeId", ")", ";"], "ground_truth": ["uint32_t", "FuncTypeId", "=", "addType", "(", "std", "::", "move", "(", "FuncTypeEntry", ")", ")", ";"], "File": "BTFDebug31", "Func": "beginFunctionImpl", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2600, "Length": 161, "Cover_Rate": 0.5669014084507042} {"Template_token": ["", "BTFType", ".", "Type", "=", "RetType", "?", "BDebug", ".", "getTypeId", "(", "RetType", ")", ":", "", ";", "BTFType", ".", "NameOff", "=", "", ";"], "ground_truth": ["for", "(", "unsigned", "I", "=", "", ",", "N", "=", "Elements", ".", "size", "(", ")", ";", "I", "<", "N", ";", "++", "I", ")", "{"], "File": "BTFDebug31", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2601, "Length": 44, "Cover_Rate": 0.3142857142857143} {"Template_token": ["", "if", "(", "!", "Global", ".", "hasInitializer", "(", ")", "&&", "Global", ".", "hasExternalLinkage", "(", ")", ")", "continue", ";", "SmallVector", "<", "DIGlobalVariableExpression", "*", ",", "", ">", "GVs", ";", "Global", ".", "getDebugInfo", "(", "GVs", ")", ";", "uint32_t", "GVTypeId", "=", "", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "visitTypeEntry", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "(", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "||", "!", "Global", ".", "hasSection", "(", ")", ")", ")", "continue", ";", "uint32_t", "GVarInfo", "=", "Linkage", "==", "GlobalValue", "::", "ExternalLinkage", "?", "", ":", "", ";", "auto", "VarEntry", "=", "llvm", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "std", "::", "string", "SecName", ";", "if", "(", "Global", ".", "hasSection", "(", ")", ")", "{", "SecName", "=", "Global", ".", "getSection", "(", ")", ".", "str", "(", ")", ";", "}", "else", "{", "if", "(", "Global", ".", "isConstant", "(", ")", ")", "SecName", "+=", "", ";", "else", "SecName", "+=", "Global", ".", "getInitializer", "(", ")", "->", "isZeroValue", "(", ")", "?", "", ":", "", ";", "}", "if", "(", "DataSecEntries", ".", "find", "(", "SecName", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "SecName", "]", "=", "llvm", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "SecName", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug31", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2602, "Length": 239, "Cover_Rate": 0.6828571428571428} {"Template_token": ["", "const", "Module", "*", "M", "=", "MMI", "->", "getModule", "(", ")", ";", "for", "(", "const", "GlobalVariable", "&", "Global", ":", "M", "->", "globals", "(", ")", ")", "{", "if", "(", "!", "Global", ".", "hasInitializer", "(", ")", "&&", "Global", ".", "hasExternalLinkage", "(", ")", ")", "continue", ";", "SmallVector", "<", "DIGlobalVariableExpression", "*", ",", "", ">", "GVs", ";", "Global", ".", "getDebugInfo", "(", "GVs", ")", ";", "uint32_t", "GVTypeId", "=", "", ";", "for", "(", "auto", "*", "GVE", ":", "GVs", ")", "{", "visitTypeEntry", "(", "GVE", "->", "getVariable", "(", ")", "->", "getType", "(", ")", ",", "GVTypeId", ")", ";", "break", ";", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "(", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", "||", "!", "Global", ".", "hasSection", "(", ")", ")", ")", "continue", ";", "uint32_t", "GVarInfo", "=", "Linkage", "==", "GlobalValue", "::", "ExternalLinkage", "?", "", ":", "", ";", "auto", "VarEntry", "=", "llvm", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "std", "::", "string", "SecName", ";", "if", "(", "Global", ".", "hasSection", "(", ")", ")", "{", "SecName", "=", "Global", ".", "getSection", "(", ")", ".", "str", "(", ")", ";", "}", "else", "{", "if", "(", "Global", ".", "isConstant", "(", ")", ")", "SecName", "+=", "", ";", "else", "SecName", "+=", "Global", ".", "getInitializer", "(", ")", "->", "isZeroValue", "(", ")", "?", "", ":", "", ";", "}", "if", "(", "DataSecEntries", ".", "find", "(", "SecName", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "SecName", "]", "=", "llvm", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "SecName", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug31", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2603, "Length": 264, "Cover_Rate": 0.7542857142857143} {"Template_token": ["", "if", "(", "auto", "*", "Element", "=", "dyn_cast_or_null", "<", "DINode", ">", "(", "Elements", "[", "I", "]", ")", ")", "if", "(", "Element", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_subrange_type", ")", "{", "const", "DISubrange", "*", "SR", "=", "cast", "<", "DISubrange", ">", "(", "Element", ")", ";", "auto", "*", "CI", "=", "SR", "->", "getCount", "(", ")", ".", "dyn_cast", "<", "ConstantInt", "*", ">", "(", ")", ";", "int64_t", "Count", "=", "CI", "->", "getSExtValue", "(", ")", ";", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeArray", ">", "(", "ElemTypeId", ",", "Count", ")", ";", "if", "(", "I", "==", "", ")", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "else", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug31", "Func": "visitArrayType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2604, "Length": 119, "Cover_Rate": 0.44569288389513106} {"Template_token": ["", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "}", "else", "{", "DINodeArray", "Elements", "=", "CTy", "->", "getElements", "(", ")", ";", "for", "(", "int", "I", "=", "Elements", ".", "size", "(", ")", "-", "", ";", "I", ">=", "", ";", "--", "I", ")", "{", "if", "(", "auto", "*", "Element", "=", "dyn_cast_or_null", "<", "DINode", ">", "(", "Elements", "[", "I", "]", ")", ")", "if", "(", "Element", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_subrange_type", ")", "{", "const", "DISubrange", "*", "SR", "=", "cast", "<", "DISubrange", ">", "(", "Element", ")", ";", "auto", "*", "CI", "=", "SR", "->", "getCount", "(", ")", ".", "dyn_cast", "<", "ConstantInt", "*", ">", "(", ")", ";", "int64_t", "Count", "=", "CI", "->", "getSExtValue", "(", ")", ";", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeArray", ">", "(", "ElemTypeId", ",", "Count", ")", ";", "if", "(", "I", "==", "", ")", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "else", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "}", "}", "}", "TypeId", "=", "ElemTypeId", ";"], "ground_truth": ["if", "(", "!", "ArrayIndexTypeId", ")", "{"], "File": "BTFDebug31", "Func": "visitArrayType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2605, "Length": 178, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "void", "BTFDebug", "::", "visitDerivedType", "(", "const", "DIDerivedType", "*", "DTy", ",", "uint32_t", "&", "TypeId", ")", "{", "unsigned", "Tag", "=", "DTy", "->", "getTag", "(", ")", ";", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_pointer_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_typedef", "||", "Tag", "==", "dwarf", "::", "DW_TAG_const_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_volatile_type", "||", "Tag", "==", "dwarf", "::", "DW_TAG_restrict_type", ")", "{", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "DTy", ")", ";", "}", "else", "if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_member", ")", "{", "return", ";", "}"], "ground_truth": ["uint32_t", "TempTypeId", "=", "", ";"], "File": "BTFDebug31", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2606, "Length": 105, "Cover_Rate": 0.8974358974358975} {"Template_token": ["", "return", ";", "}", "}", "}", "}", "if", "(", "Tag", "==", "dwarf", "::", "DW_TAG_pointer_type", ")", "{", "SmallVector", "<", "const", "MDString", "*", ",", "", ">", "MDStrs", ";", "DINodeArray", "Annots", "=", "DTy", "->", "getAnnotations", "(", ")", ";", "if", "(", "Annots", ")", "{", "for", "(", "const", "Metadata", "*", "Annotations", ":", "Annots", "->", "operands", "(", ")", ")", "{", "const", "MDNode", "*", "MD", "=", "cast", "<", "MDNode", ">", "(", "Annotations", ")", ";", "const", "MDString", "*", "Name", "=", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "Name", "->", "getString", "(", ")", ".", "equals", "(", "", ")", ")", "continue", ";", "MDStrs", ".", "push_back", "(", "cast", "<", "MDString", ">", "(", "MD", "->", "getOperand", "(", "", ")", ")", ")", ";", "}", "}", "if", "(", "MDStrs", ".", "size", "(", ")", ">", "", ")", "{", "auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeTypeTag", ">", "(", "DTy", ",", "MDStrs", "[", "", "]", "->", "getString", "(", ")", ")", ";", "unsigned", "TmpTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "for", "(", "unsigned", "I", "=", "", ";", "I", "<", "MDStrs", ".", "size", "(", ")", ";", "I", "++", ")", "{", "const", "MDString", "*", "Value", "=", "MDStrs", "[", "I", "]", ";", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeTypeTag", ">", "(", "TmpTypeId", ",", "Value", "->", "getString", "(", ")", ")", ";", "TmpTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "}", "auto", "TypeDEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "TmpTypeId", ",", "Tag", ",", "DTy", "->", "getName", "(", ")", ")", ";", "TypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeDEntry", ")", ",", "DTy", ")", ";", "}", "else", "{"], "ground_truth": ["auto", "TypeEntry", "=", "std", "::", "make_unique", "<", "BTFTypeDerived", ">", "(", "DTy", ",", "Tag", ",", "false", ")", ";"], "File": "BTFDebug34", "Func": "visitDerivedType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2607, "Length": 281, "Cover_Rate": 0.443217665615142} {"Template_token": ["", "}", "auto", "Linkage", "=", "Global", ".", "getLinkage", "(", ")", ";", "if", "(", "Linkage", "!=", "GlobalValue", "::", "InternalLinkage", "&&", "Linkage", "!=", "GlobalValue", "::", "ExternalLinkage", ")", "continue", ";", "uint32_t", "GVarInfo", "=", "Linkage", "==", "GlobalValue", "::", "ExternalLinkage", "?", "", ":", "", ";", "auto", "VarEntry", "=", "std", "::", "make_unique", "<", "BTFKindVar", ">", "(", "Global", ".", "getName", "(", ")", ",", "GVTypeId", ",", "GVarInfo", ")", ";", "uint32_t", "VarId", "=", "addType", "(", "std", "::", "move", "(", "VarEntry", ")", ")", ";", "if", "(", "DataSecEntries", ".", "find", "(", "SecName", ")", "==", "DataSecEntries", ".", "end", "(", ")", ")", "{", "DataSecEntries", "[", "SecName", "]", "=", "std", "::", "make_unique", "<", "BTFKindDataSec", ">", "(", "Asm", ",", "SecName", ")", ";", "}", "const", "DataLayout", "&", "DL", "=", "Global", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "uint32_t", "Size", "=", "DL", ".", "getTypeAllocSize", "(", "Global", ".", "getType", "(", ")", "->", "getElementType", "(", ")", ")", ";", "DataSecEntries", "[", "SecName", "]", "->", "addVar", "(", "VarId", ",", "Asm", "->", "getSymbol", "(", "&", "Global", ")", ",", "Size", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug35", "Func": "processGlobals", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2608, "Length": 162, "Cover_Rate": 0.4366576819407008} {"Template_token": ["", "BTFTypeArray", "::", "BTFTypeArray", "(", "const", "DIType", "*", "Ty", ",", "uint32_t", "ElemTypeId", ",", "uint32_t", "ElemSize", ",", "uint32_t", "NumElems", ")", ":", "ElemTyNoQual", "(", "Ty", ")", ",", "ElemSize", "(", "ElemSize", ")", "{", "Kind", "=", "", ";", "BTFType", ".", "NameOff", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";", "BTFType", ".", "Size", "=", "", ";"], "ground_truth": ["ArrayInfo", ".", "ElemType", "=", "ElemTypeId", ";"], "File": "BTFDebug7", "Func": "BTFTypeArray", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2609, "Length": 59, "Cover_Rate": 0.8676470588235294} {"Template_token": ["", "Kind", "=", "", ";", "BTFType", ".", "NameOff", "=", "", ";", "BTFType", ".", "Info", "=", "Kind", "<<", "", ";", "BTFType", ".", "Size", "=", "", ";", "ArrayInfo", ".", "ElemType", "=", "ElemTypeId", ";", "ArrayInfo", ".", "Nelems", "=", "NumElems", ";"], "ground_truth": ["}"], "File": "BTFDebug7", "Func": "BTFTypeArray", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2610, "Length": 37, "Cover_Rate": 0.5441176470588235} {"Template_token": ["", "IsCompleted", "=", "true", ";", "BTFType", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "STy", "->", "getName", "(", ")", ")", ";", "const", "DINodeArray", "Elements", "=", "STy", "->", "getElements", "(", ")", ";", "for", "(", "const", "auto", "*", "Element", ":", "Elements", ")", "{", "struct", "", "BTFMember", ";", "const", "auto", "*", "DDTy", "=", "cast", "<", "DIDerivedType", ">", "(", "Element", ")", ";", "BTFMember", ".", "NameOff", "=", "BDebug", ".", "addString", "(", "DDTy", "->", "getName", "(", ")", ")", ";", "if", "(", "HasBitField", ")", "{", "uint8_t", "BitFieldSize", "=", "DDTy", "->", "isBitField", "(", ")", "?", "DDTy", "->", "getSizeInBits", "(", ")", ":", "", ";", "BTFMember", ".", "Offset", "=", "BitFieldSize", "<<", "", "|", "DDTy", "->", "getOffsetInBits", "(", ")", ";", "}", "else", "{", "BTFMember", ".", "Offset", "=", "DDTy", "->", "getOffsetInBits", "(", ")", ";", "}", "const", "auto", "*", "BaseTy", "=", "DDTy", "->", "getBaseType", "(", ")", ";", "BTFMember", ".", "Type", "=", "BDebug", ".", "getTypeId", "(", "BaseTy", ")", ";", "MemberTypeNoQual", ".", "push_back", "(", "BDebug", ".", "getTypeId", "(", "stripQualifiers", "(", "BaseTy", ")", ")", ")", ";", "Members", ".", "push_back", "(", "BTFMember", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug7", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2611, "Length": 166, "Cover_Rate": 0.8972972972972973} {"Template_token": ["", "FirstAccess", "=", "false", ";", "}", "else", "if", "(", "PrevStructType", ")", "{", "uint32_t", "MemberOffset", ",", "MemberTypeId", ";", "PrevStructType", "->", "getMemberInfo", "(", "Loc", ",", "MemberOffset", ",", "MemberTypeId", ")", ";", "Offset", "+=", "MemberOffset", ">>", "", ";", "PrevStructType", "=", "nullptr", ";", "setTypeFromId", "(", "MemberTypeId", ",", "&", "PrevStructType", ",", "&", "PrevArrayType", ")", ";", "}", "else", "if", "(", "PrevArrayType", ")", "{", "uint32_t", "LocOffset", ",", "ElementTypeId", ";", "PrevArrayType", "->", "getLocInfo", "(", "Loc", ",", "LocOffset", ",", "ElementTypeId", ")", ";", "Offset", "+=", "LocOffset", ";", "PrevArrayType", "=", "nullptr", ";", "setTypeFromId", "(", "ElementTypeId", ",", "&", "PrevStructType", ",", "&", "PrevArrayType", ")", ";", "}", "else", "{", "llvm_unreachable", "(", "", ")", ";", "}", "Start", "=", "End", "+", "", ";", "End", "=", "Start", ";", "}", "}", "AccessOffsets", "[", "AccessPattern", ".", "str", "(", ")", "]", "=", "Offset", ";"], "ground_truth": ["OffsetRelocTable", "[", "SecNameOff", "]", ".", "push_back", "(", "OffsetReloc", ")", ";"], "File": "BTFDebug7", "Func": "generateOffsetReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2612, "Length": 132, "Cover_Rate": 0.416403785488959} {"Template_token": ["", "unsigned", "RootId", "=", "populateStructType", "(", "RootTy", ")", ";", "setTypeFromId", "(", "RootId", ",", "&", "PrevStructType", ",", "&", "PrevArrayType", ")", ";", "unsigned", "RootTySize", "=", "PrevStructType", "->", "getStructSize", "(", ")", ";", "StringRef", "IndexPattern", "=", "AccessPattern", ".", "substr", "(", "AccessPattern", ".", "find_first_of", "(", "':'", ")", "+", "", ")", ";", "BTFOffsetReloc", "OffsetReloc", ";", "OffsetReloc", ".", "Label", "=", "ORSym", ";", "OffsetReloc", ".", "OffsetNameOff", "=", "addString", "(", "IndexPattern", ".", "drop_back", "(", ")", ")", ";", "OffsetReloc", ".", "TypeID", "=", "RootId", ";", "uint32_t", "Start", "=", "", ",", "End", "=", "", ",", "Offset", "=", "", ";", "bool", "FirstAccess", "=", "true", ";", "for", "(", "auto", "C", ":", "IndexPattern", ")", "{", "if", "(", "C", "!=", "':'", ")", "{", "End", "++", ";", "}", "else", "{", "std", "::", "string", "SubStr", "=", "IndexPattern", ".", "substr", "(", "Start", ",", "End", "-", "Start", ")", ";", "int", "Loc", "=", "std", "::", "stoi", "(", "SubStr", ")", ";", "if", "(", "FirstAccess", ")", "{", "Offset", "=", "Loc", "*", "RootTySize", ";", "FirstAccess", "=", "false", ";", "}", "else", "if", "(", "PrevStructType", ")", "{", "uint32_t", "MemberOffset", ",", "MemberTypeId", ";", "PrevStructType", "->", "getMemberInfo", "(", "Loc", ",", "MemberOffset", ",", "MemberTypeId", ")", ";", "Offset", "+=", "MemberOffset", ">>", "", ";", "PrevStructType", "=", "nullptr", ";", "setTypeFromId", "(", "MemberTypeId", ",", "&", "PrevStructType", ",", "&", "PrevArrayType", ")", ";", "}", "else", "if", "(", "PrevArrayType", ")", "{", "uint32_t", "LocOffset", ",", "ElementTypeId", ";", "PrevArrayType", "->", "getLocInfo", "(", "Loc", ",", "LocOffset", ",", "ElementTypeId", ")", ";", "Offset", "+=", "LocOffset", ";", "PrevArrayType", "=", "nullptr", ";", "setTypeFromId", "(", "ElementTypeId", ",", "&", "PrevStructType", ",", "&", "PrevArrayType", ")", ";", "}", "else", "{", "llvm_unreachable", "(", "", ")", ";", "}", "Start", "=", "End", "+", "", ";", "End", "=", "Start", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug7", "Func": "generateOffsetReloc", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2613, "Length": 260, "Cover_Rate": 0.8201892744479495} {"Template_token": ["", "ElementTypeId", "=", "ElemTypeNoQual", ";"], "ground_truth": ["LocOffset", "=", "Loc", "*", "ElemSize", ";"], "File": "BTFDebug7", "Func": "getLocInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2614, "Length": 10, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "ElementTypeId", "=", "ElemTypeNoQual", ";", "LocOffset", "=", "Loc", "*", "ElemSize", ";"], "ground_truth": ["}"], "File": "BTFDebug7", "Func": "getLocInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2615, "Length": 11, "Cover_Rate": 0.39285714285714285} {"Template_token": ["", "void", "BTFTypeStruct", "::", "getMemberInfo", "(", "uint32_t", "Loc", ",", "uint32_t", "&", "MemberOffset", ",", "uint32_t", "&", "MemberType", ")", "{", "MemberType", "=", "MemberTypeNoQual", "[", "Loc", "]", ";", "MemberOffset", "=", "HasBitField", "?", "Members", "[", "Loc", "]", ".", "Offset", "&", "", ":", "Members", "[", "Loc", "]", ".", "Offset", ";"], "ground_truth": ["}"], "File": "BTFDebug7", "Func": "getMemberInfo", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2617, "Length": 45, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "Tag", "=", "DTy", "->", "getTag", "(", ")", ";"], "ground_truth": ["if", "(", "Tag", "!=", "dwarf", "::", "DW_TAG_typedef", "&&", "Tag", "!=", "dwarf", "::", "DW_TAG_const_type", "&&", "Tag", "!=", "dwarf", "::", "DW_TAG_volatile_type", "&&", "Tag", "!=", "dwarf", "::", "DW_TAG_restrict_type", ")", "break", ";"], "File": "BTFDebug7", "Func": "stripQualifiers", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2618, "Length": 37, "Cover_Rate": 0.47435897435897434} {"Template_token": ["", "uint32_t", "ElemTypeId", ",", "ElemSize", ";", "const", "DIType", "*", "ElemType", "=", "CTy", "->", "getBaseType", "(", ")", ";", "visitTypeEntry", "(", "ElemType", ",", "ElemTypeId", ",", "false", ",", "false", ")", ";", "ElemType", "=", "stripQualifiers", "(", "ElemType", ")", ";", "ElemSize", "=", "ElemType", "->", "getSizeInBits", "(", ")", ">>", "", ";", "if", "(", "!", "CTy", "->", "getSizeInBits", "(", ")", ")", "{", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeArray", ">", "(", "ElemType", ",", "ElemTypeId", ",", "", ",", "", ")", ";", "ArrayTypes", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "}", "else", "{", "DINodeArray", "Elements", "=", "CTy", "->", "getElements", "(", ")", ";", "for", "(", "int", "I", "=", "Elements", ".", "size", "(", ")", "-", "", ";", "I", ">=", "", ";", "--", "I", ")", "{", "if", "(", "auto", "*", "Element", "=", "dyn_cast_or_null", "<", "DINode", ">", "(", "Elements", "[", "I", "]", ")", ")", "if", "(", "Element", "->", "getTag", "(", ")", "==", "dwarf", "::", "DW_TAG_subrange_type", ")", "{", "const", "DISubrange", "*", "SR", "=", "cast", "<", "DISubrange", ">", "(", "Element", ")", ";", "auto", "*", "CI", "=", "SR", "->", "getCount", "(", ")", ".", "dyn_cast", "<", "ConstantInt", "*", ">", "(", ")", ";", "int64_t", "Count", "=", "CI", "->", "getSExtValue", "(", ")", ";", "const", "DIType", "*", "ArrayElemTy", "=", "(", "I", "==", "", ")", "?", "ElemType", ":", "nullptr", ";", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeArray", ">", "(", "ArrayElemTy", ",", "ElemTypeId", ",", "ElemSize", ",", "Count", ")", ";", "ArrayTypes", ".", "push_back", "(", "TypeEntry", ".", "get", "(", ")", ")", ";", "if", "(", "I", "==", "", ")", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ",", "CTy", ")", ";", "else", "ElemTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "ElemSize", "=", "ElemSize", "*", "Count", ";", "}", "}", "}", "TypeId", "=", "ElemTypeId", ";", "if", "(", "!", "ArrayIndexTypeId", ")", "{", "auto", "TypeEntry", "=", "llvm", "::", "make_unique", "<", "BTFTypeInt", ">", "(", "dwarf", "::", "DW_ATE_unsigned", ",", "", ",", "", ",", "", ")", ";", "ArrayIndexTypeId", "=", "addType", "(", "std", "::", "move", "(", "TypeEntry", ")", ")", ";", "}"], "ground_truth": ["}"], "File": "BTFDebug7", "Func": "visitArrayType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2619, "Length": 333, "Cover_Rate": 0.9568965517241379} {"Template_token": ["", "void", "addDataSecEntry", "(", "uint32_t", "Id", ",", "const", "MCSymbol", "*", "Sym", ",", "uint32_t", "Size", ")", "{", "Vars", ".", "push_back", "(", "std", "::", "make_tuple", "(", "Id", ",", "Sym", ",", "Size", ")", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "addDataSecEntry", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2621, "Length": 32, "Cover_Rate": 1.0} {"Template_token": ["", "size_t", "addString", "(", "StringRef", "S", ")", "{", "return", "StringTable", ".", "addString", "(", "S", ")", ";"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "addString", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2622, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "size_t", "addString", "(", "StringRef", "S", ")", "{"], "ground_truth": ["return", "StringTable", ".", "addString", "(", "S", ")", ";"], "File": "BTFDebug", "Func": "addString", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2623, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "BTFStringTable", "(", ")", ":", "Size", "(", "", ")", "{"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "BTFStringTable", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2624, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "BTFStringTable", "(", ")", ":", "Size", "(", "", ")", "{"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "BTFStringTable", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2625, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "BTFTypeBase", "(", ")", ":", "IsCompleted", "(", "false", ")", "{"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "BTFTypeBase", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2626, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "BTFTypeBase", "(", ")", ":", "IsCompleted", "(", "false", ")", "{"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "BTFTypeBase", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2627, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "virtual", "void", "completeType", "(", "BTFDebug", "&", "BDebug", ")", "{"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2628, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "virtual", "void", "completeType", "(", "BTFDebug", "&", "BDebug", ")", "{"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "completeType", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2629, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "uint32_t", "getId", "(", ")", "{"], "ground_truth": ["return", "Id", ";"], "File": "BTFDebug", "Func": "getId", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2632, "Length": 8, "Cover_Rate": 0.8888888888888888} {"Template_token": ["", "uint32_t", "getSize", "(", ")", "{", "return", "Size", ";"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "getSize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2635, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "uint32_t", "getSize", "(", ")", "{", "return", "Size", ";"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "getSize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2636, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "std", "::", "vector", "<", "std", "::", "string", ">", "&", "getTable", "(", ")", "{"], "ground_truth": ["return", "Table", ";"], "File": "BTFDebug", "Func": "getTable", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2637, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "uint32_t", "getTypeId", "(", "const", "DIType", "*", "Ty", ")", "{"], "ground_truth": ["assert", "(", "Ty", "&&", "", ")", ";"], "File": "BTFDebug", "Func": "getTypeId", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2638, "Length": 16, "Cover_Rate": 0.3902439024390244} {"Template_token": ["", "assert", "(", "Ty", "&&", "", ")", ";"], "ground_truth": ["assert", "(", "DIToIdMap", ".", "find", "(", "Ty", ")", "!=", "DIToIdMap", ".", "end", "(", ")", "&&", "", ")", ";"], "File": "BTFDebug", "Func": "getTypeId", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2639, "Length": 25, "Cover_Rate": 0.6097560975609756} {"Template_token": ["", "return", "(", "NumBits", "+", "", ")", ">>", "", ";"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "roundupToBytes", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2641, "Length": 10, "Cover_Rate": 0.5882352941176471} {"Template_token": ["", "void", "setId", "(", "uint32_t", "Id", ")", "{", "this", "->", "Id", "=", "Id", ";"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "setId", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2642, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "this", "->", "Id", "=", "Id", ";"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "setId", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2643, "Length": 7, "Cover_Rate": 0.5} {"Template_token": ["", "void", "setSymbolSize", "(", "const", "MCSymbol", "*", "Symbol", ",", "uint64_t", "Size", ")", "override", "{"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "setSymbolSize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2644, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "void", "setSymbolSize", "(", "const", "MCSymbol", "*", "Symbol", ",", "uint64_t", "Size", ")", "override", "{"], "ground_truth": ["}"], "File": "BTFDebug", "Func": "setSymbolSize", "Target": "BPF", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 2645, "Length": 14, "Cover_Rate": 1.0}