{"Template_token": ["", "static", "inline", "struct", "bpf_sock", "*", "bpf_get_listener_sock", "(", "struct", "bpf_sock", "*", "sk", ")", "{"], "ground_truth": ["return", "(", "struct", "bpf_sock", "*", ")", "__builtin_bpf_helper_get_listener_sock", "(", "(", "void", "*", ")", "sk", ")", ";"], "File": "bpf-helpers", "Func": "bpf_get_listener_sock", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202162, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "static", "inline", "struct", "bpf_sock", "*", "bpf_sk_fullsock", "(", "struct", "bpf_sock", "*", "sk", ")", "{", "return", "(", "struct", "bpf_sock", "*", ")", "__builtin_bpf_helper_sk_fullsock", "(", "(", "void", "*", ")", "sk", ")", ";"], "ground_truth": ["}"], "File": "bpf-helpers", "Func": "bpf_sk_fullsock", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202165, "Length": 29, "Cover_Rate": 1.0} {"Template_token": ["", "static", "inline", "struct", "bpf_sock", "*", "bpf_sk_lookup_tcp", "(", "void", "*", "ctx", ",", "struct", "bpf_sock_tuple", "*", "tuple", ",", "int", "size", ",", "unsigned", "long", "long", "netns_id", ",", "unsigned", "long", "long", "flags", ")", "{"], "ground_truth": ["return", "(", "struct", "bpf_sock", "*", ")", "__builtin_bpf_helper_sk_lookup_tcp", "(", "ctx", ",", "(", "void", "*", ")", "tuple", ",", "size", ",", "netns_id", ",", "flags", ")", ";"], "File": "bpf-helpers", "Func": "bpf_sk_lookup_tcp", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202166, "Length": 53, "Cover_Rate": 0.9814814814814815} {"Template_token": ["", "return", "(", "struct", "bpf_sock", "*", ")", "__builtin_bpf_helper_sk_lookup_tcp", "(", "ctx", ",", "(", "void", "*", ")", "tuple", ",", "size", ",", "netns_id", ",", "flags", ")", ";"], "ground_truth": ["}"], "File": "bpf-helpers", "Func": "bpf_sk_lookup_tcp", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202167, "Length": 24, "Cover_Rate": 0.4444444444444444} {"Template_token": ["", "return", "(", "struct", "bpf_sock", "*", ")", "__builtin_bpf_helper_sk_lookup_udp", "(", "ctx", ",", "(", "void", "*", ")", "tuple", ",", "size", ",", "netns_id", ",", "flags", ")", ";"], "ground_truth": ["}"], "File": "bpf-helpers", "Func": "bpf_sk_lookup_udp", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202168, "Length": 24, "Cover_Rate": 0.4444444444444444} {"Template_token": ["", "static", "inline", "struct", "bpf_sock", "*", "bpf_sk_lookup_udp", "(", "void", "*", "ctx", ",", "struct", "bpf_sock_tuple", "*", "tuple", ",", "int", "size", ",", "unsigned", "long", "long", "netns_id", ",", "unsigned", "long", "long", "flags", ")", "{"], "ground_truth": ["return", "(", "struct", "bpf_sock", "*", ")", "__builtin_bpf_helper_sk_lookup_udp", "(", "ctx", ",", "(", "void", "*", ")", "tuple", ",", "size", ",", "netns_id", ",", "flags", ")", ";"], "File": "bpf-helpers", "Func": "bpf_sk_lookup_udp", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202169, "Length": 53, "Cover_Rate": 0.9814814814814815} {"Template_token": ["", "static", "inline", "struct", "bpf_sock", "*", "bpf_tcp_sock", "(", "struct", "bpf_sock", "*", "sk", ")", "{"], "ground_truth": ["return", "(", "struct", "bpf_sock", "*", ")", "__builtin_bpf_helper_tcp_sock", "(", "(", "void", "*", ")", "sk", ")", ";"], "File": "bpf-helpers", "Func": "bpf_tcp_sock", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202170, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "static", "inline", "long", "long", "load_byte", "(", "void", "*", "skb", "__attribute__", "(", "(", "unused", ")", ")", ",", "unsigned", "long", "long", "off", ")", "{", "return", "__builtin_bpf_load_byte", "(", "off", ")", ";"], "ground_truth": ["}"], "File": "bpf-helpers", "Func": "load_byte", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202172, "Length": 29, "Cover_Rate": 1.0} {"Template_token": ["", "static", "inline", "long", "long", "load_word", "(", "void", "*", "skb", "__attribute__", "(", "(", "unused", ")", ")", ",", "unsigned", "long", "long", "off", ")", "{", "return", "__builtin_bpf_load_word", "(", "off", ")", ";"], "ground_truth": ["}"], "File": "bpf-helpers", "Func": "load_word", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202174, "Length": 29, "Cover_Rate": 1.0} {"Template_token": ["", "static", "inline", "long", "long", "load_word", "(", "void", "*", "skb", "__attribute__", "(", "(", "unused", ")", ")", ",", "unsigned", "long", "long", "off", ")", "{"], "ground_truth": ["return", "__builtin_bpf_load_word", "(", "off", ")", ";"], "File": "bpf-helpers", "Func": "load_word", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202175, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "unsigned", "int", "end_bitpos", "=", "start_bitpos", "+", "align", ";", "switch", "(", "kind", ")", "{", "case", "BPF_RELO_FIELD_BYTE_OFFSET", ":", "{", "if", "(", "var_off", "!=", "NULL_TREE", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "if", "(", "bitfieldp", ")", "result", "=", "start_bitpos", "/", "", ";", "else", "result", "=", "bitpos", "/", "", ";", "}", "break", ";", "case", "BPF_RELO_FIELD_BYTE_SIZE", ":", "{", "if", "(", "mode", "==", "BLKmode", "&&", "bitsize", "==", "-", "", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "if", "(", "bitfieldp", ")", "{", "result", "=", "end_bitpos", "-", "start_bitpos", ";", "if", "(", "result", "&", "(", "result", "-", "", ")", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "result", "=", "result", "/", "", ";", "}", "else", "result", "=", "bitsize", "/", "", ";", "}", "break", ";", "case", "BPF_RELO_FIELD_EXISTS", ":", "result", "=", "", ";", "break", ";", "case", "BPF_RELO_FIELD_SIGNED", ":", "result", "=", "!", "unsignedp", ";", "break", ";", "case", "BPF_RELO_FIELD_LSHIFT_U64", ":", "case", "BPF_RELO_FIELD_RSHIFT_U64", ":", "{", "if", "(", "mode", "==", "BLKmode", "&&", "bitsize", "==", "-", "", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "if", "(", "var_off", "!=", "NULL_TREE", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "if", "(", "!", "bitfieldp", ")", "{", "if", "(", "bitsize", ">", "", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "result", "=", "", "-", "bitsize", ";", "break", ";", "}", "if", "(", "end_bitpos", "-", "start_bitpos", ">", "", ")", "{"], "ground_truth": ["error_at", "(", "loc", ",", "", ")", ";"], "File": "bpf1", "Func": "bpf_core_field_info", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202176, "Length": 248, "Cover_Rate": 0.5134575569358178} {"Template_token": ["", "}", "unsigned", "int", "start_bitpos", "=", "bitpos", "&", "~", "(", "align", "-", "", ")", ";", "unsigned", "int", "end_bitpos", "=", "start_bitpos", "+", "align", ";", "switch", "(", "kind", ")", "{", "case", "BPF_RELO_FIELD_BYTE_OFFSET", ":", "{", "if", "(", "var_off", "!=", "NULL_TREE", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "if", "(", "bitfieldp", ")", "result", "=", "start_bitpos", "/", "", ";", "else", "result", "=", "bitpos", "/", "", ";", "}", "break", ";", "case", "BPF_RELO_FIELD_BYTE_SIZE", ":", "{", "if", "(", "mode", "==", "BLKmode", "&&", "bitsize", "==", "-", "", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "if", "(", "bitfieldp", ")", "{", "result", "=", "end_bitpos", "-", "start_bitpos", ";", "if", "(", "result", "&", "(", "result", "-", "", ")", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "result", "=", "result", "/", "", ";", "}", "else", "result", "=", "bitsize", "/", "", ";", "}", "break", ";", "case", "BPF_RELO_FIELD_EXISTS", ":", "result", "=", "", ";", "break", ";", "case", "BPF_RELO_FIELD_SIGNED", ":", "result", "=", "!", "unsignedp", ";", "break", ";", "case", "BPF_RELO_FIELD_LSHIFT_U64", ":", "case", "BPF_RELO_FIELD_RSHIFT_U64", ":", "{", "if", "(", "mode", "==", "BLKmode", "&&", "bitsize", "==", "-", "", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "if", "(", "var_off", "!=", "NULL_TREE", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "if", "(", "!", "bitfieldp", ")", "{", "if", "(", "bitsize", ">", "", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "result", "=", "", "-", "bitsize", ";", "break", ";", "}", "if", "(", "end_bitpos", "-", "start_bitpos", ">", "", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "if", "(", "kind", "==", "BPF_RELO_FIELD_LSHIFT_U64", ")", "{", "if", "(", "TARGET_BIG_ENDIAN", ")", "result", "=", "bitpos", "+", "", "-", "start_bitpos", "-", "align", ";", "else", "result", "=", "start_bitpos", "+", "", "-", "bitpos", "-", "bitsize", ";", "}", "else", "result", "=", "", "-", "bitsize", ";", "}", "break", ";", "default", ":", "error", "(", "", ")", ";"], "ground_truth": ["return", "error_mark_node", ";"], "File": "bpf1", "Func": "bpf_core_field_info", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202177, "Length": 319, "Cover_Rate": 0.660455486542443} {"Template_token": ["", "return", "bpf_core_is_maybe_aggregate_access", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";", "default", ":", "return", "false", ";", "}"], "ground_truth": ["}"], "File": "bpf1", "Func": "bpf_core_is_maybe_aggregate_access", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202178, "Length": 18, "Cover_Rate": 0.32727272727272727} {"Template_token": ["", "return", "bpf_core_is_maybe_aggregate_access", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";", "default", ":", "return", "false", ";", "}"], "ground_truth": ["}"], "File": "bpf1", "Func": "bpf_core_is_maybe_aggregate_access", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202179, "Length": 18, "Cover_Rate": 0.32727272727272727} {"Template_token": ["", "case", "BPF_BUILTIN_PRESERVE_FIELD_INFO", ":", "{", "rettype", "=", "build_function_type_list", "(", "unsigned_type_node", ",", "type", ",", "unsigned_type_node", ",", "NULL", ")", ";", "int", "len", "=", "snprintf", "(", "name", ",", "sizeof", "(", "name", ")", ",", "", ",", "", ")", ";", "len", "=", "snprintf", "(", "name", "+", "len", ",", "sizeof", "(", "name", ")", "-", "len", ",", "", ",", "pfi_count", "++", ")", ";"], "ground_truth": ["}"], "File": "bpf1", "Func": "bpf_core_newdecl", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202180, "Length": 56, "Cover_Rate": 0.3128491620111732} {"Template_token": ["", "static", "tree", "bpf_core_walk", "(", "tree", "*", "tp", ",", "int", "*", "walk_subtrees", ",", "void", "*", "data", ")", "{", "struct", "core_walk_data", "*", "dat", "=", "(", "struct", "core_walk_data", "*", ")", "data", ";", "if", "(", "TYPE_P", "(", "*", "tp", ")", ")", "{", "*", "walk_subtrees", "=", "", ";", "return", "NULL_TREE", ";", "}", "tree", "newdecl", "=", "bpf_core_newdecl", "(", "TREE_TYPE", "(", "*", "tp", ")", ",", "dat", "->", "which", ")", ";", "if", "(", "dat", "->", "which", "==", "BPF_BUILTIN_PRESERVE_ACCESS_INDEX", ")", "{", "if", "(", "bpf_core_is_maybe_aggregate_access", "(", "*", "tp", ")", ")", "{", "*", "tp", "=", "build_call_expr_loc", "(", "dat", "->", "loc", ",", "newdecl", ",", "", ",", "*", "tp", ")", ";", "*", "walk_subtrees", "=", "", ";"], "ground_truth": ["}"], "File": "bpf1", "Func": "bpf_core_walk", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202181, "Length": 104, "Cover_Rate": 0.7536231884057971} {"Template_token": ["", "if", "(", "code", "==", "BPF_BUILTIN_LOAD_BYTE", "||", "code", "==", "BPF_BUILTIN_LOAD_HALF", "||", "code", "==", "BPF_BUILTIN_LOAD_WORD", ")", "{", "enum", "insn_code", "abs_icode", "=", "(", "code", "==", "BPF_BUILTIN_LOAD_BYTE", "?", "CODE_FOR_ldabsb", ":", "code", "==", "BPF_BUILTIN_LOAD_HALF", "?", "CODE_FOR_ldabsh", ":", "CODE_FOR_ldabsw", ")", ";", "enum", "insn_code", "ind_icode", "=", "(", "code", "==", "BPF_BUILTIN_LOAD_BYTE", "?", "CODE_FOR_ldindb", ":", "code", "==", "BPF_BUILTIN_LOAD_HALF", "?", "CODE_FOR_ldindh", ":", "CODE_FOR_ldindw", ")", ";", "tree", "offset_arg", "=", "CALL_EXPR_ARG", "(", "exp", ",", "", ")", ";", "struct", "expand_operand", "ops", "[", "", "]", ";", "create_input_operand", "(", "&", "ops", "[", "", "]", ",", "expand_normal", "(", "offset_arg", ")", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "offset_arg", ")", ")", ")", ";", "create_input_operand", "(", "&", "ops", "[", "", "]", ",", "const0_rtx", ",", "SImode", ")", ";", "if", "(", "!", "maybe_expand_insn", "(", "abs_icode", ",", "", ",", "ops", ")", "&&", "!", "maybe_expand_insn", "(", "ind_icode", ",", "", ",", "ops", ")", ")", "{", "error", "(", "", ")", ";", "return", "gen_rtx_REG", "(", "ops", "[", "", "]", ".", "mode", ",", "BPF_R0", ")", ";", "}", "return", "gen_rtx_REG", "(", "ops", "[", "", "]", ".", "mode", ",", "BPF_R0", ")", ";", "}", "else", "if", "(", "code", "==", "-", "BPF_BUILTIN_PRESERVE_ACCESS_INDEX", ")", "{"], "ground_truth": ["tree", "arg", "=", "CALL_EXPR_ARG", "(", "exp", ",", "", ")", ";"], "File": "bpf1", "Func": "bpf_expand_builtin", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202182, "Length": 182, "Cover_Rate": 0.39651416122004357} {"Template_token": ["", "enum", "insn_code", "ind_icode", "=", "(", "code", "==", "BPF_BUILTIN_LOAD_BYTE", "?", "CODE_FOR_ldindb", ":", "code", "==", "BPF_BUILTIN_LOAD_HALF", "?", "CODE_FOR_ldindh", ":", "CODE_FOR_ldindw", ")", ";", "tree", "offset_arg", "=", "CALL_EXPR_ARG", "(", "exp", ",", "", ")", ";", "struct", "expand_operand", "ops", "[", "", "]", ";", "create_input_operand", "(", "&", "ops", "[", "", "]", ",", "expand_normal", "(", "offset_arg", ")", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "offset_arg", ")", ")", ")", ";", "create_input_operand", "(", "&", "ops", "[", "", "]", ",", "const0_rtx", ",", "SImode", ")", ";", "if", "(", "!", "maybe_expand_insn", "(", "abs_icode", ",", "", ",", "ops", ")", "&&", "!", "maybe_expand_insn", "(", "ind_icode", ",", "", ",", "ops", ")", ")", "{", "error", "(", "", ")", ";", "return", "gen_rtx_REG", "(", "ops", "[", "", "]", ".", "mode", ",", "BPF_R0", ")", ";", "}", "return", "gen_rtx_REG", "(", "ops", "[", "", "]", ".", "mode", ",", "BPF_R0", ")", ";", "}", "else", "if", "(", "code", "==", "-", "BPF_BUILTIN_PRESERVE_ACCESS_INDEX", ")", "{", "tree", "arg", "=", "CALL_EXPR_ARG", "(", "exp", ",", "", ")", ";", "if", "(", "arg", "==", "NULL_TREE", ")", "return", "NULL_RTX", ";", "if", "(", "TREE_CODE", "(", "arg", ")", "==", "SSA_NAME", ")", "{", "gimple", "*", "def_stmt", "=", "SSA_NAME_DEF_STMT", "(", "arg", ")", ";"], "ground_truth": ["if", "(", "is_gimple_assign", "(", "def_stmt", ")", ")", "arg", "=", "gimple_assign_rhs1", "(", "def_stmt", ")", ";"], "File": "bpf1", "Func": "bpf_expand_builtin", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202183, "Length": 189, "Cover_Rate": 0.4117647058823529} {"Template_token": ["", "if", "(", "!", "IN_RANGE", "(", "fp_offset", ",", "-", "", "-", "", ",", "", ")", ")", "break", ";", "else", "{", "mem", "=", "gen_frame_mem", "(", "DImode", ",", "plus_constant", "(", "DImode", ",", "hard_frame_pointer_rtx", ",", "fp_offset", "-", "", ")", ")", ";", "emit_move_insn", "(", "gen_rtx_REG", "(", "DImode", ",", "regno", ")", ",", "mem", ")", ";", "fp_offset", "-=", "", ";", "}", "}", "}", "}"], "ground_truth": ["emit_jump_insn", "(", "gen_exit", "(", ")", ")", ";"], "File": "bpf1", "Func": "bpf_expand_epilogue", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202184, "Length": 64, "Cover_Rate": 0.48484848484848486} {"Template_token": ["", "HOST_WIDE_INT", "size", ";", "size", "=", "(", "cfun", "->", "machine", "->", "local_vars_size", "+", "cfun", "->", "machine", "->", "callee_saved_reg_size", ")", ";", "if", "(", "TARGET_XBPF", ")", "{", "int", "regno", ";", "int", "fp_offset", "=", "-", "cfun", "->", "machine", "->", "local_vars_size", ";", "for", "(", "regno", "=", "", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "{", "if", "(", "(", "df_regs_ever_live_p", "(", "regno", ")", "&&", "!", "call_used_or_fixed_reg_p", "(", "regno", ")", ")", "||", "(", "cfun", "->", "calls_alloca", "&&", "regno", "==", "STACK_POINTER_REGNUM", ")", ")", "{", "rtx", "mem", ";", "if", "(", "!", "IN_RANGE", "(", "fp_offset", ",", "-", "", "-", "", ",", "", ")", ")", "break", ";", "else", "{", "mem", "=", "gen_frame_mem", "(", "DImode", ",", "plus_constant", "(", "DImode", ",", "hard_frame_pointer_rtx", ",", "fp_offset", "-", "", ")", ")", ";", "emit_move_insn", "(", "mem", ",", "gen_rtx_REG", "(", "DImode", ",", "regno", ")", ")", ";", "fp_offset", "-=", "", ";"], "ground_truth": ["}"], "File": "bpf1", "Func": "bpf_expand_prologue", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202185, "Length": 134, "Cover_Rate": 0.7127659574468085} {"Template_token": ["", "static", "void", "bpf_init_builtins", "(", "void", ")", "{", "tree", "ullt", "=", "long_long_unsigned_type_node", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_LOAD_BYTE", ",", "build_function_type_list", "(", "ullt", ",", "ullt", ",", "", ")", ")", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_LOAD_HALF", ",", "build_function_type_list", "(", "ullt", ",", "ullt", ",", "", ")", ")", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_LOAD_WORD", ",", "build_function_type_list", "(", "ullt", ",", "ullt", ",", "", ")", ")", ";"], "ground_truth": ["def_builtin", "(", "", ",", "BPF_BUILTIN_PRESERVE_ACCESS_INDEX", ",", "build_function_type_list", "(", "ptr_type_node", ",", "ptr_type_node", ",", "", ")", ")", ";"], "File": "bpf1", "Func": "bpf_init_builtins", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202186, "Length": 76, "Cover_Rate": 0.8} {"Template_token": ["", "tree", "ullt", "=", "long_long_unsigned_type_node", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_LOAD_BYTE", ",", "build_function_type_list", "(", "ullt", ",", "ullt", ",", "", ")", ")", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_LOAD_HALF", ",", "build_function_type_list", "(", "ullt", ",", "ullt", ",", "", ")", ")", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_LOAD_WORD", ",", "build_function_type_list", "(", "ullt", ",", "ullt", ",", "", ")", ")", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_PRESERVE_ACCESS_INDEX", ",", "build_function_type_list", "(", "ptr_type_node", ",", "ptr_type_node", ",", "", ")", ")", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_PRESERVE_FIELD_INFO", ",", "build_function_type_list", "(", "unsigned_type_node", ",", "ptr_type_node", ",", "unsigned_type_node", ",", "", ")", ")", ";"], "ground_truth": ["}"], "File": "bpf1", "Func": "bpf_init_builtins", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202187, "Length": 88, "Cover_Rate": 0.9263157894736842} {"Template_token": ["", "case", "ARRAY_REF", ":", "case", "ARRAY_RANGE_REF", ":", "return", "true", ";", "case", "NOP_EXPR", ":", "return", "bpf_is_valid_preserve_field_info_arg", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";"], "ground_truth": ["case", "ADDR_EXPR", ":"], "File": "bpf1", "Func": "bpf_is_valid_preserve_field_info_arg", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202188, "Length": 26, "Cover_Rate": 0.35135135135135137} {"Template_token": ["", "if", "(", "bpf_has_jmpext", "==", "-", "", ")", "bpf_has_jmpext", "=", "(", "bpf_isa", ">=", "ISA_V2", ")", ";", "if", "(", "bpf_has_alu32", "==", "-", "", ")", "bpf_has_alu32", "=", "(", "bpf_isa", ">=", "ISA_V3", ")", ";", "if", "(", "bpf_has_jmp32", "==", "-", "", ")", "bpf_has_jmp32", "=", "(", "bpf_isa", ">=", "ISA_V3", ")", ";", "if", "(", "flag_stack_protect", ")", "{", "inform", "(", "input_location", ",", "", "", ")", ";"], "ground_truth": ["flag_stack_protect", "=", "", ";"], "File": "bpf1", "Func": "bpf_option_override", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202189, "Length": 62, "Cover_Rate": 0.4732824427480916} {"Template_token": ["", "static", "void", "bpf_option_override", "(", "void", ")", "{", "init_machine_status", "=", "bpf_init_machine_status", ";", "if", "(", "TARGET_BPF_CORE", "&&", "!", "btf_debuginfo_p", "(", ")", ")", "error", "(", "", ")", ";", "if", "(", "TARGET_BPF_CORE", ")", "write_symbols", "|=", "BTF_WITH_CORE_DEBUG", ";", "if", "(", "flag_lto", "&&", "TARGET_BPF_CORE", ")", "sorry", "(", "", ")", ";", "if", "(", "btf_debuginfo_p", "(", ")", "&&", "!", "(", "target_flags_explicit", "&", "MASK_BPF_CORE", ")", ")", "{", "target_flags", "|=", "MASK_BPF_CORE", ";", "write_symbols", "|=", "BTF_WITH_CORE_DEBUG", ";", "}", "if", "(", "bpf_has_jmpext", "==", "-", "", ")", "bpf_has_jmpext", "=", "(", "bpf_isa", ">=", "ISA_V2", ")", ";", "if", "(", "bpf_has_alu32", "==", "-", "", ")", "bpf_has_alu32", "=", "(", "bpf_isa", ">=", "ISA_V3", ")", ";"], "ground_truth": ["if", "(", "bpf_has_jmp32", "==", "-", "", ")", "bpf_has_jmp32", "=", "(", "bpf_isa", ">=", "ISA_V3", ")", ";"], "File": "bpf1", "Func": "bpf_option_override", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202190, "Length": 112, "Cover_Rate": 0.8549618320610687} {"Template_token": ["", "if", "(", "GET_MODE", "(", "op", ")", "==", "VOIDmode", ")", "{", "if", "(", "CONST_DOUBLE_HIGH", "(", "op", ")", ")", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_DOUBLE_HEX", ",", "CONST_DOUBLE_HIGH", "(", "op", ")", ",", "CONST_DOUBLE_LOW", "(", "op", ")", ")", ";", "else", "if", "(", "CONST_DOUBLE_LOW", "(", "op", ")", "<", "", ")", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_HEX", ",", "CONST_DOUBLE_LOW", "(", "op", ")", ")", ";", "else", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_DEC", ",", "CONST_DOUBLE_LOW", "(", "op", ")", ")", ";", "}", "else", "{", "long", "vals", "[", "", "]", ";", "real_to_target", "(", "vals", ",", "CONST_DOUBLE_REAL_VALUE", "(", "op", ")", ",", "GET_MODE", "(", "op", ")", ")", ";", "vals", "[", "", "]", "&=", "", ";", "vals", "[", "", "]", "&=", "", ";", "if", "(", "GET_MODE", "(", "op", ")", "==", "SFmode", ")", "fprintf", "(", "file", ",", "", ",", "vals", "[", "", "]", ")", ";", "else", "if", "(", "GET_MODE", "(", "op", ")", "==", "DFmode", ")", "{", "if", "(", "WORDS_BIG_ENDIAN", ")", "fprintf", "(", "file", ",", "", ",", "vals", "[", "", "]", ",", "vals", "[", "", "]", ")", ";", "else", "fprintf", "(", "file", ",", "", ",", "vals", "[", "", "]", ",", "vals", "[", "", "]", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "}"], "ground_truth": ["break", ";"], "File": "bpf1", "Func": "bpf_print_operand", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202191, "Length": 187, "Cover_Rate": 0.7083333333333334} {"Template_token": ["", "else", "if", "(", "CONST_DOUBLE_LOW", "(", "op", ")", "<", "", ")", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_HEX", ",", "CONST_DOUBLE_LOW", "(", "op", ")", ")", ";", "else", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_DEC", ",", "CONST_DOUBLE_LOW", "(", "op", ")", ")", ";", "}", "else", "{", "long", "vals", "[", "", "]", ";", "real_to_target", "(", "vals", ",", "CONST_DOUBLE_REAL_VALUE", "(", "op", ")", ",", "GET_MODE", "(", "op", ")", ")", ";", "vals", "[", "", "]", "&=", "", ";", "vals", "[", "", "]", "&=", "", ";", "if", "(", "GET_MODE", "(", "op", ")", "==", "SFmode", ")", "fprintf", "(", "file", ",", "", ",", "vals", "[", "", "]", ")", ";", "else", "if", "(", "GET_MODE", "(", "op", ")", "==", "DFmode", ")", "{", "if", "(", "WORDS_BIG_ENDIAN", ")", "fprintf", "(", "file", ",", "", ",", "vals", "[", "", "]", ",", "vals", "[", "", "]", ")", ";"], "ground_truth": ["else", "fprintf", "(", "file", ",", "", ",", "vals", "[", "", "]", ",", "vals", "[", "", "]", ")", ";"], "File": "bpf1", "Func": "bpf_print_operand", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202192, "Length": 144, "Cover_Rate": 0.5454545454545454} {"Template_token": ["", "vec", "<", "tree", ",", "va_gc", ">", "*", "params", "=", "static_cast", "<", "vec", "<", "tree", ",", "va_gc", ">", "*", ">", "(", "arglist", ")", ";", "unsigned", "n_params", "=", "params", "?", "params", "->", "length", "(", ")", ":", "", ";", "if", "(", "!", "(", "which", "==", "BPF_BUILTIN_PRESERVE_ACCESS_INDEX", "&&", "n_params", "==", "", ")", "&&", "n_params", "!=", "", ")", "{", "error_at", "(", "loc", ",", "", ")", ";", "return", "error_mark_node", ";", "}", "tree", "param", "=", "(", "*", "params", ")", "[", "", "]", ";", "if", "(", "which", "==", "BPF_BUILTIN_PRESERVE_ACCESS_INDEX", "&&", "!", "TARGET_BPF_CORE", ")", "return", "param", ";", "else", "if", "(", "which", "==", "BPF_BUILTIN_PRESERVE_FIELD_INFO", "&&", "!", "bpf_is_valid_preserve_field_info_arg", "(", "param", ")", ")", "{", "error_at", "(", "EXPR_LOC_OR_LOC", "(", "param", ",", "loc", ")", ",", "", ")", ";", "return", "error_mark_node", ";", "}"], "ground_truth": ["if", "(", "TREE_CODE", "(", "param", ")", "==", "C_MAYBE_CONST_EXPR", ")", "param", "=", "C_MAYBE_CONST_EXPR_EXPR", "(", "param", ")", ";"], "File": "bpf1", "Func": "bpf_resolve_overloaded_builtin", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202193, "Length": 134, "Cover_Rate": 0.5654008438818565} {"Template_token": ["", "static", "bool", "bpf_small_register_classes_for_mode_p", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_XBPF", ")", "return", "", ";"], "ground_truth": ["else", "return", "(", "mode", "!=", "FUNCTION_MODE", ")", ";"], "File": "bpf1", "Func": "bpf_small_register_classes_for_mode_p", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202194, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "static", "bool", "bpf_small_register_classes_for_mode_p", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_XBPF", ")", "return", "", ";", "else", "return", "(", "mode", "!=", "FUNCTION_MODE", ")", ";"], "ground_truth": ["}"], "File": "bpf1", "Func": "bpf_small_register_classes_for_mode_p", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202195, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "case", "LINUX_V4_7", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_8", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_9", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_10", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_11", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_12", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_13", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_14", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_15", ":", "version_code", "=", "", ";", "break", ";"], "ground_truth": ["case", "LINUX_V4_16", ":", "version_code", "=", "", ";", "break", ";"], "File": "bpf1", "Func": "bpf_target_macros", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202196, "Length": 90, "Cover_Rate": 0.30927835051546393} {"Template_token": ["", "tree", "expr", "=", "MEM_EXPR", "(", "mem", ")", ";", "if", "(", "!", "expr", ")", "continue", ";", "if", "(", "TREE_CODE", "(", "expr", ")", "==", "MEM_REF", "&&", "TREE_CODE", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", "==", "SSA_NAME", ")", "{", "gimple", "*", "def_stmt", "=", "SSA_NAME_DEF_STMT", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";", "if", "(", "def_stmt", "&&", "is_gimple_assign", "(", "def_stmt", ")", ")", "expr", "=", "gimple_assign_rhs1", "(", "def_stmt", ")", ";", "}", "if", "(", "is_attr_preserve_access", "(", "expr", ")", ")", "maybe_make_core_relo", "(", "expr", ",", "BPF_RELO_FIELD_BYTE_OFFSET", ")", ";"], "ground_truth": ["}"], "File": "bpf1", "Func": "FOR_BB_INSNS", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202197, "Length": 83, "Cover_Rate": 0.4689265536723164} {"Template_token": ["", "if", "(", "!", "expr", ")", "continue", ";", "if", "(", "TREE_CODE", "(", "expr", ")", "==", "MEM_REF", "&&", "TREE_CODE", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", "==", "SSA_NAME", ")", "{", "gimple", "*", "def_stmt", "=", "SSA_NAME_DEF_STMT", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";", "if", "(", "def_stmt", "&&", "is_gimple_assign", "(", "def_stmt", ")", ")", "expr", "=", "gimple_assign_rhs1", "(", "def_stmt", ")", ";", "}", "if", "(", "is_attr_preserve_access", "(", "expr", ")", ")", "maybe_make_core_relo", "(", "expr", ",", "BPF_RELO_FIELD_BYTE_OFFSET", ")", ";", "}", "}", "rtx_insn", "*", "seq", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";"], "ground_truth": ["emit_insn_before", "(", "seq", ",", "insn", ")", ";"], "File": "bpf1", "Func": "FOR_EACH_BB_FN", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202198, "Length": 95, "Cover_Rate": 0.5135135135135135} {"Template_token": ["", "if", "(", "!", "expr", ")", "continue", ";", "if", "(", "TREE_CODE", "(", "expr", ")", "==", "MEM_REF", "&&", "TREE_CODE", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", "==", "SSA_NAME", ")", "{", "gimple", "*", "def_stmt", "=", "SSA_NAME_DEF_STMT", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";", "if", "(", "def_stmt", "&&", "is_gimple_assign", "(", "def_stmt", ")", ")", "expr", "=", "gimple_assign_rhs1", "(", "def_stmt", ")", ";"], "ground_truth": ["}"], "File": "bpf1", "Func": "FOR_EACH_BB_FN", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202199, "Length": 60, "Cover_Rate": 0.32432432432432434} {"Template_token": ["", "if", "(", "GET_CODE", "(", "pat", ")", "!=", "SET", ")", "continue", ";", "start_sequence", "(", ")", ";", "for", "(", "int", "i", "=", "", ";", "i", "<", "", ";", "i", "++", ")", "{", "rtx", "mem", "=", "XEXP", "(", "pat", ",", "i", ")", ";", "if", "(", "MEM_P", "(", "mem", ")", ")", "{", "tree", "expr", "=", "MEM_EXPR", "(", "mem", ")", ";", "if", "(", "!", "expr", ")", "continue", ";", "if", "(", "TREE_CODE", "(", "expr", ")", "==", "MEM_REF", "&&", "TREE_CODE", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", "==", "SSA_NAME", ")", "{", "gimple", "*", "def_stmt", "=", "SSA_NAME_DEF_STMT", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";", "if", "(", "def_stmt", "&&", "is_gimple_assign", "(", "def_stmt", ")", ")", "expr", "=", "gimple_assign_rhs1", "(", "def_stmt", ")", ";", "}", "if", "(", "is_attr_preserve_access", "(", "expr", ")", ")", "maybe_make_core_relo", "(", "expr", ",", "BPF_RELO_FIELD_BYTE_OFFSET", ")", ";", "}", "}", "rtx_insn", "*", "seq", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "emit_insn_before", "(", "seq", ",", "insn", ")", ";", "}", "}"], "ground_truth": ["}"], "File": "bpf1", "Func": "handle_attr_preserve", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202200, "Length": 154, "Cover_Rate": 0.7623762376237624} {"Template_token": ["", "auto_vec", "<", "unsigned", "int", ",", "", ">", "accessors", ";", "tree", "container", "=", "bpf_core_compute", "(", "expr", ",", "&", "accessors", ")", ";", "if", "(", "accessors", ".", "length", "(", ")", "<", "", ")", "return", ";", "accessors", ".", "reverse", "(", ")", ";", "rtx_code_label", "*", "label", "=", "gen_label_rtx", "(", ")", ";", "LABEL_PRESERVE_P", "(", "label", ")", "=", "", ";"], "ground_truth": ["emit_label", "(", "label", ")", ";"], "File": "bpf1", "Func": "maybe_make_core_relo", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202201, "Length": 58, "Cover_Rate": 0.4793388429752066} {"Template_token": ["", "auto_vec", "<", "unsigned", "int", ",", "", ">", "accessors", ";", "tree", "container", "=", "bpf_core_compute", "(", "expr", ",", "&", "accessors", ")", ";", "if", "(", "accessors", ".", "length", "(", ")", "<", "", ")", "return", ";", "accessors", ".", "reverse", "(", ")", ";", "rtx_code_label", "*", "label", "=", "gen_label_rtx", "(", ")", ";"], "ground_truth": ["LABEL_PRESERVE_P", "(", "label", ")", "=", "", ";"], "File": "bpf1", "Func": "maybe_make_core_relo", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202202, "Length": 53, "Cover_Rate": 0.4380165289256198} {"Template_token": ["", "return", "(", "GET_CODE", "(", "x", ")", "==", "REG", "&&", "(", "REGNO", "(", "x", ")", "<", "", "||", "(", "!", "strict", "&&", "REGNO", "(", "x", ")", ">=", "FIRST_PSEUDO_REGISTER", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_address_base_p", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202203, "Length": 32, "Cover_Rate": 0.7272727272727273} {"Template_token": ["", "return", "(", "GET_CODE", "(", "x", ")", "==", "REG", "&&", "(", "REGNO", "(", "x", ")", "<", "", "||", "(", "!", "strict", "&&", "REGNO", "(", "x", ")", ">=", "FIRST_PSEUDO_REGISTER", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_address_base_p", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202204, "Length": 32, "Cover_Rate": 0.7272727272727273} {"Template_token": ["", "if", "(", "TARGET_BPF_CORE", ")", "btf_ext_init", "(", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_asm_init_sections", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202205, "Length": 9, "Cover_Rate": 0.5625} {"Template_token": ["", "fprintf", "(", "asm_out_file", ",", "", ",", "name", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_asm_named_section", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202207, "Length": 10, "Cover_Rate": 0.3448275862068966} {"Template_token": ["", "cfun", "->", "machine", "->", "local_vars_size", "+=", "padding_locals", ";", "if", "(", "TARGET_XBPF", ")", "{", "for", "(", "regno", "=", "", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "if", "(", "(", "df_regs_ever_live_p", "(", "regno", ")", "&&", "!", "call_used_or_fixed_reg_p", "(", "regno", ")", ")", "||", "(", "cfun", "->", "calls_alloca", "&&", "regno", "==", "STACK_POINTER_REGNUM", ")", ")", "cfun", "->", "machine", "->", "callee_saved_reg_size", "+=", "", ";", "}", "if", "(", "(", "cfun", "->", "machine", "->", "local_vars_size", "+", "cfun", "->", "machine", "->", "callee_saved_reg_size", ")", ">", "bpf_frame_limit", ")", "{", "static", "int", "stack_limit_exceeded", "=", "", ";", "if", "(", "!", "stack_limit_exceeded", ")", "error", "(", "", ")", ";", "stack_limit_exceeded", "=", "", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_compute_frame_layout", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202209, "Length": 100, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "case", "COMPONENT_REF", ":", "accessors", "->", "safe_push", "(", "bpf_core_get_index", "(", "TREE_OPERAND", "(", "node", ",", "", ")", ")", ")", ";", "break", ";", "case", "ARRAY_REF", ":", "case", "ARRAY_RANGE_REF", ":", "accessors", "->", "safe_push", "(", "bpf_core_get_index", "(", "node", ")", ")", ";", "break", ";", "case", "MEM_REF", ":", "accessors", "->", "safe_push", "(", "bpf_core_get_index", "(", "node", ")", ")", ";", "if", "(", "TREE_CODE", "(", "TREE_OPERAND", "(", "node", ",", "", ")", ")", "==", "ADDR_EXPR", ")", "node", "=", "TREE_OPERAND", "(", "TREE_OPERAND", "(", "node", ",", "", ")", ",", "", ")", ";", "goto", "done", ";", "default", ":", "goto", "done", ";", "}", "node", "=", "TREE_OPERAND", "(", "node", ",", "", ")", ";", "}", "done", ":", "return", "node", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_core_compute", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202210, "Length": 104, "Cover_Rate": 0.5621621621621622} {"Template_token": ["", "}", "else", "if", "(", "code", "==", "ARRAY_REF", "||", "code", "==", "ARRAY_RANGE_REF", "||", "code", "==", "MEM_REF", ")", "{", "tree", "index", "=", "TREE_OPERAND", "(", "node", ",", "", ")", ";", "if", "(", "TREE_CODE", "(", "index", ")", "==", "INTEGER_CST", "&&", "tree_fits_shwi_p", "(", "index", ")", ")", "return", "tree_to_shwi", "(", "index", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_core_get_index", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202211, "Length": 48, "Cover_Rate": 0.48484848484848486} {"Template_token": ["", "enum", "tree_code", "code", "=", "TREE_CODE", "(", "expr", ")", ";", "if", "(", "code", "==", "COMPONENT_REF", "||", "code", "==", "ARRAY_REF", ")", "return", "", ";", "if", "(", "code", "==", "ADDR_EXPR", ")", "return", "bpf_core_is_maybe_aggregate_access", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";", "return", "", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_core_is_maybe_aggregate_access", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202212, "Length": 43, "Cover_Rate": 0.8431372549019608} {"Template_token": ["", "static", "int", "bpf_core_is_maybe_aggregate_access", "(", "tree", "expr", ")", "{", "enum", "tree_code", "code", "=", "TREE_CODE", "(", "expr", ")", ";", "if", "(", "code", "==", "COMPONENT_REF", "||", "code", "==", "ARRAY_REF", ")", "return", "", ";"], "ground_truth": ["if", "(", "code", "==", "ADDR_EXPR", ")", "return", "bpf_core_is_maybe_aggregate_access", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";"], "File": "bpf", "Func": "bpf_core_is_maybe_aggregate_access", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202213, "Length": 47, "Cover_Rate": 0.9215686274509803} {"Template_token": ["", "len", "=", "snprintf", "(", "name", "+", "len", ",", "sizeof", "(", "name", ")", "-", "len", ",", "", ",", "cnt", "++", ")", ";", "return", "add_builtin_function_ext_scope", "(", "name", ",", "rettype", ",", "-", "", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_core_newdecl", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202214, "Length": 39, "Cover_Rate": 0.43820224719101125} {"Template_token": ["", "location_t", "loc", "=", "*", "(", "(", "location_t", "*", ")", "data", ")", ";", "if", "(", "TYPE_P", "(", "*", "tp", ")", ")", "{", "*", "walk_subtrees", "=", "", ";", "return", "NULL_TREE", ";", "}", "if", "(", "bpf_core_is_maybe_aggregate_access", "(", "*", "tp", ")", ")", "{"], "ground_truth": ["tree", "newdecl", "=", "bpf_core_newdecl", "(", "TREE_TYPE", "(", "*", "tp", ")", ")", ";"], "File": "bpf", "Func": "bpf_core_walk", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202215, "Length": 51, "Cover_Rate": 0.5204081632653061} {"Template_token": ["", "tree", "newdecl", "=", "bpf_core_newdecl", "(", "TREE_TYPE", "(", "*", "tp", ")", ")", ";", "tree", "newcall", "=", "build_call_expr_loc", "(", "loc", ",", "newdecl", ",", "", ",", "*", "tp", ")", ";", "*", "tp", "=", "newcall", ";", "*", "walk_subtrees", "=", "", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_core_walk", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202216, "Length": 38, "Cover_Rate": 0.3877551020408163} {"Template_token": ["", "static", "enum", "unwind_info_type", "bpf_debug_unwind_info", "(", ")", "{", "return", "UI_NONE", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_debug_unwind_info", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202217, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "static", "enum", "unwind_info_type", "bpf_debug_unwind_info", "(", ")", "{"], "ground_truth": ["return", "UI_NONE", ";"], "File": "bpf", "Func": "bpf_debug_unwind_info", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202218, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "enum", "insn_code", "abs_icode", "=", "(", "code", "==", "BPF_BUILTIN_LOAD_BYTE", "?", "CODE_FOR_ldabsb", ":", "code", "==", "BPF_BUILTIN_LOAD_HALF", "?", "CODE_FOR_ldabsh", ":", "CODE_FOR_ldabsw", ")", ";", "enum", "insn_code", "ind_icode", "=", "(", "code", "==", "BPF_BUILTIN_LOAD_BYTE", "?", "CODE_FOR_ldindb", ":", "code", "==", "BPF_BUILTIN_LOAD_HALF", "?", "CODE_FOR_ldindh", ":", "CODE_FOR_ldindw", ")", ";", "tree", "offset_arg", "=", "CALL_EXPR_ARG", "(", "exp", ",", "", ")", ";", "struct", "expand_operand", "ops", "[", "", "]", ";", "create_input_operand", "(", "&", "ops", "[", "", "]", ",", "expand_normal", "(", "offset_arg", ")", ",", "TYPE_MODE", "(", "TREE_TYPE", "(", "offset_arg", ")", ")", ")", ";", "create_input_operand", "(", "&", "ops", "[", "", "]", ",", "const0_rtx", ",", "SImode", ")", ";", "if", "(", "!", "maybe_expand_insn", "(", "abs_icode", ",", "", ",", "ops", ")", "&&", "!", "maybe_expand_insn", "(", "ind_icode", ",", "", ",", "ops", ")", ")", "{", "error", "(", "", ")", ";", "return", "gen_rtx_REG", "(", "ops", "[", "", "]", ".", "mode", ",", "BPF_R0", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_expand_builtin", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202219, "Length": 134, "Cover_Rate": 0.3260340632603406} {"Template_token": ["", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "operands", "[", "", "]", ")", ";", "if", "(", "(", "code", "==", "LT", "||", "code", "==", "LE", "||", "code", "==", "LTU", "||", "code", "==", "LEU", ")", ")", "{", "PUT_CODE", "(", "operands", "[", "", "]", ",", "reverse_condition", "(", "code", ")", ")", ";", "if", "(", "!", "register_operand", "(", "operands", "[", "", "]", ",", "mode", ")", ")", "operands", "[", "", "]", "=", "force_reg", "(", "mode", ",", "operands", "[", "", "]", ")", ";", "rtx", "tmp", "=", "operands", "[", "", "]", ";"], "ground_truth": ["operands", "[", "", "]", "=", "operands", "[", "", "]", ";"], "File": "bpf", "Func": "bpf_expand_cbranch", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202220, "Length": 92, "Cover_Rate": 0.7796610169491526} {"Template_token": ["", "rtx", "mem", ";", "if", "(", "!", "IN_RANGE", "(", "fp_offset", ",", "-", "", "-", "", ",", "", ")", ")", "break", ";", "else", "{", "mem", "=", "gen_frame_mem", "(", "DImode", ",", "plus_constant", "(", "DImode", ",", "hard_frame_pointer_rtx", ",", "fp_offset", "-", "", ")", ")", ";", "insn", "=", "emit_move_insn", "(", "gen_rtx_REG", "(", "DImode", ",", "regno", ")", ",", "mem", ")", ";", "fp_offset", "-=", "", ";", "}", "}", "}"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_expand_epilogue", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202221, "Length": 62, "Cover_Rate": 0.45255474452554745} {"Template_token": ["", "rtx", "insn", ";", "int", "regno", ";", "int", "fp_offset", "=", "-", "cfun", "->", "machine", "->", "local_vars_size", ";", "for", "(", "regno", "=", "", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "{", "if", "(", "(", "df_regs_ever_live_p", "(", "regno", ")", "&&", "!", "call_used_or_fixed_reg_p", "(", "regno", ")", ")", "||", "(", "cfun", "->", "calls_alloca", "&&", "regno", "==", "STACK_POINTER_REGNUM", ")", ")", "{", "rtx", "mem", ";", "if", "(", "!", "IN_RANGE", "(", "fp_offset", ",", "-", "", "-", "", ",", "", ")", ")", "break", ";", "else", "{", "mem", "=", "gen_frame_mem", "(", "DImode", ",", "plus_constant", "(", "DImode", ",", "hard_frame_pointer_rtx", ",", "fp_offset", "-", "", ")", ")", ";", "insn", "=", "emit_move_insn", "(", "gen_rtx_REG", "(", "DImode", ",", "regno", ")", ",", "mem", ")", ";"], "ground_truth": ["fp_offset", "-=", "", ";"], "File": "bpf", "Func": "bpf_expand_epilogue", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202222, "Length": 114, "Cover_Rate": 0.8321167883211679} {"Template_token": ["", "void", "bpf_expand_prologue", "(", "void", ")", "{", "rtx", "insn", ";", "HOST_WIDE_INT", "size", ";", "size", "=", "(", "cfun", "->", "machine", "->", "local_vars_size", "+", "cfun", "->", "machine", "->", "callee_saved_reg_size", ")", ";", "if", "(", "TARGET_XBPF", ")", "{", "int", "regno", ";", "int", "fp_offset", "=", "-", "cfun", "->", "machine", "->", "local_vars_size", ";", "for", "(", "regno", "=", "", ";", "regno", "<", "FIRST_PSEUDO_REGISTER", ";", "regno", "++", ")", "{", "if", "(", "(", "df_regs_ever_live_p", "(", "regno", ")", "&&", "!", "call_used_or_fixed_reg_p", "(", "regno", ")", ")", "||", "(", "cfun", "->", "calls_alloca", "&&", "regno", "==", "STACK_POINTER_REGNUM", ")", ")", "{", "rtx", "mem", ";"], "ground_truth": ["if", "(", "!", "IN_RANGE", "(", "fp_offset", ",", "-", "", "-", "", ",", "", ")", ")", "break", ";"], "File": "bpf", "Func": "bpf_expand_prologue", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202223, "Length": 106, "Cover_Rate": 0.5380710659898477} {"Template_token": ["", "insn", "=", "emit_move_insn", "(", "mem", ",", "gen_rtx_REG", "(", "DImode", ",", "regno", ")", ")", ";", "fp_offset", "-=", "", ";", "}", "}", "}", "}", "if", "(", "cfun", "->", "calls_alloca", ")", "{", "insn", "=", "emit_move_insn", "(", "stack_pointer_rtx", ",", "hard_frame_pointer_rtx", ")", ";", "if", "(", "size", ">", "", ")", "{"], "ground_truth": ["insn", "=", "emit_insn", "(", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "size", ")", ")", ")", ")", ";"], "File": "bpf", "Func": "bpf_expand_prologue", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202224, "Length": 68, "Cover_Rate": 0.34517766497461927} {"Template_token": ["", "static", "void", "bpf_file_end", "(", "void", ")", "{"], "ground_truth": ["if", "(", "TARGET_BPF_CORE", ")", "btf_ext_output", "(", ")", ";"], "File": "bpf", "Func": "bpf_file_end", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202225, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "return", "true", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_frame_pointer_required", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202227, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "static", "bool", "bpf_frame_pointer_required", "(", "void", ")", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_frame_pointer_required", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202228, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "*", "cum", "<", "", ")", "return", "gen_rtx_REG", "(", "arg", ".", "mode", ",", "*", "cum", "+", "", ")", ";"], "ground_truth": ["else", "return", "NULL_RTX", ";"], "File": "bpf", "Func": "bpf_function_arg", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202229, "Length": 24, "Cover_Rate": 0.5106382978723404} {"Template_token": ["", "if", "(", "*", "cum", "<=", "", "&&", "*", "cum", "+", "num_words", ">", "", ")", "error", "(", "", ")", ";"], "ground_truth": ["*", "cum", "+=", "num_words", ";"], "File": "bpf", "Func": "bpf_function_arg_advance", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202230, "Length": 24, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "int", "unsignedp", ";", "mode", "=", "TYPE_MODE", "(", "ret_type", ")", ";"], "ground_truth": ["if", "(", "INTEGRAL_TYPE_P", "(", "ret_type", ")", ")", "mode", "=", "promote_function_mode", "(", "ret_type", ",", "mode", ",", "&", "unsignedp", ",", "fntype_or_decl", ",", "", ")", ";"], "File": "bpf", "Func": "bpf_function_value", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202231, "Length": 33, "Cover_Rate": 0.5409836065573771} {"Template_token": ["", "static", "tree", "bpf_handle_fndecl_attribute", "(", "tree", "*", "node", ",", "tree", "name", ",", "tree", "args", ",", "int", "flags", "ATTRIBUTE_UNUSED", ",", "bool", "*", "no_add_attrs", ")", "{", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "FUNCTION_DECL", ")", "{", "warning", "(", "OPT_Wattributes", ",", "", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}", "if", "(", "is_attribute_p", "(", "", ",", "name", ")", ")", "{", "if", "(", "args", ")", "{", "tree", "cst", "=", "TREE_VALUE", "(", "args", ")", ";", "if", "(", "TREE_CODE", "(", "cst", ")", "!=", "INTEGER_CST", ")", "{", "warning", "(", "OPT_Wattributes", ",", "", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_handle_fndecl_attribute", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202234, "Length": 98, "Cover_Rate": 0.8166666666666667} {"Template_token": ["", "static", "tree", "bpf_handle_preserve_access_index_attribute", "(", "tree", "*", "node", ",", "tree", "name", ",", "tree", "args", "ATTRIBUTE_UNUSED", ",", "int", "flags", "ATTRIBUTE_UNUSED", ",", "bool", "*", "no_add_attrs", ")", "{", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "RECORD_TYPE", "&&", "TREE_CODE", "(", "*", "node", ")", "!=", "UNION_TYPE", ")", "{"], "ground_truth": ["warning", "(", "OPT_Wattributes", ",", "", ",", "name", ")", ";"], "File": "bpf", "Func": "bpf_handle_preserve_access_index_attribute", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202235, "Length": 52, "Cover_Rate": 0.8387096774193549} {"Template_token": ["", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "RECORD_TYPE", "&&", "TREE_CODE", "(", "*", "node", ")", "!=", "UNION_TYPE", ")", "{", "warning", "(", "OPT_Wattributes", ",", "", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}", "return", "NULL_TREE", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_handle_preserve_access_index_attribute", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202236, "Length": 38, "Cover_Rate": 0.6129032258064516} {"Template_token": ["", "case", "E_SImode", ":", "case", "E_DImode", ":", "case", "E_HImode", ":", "case", "E_QImode", ":", "case", "E_TImode", ":", "case", "E_SFmode", ":", "case", "E_DFmode", ":"], "ground_truth": ["return", "true", ";"], "File": "bpf", "Func": "bpf_hard_regno_mode_ok", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202237, "Length": 24, "Cover_Rate": 0.48} {"Template_token": ["", "return", "CEIL", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "UNITS_PER_WORD", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_hard_regno_nregs", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202239, "Length": 12, "Cover_Rate": 0.4444444444444444} {"Template_token": ["", "static", "inline", "int", "bpf_helper_code", "(", "const", "char", "*", "name", ")", "{", "int", "i", ";", "for", "(", "i", "=", "", ";", "i", "<", "BPF_BUILTIN_HELPER_MAX", ";", "++", "i", ")", "if", "(", "strcmp", "(", "name", ",", "bpf_helper_names", "[", "i", "]", ")", "==", "", ")", "return", "i", ";", "return", "", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_helper_code", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202240, "Length": 48, "Cover_Rate": 1.0} {"Template_token": ["", "int", "i", ";", "for", "(", "i", "=", "", ";", "i", "<", "BPF_BUILTIN_HELPER_MAX", ";", "++", "i", ")", "if", "(", "strcmp", "(", "name", ",", "bpf_helper_names", "[", "i", "]", ")", "==", "", ")", "return", "i", ";", "return", "", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_helper_code", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202241, "Length": 37, "Cover_Rate": 0.7708333333333334} {"Template_token": ["", "else", "if", "(", "from", "==", "ARG_POINTER_REGNUM", "&&", "to", "==", "FRAME_POINTER_REGNUM", ")", "ret", "=", "", ";", "else", "gcc_unreachable", "(", ")", ";"], "ground_truth": ["return", "ret", ";"], "File": "bpf", "Func": "bpf_initial_elimination_offset", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202242, "Length": 23, "Cover_Rate": 0.36507936507936506} {"Template_token": ["", "if", "(", "from", "==", "ARG_POINTER_REGNUM", "&&", "to", "==", "STACK_POINTER_REGNUM", ")", "ret", "=", "(", "cfun", "->", "machine", "->", "local_vars_size", "+", "cfun", "->", "machine", "->", "callee_saved_reg_size", ")", ";", "else", "if", "(", "from", "==", "ARG_POINTER_REGNUM", "&&", "to", "==", "FRAME_POINTER_REGNUM", ")", "ret", "=", "", ";"], "ground_truth": ["else", "gcc_unreachable", "(", ")", ";"], "File": "bpf", "Func": "bpf_initial_elimination_offset", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202243, "Length": 46, "Cover_Rate": 0.7301587301587301} {"Template_token": ["", "def_builtin", "(", "", ",", "BPF_BUILTIN_LOAD_HALF", ",", "build_function_type_list", "(", "ullt", ",", "ullt", ",", "", ")", ")", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_LOAD_WORD", ",", "build_function_type_list", "(", "ullt", ",", "ullt", ",", "", ")", ")", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_PRESERVE_ACCESS_INDEX", ",", "build_function_type_list", "(", "ptr_type_node", ",", "ptr_type_node", ",", "", ")", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_init_builtins", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202244, "Length": 49, "Cover_Rate": 0.6363636363636364} {"Template_token": ["", "tree", "ullt", "=", "long_long_unsigned_type_node", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_LOAD_BYTE", ",", "build_function_type_list", "(", "ullt", ",", "ullt", ",", "", ")", ")", ";", "def_builtin", "(", "", ",", "BPF_BUILTIN_LOAD_HALF", ",", "build_function_type_list", "(", "ullt", ",", "ullt", ",", "", ")", ")", ";"], "ground_truth": ["def_builtin", "(", "", ",", "BPF_BUILTIN_LOAD_WORD", ",", "build_function_type_list", "(", "ullt", ",", "ullt", ",", "", ")", ")", ";"], "File": "bpf", "Func": "bpf_init_builtins", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202245, "Length": 53, "Cover_Rate": 0.6883116883116883} {"Template_token": ["", "set_conv_libfunc", "(", "sfix_optab", ",", "SImode", ",", "DFmode", ",", "", ")", ";", "set_conv_libfunc", "(", "sfloat_optab", ",", "DFmode", ",", "SImode", ",", "", ")", ";", "set_conv_libfunc", "(", "ufloat_optab", ",", "DFmode", ",", "SImode", ",", "", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_init_libfuncs", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202246, "Length": 34, "Cover_Rate": 0.5396825396825397} {"Template_token": ["", "return", "ggc_cleared_alloc", "<", "machine_function", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_init_machine_status", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202247, "Length": 9, "Cover_Rate": 0.5} {"Template_token": ["", "return", "ggc_cleared_alloc", "<", "machine_function", ">", "(", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_init_machine_status", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202248, "Length": 9, "Cover_Rate": 0.5} {"Template_token": ["", "rtx", "x0", "=", "XEXP", "(", "x", ",", "", ")", ";", "rtx", "x1", "=", "XEXP", "(", "x", ",", "", ")", ";", "if", "(", "bpf_address_base_p", "(", "x0", ",", "strict", ")", "&&", "GET_CODE", "(", "x1", ")", "==", "CONST_INT", ")", "return", "IN_RANGE", "(", "INTVAL", "(", "x1", ")", ",", "-", "", "-", "", ",", "", ")", ";"], "ground_truth": ["break", ";"], "File": "bpf", "Func": "bpf_legitimate_address_p", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202249, "Length": 54, "Cover_Rate": 0.5294117647058824} {"Template_token": ["", "if", "(", "TARGET_BPF_CORE", ")", "write_symbols", "|=", "BTF_WITH_CORE_DEBUG", ";", "if", "(", "flag_lto", "&&", "TARGET_BPF_CORE", ")", "sorry", "(", "", ")", ";", "if", "(", "btf_debuginfo_p", "(", ")", "&&", "!", "(", "target_flags_explicit", "&", "MASK_BPF_CORE", ")", ")", "{", "target_flags", "|=", "MASK_BPF_CORE", ";"], "ground_truth": ["write_symbols", "|=", "BTF_WITH_CORE_DEBUG", ";"], "File": "bpf", "Func": "bpf_option_override", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202250, "Length": 41, "Cover_Rate": 0.36283185840707965} {"Template_token": ["", "write_symbols", "|=", "BTF_WITH_CORE_DEBUG", ";", "}", "if", "(", "bpf_has_jmpext", "==", "-", "", ")", "bpf_has_jmpext", "=", "(", "bpf_isa", ">=", "ISA_V2", ")", ";"], "ground_truth": ["if", "(", "bpf_has_alu32", "==", "-", "", ")", "bpf_has_alu32", "=", "(", "bpf_isa", ">=", "ISA_V3", ")", ";"], "File": "bpf", "Func": "bpf_option_override", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202251, "Length": 35, "Cover_Rate": 0.30973451327433627} {"Template_token": ["", "if", "(", "decl", "&&", "(", "attr", "=", "lookup_attribute", "(", "", ",", "DECL_ATTRIBUTES", "(", "decl", ")", ")", ")", ")", "{", "tree", "attr_args", "=", "TREE_VALUE", "(", "attr", ")", ";", "xops", "[", "", "]", "=", "GEN_INT", "(", "TREE_INT_CST_LOW", "(", "TREE_VALUE", "(", "attr_args", ")", ")", ")", ";", "output_asm_insn", "(", "", ",", "xops", ")", ";", "}", "else", "output_asm_insn", "(", "", ",", "&", "target", ")", ";", "break", ";", "}", "default", ":", "if", "(", "TARGET_XBPF", ")", "output_asm_insn", "(", "", ",", "&", "target", ")", ";", "else", "{"], "ground_truth": ["error", "(", "", ")", ";"], "File": "bpf", "Func": "bpf_output_call", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202252, "Length": 84, "Cover_Rate": 0.56} {"Template_token": ["", "static", "void", "bpf_output_constructor", "(", "rtx", "symbol", ",", "int", "priority", "ATTRIBUTE_UNUSED", ")", "{", "tree", "decl", "=", "SYMBOL_REF_DECL", "(", "symbol", ")", ";", "if", "(", "decl", ")", "sorry_at", "(", "DECL_SOURCE_LOCATION", "(", "decl", ")", ",", "", ")", ";", "else", "sorry", "(", "", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_output_constructor", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202253, "Length": 41, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "decl", ")", "sorry_at", "(", "DECL_SOURCE_LOCATION", "(", "decl", ")", ",", "", ")", ";"], "ground_truth": ["else", "sorry", "(", "", ")", ";"], "File": "bpf", "Func": "bpf_output_destructor", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202255, "Length": 20, "Cover_Rate": 0.4878048780487805} {"Template_token": ["", "static", "bool", "bpf_pass_by_reference", "(", "cumulative_args_t", "cum", "ATTRIBUTE_UNUSED", ",", "const", "function_arg_info", "&", "arg", ")", "{"], "ground_truth": ["unsigned", "num_bytes", "=", "arg", ".", "type_size_in_bytes", "(", ")", ";"], "File": "bpf", "Func": "bpf_pass_by_reference", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202257, "Length": 23, "Cover_Rate": 0.5609756097560976} {"Template_token": ["", "return", "(", "arg", ".", "aggregate_type_p", "(", ")", "||", "(", "num_bytes", ">", "", "*", "", ")", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_pass_by_reference", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202258, "Length": 18, "Cover_Rate": 0.43902439024390244} {"Template_token": ["", "void", "bpf_print_operand", "(", "FILE", "*", "file", ",", "rtx", "op", ",", "int", "code", "ATTRIBUTE_UNUSED", ")", "{", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "REG", ":", "fprintf", "(", "file", ",", "", ",", "reg_names", "[", "REGNO", "(", "op", ")", "]", ")", ";", "break", ";", "case", "MEM", ":", "output_address", "(", "GET_MODE", "(", "op", ")", ",", "XEXP", "(", "op", ",", "", ")", ")", ";", "break", ";", "case", "CONST_DOUBLE", ":", "if", "(", "CONST_DOUBLE_HIGH", "(", "op", ")", ")", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_DOUBLE_HEX", ",", "CONST_DOUBLE_HIGH", "(", "op", ")", ",", "CONST_DOUBLE_LOW", "(", "op", ")", ")", ";", "else", "if", "(", "CONST_DOUBLE_LOW", "(", "op", ")", "<", "", ")", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_HEX", ",", "CONST_DOUBLE_LOW", "(", "op", ")", ")", ";", "else", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_DEC", ",", "CONST_DOUBLE_LOW", "(", "op", ")", ")", ";", "break", ";", "default", ":", "output_addr_const", "(", "file", ",", "op", ")", ";", "}"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_print_operand", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202259, "Length": 138, "Cover_Rate": 1.0} {"Template_token": ["", "break", ";", "case", "CONST_DOUBLE", ":", "if", "(", "CONST_DOUBLE_HIGH", "(", "op", ")", ")", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_DOUBLE_HEX", ",", "CONST_DOUBLE_HIGH", "(", "op", ")", ",", "CONST_DOUBLE_LOW", "(", "op", ")", ")", ";", "else", "if", "(", "CONST_DOUBLE_LOW", "(", "op", ")", "<", "", ")", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_HEX", ",", "CONST_DOUBLE_LOW", "(", "op", ")", ")", ";", "else", "fprintf", "(", "file", ",", "HOST_WIDE_INT_PRINT_DEC", ",", "CONST_DOUBLE_LOW", "(", "op", ")", ")", ";", "break", ";", "default", ":", "output_addr_const", "(", "file", ",", "op", ")", ";", "}"], "ground_truth": ["}"], "File": "bpf", "Func": "bpf_print_operand", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202260, "Length": 77, "Cover_Rate": 0.5579710144927537} {"Template_token": ["", "output_addr_const", "(", "file", ",", "op1", ")", ";", "fputs", "(", "", ",", "file", ")", ";", "}", "else", "fatal_insn", "(", "", ",", "addr", ")", ";", "break", ";", "}", "case", "MEM", ":", "case", "LABEL_REF", ":", "fatal_insn", "(", "", ",", "addr", ")", ";", "break", ";", "default", ":", "output_addr_const", "(", "file", ",", "addr", ")", ";"], "ground_truth": ["break", ";"], "File": "bpf", "Func": "bpf_print_operand_address", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202261, "Length": 52, "Cover_Rate": 0.348993288590604} {"Template_token": ["", "static", "bool", "bpf_rtx_costs", "(", "rtx", "x", "ATTRIBUTE_UNUSED", ",", "enum", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "int", "outer_code", "ATTRIBUTE_UNUSED", ",", "int", "opno", "ATTRIBUTE_UNUSED", ",", "int", "*", "total", "ATTRIBUTE_UNUSED", ",", "bool", "speed", "ATTRIBUTE_UNUSED", ")", "{"], "ground_truth": ["return", "false", ";"], "File": "bpf", "Func": "bpf_rtx_costs", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202262, "Length": 34, "Cover_Rate": 0.9714285714285714} {"Template_token": ["", "static", "bool", "bpf_rtx_costs", "(", "rtx", "x", "ATTRIBUTE_UNUSED", ",", "enum", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "int", "outer_code", "ATTRIBUTE_UNUSED", ",", "int", "opno", "ATTRIBUTE_UNUSED", ",", "int", "*", "total", "ATTRIBUTE_UNUSED", ",", "bool", "speed", "ATTRIBUTE_UNUSED", ")", "{"], "ground_truth": ["return", "false", ";"], "File": "bpf", "Func": "bpf_rtx_costs", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202263, "Length": 34, "Cover_Rate": 0.9714285714285714} {"Template_token": ["", "builtin_define", "(", "", ")", ";", "if", "(", "TARGET_BIG_ENDIAN", ")", "builtin_define", "(", "", ")", ";", "else", "builtin_define", "(", "", ")", ";", "{", "const", "char", "*", "version_code", ";", "char", "*", "kernel_version_code", ";", "switch", "(", "bpf_kernel", ")", "{", "case", "LINUX_V4_0", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_1", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_2", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_3", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_4", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_5", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_6", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_7", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_8", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_9", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_10", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_11", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_12", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_13", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_14", ":", "version_code", "=", "", ";", "break", ";"], "ground_truth": ["case", "LINUX_V4_15", ":", "version_code", "=", "", ";", "break", ";"], "File": "bpf", "Func": "bpf_target_macros", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202264, "Length": 179, "Cover_Rate": 0.6258741258741258} {"Template_token": ["", "case", "LINUX_V4_3", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_4", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_5", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_6", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_7", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_8", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_9", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_10", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_11", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_12", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_13", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_14", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_15", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_16", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_17", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_18", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_19", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V4_20", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V5_0", ":", "version_code", "=", "", ";", "break", ";", "case", "LINUX_V5_1", ":", "version_code", "=", "", ";", "break", ";"], "ground_truth": ["case", "LINUX_V5_2", ":", "version_code", "=", "", ";", "break", ";"], "File": "bpf", "Func": "bpf_target_macros", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202265, "Length": 189, "Cover_Rate": 0.6608391608391608} {"Template_token": ["", "tree", "t", "=", "add_builtin_function", "(", "name", ",", "type", ",", "code", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";"], "ground_truth": ["bpf_builtins", "[", "code", "]", "=", "t", ";"], "File": "bpf", "Func": "def_builtin", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202266, "Length": 25, "Cover_Rate": 0.5434782608695652} {"Template_token": ["", "handle_attr_preserve", "(", "fn", ")", ";", "return", "", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "execute", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202268, "Length": 9, "Cover_Rate": 0.45} {"Template_token": ["", "if", "(", "!", "NONJUMP_INSN_P", "(", "insn", ")", ")", "continue", ";", "rtx", "pat", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pat", ")", "!=", "SET", ")", "continue", ";", "start_sequence", "(", ")", ";", "for", "(", "int", "i", "=", "", ";", "i", "<", "", ";", "i", "++", ")", "{", "rtx", "mem", "=", "XEXP", "(", "pat", ",", "i", ")", ";", "if", "(", "MEM_P", "(", "mem", ")", ")", "{", "tree", "expr", "=", "MEM_EXPR", "(", "mem", ")", ";", "if", "(", "!", "expr", ")", "continue", ";", "if", "(", "TREE_CODE", "(", "expr", ")", "==", "MEM_REF", "&&", "TREE_CODE", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", "==", "SSA_NAME", ")", "{", "gimple", "*", "def_stmt", "=", "SSA_NAME_DEF_STMT", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";", "if", "(", "def_stmt", "&&", "is_gimple_assign", "(", "def_stmt", ")", ")", "expr", "=", "gimple_assign_rhs1", "(", "def_stmt", ")", ";", "}", "if", "(", "is_attr_preserve_access", "(", "expr", ")", ")", "{", "auto_vec", "<", "unsigned", "int", ",", "", ">", "accessors", ";"], "ground_truth": ["tree", "container", "=", "bpf_core_compute", "(", "expr", ",", "&", "accessors", ")", ";"], "File": "bpf", "Func": "FOR_BB_INSNS", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202269, "Length": 162, "Cover_Rate": 0.5890909090909091} {"Template_token": ["", "gimple", "*", "def_stmt", "=", "SSA_NAME_DEF_STMT", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";", "if", "(", "def_stmt", "&&", "is_gimple_assign", "(", "def_stmt", ")", ")", "expr", "=", "gimple_assign_rhs1", "(", "def_stmt", ")", ";", "}", "if", "(", "is_attr_preserve_access", "(", "expr", ")", ")", "{", "auto_vec", "<", "unsigned", "int", ",", "", ">", "accessors", ";", "tree", "container", "=", "bpf_core_compute", "(", "expr", ",", "&", "accessors", ")", ";", "if", "(", "accessors", ".", "length", "(", ")", "<", "", ")", "continue", ";", "accessors", ".", "reverse", "(", ")", ";", "container", "=", "TREE_TYPE", "(", "container", ")", ";", "const", "char", "*", "section_name", ";", "if", "(", "DECL_SECTION_NAME", "(", "fn", "->", "decl", ")", ")", "section_name", "=", "DECL_SECTION_NAME", "(", "fn", "->", "decl", ")", ";", "else", "section_name", "=", "", ";", "label", "=", "gen_label_rtx", "(", ")", ";", "LABEL_PRESERVE_P", "(", "label", ")", "=", "", ";"], "ground_truth": ["emit_label", "(", "label", ")", ";"], "File": "bpf", "Func": "FOR_BB_INSNS", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202270, "Length": 130, "Cover_Rate": 0.4727272727272727} {"Template_token": ["", "gimple", "*", "def_stmt", "=", "SSA_NAME_DEF_STMT", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";", "if", "(", "def_stmt", "&&", "is_gimple_assign", "(", "def_stmt", ")", ")", "expr", "=", "gimple_assign_rhs1", "(", "def_stmt", ")", ";", "}", "if", "(", "is_attr_preserve_access", "(", "expr", ")", ")", "{", "auto_vec", "<", "unsigned", "int", ",", "", ">", "accessors", ";", "tree", "container", "=", "bpf_core_compute", "(", "expr", ",", "&", "accessors", ")", ";", "if", "(", "accessors", ".", "length", "(", ")", "<", "", ")", "continue", ";", "accessors", ".", "reverse", "(", ")", ";", "container", "=", "TREE_TYPE", "(", "container", ")", ";", "const", "char", "*", "section_name", ";", "if", "(", "DECL_SECTION_NAME", "(", "fn", "->", "decl", ")", ")", "section_name", "=", "DECL_SECTION_NAME", "(", "fn", "->", "decl", ")", ";", "else", "section_name", "=", "", ";", "label", "=", "gen_label_rtx", "(", ")", ";", "LABEL_PRESERVE_P", "(", "label", ")", "=", "", ";", "emit_label", "(", "label", ")", ";", "bpf_core_reloc_add", "(", "container", ",", "section_name", ",", "&", "accessors", ",", "label", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "FOR_EACH_BB_FN", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202271, "Length": 143, "Cover_Rate": 0.5053003533568905} {"Template_token": ["", "FOR_EACH_BB_FN", "(", "bb", ",", "fn", ")", "{", "FOR_BB_INSNS", "(", "bb", ",", "insn", ")", "{", "if", "(", "!", "NONJUMP_INSN_P", "(", "insn", ")", ")", "continue", ";", "rtx", "pat", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "pat", ")", "!=", "SET", ")", "continue", ";", "start_sequence", "(", ")", ";", "for", "(", "int", "i", "=", "", ";", "i", "<", "", ";", "i", "++", ")", "{", "rtx", "mem", "=", "XEXP", "(", "pat", ",", "i", ")", ";", "if", "(", "MEM_P", "(", "mem", ")", ")", "{", "tree", "expr", "=", "MEM_EXPR", "(", "mem", ")", ";", "if", "(", "!", "expr", ")", "continue", ";", "if", "(", "TREE_CODE", "(", "expr", ")", "==", "MEM_REF", "&&", "TREE_CODE", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", "==", "SSA_NAME", ")", "{", "gimple", "*", "def_stmt", "=", "SSA_NAME_DEF_STMT", "(", "TREE_OPERAND", "(", "expr", ",", "", ")", ")", ";", "if", "(", "def_stmt", "&&", "is_gimple_assign", "(", "def_stmt", ")", ")", "expr", "=", "gimple_assign_rhs1", "(", "def_stmt", ")", ";", "}", "if", "(", "is_attr_preserve_access", "(", "expr", ")", ")", "{", "auto_vec", "<", "unsigned", "int", ",", "", ">", "accessors", ";", "tree", "container", "=", "bpf_core_compute", "(", "expr", ",", "&", "accessors", ")", ";"], "ground_truth": ["if", "(", "accessors", ".", "length", "(", ")", "<", "", ")", "continue", ";"], "File": "bpf", "Func": "FOR_EACH_BB_FN", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202272, "Length": 188, "Cover_Rate": 0.6643109540636042} {"Template_token": ["", "return", "TARGET_BPF_CORE", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "gate", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202273, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "tree", "container", "=", "bpf_core_compute", "(", "expr", ",", "&", "accessors", ")", ";", "if", "(", "accessors", ".", "length", "(", ")", "<", "", ")", "continue", ";", "accessors", ".", "reverse", "(", ")", ";", "container", "=", "TREE_TYPE", "(", "container", ")", ";", "const", "char", "*", "section_name", ";", "if", "(", "DECL_SECTION_NAME", "(", "fn", "->", "decl", ")", ")", "section_name", "=", "DECL_SECTION_NAME", "(", "fn", "->", "decl", ")", ";", "else", "section_name", "=", "", ";", "label", "=", "gen_label_rtx", "(", ")", ";", "LABEL_PRESERVE_P", "(", "label", ")", "=", "", ";", "emit_label", "(", "label", ")", ";", "bpf_core_reloc_add", "(", "container", ",", "section_name", ",", "&", "accessors", ",", "label", ")", ";", "}", "}", "}", "rtx_insn", "*", "seq", "=", "get_insns", "(", ")", ";", "end_sequence", "(", ")", ";", "emit_insn_before", "(", "seq", ",", "insn", ")", ";", "}", "}"], "ground_truth": ["}"], "File": "bpf", "Func": "handle_attr_preserve", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202275, "Length": 119, "Cover_Rate": 0.39144736842105265} {"Template_token": ["", "tree", "base", "=", "get_inner_reference", "(", "t", ",", "&", "bitsize", ",", "&", "bitpos", ",", "&", "var_off", ",", "&", "mode", ",", "&", "sign", ",", "&", "reverse", ",", "&", "vol", ")", ";", "if", "(", "TREE_CODE", "(", "base", ")", "==", "MEM_REF", ")", "{", "return", "lookup_attribute", "(", "", ",", "TYPE_ATTRIBUTES", "(", "TREE_TYPE", "(", "base", ")", ")", ")", ";", "}", "if", "(", "TREE_CODE", "(", "t", ")", "==", "COMPONENT_REF", ")", "{", "const", "tree", "op", "=", "TREE_OPERAND", "(", "t", ",", "", ")", ";", "if", "(", "TREE_CODE", "(", "op", ")", "==", "COMPONENT_REF", ")", "return", "is_attr_preserve_access", "(", "op", ")", ";", "const", "tree", "container", "=", "DECL_CONTEXT", "(", "TREE_OPERAND", "(", "t", ",", "", ")", ")", ";", "return", "lookup_attribute", "(", "", ",", "TYPE_ATTRIBUTES", "(", "container", ")", ")", ";", "}", "else", "if", "(", "TREE_CODE", "(", "t", ")", "==", "ADDR_EXPR", ")", "return", "is_attr_preserve_access", "(", "TREE_OPERAND", "(", "t", ",", "", ")", ")", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "is_attr_preserve_access", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202276, "Length": 141, "Cover_Rate": 0.8011363636363636} {"Template_token": ["", "rtl_opt_pass", "*", "make_pass_bpf_core_attr", "(", "gcc", "::", "context", "*", "ctxt", ")", "{", "return", "new", "pass_bpf_core_attr", "(", "ctxt", ")", ";"], "ground_truth": ["}"], "File": "bpf", "Func": "make_pass_bpf_core_attr", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202278, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "pass_bpf_core_attr", "(", "gcc", "::", "context", "*", "ctxt", ")", ":", "rtl_opt_pass", "(", "pass_data_bpf_core_attr", ",", "ctxt", ")", "{"], "ground_truth": ["}"], "File": "bpf", "Func": "pass_bpf_core_attr", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202279, "Length": 17, "Cover_Rate": 1.0} {"Template_token": ["", "pass_bpf_core_attr", "(", "gcc", "::", "context", "*", "ctxt", ")", ":", "rtl_opt_pass", "(", "pass_data_bpf_core_attr", ",", "ctxt", ")", "{"], "ground_truth": ["}"], "File": "bpf", "Func": "pass_bpf_core_attr", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202280, "Length": 17, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "TREE_CODE", "(", "node", ")", "==", "FIELD_DECL", ")", "{", "const", "tree", "container", "=", "DECL_CONTEXT", "(", "node", ")", ";", "dw_die_ref", "die", "=", "lookup_type_die", "(", "container", ")", ";", "if", "(", "die", "==", "NULL", ")", "return", "-", "", ";", "ctf_dtdef_ref", "dtd", "=", "ctf_dtd_lookup", "(", "ctfc", ",", "die", ")", ";"], "ground_truth": ["if", "(", "dtd", "==", "NULL", ")", "return", "-", "", ";"], "File": "coreout1", "Func": "bpf_core_get_sou_member_index", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202281, "Length": 57, "Cover_Rate": 0.3081081081081081} {"Template_token": ["", "for", "(", "dmd", "=", "dtd", "->", "dtd_u", ".", "dtu_members", ";", "dmd", "!=", "NULL", ";", "dmd", "=", "(", "ctf_dmdef_t", "*", ")", "ctf_dmd_list_next", "(", "dmd", ")", ")", "{", "bool", "field_has_btf", "=", "get_btf_id", "(", "dmd", "->", "dmd_type", ")", "<=", "BTF_MAX_TYPE", ";", "if", "(", "field", "==", "node", ")", "return", "field_has_btf", "?", "i", ":", "-", "", ";"], "ground_truth": ["if", "(", "field_has_btf", ")", "i", "++", ";"], "File": "coreout1", "Func": "bpf_core_get_sou_member_index", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202282, "Length": 59, "Cover_Rate": 0.31891891891891894} {"Template_token": ["", "bpf_core_reloc_ref", "bpfcr", "=", "ggc_cleared_alloc", "<", "bpf_core_reloc_t", ">", "(", ")", ";", "ctf_container_ref", "ctfc", "=", "ctf_get_tu_ctfc", "(", ")", ";", "ctf_add_string", "(", "ctfc", ",", "buf", ",", "&", "(", "bpfcr", "->", "bpfcr_astr_off", ")", ",", "CTF_AUX_STRTAB", ")", ";", "bpfcr", "->", "bpfcr_type", "=", "get_btf_id", "(", "ctf_lookup_tree_type", "(", "ctfc", ",", "type", ")", ")", ";", "bpfcr", "->", "bpfcr_insn_label", "=", "label", ";", "bpfcr", "->", "bpfcr_kind", "=", "kind", ";", "bpf_core_section_ref", "sec", ";", "FOR_EACH_VEC_ELT", "(", "*", "bpf_core_sections", ",", "i", ",", "sec", ")", "if", "(", "strcmp", "(", "sec", "->", "name", ",", "section_name", ")", "==", "", ")", "{", "vec_safe_push", "(", "sec", "->", "relocs", ",", "bpfcr", ")", ";", "return", ";"], "ground_truth": ["}"], "File": "coreout1", "Func": "bpf_core_reloc_add", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202283, "Length": 97, "Cover_Rate": 0.3277027027027027} {"Template_token": ["", "unsigned", "int", "kind", "=", "CTF_V2_INFO_KIND", "(", "dtd", "->", "dtd_data", ".", "ctti_info", ")", ";", "if", "(", "kind", "!=", "CTF_K_STRUCT", "&&", "kind", "!=", "CTF_K_UNION", ")", "return", "-", "", ";", "int", "i", "=", "", ";", "ctf_dmdef_t", "*", "dmd", ";", "for", "(", "dmd", "=", "dtd", "->", "dtd_u", ".", "dtu_members", ";", "dmd", "!=", "NULL", ";", "dmd", "=", "(", "ctf_dmdef_t", "*", ")", "ctf_dmd_list_next", "(", "dmd", ")", ")", "{", "if", "(", "get_btf_id", "(", "dmd", "->", "dmd_type", ")", ">", "BTF_MAX_TYPE", ")", "continue", ";", "if", "(", "strcmp", "(", "dmd", "->", "dmd_name", ",", "name", ")", "==", "", ")", "return", "i", ";", "i", "++", ";", "}"], "ground_truth": ["}"], "File": "coreout", "Func": "bpf_core_get_sou_member_index", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202284, "Length": 96, "Cover_Rate": 0.5274725274725275} {"Template_token": ["", "if", "(", "accessors", "->", "length", "(", ")", "<", "", ")", "return", ";", "for", "(", "i", "=", "", ";", "i", "<", "accessors", "->", "length", "(", ")", "-", "", ";", "i", "++", ")", "n", "+=", "snprintf", "(", "buf", "+", "n", ",", "sizeof", "(", "buf", ")", "-", "n", ",", "", ",", "(", "*", "accessors", ")", "[", "i", "]", ")", ";", "snprintf", "(", "buf", "+", "n", ",", "sizeof", "(", "buf", ")", "-", "n", ",", "", ",", "(", "*", "accessors", ")", "[", "i", "]", ")", ";", "bpf_core_reloc_ref", "bpfcr", "=", "ggc_cleared_alloc", "<", "bpf_core_reloc_t", ">", "(", ")", ";", "ctf_container_ref", "ctfc", "=", "ctf_get_tu_ctfc", "(", ")", ";", "ctf_add_string", "(", "ctfc", ",", "buf", ",", "&", "(", "bpfcr", "->", "bpfcr_astr_off", ")", ",", "CTF_AUX_STRTAB", ")", ";", "bpfcr", "->", "bpfcr_type", "=", "get_btf_id", "(", "ctf_lookup_tree_type", "(", "ctfc", ",", "type", ")", ")", ";", "bpfcr", "->", "bpfcr_insn_label", "=", "label", ";", "bpfcr", "->", "bpfcr_kind", "=", "BPF_RELO_FIELD_BYTE_OFFSET", ";", "bpf_core_section_ref", "sec", ";"], "ground_truth": ["FOR_EACH_VEC_ELT", "(", "*", "bpf_core_sections", ",", "i", ",", "sec", ")", "if", "(", "strcmp", "(", "sec", "->", "name", ",", "section_name", ")", "==", "", ")", "{"], "File": "coreout", "Func": "bpf_core_reloc_add", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202285, "Length": 166, "Cover_Rate": 0.5684931506849316} {"Template_token": ["", "void", "btf_ext_init", "(", "void", ")", "{", "btf_ext_info_section", "=", "get_section", "(", "BTF_EXT_INFO_SECTION_NAME", ",", "BTF_EXT_INFO_SECTION_FLAGS", ",", "NULL", ")", ";", "ASM_GENERATE_INTERNAL_LABEL", "(", "btf_ext_info_section_label", ",", "BTF_EXT_INFO_SECTION_LABEL", ",", "btf_ext_label_num", "++", ")", ";"], "ground_truth": ["vec_alloc", "(", "bpf_core_sections", ",", "", ")", ";"], "File": "coreout", "Func": "btf_ext_init", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202286, "Length": 34, "Cover_Rate": 0.9714285714285714} {"Template_token": ["", "ASM_GENERATE_INTERNAL_LABEL", "(", "btf_ext_info_section_label", ",", "BTF_EXT_INFO_SECTION_LABEL", ",", "btf_ext_label_num", "++", ")", ";", "vec_alloc", "(", "bpf_core_sections", ",", "", ")", ";"], "ground_truth": ["}"], "File": "coreout", "Func": "btf_ext_init", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202287, "Length": 18, "Cover_Rate": 0.5142857142857142} {"Template_token": ["", "output_btfext_header", "(", ")", ";", "output_btfext_core_sections", "(", ")", ";"], "ground_truth": ["bpf_core_sections", "=", "NULL", ";"], "File": "coreout", "Func": "btf_ext_output", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202288, "Length": 12, "Cover_Rate": 0.631578947368421} {"Template_token": ["", "output_btfext_header", "(", ")", ";", "output_btfext_core_sections", "(", ")", ";", "bpf_core_sections", "=", "NULL", ";"], "ground_truth": ["}"], "File": "coreout", "Func": "btf_ext_output", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202289, "Length": 13, "Cover_Rate": 0.6842105263157895} {"Template_token": ["", "fprintf", "(", "asm_out_file", ",", "", ",", "ASM_COMMENT_START", ")", ";", "dw2_asm_output_data", "(", "", ",", "bpfcr", "->", "bpfcr_type", ",", "", ")", ";", "dw2_asm_output_data", "(", "", ",", "bpfcr", "->", "bpfcr_astr_off", ",", "", ")", ";"], "ground_truth": ["dw2_asm_output_data", "(", "", ",", "bpfcr", "->", "bpfcr_kind", ",", "", ")", ";"], "File": "coreout", "Func": "output_asm_btfext_core_reloc", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202290, "Length": 42, "Cover_Rate": 0.5384615384615384} {"Template_token": ["", "dw2_asm_output_data", "(", "", ",", "bpfcr", "->", "bpfcr_type", ",", "", ")", ";", "dw2_asm_output_data", "(", "", ",", "bpfcr", "->", "bpfcr_astr_off", ",", "", ")", ";", "dw2_asm_output_data", "(", "", ",", "bpfcr", "->", "bpfcr_kind", ",", "", ")", ";"], "ground_truth": ["}"], "File": "coreout", "Func": "output_asm_btfext_core_reloc", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202291, "Length": 34, "Cover_Rate": 0.4358974358974359} {"Template_token": ["", "bpf_core_reloc_ref", "bpfcr", ";", "FOR_EACH_VEC_ELT", "(", "*", "(", "sec", "->", "relocs", ")", ",", "i", ",", "bpfcr", ")", "output_asm_btfext_core_reloc", "(", "bpfcr", ")", ";"], "ground_truth": ["}"], "File": "coreout", "Func": "output_btfext_core_relocs", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202292, "Length": 22, "Cover_Rate": 0.6666666666666666} {"Template_token": ["", "static", "void", "output_btfext_core_sections", "(", "void", ")", "{", "size_t", "i", ";", "bpf_core_section_ref", "sec", ";", "dw2_asm_output_data", "(", "", ",", "sizeof", "(", "struct", "btf_ext_reloc", ")", ",", "", ")", ";", "FOR_EACH_VEC_ELT", "(", "*", "bpf_core_sections", ",", "i", ",", "sec", ")", "{", "sec", "->", "name_offset", "+=", "ctfc_get_strtab_len", "(", "ctf_get_tu_ctfc", "(", ")", ",", "CTF_STRTAB", ")", ";", "dw2_asm_output_data", "(", "", ",", "sec", "->", "name_offset", ",", "", ")", ";", "dw2_asm_output_data", "(", "", ",", "vec_safe_length", "(", "sec", "->", "relocs", ")", ",", "", ")", ";"], "ground_truth": ["output_btfext_core_relocs", "(", "sec", ")", ";"], "File": "coreout", "Func": "output_btfext_core_sections", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202294, "Length": 79, "Cover_Rate": 0.9753086419753086} {"Template_token": ["", "static", "void", "output_btfext_header", "(", "void", ")", "{", "switch_to_section", "(", "btf_ext_info_section", ")", ";", "ASM_OUTPUT_LABEL", "(", "asm_out_file", ",", "btf_ext_info_section_label", ")", ";", "dw2_asm_output_data", "(", "", ",", "BTF_MAGIC", ",", "", ")", ";", "dw2_asm_output_data", "(", "", ",", "BTF_VERSION", ",", "", ")", ";", "dw2_asm_output_data", "(", "", ",", "", ",", "", ")", ";", "dw2_asm_output_data", "(", "", ",", "sizeof", "(", "struct", "btf_ext_header", ")", ",", "", ")", ";", "uint32_t", "func_info_off", "=", "", ",", "func_info_len", "=", "", ";", "uint32_t", "line_info_off", "=", "", ",", "line_info_len", "=", "", ";", "uint32_t", "core_relo_off", "=", "", ",", "core_relo_len", "=", "", ";", "size_t", "i", ";", "bpf_core_section_ref", "sec", ";", "core_relo_len", "+=", "vec_safe_length", "(", "bpf_core_sections", ")", "*", "sizeof", "(", "struct", "btf_ext_section_header", ")", ";", "FOR_EACH_VEC_ELT", "(", "*", "bpf_core_sections", ",", "i", ",", "sec", ")", "core_relo_len", "+=", "vec_safe_length", "(", "sec", "->", "relocs", ")", "*", "sizeof", "(", "struct", "btf_ext_reloc", ")", ";", "if", "(", "core_relo_len", ")", "core_relo_len", "+=", "sizeof", "(", "uint32_t", ")", ";", "dw2_asm_output_data", "(", "", ",", "func_info_off", ",", "", ")", ";"], "ground_truth": ["dw2_asm_output_data", "(", "", ",", "func_info_len", ",", "", ")", ";"], "File": "coreout", "Func": "output_btfext_header", "Target": "bpf", "Target_Clf": "Virtual ISA", "Compiler_Type": "GCC", "Idx": 202295, "Length": 158, "Cover_Rate": 0.8102564102564103}